Comparing version 2.0.0 to 2.0.1
@@ -18,3 +18,7 @@ 'use strict'; | ||
if (typeof fallback === 'function') { | ||
resolve(fallback()); | ||
try { | ||
resolve(fallback()); | ||
} catch (err) { | ||
reject(err); | ||
} | ||
return; | ||
@@ -21,0 +25,0 @@ } |
{ | ||
"name": "p-timeout", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Timeout a promise after a specified amount of time", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
4708
36