proback.js
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -12,2 +12,10 @@ module.exports = { | ||
}, | ||
returner: function ( err, res, callback, resolve, reject ) { | ||
if ( err ) { | ||
callback && callback( err ) | ||
return reject(err) | ||
} | ||
callback && callback( null, res ) | ||
resolve(res) | ||
}, | ||
resolver: function (res, callback, resolve) { | ||
@@ -14,0 +22,0 @@ callback && callback( null, res ) |
{ | ||
"name": "proback.js", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"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
9320
196