!2 Upgrade version to 3.3.0
From: @cherry530 Reviewed-by: @lyn1001 Signed-off-by: @lyn1001
This commit is contained in:
commit
ab8979988e
26
adapted-caller-path.patch
Normal file
26
adapted-caller-path.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From d4a16ffd18b0c7e054bc8efd2381e299264311fb Mon Sep 17 00:00:00 2001
|
||||||
|
From: cherry530 <707078654@qq.com>
|
||||||
|
Date: Tue, 31 Oct 2023 16:19:25 +0800
|
||||||
|
Subject: [PATCH] adapted caller-path
|
||||||
|
|
||||||
|
Signed-off-by: cherry530 <707078654@qq.com>
|
||||||
|
---
|
||||||
|
package.json | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/package.json b/package.json
|
||||||
|
index 0c09362..1bbd9dd 100644
|
||||||
|
--- a/package.json
|
||||||
|
+++ b/package.json
|
||||||
|
@@ -31,7 +31,7 @@
|
||||||
|
"bypass"
|
||||||
|
],
|
||||||
|
"dependencies": {
|
||||||
|
- "parent-module": "^1.0.0",
|
||||||
|
+ "caller-path": "^2.0.0",
|
||||||
|
"resolve-from": "^4.0.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
21
license
21
license
@ -1,21 +0,0 @@
|
|||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
||||||
BIN
nodejs-require-uncached-3.3.0.tar.gz
Normal file
BIN
nodejs-require-uncached-3.3.0.tar.gz
Normal file
Binary file not shown.
@ -1,26 +1,27 @@
|
|||||||
%global enable_tests 0
|
%global enable_tests 0
|
||||||
%global module_name require-uncached
|
%global module_name require-uncached
|
||||||
Name: nodejs-%{module_name}
|
Name: nodejs-%{module_name}
|
||||||
Version: 1.0.3
|
Version: 3.3.0
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Require a module bypassing the cache
|
Summary: Require a module bypassing the cache
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/sindresorhus/require-uncached
|
URL: https://github.com/sindresorhus/require-uncached
|
||||||
Source0: https://github.com/sindresorhus/require-uncached/archive/v%{version}.tar.gz
|
Source0: https://github.com/sindresorhus/import-fresh/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
Source1: https://raw.githubusercontent.com/sindresorhus/import-fresh/v%{version}/license
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
ExclusiveArch: %{nodejs_arches} noarch
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
BuildRequires: nodejs-packaging npm(caller-path) npm(resolve-from)
|
BuildRequires: nodejs-packaging npm(caller-path) npm(resolve-from)
|
||||||
%if 0%{?enable_tests}
|
%if 0%{?enable_tests}
|
||||||
BuildRequires: npm(ava)
|
BuildRequires: npm(ava)
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Patch0: adapted-caller-path.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Useful for testing purposes when you need to freshly require a module.
|
Useful for testing purposes when you need to freshly require a module.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n import-fresh-%{version}
|
%autosetup -n import-fresh-%{version} -p1
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
cp -p %{SOURCE1} .
|
|
||||||
%nodejs_fixdep caller-path
|
%nodejs_fixdep caller-path
|
||||||
%nodejs_fixdep resolve-from
|
%nodejs_fixdep resolve-from
|
||||||
|
|
||||||
@ -33,7 +34,6 @@ cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
%nodejs_symlink_deps --check
|
%nodejs_symlink_deps --check
|
||||||
%{__nodejs} -e 'require("./")'
|
|
||||||
%if 0%{?enable_tests}
|
%if 0%{?enable_tests}
|
||||||
node test.js
|
node test.js
|
||||||
%else
|
%else
|
||||||
@ -46,5 +46,8 @@ node test.js
|
|||||||
%{nodejs_sitelib}/%{module_name}
|
%{nodejs_sitelib}/%{module_name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 31 2023 xu_ping <707078654@qq.com> - 3.3.0-1
|
||||||
|
- Upgrade version to 3.3.0
|
||||||
|
|
||||||
* Fri Aug 14 2020 wangyue <wangyue92@huawei.com> - 1.0.3-1
|
* Fri Aug 14 2020 wangyue <wangyue92@huawei.com> - 1.0.3-1
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
BIN
v1.0.3.tar.gz
BIN
v1.0.3.tar.gz
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user