fix CVE-2021-23343

This commit is contained in:
houyingchao 2021-07-01 16:58:48 +08:00
parent 9aa9a4fd8a
commit eb2a82fd27
3 changed files with 6 additions and 5 deletions

View File

@ -1,15 +1,13 @@
%{?nodejs_find_provides_and_requires}
%global commit 97efc90ce24455d23ec6acedf47589df46e48ea0
%global shortcommit %(c=%{commit}}; echo ${c:0:7})
%global packagename path-parse
%global enable_tests 1
Name: nodejs-path-parse
Version: 1.0.6
Version: 1.0.7
Release: 1
Summary: Node.js path.parse() ponyfill
License: MIT
URL: https://github.com/jbgutierrez/path-parse
Source0: https://github.com/jbgutierrez/path-parse/archive/%{commit}/path-parse-%{shortcommit}.tar.gz
Source0: https://github.com/jbgutierrez/path-parse/archive/refs/tags/v%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
@ -20,7 +18,7 @@ BuildRequires: nodejs-packaging
Node.js path.parse() ponyfill
%prep
%autosetup -n path-parse-%{commit}
%autosetup -n path-parse-%{version} -p1
%build
@ -45,5 +43,8 @@ NODE_ENV=test %{__nodejs} test.js
%{nodejs_sitelib}/%{packagename}
%changelog
* Thu Jul 1 2021 houyingchao <houyingchao@huawei.com> - 1.0.7-1
- upgrate to 1.0.7
* Sat Aug 22 2020 wangyue <wangyue92@huawei.com> - 1.0.6-1
- package init

Binary file not shown.

BIN
v1.0.7.tar.gz Normal file

Binary file not shown.