Comparing version 0.0.3 to 0.0.4
@@ -40,3 +40,6 @@ // Requires | ||
// Add callback | ||
args.push(d.makeNodeResolver()); | ||
args.push(function(err, value) { | ||
if(err) return d.reject(err); | ||
return d.resolve(value); | ||
}); | ||
@@ -43,0 +46,0 @@ // Call function |
{ | ||
"name": "qpatch", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Module for patching JS Classes using callbacks to use Q promises", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,3 +11,3 @@ qpatch | ||
var newClass = qClass(someOldClass, ['methods_to_exclude]); | ||
var newClass = qClass(someOldClass, ['methods_to_exclude', '...']); | ||
@@ -14,0 +14,0 @@ // newClass' methods now return promises instead of accepting callbacks |
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
12428
46