fse-promise
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -87,3 +87,3 @@ "use strict"; | ||
// check if the 'err' is boolean, if so then this is a 'exists' callback special case | ||
if (err && !(typeof err === 'boolean')) return reject(err); | ||
if (err && (typeof err !== 'boolean')) return reject(err); | ||
// convert arguments to proper array, ignoring error argument | ||
@@ -93,3 +93,3 @@ let args = Array.prototype.slice.call(arguments, 1); | ||
// otherwise resolve the argument as is. | ||
return resolve(args.length < 2 ? args[0] : args.slice(1)); | ||
return resolve(args.length < 2 ? args[0] : args); | ||
} | ||
@@ -96,0 +96,0 @@ fn.apply(null, args.concat([callback])); |
{ | ||
"name": "fse-promise", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Promisefied version of fs-extra and fs that preserves callbacks", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
6130