diff --git a/node_modules/libnpmversion/lib/version.js b/node_modules/libnpmversion/lib/version.js index 6630187f525e1..a7ed80780d724 100644 --- a/node_modules/libnpmversion/lib/version.js +++ b/node_modules/libnpmversion/lib/version.js @@ -88,6 +88,9 @@ module.exports = async (newversion, opts) => { try { const sw = await readJson(lock) sw.version = newV + if (sw.packages && sw.packages['']) { + sw.packages[''].version = newV + } await writeJson(lock, sw) haveLocks.push(lock) } catch (er) {} diff --git a/node_modules/libnpmversion/package.json b/node_modules/libnpmversion/package.json index d1f264b571601..9941b810e8666 100644 --- a/node_modules/libnpmversion/package.json +++ b/node_modules/libnpmversion/package.json @@ -1,6 +1,6 @@ { "name": "libnpmversion", - "version": "1.0.2", + "version": "1.0.3", "main": "lib/index.js", "files": [ "lib/*.js" diff --git a/package-lock.json b/package-lock.json index eb020bd6cf908..5999b4e0762c0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -123,7 +123,7 @@ "libnpmpublish": "^3.0.1", "libnpmsearch": "^3.0.0", "libnpmteam": "^2.0.1", - "libnpmversion": "^1.0.2", + "libnpmversion": "^1.0.3", "lockfile": "^1.0.4", "make-fetch-happen": "^8.0.9", "meant": "~1.0.1", @@ -3789,9 +3789,9 @@ } }, "node_modules/libnpmversion": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/libnpmversion/-/libnpmversion-1.0.2.tgz", - "integrity": "sha512-W2trOIhz/5QMDfnnAe/nhbym11+ZEjXfq15XpTjccGrOMqnH7Q/CFeUrFn9HpPV+UqhCcLIsOsok0VoZJ6vCIQ==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/libnpmversion/-/libnpmversion-1.0.3.tgz", + "integrity": "sha512-x6s6N0Fo53zrn8F8DXmwTTrruEkibpiDD7BJnSEjrh7ArMWx7FIDUw/FXoh7s6bgbvRo8R1Z1dkQIKPrC+t8xA==", "inBundle": true, "dependencies": { "@npmcli/git": "^2.0.1", @@ -12040,9 +12040,9 @@ } }, "libnpmversion": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/libnpmversion/-/libnpmversion-1.0.2.tgz", - "integrity": "sha512-W2trOIhz/5QMDfnnAe/nhbym11+ZEjXfq15XpTjccGrOMqnH7Q/CFeUrFn9HpPV+UqhCcLIsOsok0VoZJ6vCIQ==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/libnpmversion/-/libnpmversion-1.0.3.tgz", + "integrity": "sha512-x6s6N0Fo53zrn8F8DXmwTTrruEkibpiDD7BJnSEjrh7ArMWx7FIDUw/FXoh7s6bgbvRo8R1Z1dkQIKPrC+t8xA==", "requires": { "@npmcli/git": "^2.0.1", "@npmcli/run-script": "^1.2.1", diff --git a/package.json b/package.json index 42b9e026f6a89..ce91c2991f159 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "libnpmpublish": "^3.0.1", "libnpmsearch": "^3.0.0", "libnpmteam": "^2.0.1", - "libnpmversion": "^1.0.2", + "libnpmversion": "^1.0.3", "lockfile": "^1.0.4", "meant": "~1.0.1", "mkdirp": "^1.0.4",