diff --git a/node_modules/libnpmversion/lib/version.js b/node_modules/libnpmversion/lib/version.js index ee02fb7ffb9d0..309b9c2b9504f 100644 --- a/node_modules/libnpmversion/lib/version.js +++ b/node_modules/libnpmversion/lib/version.js @@ -34,7 +34,7 @@ module.exports = async (newversion, opts) => { } = opts const { valid, clean, inc } = semver - const current = pkg.version + const current = pkg.version || '0.0.0' const currentClean = clean(current) const newV = valid(newversion, { loose: true }) ? clean(newversion, { loose: true }) diff --git a/node_modules/libnpmversion/package.json b/node_modules/libnpmversion/package.json index 856e36da6d564..d7e8d5fa58647 100644 --- a/node_modules/libnpmversion/package.json +++ b/node_modules/libnpmversion/package.json @@ -1,6 +1,6 @@ { "name": "libnpmversion", - "version": "1.0.6", + "version": "1.0.7", "main": "lib/index.js", "files": [ "lib/*.js" diff --git a/package-lock.json b/package-lock.json index 82ac4b02e3b2a..99df5003205f0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -112,7 +112,7 @@ "libnpmpublish": "^4.0.0", "libnpmsearch": "^3.0.1", "libnpmteam": "^2.0.2", - "libnpmversion": "^1.0.6", + "libnpmversion": "^1.0.7", "make-fetch-happen": "^8.0.9", "mkdirp": "^1.0.4", "mkdirp-infer-owner": "^2.0.0", @@ -3795,9 +3795,9 @@ } }, "node_modules/libnpmversion": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/libnpmversion/-/libnpmversion-1.0.6.tgz", - "integrity": "sha512-kdE2ilP0swnRZFyuBUGUFDb4NV0mi1rxbdQfFb5rfgT9o5YpifwMH/7LdRnXoAofuIFGy+4BfI2eletqwsNUpg==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/libnpmversion/-/libnpmversion-1.0.7.tgz", + "integrity": "sha512-WNJOnu7pqXv66Szz8pBBf7xFdPobd6fRjf1n2wBjmhy1bsQ5Ifkdfsn0UaQE7JffKs5geoAe7JiBQO2hHSQN7A==", "inBundle": true, "dependencies": { "@npmcli/git": "^2.0.1", @@ -11501,9 +11501,9 @@ } }, "libnpmversion": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/libnpmversion/-/libnpmversion-1.0.6.tgz", - "integrity": "sha512-kdE2ilP0swnRZFyuBUGUFDb4NV0mi1rxbdQfFb5rfgT9o5YpifwMH/7LdRnXoAofuIFGy+4BfI2eletqwsNUpg==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/libnpmversion/-/libnpmversion-1.0.7.tgz", + "integrity": "sha512-WNJOnu7pqXv66Szz8pBBf7xFdPobd6fRjf1n2wBjmhy1bsQ5Ifkdfsn0UaQE7JffKs5geoAe7JiBQO2hHSQN7A==", "requires": { "@npmcli/git": "^2.0.1", "@npmcli/run-script": "^1.2.1", diff --git a/package.json b/package.json index 6c9a9f95e7d11..f769a631b4a6c 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "libnpmpublish": "^4.0.0", "libnpmsearch": "^3.0.1", "libnpmteam": "^2.0.2", - "libnpmversion": "^1.0.6", + "libnpmversion": "^1.0.7", "make-fetch-happen": "^8.0.9", "mkdirp": "^1.0.4", "mkdirp-infer-owner": "^2.0.0",