New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bhoos/promisify

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bhoos/promisify - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

9

cjs/index.js

@@ -10,4 +10,6 @@ 'use strict';

exports.default = function (a) {
var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : a;
if (typeof a === 'function') {
return promisify(a);
return promisify(a, context);
} else if ((typeof a === 'undefined' ? 'undefined' : _typeof(a)) === 'object') {

@@ -41,3 +43,4 @@ return promisifyAll(a);

var res = {};
Object.keys(obj).forEach(function (key) {
// eslint-disable-next-line
for (var key in obj) {
var fn = obj[key];

@@ -47,4 +50,4 @@ if (typeof fn === 'function') {

}
});
}
return res;
}
{
"name": "@bhoos/promisify",
"version": "0.1.0",
"version": "0.1.1",
"description": "Simple library to promisify call-back based functions",

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

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