Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fse-promise

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

fse-promise - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

4

index.js

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

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