apr-constant
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -22,8 +22,2 @@ /** | ||
*/ | ||
module.exports = (...args) => { | ||
return () => { | ||
return new Promise((resolve) => { | ||
resolve(...args); | ||
}); | ||
}; | ||
}; | ||
module.exports = (...args) => () => new Promise(resolve => resolve(...args)); |
{ | ||
"name": "apr-constant", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Returns a promise that when called, then's with the values provided. Useful as the first function in a waterfall.", | ||
@@ -13,5 +13,13 @@ "keywords": [ | ||
"control-flow", | ||
"awaitful" | ||
"awaitful", | ||
"promises", | ||
"async-await", | ||
"es2015", | ||
"es2016", | ||
"es2017", | ||
"es6", | ||
"es7", | ||
"es8" | ||
], | ||
"homepage": "https://ramitos.github.io/apr#constant", | ||
"homepage": "https://apr.js.org#constant", | ||
"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. --> | ||
- `args` **...any** | ||
- `arguments` **...any** | ||
@@ -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
2402
0
29
22