@verdaccio/file-locking
Advanced tools
Comparing version 0.0.3 to 0.0.5
@@ -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); |
{ | ||
"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 .", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
36849
2
4
639
17
1
- Removedbabel-polyfill@6.23.0
- Removedbabel-polyfill@6.23.0(transitive)
- Removedbabel-runtime@6.26.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedregenerator-runtime@0.10.50.11.1(transitive)