@lifeomic/attempt
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -129,3 +129,6 @@ function applyDefaults(options) { | ||
clearTimeout(timer); | ||
resolve(onError(err)); | ||
// Calling resolve with a Promise that rejects here will result | ||
// in an unhandled rejection. Calling `reject` with errors | ||
// does not result in an unhandled rejection | ||
onError(err).then(resolve).catch(reject); | ||
}); | ||
@@ -132,0 +135,0 @@ }); |
@@ -129,3 +129,6 @@ function applyDefaults(options) { | ||
clearTimeout(timer); | ||
resolve(onError(err)); | ||
// Calling resolve with a Promise that rejects here will result | ||
// in an unhandled rejection. Calling `reject` with errors | ||
// does not result in an unhandled rejection | ||
onError(err).then(resolve).catch(reject); | ||
}); | ||
@@ -132,0 +135,0 @@ }); |
@@ -133,3 +133,6 @@ "use strict"; | ||
clearTimeout(timer); | ||
resolve(onError(err)); | ||
// Calling resolve with a Promise that rejects here will result | ||
// in an unhandled rejection. Calling `reject` with errors | ||
// does not result in an unhandled rejection | ||
onError(err).then(resolve).catch(reject); | ||
}); | ||
@@ -136,0 +139,0 @@ }); |
{ | ||
"name": "@lifeomic/attempt", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Library that can be used to retry functions that return promise", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/", |
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
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
32587
483
0