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

safefs

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

safefs - npm Package Compare versions

Comparing version 3.0.5 to 3.0.6

3

History.md
## History
- v3.0.6 November 25, 2013
- Only unlink if the file exists
- v3.0.5 November 17, 2013

@@ -4,0 +7,0 @@ - Use [graceful-fs](https://github.com/isaacs/node-graceful-fs) under the hood, along with our limiting abilities to help avoid even more problems

13

out/lib/safefs.js

@@ -163,6 +163,11 @@ // Generated by CoffeeScript 1.6.3

unlink: function(path, next) {
safefs.openFile(function(closeFile) {
return fsUtil.unlink(path, function(err) {
closeFile();
return next(err);
safefs.exists(path, function(exists) {
if (exists === false) {
return next();
}
return safefs.openFile(function(closeFile) {
return fsUtil.unlink(path, function(err) {
closeFile();
return next(err);
});
});

@@ -169,0 +174,0 @@ });

{
"title": "Safe FS",
"name": "safefs",
"version": "3.0.5",
"version": "3.0.6",
"description": "Stop getting EMFILE errors! Open only as many files as the operating system supports.",

@@ -6,0 +6,0 @@ "homepage": "https://github.com/bevry/safefs",

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