Socket
Socket
Sign inDemoInstall

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 2.0.0 to 2.0.1

8

index.js

@@ -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 @@

2

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

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