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

proper-lockfile

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proper-lockfile - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

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

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