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

@verdaccio/file-locking

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@verdaccio/file-locking - npm Package Compare versions

Comparing version 0.0.3 to 0.0.5

.flowconfig

10

lib/index.js

@@ -8,4 +8,2 @@ 'use strict';

require('babel-polyfill');
var _lodash = require('lodash');

@@ -42,3 +40,3 @@

} else if (!stats.isDirectory()) {
return resolve(new Error(_path2.default.dirname(name) + ' is not a directory'));
return resolve(new Error(`${_path2.default.dirname(name)} is not a directory`));
} else {

@@ -58,3 +56,3 @@ return resolve(null);

} else if (!stats.isFile()) {
return resolve(new Error(_path2.default.dirname(name) + ' is not a file'));
return resolve(new Error(`${_path2.default.dirname(name)} is not a file`));
} else {

@@ -81,3 +79,3 @@ return resolve(null);

};
var lockFileName = name + '.lock';
var lockFileName = `${name}.lock`;
_lockfile2.default.lock(lockFileName, lockOpts, function () {

@@ -104,3 +102,3 @@ resolve();

var unlockFile = function unlockFile(name, next) {
var lockFileName = name + '.lock';
var lockFileName = `${name}.lock`;
_lockfile2.default.unlock(lockFileName, function () {

@@ -107,0 +105,0 @@ return next(null);

17

package.json
{
"name": "@verdaccio/file-locking",
"version": "0.0.3",
"version": "0.0.5",
"description": "library that handle file locking",

@@ -11,11 +11,17 @@ "main": "lib/index.js",

"devDependencies": {
"@verdaccio/types": "0.0.4",
"babel-cli": "6.24.1",
"babel-core": "6.25.0",
"babel-eslint": "^7.2.3",
"babel-plugin-istanbul": "4.1.4",
"babel-polyfill": "6.23.0",
"babel-preset-es2015": "6.24.1",
"babel-preset-env": "1.6.0",
"babel-plugin-flow-runtime": "0.11.1",
"babel-preset-flow": "6.23.0",
"babel-require": "1.0.1",
"cross-env": "5.0.1",
"eslint": "4.1.1",
"eslint-plugin-flowtype": "2.35.0",
"eslint-config-google": "0.9.1",
"flow-bin": "0.52.0",
"flow-runtime": "0.13.0",
"mocha": "3.4.2",

@@ -28,3 +34,2 @@ "nyc": "11.0.3"

"dependencies": {
"babel-polyfill": "6.23.0",
"lockfile": "1.0.3",

@@ -47,3 +52,7 @@ "lodash": "4.17.4"

},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"scripts": {
"flow": "flow",
"test": "npm run lint && mocha --require babel-polyfill --compilers js:babel-core/register ./test/**/*.spec.js",

@@ -50,0 +59,0 @@ "lint": "eslint .",

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