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

rwlockfile

Package Overview
Dependencies
Maintainers
3
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rwlockfile - npm Package Compare versions

Comparing version 1.3.6 to 1.3.7

24

package.json
{
"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 @@

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