rwlockfile
Advanced tools
Comparing version 1.4.6 to 1.4.7
@@ -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
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
4
19171
235
2
+ Addedfs-extra@^4.0.1
+ Addeddebug@3.2.7(transitive)
+ Addedfs-extra@4.0.3(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addedms@2.1.3(transitive)
+ Addeduniversalify@0.1.2(transitive)
- Removedgraceful-fs@4.x
- Removedrimraf@2.x
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removeddebug@2.6.9(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedms@2.0.0(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedwrappy@1.0.2(transitive)
Updateddebug@^3.0.1