Socket
Socket
Sign inDemoInstall

@gar/promisify

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gar/promisify - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

6

index.js

@@ -11,7 +11,9 @@ 'use strict'

if (target[prop][promisify.custom]) {
return target[prop][promisify.custom]
return function () {
return Reflect.get(target, prop, receiver)[promisify.custom].apply(receiver, arguments)
}
}
return function () {
return new Promise((resolve, reject) => {
Reflect.get(target, prop, receiver).apply(target, [...arguments, function (err, result) {
Reflect.get(target, prop, receiver).apply(receiver, [...arguments, function (err, result) {
if (err) {

@@ -18,0 +20,0 @@ return reject(err)

{
"name": "@gar/promisify",
"version": "1.1.0",
"version": "1.1.1",
"description": "Promisify an entire class or object",

@@ -5,0 +5,0 @@ "main": "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