libnpmexec
Advanced tools
Comparing version 8.1.2 to 8.1.3
@@ -35,3 +35,3 @@ 'use strict' | ||
// Returns the found node if it is in the tree | ||
const missingFromTree = async ({ spec, tree, flatOptions, isNpxTree }) => { | ||
const missingFromTree = async ({ spec, tree, flatOptions, isNpxTree, shallow }) => { | ||
// If asking for a spec by name only (spec.raw === spec.name): | ||
@@ -45,2 +45,6 @@ // - In local or global mode go with anything in the tree that matches | ||
for (const node of nodesBySpec) { | ||
// continue if node is not a top level node | ||
if (shallow && node.depth) { | ||
continue | ||
} | ||
if (spec.rawSpec === '*') { | ||
@@ -207,3 +211,3 @@ return { node } | ||
const { manifest: globalManifest } = | ||
await missingFromTree({ spec, tree: globalTree, flatOptions }) | ||
await missingFromTree({ spec, tree: globalTree, flatOptions, shallow: true }) | ||
if (!globalManifest && await fileExists(`${globalBin}/${args[0]}`)) { | ||
@@ -210,0 +214,0 @@ binPaths.push(globalBin) |
{ | ||
"name": "libnpmexec", | ||
"version": "8.1.2", | ||
"version": "8.1.3", | ||
"files": [ | ||
@@ -62,3 +62,3 @@ "bin/", | ||
"dependencies": { | ||
"@npmcli/arborist": "^7.5.3", | ||
"@npmcli/arborist": "^7.5.4", | ||
"@npmcli/run-script": "^8.1.0", | ||
@@ -65,0 +65,0 @@ "ci-info": "^4.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17503
375
Updated@npmcli/arborist@^7.5.4