1 parent b81c6ed commit 1631d76Copy full SHA for 1631d76
2 files changed
lib/index.js
@@ -107,7 +107,7 @@ class Calculator {
107
108
const timeEnd = time.start(`metavuln:packument:${name}`)
109
const p = pacote.packument(name, { ...this[_options] })
110
- .catch((er) => {
+ .catch(() => {
111
// presumably not something from the registry.
112
// an empty packument will have an effective range of *
113
return {
test/index.js
@@ -3,7 +3,7 @@ const requireInject = require('require-inject')
3
const packuments = require('./fixtures/packuments/index.js')
4
const advisories = require('./fixtures/advisories/index.js')
5
const pacote = {
6
- packument: async (name, options) => {
+ packument: async (name) => {
7
if (packuments[name]) {
8
return packuments[name]
9
}
0 commit comments