!2 Update to version 2.1.3

From: @wang--ge 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
This commit is contained in:
openeuler-ci-bot 2023-11-03 09:27:38 +00:00 committed by Gitee
commit f33f6f07ca
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 13 additions and 7 deletions

View File

@ -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

View File

@ -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 <wang__ge@126.com> - 2.1.3-1
- update to version 2.1.3
* Fri Aug 21 2020 wangchong <wangchong56@huawei.com> - 2.0.1-1
- package init

Binary file not shown.

BIN
v2.1.3.tar.gz Normal file

Binary file not shown.