Comparing version 4.0.0 to 4.0.1
@@ -55,3 +55,5 @@ 'use strict'; | ||
if (objType === 'function') { | ||
ret = (...args) => options.excludeMain ? input(...args) : processFn(input, options)(...args); | ||
ret = function (...args) { | ||
return options.excludeMain ? input(...args) : processFn(input, options).apply(this, args); | ||
}; | ||
} else { | ||
@@ -58,0 +60,0 @@ ret = Object.create(Object.getPrototypeOf(input)); |
{ | ||
"name": "pify", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Promisify a callback-style function", | ||
@@ -46,7 +46,7 @@ "license": "MIT", | ||
"devDependencies": { | ||
"ava": "*", | ||
"ava": "^0.25.0", | ||
"pinkie-promise": "^2.0.0", | ||
"v8-natives": "^1.1.0", | ||
"xo": "*" | ||
"xo": "^0.23.0" | ||
} | ||
} |
@@ -5,3 +5,17 @@ # pify [![Build Status](https://travis-ci.org/sindresorhus/pify.svg?branch=master)](https://travis-ci.org/sindresorhus/pify) | ||
--- | ||
<div align="center"> | ||
<b> | ||
<a href="https://tidelift.com/subscription/pkg/npm-pify?utm_source=npm-pify&utm_medium=referral&utm_campaign=readme">Get professional support for 'pify' with a Tidelift subscription</a> | ||
</b> | ||
<br> | ||
<sub> | ||
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies. | ||
</sub> | ||
</div> | ||
--- | ||
## Install | ||
@@ -8,0 +22,0 @@ |
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
7234
59
146