!10 Upgrade to 2.0.6

From: @starlet-dx 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
This commit is contained in:
openeuler-ci-bot 2023-11-03 01:30:15 +00:00 committed by Gitee
commit 95b6866161
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 5 additions and 25 deletions

Binary file not shown.

BIN
2.0.6.tar.gz Normal file

Binary file not shown.

View File

@ -1,22 +0,0 @@
diff --git a/test/tests.js b/test/tests.js
index 54b9222..49628c5 100644
--- a/test/tests.js
+++ b/test/tests.js
@@ -108,7 +108,7 @@ var text1 = fs.readFileSync(__dirname + '/text1.txt', 'utf-8'),
exports['Async'] = {
'no progress callback': function(done) {
- this.timeout(20000);
+ this.timeout(40000);
var startTime = new Date().valueOf();
@@ -124,7 +124,7 @@ exports['Async'] = {
});
},
'with progress callback': function(done) {
- this.timeout(20000);
+ this.timeout(40000);
var percents = [];
var progress = function(percent) {

View File

@ -2,13 +2,12 @@
%global packagename fast-levenshtein
%global enable_tests 1
Name: nodejs-fast-levenshtein
Version: 1.1.3
Release: 2
Version: 2.0.6
Release: 1
Summary: Efficient implementation of Levenshtein algorithm
License: MIT
URL: https://github.com/hiddentao/fast-levenshtein
Source0: https://github.com/hiddentao/fast-levenshtein/archive/%{version}.tar.gz
Patch0: fast-levenshtein_adjust-timeouts.patch
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging uglify-js
@ -48,6 +47,9 @@ cp -pr package.json *.js \
%{nodejs_sitelib}/%{packagename}
%changelog
* Thu Nov 02 2023 yaoxin <yao_xin001@hoperun.com> - 2.0.6-1
- Upgrade to 2.0.6
* Web 09 Jun 2021 zhaoyao<zhaoyao32@huawei.com> - 1.1.3-2
- %prep no longer patched with git