@gar/promisify
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -12,3 +12,3 @@ 'use strict' | ||
return function () { | ||
return Reflect.get(target, prop, receiver)[promisify.custom].apply(receiver, arguments) | ||
return Reflect.get(target, prop, receiver)[promisify.custom].apply(target, arguments) | ||
} | ||
@@ -18,3 +18,3 @@ } | ||
return new Promise((resolve, reject) => { | ||
Reflect.get(target, prop, receiver).apply(receiver, [...arguments, function (err, result) { | ||
Reflect.get(target, prop, receiver).apply(target, [...arguments, function (err, result) { | ||
if (err) { | ||
@@ -21,0 +21,0 @@ return reject(err) |
{ | ||
"name": "@gar/promisify", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Promisify an entire class or object", | ||
@@ -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
3103