Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuy Adorno <ruyadorno@hotmail.com>2021-03-29 21:41:19 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2021-03-29 21:47:48 +0300
commit80ce2a019526632b01b70e1c75c42608dc160332 (patch)
tree9b9d8a9197be729aa661cd97043d9da738a7f612 /node_modules
parent03734c29e00191d17f164d1c0e75d9f228268842 (diff)
@npmcli/metavuln-calculator@1.1.1
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/@npmcli/metavuln-calculator/lib/get-dep-spec.js6
-rw-r--r--node_modules/@npmcli/metavuln-calculator/package.json2
2 files changed, 4 insertions, 4 deletions
diff --git a/node_modules/@npmcli/metavuln-calculator/lib/get-dep-spec.js b/node_modules/@npmcli/metavuln-calculator/lib/get-dep-spec.js
index 35e83d02a..8d1d72b8c 100644
--- a/node_modules/@npmcli/metavuln-calculator/lib/get-dep-spec.js
+++ b/node_modules/@npmcli/metavuln-calculator/lib/get-dep-spec.js
@@ -8,8 +8,8 @@ module.exports = (mani, name) => {
peerDependencies: peerDeps = {},
} = mani
- return typeof deps[name] === 'string' ? deps[name]
- : typeof optDeps[name] === 'string' ? optDeps[name]
- : typeof peerDeps[name] === 'string' ? peerDeps[name]
+ return deps && typeof deps[name] === 'string' ? deps[name]
+ : optDeps && typeof optDeps[name] === 'string' ? optDeps[name]
+ : peerDeps && typeof peerDeps[name] === 'string' ? peerDeps[name]
: null
}
diff --git a/node_modules/@npmcli/metavuln-calculator/package.json b/node_modules/@npmcli/metavuln-calculator/package.json
index f7a4f5cc4..4ad6193ae 100644
--- a/node_modules/@npmcli/metavuln-calculator/package.json
+++ b/node_modules/@npmcli/metavuln-calculator/package.json
@@ -1,6 +1,6 @@
{
"name": "@npmcli/metavuln-calculator",
- "version": "1.1.0",
+ "version": "1.1.1",
"main": "lib/index.js",
"files": [
"lib"