@celo/base
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -142,3 +142,3 @@ "use strict"; | ||
error_3 = _a.sent(); | ||
if (dontRetry.includes(error_3.message)) { | ||
if (dontRetry.some(function (msg) { return error_3.message.includes(msg); })) { | ||
throw error_3; | ||
@@ -145,0 +145,0 @@ } |
@@ -89,3 +89,3 @@ "use strict"; | ||
mockFunction.mockImplementation(function () { | ||
throw new Error('test'); | ||
throw new Error('test error 400'); | ||
}); | ||
@@ -96,3 +96,3 @@ didThrowError = false; | ||
_b.trys.push([1, 3, , 4]); | ||
return [4 /*yield*/, async_1.selectiveRetryAsyncWithBackOff(mockFunction, 3, ['test'], [])]; | ||
return [4 /*yield*/, async_1.selectiveRetryAsyncWithBackOff(mockFunction, 3, ['test error'], [])]; | ||
case 2: | ||
@@ -99,0 +99,0 @@ _b.sent(); |
{ | ||
"name": "@celo/base", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Celo base common utils, no dependencies", | ||
@@ -20,3 +20,4 @@ "author": "Celo", | ||
], | ||
"dependencies": {}, | ||
"dependencies": { | ||
}, | ||
"devDependencies": { | ||
@@ -23,0 +24,0 @@ "@celo/flake-tracker": "0.0.1-dev", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176642
91
2700
1