@verdaccio/file-locking
Advanced tools
Comparing version 12.0.0-next.1 to 13.0.0-next-8.0
@@ -9,3 +9,3 @@ "use strict"; | ||
var _lockfile = require("./lockfile"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
/* eslint-disable no-undef */ | ||
@@ -21,3 +21,4 @@ | ||
* @param {*} callback | ||
*/ // eslint-disable-next-line @typescript-eslint/no-empty-function | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/no-empty-function | ||
function readFile(name, options = {}, callback = () => {}) { | ||
@@ -24,0 +25,0 @@ if (typeof options === 'function') { |
@@ -8,3 +8,3 @@ "use strict"; | ||
var _lockfile = _interopRequireDefault(require("lockfile")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
// unlocks file by removing existing lock file | ||
@@ -11,0 +11,0 @@ function unlockFile(name, next) { |
@@ -10,3 +10,3 @@ "use strict"; | ||
var _path = _interopRequireDefault(require("path")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const statDir = name => { | ||
@@ -13,0 +13,0 @@ return new Promise((resolve, reject) => { |
@@ -15,6 +15,5 @@ "use strict"; | ||
var _util = require("util"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const fsP = _fs.default.promises ? _fs.default.promises : require('fs/promises'); | ||
const readFile = fsP.readFile; | ||
exports.readFile = readFile; | ||
const readFile = exports.readFile = fsP.readFile; | ||
const statPromise = fsP.stat; | ||
@@ -21,0 +20,0 @@ // https://github.com/npm/lockfile/issues/33 |
{ | ||
"name": "@verdaccio/file-locking", | ||
"version": "12.0.0-next.1", | ||
"version": "13.0.0-next-8.0", | ||
"description": "library that handle file locking", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@verdaccio/types": "12.0.0-next.1" | ||
"@verdaccio/types": "13.0.0-next-8.0" | ||
}, | ||
@@ -45,0 +45,0 @@ "funding": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
36976