proback.js
Advanced tools
Comparing version 2.1.5 to 2.1.6
module.exports = { | ||
promisify: function (obj, fn, ...params) { | ||
return new Promise( (resolve, reject) => { | ||
params.push( (err, res) => { | ||
if (err) reject(err) | ||
else resolve( res ) | ||
} ) | ||
fn.call( obj, ...params ) | ||
} ) | ||
}, | ||
stopper: async function ( promise ) { | ||
@@ -3,0 +12,0 @@ let timestamp = Date.now() |
{ | ||
"name": "proback.js", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"description": "Tiny libary to aid Promise/Callback dual API design", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
"gulp": "^3.9.1", | ||
"gulp-eslint": "^4.0.1", | ||
"gulp-eslint": "^4.0.2", | ||
"gulp-load-plugins": "^1.5.0", | ||
@@ -32,0 +32,0 @@ "gulp-mocha": "^5.0.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
14822
355