@verdaccio/local-storage
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -80,6 +80,7 @@ 'use strict'; | ||
value: function remove(name) { | ||
var i = this.data.list.indexOf(name); | ||
if (i !== -1) { | ||
this.data.list.splice(i, 1); | ||
var pkgName = this.get().indexOf(name); | ||
if (pkgName !== -1) { | ||
this.data.list.splice(pkgName, 1); | ||
} | ||
return this.sync(); | ||
@@ -86,0 +87,0 @@ } |
@@ -6,2 +6,3 @@ 'use strict'; | ||
}); | ||
exports.noSuchFile = exports.fileExist = undefined; | ||
@@ -38,7 +39,9 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var fileExist = 'EEXISTS'; | ||
var noSuchFile = 'ENOENT'; | ||
var fileExist = exports.fileExist = 'EEXISTS'; | ||
var noSuchFile = exports.noSuchFile = 'ENOENT'; | ||
var fSError = function fSError(message) { | ||
var err = (0, _httpErrors2.default)(409, message); | ||
err.code = message; | ||
return err; | ||
@@ -45,0 +48,0 @@ }; |
{ | ||
"name": "@verdaccio/local-storage", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "local storage implementation", | ||
@@ -11,2 +11,3 @@ "main": "lib/index.js", | ||
"build": "babel src/ --out-dir lib/ --copy-files --ignore ___tests___", | ||
"prepublish": "npm run build", | ||
"cover": "cross-env NODE_ENV=test nyc npm t" | ||
@@ -13,0 +14,0 @@ }, |
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
17678
429