proper-lockfile
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -104,5 +104,5 @@ 'use strict'; | ||
// Verify if we are within the stale threshold | ||
if (lock.lastUpdate <= Date.now() - options.stale | ||
&& lock.lastUpdate > Date.now() - options.stale * 2) { | ||
return compromisedLock(file, lock, | ||
if (lock.lastUpdate <= Date.now() - options.stale && | ||
lock.lastUpdate > Date.now() - options.stale * 2) { | ||
return compromisedLock(file, lock, | ||
errcode(lock.updateError || 'Unable to update lock within the stale threshold', 'ECOMPROMISED')); | ||
@@ -109,0 +109,0 @@ } |
{ | ||
"name": "proper-lockfile", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "A inter-process and inter-machine lockfile utility that works on a local or network file system.", | ||
@@ -32,19 +32,16 @@ "main": "index.js", | ||
"dependencies": { | ||
"err-code": "^0.1.0", | ||
"extend": "^1.3.0", | ||
"graceful-fs": "^3.0.2", | ||
"retry": "^0.6.1" | ||
"err-code": "^1.0.0", | ||
"extend": "^3.0.0", | ||
"graceful-fs": "^4.1.2", | ||
"retry": "^0.8.0" | ||
}, | ||
"devDependencies": { | ||
"async": "^0.9.0", | ||
"buffered-spawn": "^1.1.0", | ||
"async": "^1.5.1", | ||
"buffered-spawn": "^2.0.2", | ||
"expect.js": "^0.3.1", | ||
"istanbul": "^0.3.0", | ||
"mocha": "^2.2.4", | ||
"rimraf": "^2.2.8", | ||
"istanbul": "^0.4.1", | ||
"mocha": "^2.3.4", | ||
"rimraf": "^2.5.0", | ||
"stable": "^0.1.5" | ||
}, | ||
"engines": { | ||
"node": ">=0.10.0" | ||
} | ||
} |
@@ -1,3 +0,17 @@ | ||
# 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) | ||
# proper-lockfile | ||
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency status][david-dm-image]][david-dm-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dev Dependency status][david-dm-dev-image]][david-dm-dev-url] | ||
[npm-url]:https://npmjs.org/package/proper-lockfile | ||
[downloads-image]:http://img.shields.io/npm/dm/proper-lockfile.svg | ||
[npm-image]:http://img.shields.io/npm/v/proper-lockfile.svg | ||
[travis-url]:https://travis-ci.org/IndigoUnited/node-proper-lockfile | ||
[travis-image]:http://img.shields.io/travis/IndigoUnited/node-proper-lockfile.svg | ||
[coveralls-url]:https://coveralls.io/r/IndigoUnited/node-proper-lockfile | ||
[coveralls-image]:https://img.shields.io/coveralls/IndigoUnited/node-proper-lockfile.svg | ||
[david-dm-url]:https://david-dm.org/IndigoUnited/node-proper-lockfile | ||
[david-dm-image]:https://img.shields.io/david/IndigoUnited/node-proper-lockfile.svg | ||
[david-dm-dev-url]:https://david-dm.org/IndigoUnited/node-proper-lockfile#info=devDependencies | ||
[david-dm-dev-image]:https://img.shields.io/david/dev/IndigoUnited/node-proper-lockfile.svg | ||
A inter-process and inter-machine lockfile utility that works on a local or network file system. | ||
@@ -4,0 +18,0 @@ |
Sorry, the diff of this file is not supported yet
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
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
52861
179
+ Addederr-code@1.1.2(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedretry@0.8.0(transitive)
- Removederr-code@0.1.2(transitive)
- Removedextend@1.3.0(transitive)
- Removedgraceful-fs@3.0.12(transitive)
- Removednatives@1.1.6(transitive)
- Removedretry@0.6.1(transitive)
Updatederr-code@^1.0.0
Updatedextend@^3.0.0
Updatedgraceful-fs@^4.1.2
Updatedretry@^0.8.0