proback.js
Advanced tools
Comparing version 1.6.5 to 1.7.0
module.exports = { | ||
performer: function (promise, callback, resolve, reject) { | ||
promise | ||
.then( (res) => { module.exports.resolver(res, callback, resolve) } ) | ||
.catch( (reason) => { module.exports.rejecter(reason, callback, reject) } ) | ||
}, | ||
embracer: function (promise, callback) { | ||
return new Promise( (resolve, resject) => { | ||
return new Promise( (resolve, reject) => { | ||
promise | ||
.then( (res) => { module.exports.resolver(res, callback, resolve) } ) | ||
.catch( (reason) => { module.exports.rejecter(reason, callback, resject) } ) | ||
.catch( (reason) => { module.exports.rejecter(reason, callback, reject) } ) | ||
} ) | ||
@@ -8,0 +13,0 @@ }, |
{ | ||
"name": "proback.js", | ||
"version": "1.6.5", | ||
"version": "1.7.0", | ||
"description": "Tiny libary to aid Promise/Callback dual API design", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
12877
314