rwlockfile
Advanced tools
Comparing version
@@ -1,4 +0,3 @@ | ||
const fs = require('graceful-fs'); | ||
const fs = require('fs-extra'); | ||
const path = require('path'); | ||
const rimraf = require('rimraf'); | ||
const debug = require('debug')('rwlockfile'); | ||
@@ -48,3 +47,3 @@ const mkdir = require('mkdirp'); | ||
function unlock(path) { | ||
return new Promise(resolve => rimraf(path, resolve)).then(() => { | ||
return new Promise(resolve => fs.remove(path, resolve)).then(() => { | ||
delete locks[path]; | ||
@@ -60,3 +59,3 @@ }); | ||
try { | ||
rimraf.sync(path); | ||
fs.removeSync(path); | ||
} catch (err) { | ||
@@ -63,0 +62,0 @@ debug(err); |
{ | ||
"name": "rwlockfile", | ||
"description": "lockfile utility with reader/writers", | ||
"version": "1.4.6", | ||
"version": "1.4.7", | ||
"author": "Jeff Dickey @dickeyxxx", | ||
"bugs": "https://github.com/dickeyxxx/rwlockfile/issues", | ||
"dependencies": { | ||
"debug": "2.x", | ||
"graceful-fs": "4.x", | ||
"debug": "^3.0.1", | ||
"fs-extra": "^4.0.1", | ||
"mkdirp": "0.x", | ||
"ps-node": "0.x", | ||
"rimraf": "2.x" | ||
"ps-node": "0.x" | ||
}, | ||
@@ -18,8 +17,8 @@ "devDependencies": { | ||
"babel-plugin-transform-flow-strip-types": "^6.22.0", | ||
"flow-bin": "^0.49.1", | ||
"flow-bin": "^0.54.1", | ||
"flow-copy-source": "^1.2.0", | ||
"jest": "20.0.4", | ||
"jest": "^21.0.1", | ||
"jsdoc-to-markdown": "3.0.0", | ||
"standard": "10.0.2", | ||
"tmp": "^0.0.31" | ||
"standard": "^10.0.3", | ||
"tmp": "^0.0.33" | ||
}, | ||
@@ -26,0 +25,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
4
-20%19171
-0.41%235
-0.42%2
100%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated