Upgrade version to 4.1.0

Signed-off-by: cherry530 <707078654@qq.com>
This commit is contained in:
cherry530 2023-10-30 17:10:48 +08:00
parent 50a40b3466
commit 4e48a479e8
4 changed files with 5 additions and 11 deletions

Binary file not shown.

View File

@ -1,13 +1,12 @@
%global enable_tests 0 %global enable_tests 0
%global module_name callsites %global module_name callsites
Name: nodejs-%{module_name} Name: nodejs-%{module_name}
Version: 2.0.0 Version: 4.1.0
Release: 1 Release: 1
Summary: Get callsites from the V8 stack trace API Summary: Get callsites from the V8 stack trace API
License: MIT License: MIT
URL: https://github.com/sindresorhus/callsites URL: https://github.com/sindresorhus/callsites
Source0: https://github.com/sindresorhus/callsites/archive/v%{version}.tar.gz Source0: https://github.com/sindresorhus/callsites/archive/v4.1.0/nodejs-callsites-4.1.0.tar.gz
Source1: https://github.com/sindresorhus/callsites/v%{version}/test.js
BuildArch: noarch BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging BuildRequires: nodejs-packaging
@ -21,7 +20,6 @@ BuildRequires: npm(xo) npm(ava)
%prep %prep
%autosetup -n callsites-%{version} %autosetup -n callsites-%{version}
rm -rf node_modules rm -rf node_modules
cp -p %{SOURCE1} .
%build %build
@ -43,5 +41,8 @@ xo && ava
%{nodejs_sitelib}/%{module_name} %{nodejs_sitelib}/%{module_name}
%changelog %changelog
* Mon Oct 30 2023 xu_ping <707078654@qq.com> - 4.1.0-1
- Upgrade version to 4.1.0
* Fri Aug 21 2020 leiju <leiju4@huawei.com> - 2.0.0-1 * Fri Aug 21 2020 leiju <leiju4@huawei.com> - 2.0.0-1
- Package init - Package init

View File

@ -1,7 +0,0 @@
import path from 'path';
import test from 'ava';
import m from './';
test(t => {
t.is(path.basename(m()[0].getFileName()), 'test.js');
});

Binary file not shown.