🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

qpatch

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qpatch - npm Package Compare versions

Comparing version

to
0.0.2

11

index.js

@@ -20,4 +20,11 @@ // Requires

_.methods(cls.prototype).forEach(function(method) {
// Build new function
newCls.prototype[method] = qMethod(cls.prototype[method]);
// Don't change internal functions
var f;
if(method[0] === '_' || _.contains(methodExceptions, method)) {
f = cls.prototype[method];
} else {
f = qMethod(cls.prototype[method]);
}
// Set function
newCls.prototype[method] =f;
});

@@ -24,0 +31,0 @@

2

package.json
{
"name": "qpatch",
"version": "0.0.1",
"version": "0.0.2",
"description": "Module for patching JS Classes using callbacks to use Q promises",

@@ -5,0 +5,0 @@ "main": "index.js",