proper-lockfile
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -138,3 +138,9 @@ 'use strict'; | ||
// on process exit | ||
lock.updateTimeout.unref(); | ||
// We first check that `lock.updateTimeout.unref` exists because some users | ||
// may be using this module outside of NodeJS (e.g., in an electron app), | ||
// and in those cases `setTimeout` return an integer. | ||
if (lock.updateTimeout.unref) { | ||
lock.updateTimeout.unref(); | ||
} | ||
} | ||
@@ -141,0 +147,0 @@ |
{ | ||
"name": "proper-lockfile", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A inter-process and inter-machine lockfile utility that works on a local or network file system.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,3 +17,3 @@ # proper-lockfile | ||
A inter-process and inter-machine lockfile utility that works on a local or network file system. | ||
An inter-process and inter-machine lockfile utility that works on a local or network file system. | ||
@@ -86,3 +86,3 @@ | ||
lockfile.lock('some/file', (err) => { | ||
lockfile.lock('some/file', (err, release) => { | ||
if (err) { | ||
@@ -99,3 +99,3 @@ throw err; // Lock failed | ||
// Though it's not mandatory since it will eventually stale | ||
/*release(function (err) { | ||
/*release((err) => { | ||
// At this point the lock was effectively released or an error | ||
@@ -137,3 +137,3 @@ // occurred while removing it | ||
// or.. | ||
/*lockfile.unlock('some/file', function (err) { | ||
/*lockfile.unlock('some/file', (err) => { | ||
// At this point the lock was effectively released or an error | ||
@@ -140,0 +140,0 @@ // occurred while removing it |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
0
22433
5
333