Socket
Socket
Sign inDemoInstall

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 0.0.3 to 0.0.4

5

index.js

@@ -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

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc