promise-thunk
Advanced tools
Comparing version 0.1.6 to 0.1.7
{ | ||
"name": "promise-thunk", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Promise and thunk", | ||
@@ -5,0 +5,0 @@ "main": "promise-thunk.js", |
@@ -325,2 +325,3 @@ // promise-thunk.js | ||
function promisify(fn) { | ||
var ctx = this; | ||
if (typeof fn !== 'function') | ||
@@ -345,3 +346,3 @@ throw new TypeError('promisify: argument must be a function'); | ||
}; | ||
fn.apply(null, args); | ||
fn.apply(ctx, args); | ||
}); | ||
@@ -348,0 +349,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
22533
470
144