@npmcli/arborist 5.2.0 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,7 +9,7 @@ Inspect and manage `node_modules` trees.
9
9
  ![a tree with the word ARBORIST superimposed on it](https://raw.githubusercontent.com/npm/arborist/main/docs/logo.svg?sanitize=true)
10
10
 
11
11
  There's more documentation [in the docs
12
- folder](https://github.com/npm/arborist/tree/main/docs).
12
+ folder](https://github.com/npm/cli/tree/latest/workspaces/arborist/docs).
13
13
 
14
14
  ## USAGE
15
15
 
package/lib/edge.js CHANGED
@@ -92,7 +92,12 @@ class Edge {
92
92
  return false
93
93
  }
94
94
 
95
- return depValid(node, this.spec, this.accept, this.from)
95
+ // NOTE: this condition means we explicitly do not support overriding
96
+ // bundled or shrinkwrapped dependencies
97
+ const spec = (node.hasShrinkwrap || node.inShrinkwrap || node.inBundle)
98
+ ? this.rawSpec
99
+ : this.spec
100
+ return depValid(node, spec, this.accept, this.from)
96
101
  }
97
102
 
98
103
  explain (seen = []) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/arborist",
3
- "version": "5.2.0",
3
+ "version": "5.2.1",
4
4
  "description": "Manage node_modules trees",
5
5
  "dependencies": {
6
6
  "@isaacs/string-locale-compare": "^1.1.0",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@npmcli/eslint-config": "^3.0.1",
43
- "@npmcli/template-oss": "3.4.2",
43
+ "@npmcli/template-oss": "3.5.0",
44
44
  "benchmark": "^2.1.4",
45
45
  "chalk": "^4.1.0",
46
46
  "minify-registry-metadata": "^2.1.0",
@@ -101,6 +101,6 @@
101
101
  },
102
102
  "templateOSS": {
103
103
  "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
104
- "version": "3.4.2"
104
+ "version": "3.5.0"
105
105
  }
106
106
  }