apr-intercept
Advanced tools
Comparing version 1.0.2 to 1.0.3
11
index.js
@@ -19,5 +19,8 @@ /** | ||
*/ | ||
module.exports = (p) => new Promise((resolve) => p.then( | ||
(...res) => resolve([null, ...res]), | ||
(err) => resolve([err, undefined]) | ||
)); | ||
module.exports = p => | ||
new Promise(resolve => | ||
p.then( | ||
(...res) => resolve([null, ...res]), | ||
err => resolve([err, undefined]) | ||
) | ||
); |
{ | ||
"name": "apr-intercept", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Intercepts errors, the Go way!", | ||
@@ -13,5 +13,13 @@ "keywords": [ | ||
"control-flow", | ||
"awaitful" | ||
"awaitful", | ||
"promises", | ||
"async-await", | ||
"es2015", | ||
"es2016", | ||
"es2017", | ||
"es6", | ||
"es7", | ||
"es8" | ||
], | ||
"homepage": "https://ramitos.github.io/apr#intercept", | ||
"homepage": "https://apr.js.org#intercept", | ||
"bugs": "https://github.com/ramitos/apr/issues", | ||
@@ -18,0 +26,0 @@ "license": "MIT", |
@@ -12,2 +12,3 @@ <!-- Generated by documentation.js. Update this documentation by updating the source code. --> | ||
- `p` | ||
- `input` **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)** | ||
@@ -14,0 +15,0 @@ |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
2172
25
0
26