rwlockfile
Advanced tools
Comparing version 1.3.6 to 1.3.7
{ | ||
"name": "rwlockfile", | ||
"description": "lockfile utility with reader/writers", | ||
"version": "1.3.6", | ||
"version": "1.3.7", | ||
"author": "Jeff Dickey @dickeyxxx", | ||
@@ -9,14 +9,15 @@ "bugs": "https://github.com/dickeyxxx/rwlockfile/issues", | ||
"graceful-fs": "^4.0.0", | ||
"ps-node": "^0.1.4", | ||
"ps-node": "^0.1.5", | ||
"rimraf": "^2.6.1" | ||
}, | ||
"devDependencies": { | ||
"chai": "3.5.0", | ||
"chai-as-promised": "6.0.0", | ||
"jest": "19.0.2", | ||
"jsdoc-to-markdown": "3.0.0", | ||
"mocha": "3.2.0", | ||
"np": "2.12.0", | ||
"nyc": "10.1.2", | ||
"standard": "9.0.1" | ||
"np": "2.13.1", | ||
"nyc": "10.2.0", | ||
"standard": "10.0.1" | ||
}, | ||
"files": [ | ||
"rwlockfile.js" | ||
], | ||
"homepage": "https://github.com/dickeyxxx/rwlockfile", | ||
@@ -33,5 +34,8 @@ "keywords": [ | ||
"release": "np", | ||
"test": "nyc mocha && standard", | ||
"version": "npm run doc && git add README.md" | ||
"test": "jest && standard", | ||
"_version": "npm run doc && git add README.md" | ||
}, | ||
"standard": { | ||
"env": "jest" | ||
} | ||
} |
@@ -23,8 +23,10 @@ /** | ||
function lockActive (path) { | ||
return readFile(path) | ||
.then(file => { | ||
async function lockActive (path) { | ||
try { | ||
let file = await readFile(path) | ||
let pid = parseInt(file.trim()) | ||
return pidActive(pid) | ||
}) | ||
} catch (err) { | ||
if (err.code !== 'ENOENT') throw err | ||
} | ||
} | ||
@@ -31,0 +33,0 @@ |
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
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
8826
5
188
Updatedps-node@^0.1.5