!9 Upgrade version to 1.2.1

From: @cherry530 
Reviewed-by: @wang--ge 
Signed-off-by: @wang--ge
This commit is contained in:
openeuler-ci-bot 2023-11-14 00:53:11 +00:00 committed by Gitee
commit cf25ff6eea
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 11 additions and 6 deletions

Binary file not shown.

BIN
es-to-primitive-1.2.1.tgz Normal file

Binary file not shown.

View File

@ -4,6 +4,7 @@ Date: Sun Sep 30 18:33:57 2018 +0100
Patch out use of function.prototype.name
diff --git a/test/es2015.js b/test/es2015.js
index 80f4083..c172e99 100644
--- a/test/es2015.js
@ -26,15 +27,16 @@ index 80f4083..c172e99 100644
t.end();
});
diff --git a/test/es5.js b/test/es5.js
index 8b80ff5..a5352cf 100644
index 79444b0..b9fd080 100644
--- a/test/es5.js
+++ b/test/es5.js
@@ -4,12 +4,11 @@ var test = require('tape');
@@ -4,13 +4,12 @@ var test = require('tape');
var toPrimitive = require('../es5');
var is = require('object-is');
var forEach = require('foreach');
-var functionName = require('function.prototype.name');
var debug = require('object-inspect');
var hasSymbols = require('has-symbols')();
test('function properties', function (t) {
t.equal(toPrimitive.length, 1, 'length is 1');
@ -44,7 +46,7 @@ index 8b80ff5..a5352cf 100644
t.end();
});
diff --git a/test/es6.js b/test/es6.js
index c6df63f..21bfecc 100644
index 16ea0e8..02f82ae 100644
--- a/test/es6.js
+++ b/test/es6.js
@@ -4,7 +4,6 @@ var test = require('tape');
@ -54,7 +56,7 @@ index c6df63f..21bfecc 100644
-var functionName = require('function.prototype.name');
var debug = require('object-inspect');
var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol';
var hasSymbols = require('has-symbols')();
@@ -12,7 +11,7 @@ var hasSymbolToPrimitive = hasSymbols && typeof Symbol.toPrimitive === 'symbol';
test('function properties', function (t) {

View File

@ -1,7 +1,7 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-es-to-primitive
Version: 1.2.0
Release: 3
Version: 1.2.1
Release: 1
Summary: ECMAScript “ToPrimitive” algorithm
License: MIT
URL: https://github.com/ljharb/es-to-primitive
@ -41,6 +41,9 @@ cp -pr package.json index.js es5.js es6.js es2015.js helpers %{buildroot}%{nodej
%{nodejs_sitelib}/es-to-primitive
%changelog
* Mon Nov 13 2023 xu_ping <707078654@qq.com> - 1.2.1-1
- Upgrade version to 1.2.1
* Fri Feb 10 2023 wangkai <wangkai385@h-partners.com> - 1.2.0-3
- remove unuse options