@npmcli/arborist 5.5.0 → 5.6.0

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/lib/node.js CHANGED
@@ -334,6 +334,10 @@ class Node {
334
334
  return `${myname}@${alias}${version}`
335
335
  }
336
336
 
337
+ get overridden () {
338
+ return !!(this.overrides && this.overrides.value && this.overrides.name === this.name)
339
+ }
340
+
337
341
  get package () {
338
342
  return this[_package]
339
343
  }
@@ -262,6 +262,10 @@ class Results {
262
262
  !internalSelector.has(node))
263
263
  }
264
264
 
265
+ overriddenPseudo () {
266
+ return this.initialItems.filter(node => node.overridden)
267
+ }
268
+
265
269
  pathPseudo () {
266
270
  return this.initialItems.filter(node => {
267
271
  if (!this.currentAstNode.pathValue) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/arborist",
3
- "version": "5.5.0",
3
+ "version": "5.6.0",
4
4
  "description": "Manage node_modules trees",
5
5
  "dependencies": {
6
6
  "@isaacs/string-locale-compare": "^1.1.0",