proper-lockfile
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "proper-lockfile", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A lockfile utility based on fs that works cross process and machine (network file systems)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -67,3 +67,3 @@ # proper-lockfile [![Build Status](https://travis-ci.org/IndigoUnited/node-proper-lockfile.svg?branch=master)](https://travis-ci.org/IndigoUnited/node-proper-lockfile) [![Coverage Status](https://coveralls.io/repos/IndigoUnited/node-proper-lockfile/badge.png?branch=master)](https://coveralls.io/r/IndigoUnited/node-proper-lockfile?branch=master) | ||
// Note that you can optionally handle unlock errors | ||
// Though it's not really since it will eventually get stale | ||
// Though it's not mandatory since it will eventually stale | ||
/*unlock(function (err) { | ||
@@ -82,3 +82,3 @@ // At this point the lock was effectively released or an error | ||
Removes a lock. | ||
Removes a lock previously acquired over `file`. | ||
@@ -88,4 +88,3 @@ You should NOT call this function to unlock a lockfile that isn't owned by you. | ||
The `callback` is optional because even if the removal of the lock failed, it will eventually get stale since | ||
the lockfile's mtime will no longer be updated. | ||
The `callback` is optional because even if the removal of the lock failed, the lockfile's mtime will no longer be updated causing it to eventually stale. | ||
@@ -109,2 +108,8 @@ | ||
lockfile.remove('some/file'); | ||
// or.. | ||
/*lockfile.remove('some/file', function (err) { | ||
// At this point the lock was effectively released or an error | ||
// ocurred while removing it | ||
});*/ | ||
}); | ||
@@ -111,0 +116,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
37729
125