diff --git a/adapted-caller-path.patch b/adapted-caller-path.patch new file mode 100644 index 0000000..3d23d13 --- /dev/null +++ b/adapted-caller-path.patch @@ -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 + diff --git a/license b/license deleted file mode 100644 index 654d0bf..0000000 --- a/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (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. diff --git a/nodejs-require-uncached-3.3.0.tar.gz b/nodejs-require-uncached-3.3.0.tar.gz new file mode 100644 index 0000000..14609ba Binary files /dev/null and b/nodejs-require-uncached-3.3.0.tar.gz differ diff --git a/nodejs-require-uncached.spec b/nodejs-require-uncached.spec index 090321f..32268c0 100644 --- a/nodejs-require-uncached.spec +++ b/nodejs-require-uncached.spec @@ -1,26 +1,27 @@ %global enable_tests 0 %global module_name require-uncached Name: nodejs-%{module_name} -Version: 1.0.3 +Version: 3.3.0 Release: 1 Summary: Require a module bypassing the cache License: MIT URL: https://github.com/sindresorhus/require-uncached -Source0: https://github.com/sindresorhus/require-uncached/archive/v%{version}.tar.gz -Source1: https://raw.githubusercontent.com/sindresorhus/import-fresh/v%{version}/license +Source0: https://github.com/sindresorhus/import-fresh/archive/v%{version}/%{name}-%{version}.tar.gz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging npm(caller-path) npm(resolve-from) %if 0%{?enable_tests} BuildRequires: npm(ava) %endif + +Patch0: adapted-caller-path.patch + %description Useful for testing purposes when you need to freshly require a module. %prep -%autosetup -n import-fresh-%{version} +%autosetup -n import-fresh-%{version} -p1 rm -rf node_modules -cp -p %{SOURCE1} . %nodejs_fixdep caller-path %nodejs_fixdep resolve-from @@ -33,7 +34,6 @@ cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name} %check %nodejs_symlink_deps --check -%{__nodejs} -e 'require("./")' %if 0%{?enable_tests} node test.js %else @@ -46,5 +46,8 @@ node test.js %{nodejs_sitelib}/%{module_name} %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 - 1.0.3-1 - Package init diff --git a/v1.0.3.tar.gz b/v1.0.3.tar.gz deleted file mode 100644 index 64252d6..0000000 Binary files a/v1.0.3.tar.gz and /dev/null differ