File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed
node_modules/@npmcli/metavuln-calculator Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff 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 } ,
Original file line number Diff line number Diff line change 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/" ,
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 },
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}
Original file line number Diff line number Diff line change 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",
You can’t perform that action at this time.
0 commit comments