diff --git a/nodejs-proxyquire-helloworld.patch b/nodejs-proxyquire-helloworld.patch index 202039b..a04e39e 100644 --- a/nodejs-proxyquire-helloworld.patch +++ b/nodejs-proxyquire-helloworld.patch @@ -8,14 +8,14 @@ diff --git a/test/proxyquire-global.js b/test/proxyquire-global.js index e09fce6..29999df 100644 --- a/test/proxyquire-global.js +++ b/test/proxyquire-global.js -@@ -39,17 +39,6 @@ describe('global flags set', function () { - assert.equal(realFoo(), false) - assert.equal(proxiedFoo(), true) +@@ -37,17 +37,6 @@ describe('global flags set', function () { + assert.strictEqual(realFoo(), false) + assert.strictEqual(proxiedFoo(), true) }) - - it('should not throw when a native module is required a second time', function () { - var stubs = { -- 'foo': { +- foo: { - '@global': true - } - } @@ -26,3 +26,6 @@ index e09fce6..29999df 100644 }) describe('global flags not set', function () { +-- +2.33.0 + diff --git a/nodejs-proxyquire.spec b/nodejs-proxyquire.spec index 95de895..a3fe116 100644 --- a/nodejs-proxyquire.spec +++ b/nodejs-proxyquire.spec @@ -1,10 +1,10 @@ Name: nodejs-proxyquire -Version: 2.0.1 +Version: 2.1.3 Release: 1 Summary: Proxies Node.js require to allow overriding dependencies License: MIT URL: https://github.com/thlorenz/proxyquire -Source0: http://registry.npmjs.org/proxyquire/-/proxyquire-%{version}.tgz +Source0: https://github.com/thlorenz/proxyquire/archive/refs/tags/v2.1.3.tar.gz Patch0: nodejs-proxyquire-helloworld.patch BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch @@ -15,7 +15,7 @@ Proxies Node,js's require in order to make overriding dependencies during testing easy while staying totally unobstrusive. %prep -%autosetup -p 1 -n package +%autosetup -p 1 -n proxyquire-%{version} %nodejs_fixdep resolve "^1.1.7" rm -rf node_modules @@ -36,5 +36,8 @@ cp -pr package.json index.js lib %{buildroot}%{nodejs_sitelib}/proxyquire %{nodejs_sitelib}/proxyquire %changelog +* Thu Nov 02 2023 Ge Wang - 2.1.3-1 +- update to version 2.1.3 + * Fri Aug 21 2020 wangchong - 2.0.1-1 - package init diff --git a/proxyquire-2.0.1.tgz b/proxyquire-2.0.1.tgz deleted file mode 100644 index 096208e..0000000 Binary files a/proxyquire-2.0.1.tgz and /dev/null differ diff --git a/v2.1.3.tar.gz b/v2.1.3.tar.gz new file mode 100644 index 0000000..05a4f81 Binary files /dev/null and b/v2.1.3.tar.gz differ