promisecallback
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -20,3 +20,3 @@ /* | ||
*/ | ||
function promiseCallback(promise, callback) | ||
function promiseCallback(promise, callback, thisArg) | ||
{ | ||
@@ -29,3 +29,3 @@ if(callback) | ||
{ | ||
callback(error, result); | ||
callback.call(thisArg, error, result); | ||
} | ||
@@ -32,0 +32,0 @@ catch(exception) |
{ | ||
"name": "promisecallback", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Set a callback to be called by a promise", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
1873