@open-draft/until
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -10,3 +10,5 @@ "use strict"; | ||
try { | ||
const data = await promise(); | ||
const data = await promise().catch((error) => { | ||
throw error; | ||
}); | ||
return [null, data]; | ||
@@ -13,0 +15,0 @@ } |
{ | ||
"name": "@open-draft/until", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Gracefully handle a Promise using async/await.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
2341
29