Skip to content

Commit 14c498d

Browse files
committed
deps: @npmcli/[email protected]
1 parent 742b630 commit 14c498d

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

node_modules/@npmcli/metavuln-calculator/lib/advisory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class Advisory {
106106

107107
this[_packument] = packument
108108

109-
const pakuVersions = Object.keys(packument.versions)
109+
const pakuVersions = Object.keys(packument.versions || {})
110110
const allVersions = new Set([...pakuVersions, ...this.versions])
111111
const versionsAdded = []
112112
const versionsRemoved = []
@@ -242,7 +242,7 @@ class Advisory {
242242
// check the dependency of this version on the vulnerable dep
243243
// if we got a version that's not in the packument, fall back on
244244
// the spec provided, if possible.
245-
const mani = this[_packument].versions[version] || {
245+
const mani = this[_packument]?.versions?.[version] || {
246246
dependencies: {
247247
[this.dependency]: spec,
248248
},

node_modules/@npmcli/metavuln-calculator/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@npmcli/metavuln-calculator",
3-
"version": "5.0.0",
3+
"version": "5.0.1",
44
"main": "lib/index.js",
55
"files": [
66
"bin/",
@@ -33,8 +33,8 @@
3333
]
3434
},
3535
"devDependencies": {
36-
"@npmcli/eslint-config": "^3.0.1",
37-
"@npmcli/template-oss": "4.5.1",
36+
"@npmcli/eslint-config": "^4.0.0",
37+
"@npmcli/template-oss": "4.13.0",
3838
"require-inject": "^1.4.4",
3939
"tap": "^16.0.1"
4040
},
@@ -49,6 +49,7 @@
4949
},
5050
"templateOSS": {
5151
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
52-
"version": "4.5.1"
52+
"version": "4.13.0",
53+
"publish": "true"
5354
}
5455
}

package-lock.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2150,9 +2150,9 @@
21502150
}
21512151
},
21522152
"node_modules/@npmcli/metavuln-calculator": {
2153-
"version": "5.0.0",
2154-
"resolved": "https://registry.npmjs.org/@npmcli/metavuln-calculator/-/metavuln-calculator-5.0.0.tgz",
2155-
"integrity": "sha512-BBFQx4M12wiEuVwCgtX/Depx0B/+NHMwDWOlXT41/Pdy5W/1Fenk+hibUlMSrFWwASbX+fY90UbILAEIYH02/A==",
2153+
"version": "5.0.1",
2154+
"resolved": "https://registry.npmjs.org/@npmcli/metavuln-calculator/-/metavuln-calculator-5.0.1.tgz",
2155+
"integrity": "sha512-qb8Q9wIIlEPj3WeA1Lba91R4ZboPL0uspzV0F9uwP+9AYMVB2zOoa7Pbk12g6D2NHAinSbHh6QYmGuRyHZ874Q==",
21562156
"dependencies": {
21572157
"cacache": "^17.0.0",
21582158
"json-parse-even-better-errors": "^3.0.0",

0 commit comments

Comments
 (0)