🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
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

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