@verdaccio/local-storage
Advanced tools
Comparing version 10.2.1 to 10.3.0
@@ -34,2 +34,4 @@ "use strict"; | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
const DEPRECATED_DB_NAME = '.sinopia-db.json'; | ||
@@ -42,2 +44,13 @@ const DB_NAME = '.verdaccio-db.json'; | ||
super(config); | ||
_defineProperty(this, "path", void 0); | ||
_defineProperty(this, "logger", void 0); | ||
_defineProperty(this, "data", void 0); | ||
_defineProperty(this, "config", void 0); | ||
_defineProperty(this, "locked", void 0); | ||
this.config = config; | ||
@@ -44,0 +57,0 @@ this.path = this._buildStoragePath(config); |
@@ -26,3 +26,4 @@ "use strict"; | ||
/* eslint-disable no-undef */ | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
const fileExist = 'EEXISTS'; | ||
@@ -80,2 +81,6 @@ exports.fileExist = fileExist; | ||
constructor(path, logger) { | ||
_defineProperty(this, "path", void 0); | ||
_defineProperty(this, "logger", void 0); | ||
this.path = path; | ||
@@ -82,0 +87,0 @@ this.logger = logger; |
@@ -33,3 +33,7 @@ "use strict"; | ||
} catch (err) { | ||
logger.error(`Package database file corrupted (invalid JSON), please check the error` + ` printed below.\nFile Path: ${path}`, err); | ||
logger.error({ | ||
err: err.mesage, | ||
path | ||
}, // eslint-disable-next-line max-len | ||
`Package database file corrupted (invalid JSON), please check the error @{err}.\nFile Path: @{path}`); | ||
throw Error('Package database file corrupted (invalid JSON)'); | ||
@@ -36,0 +40,0 @@ } |
@@ -22,2 +22,4 @@ "use strict"; | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
const debug = (0, _debug.default)('verdaccio:plugin:local-storage:token'); | ||
@@ -28,2 +30,6 @@ const TOKEN_DB_NAME = '.token-db.json'; | ||
constructor(config) { | ||
_defineProperty(this, "config", void 0); | ||
_defineProperty(this, "tokenDb", void 0); | ||
this.config = config; | ||
@@ -30,0 +36,0 @@ this.tokenDb = null; |
{ | ||
"name": "@verdaccio/local-storage", | ||
"version": "10.2.1", | ||
"version": "10.3.0", | ||
"description": "Local storage implementation", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
"@verdaccio/commons-api": "10.2.0", | ||
"@verdaccio/file-locking": "10.2.0", | ||
"@verdaccio/file-locking": "10.3.0", | ||
"@verdaccio/streams": "10.2.0", | ||
@@ -47,3 +47,3 @@ "async": "3.2.3", | ||
"@types/node": "^14.0.0", | ||
"@verdaccio/types": "10.3.0", | ||
"@verdaccio/types": "10.5.0", | ||
"minimatch": "^4.0.0", | ||
@@ -50,0 +50,0 @@ "rmdir-sync": "^1.0.1" |
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
95941
932
+ Added@verdaccio/file-locking@10.3.0(transitive)
- Removed@verdaccio/file-locking@10.2.0(transitive)