diff --git a/node_modules/@npmcli/arborist/lib/edge.js b/node_modules/@npmcli/arborist/lib/edge.js index c5f00faff2999..79510d509f283 100644 --- a/node_modules/@npmcli/arborist/lib/edge.js +++ b/node_modules/@npmcli/arborist/lib/edge.js @@ -87,16 +87,24 @@ class Edge { // return the edge data, and an explanation of how that edge came to be here [_explain] (seen) { - const { error, from } = this + const { error, from, bundled } = this return { type: this.type, name: this.name, spec: this.spec, + ...(bundled ? { bundled } : {}), ...(error ? { error } : {}), ...(from ? { from: from.explain(null, seen) } : {}), } } + get bundled () { + if (!this.from) + return false + const { package: { bundleDependencies = [] } } = this.from + return bundleDependencies.includes(this.name) + } + get workspace () { return this[_type] === 'workspace' } diff --git a/node_modules/@npmcli/arborist/package.json b/node_modules/@npmcli/arborist/package.json index cf4224234cd45..268f0e72a92d5 100644 --- a/node_modules/@npmcli/arborist/package.json +++ b/node_modules/@npmcli/arborist/package.json @@ -1,6 +1,6 @@ { "name": "@npmcli/arborist", - "version": "2.2.5", + "version": "2.2.6", "description": "Manage node_modules trees", "dependencies": { "@npmcli/installed-package-contents": "^1.0.7", diff --git a/package-lock.json b/package-lock.json index 0a5d9508710bb..ed4aa957af54b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -252,7 +252,7 @@ ], "license": "Artistic-2.0", "dependencies": { - "@npmcli/arborist": "^2.2.5", + "@npmcli/arborist": "^2.2.6", "@npmcli/ci-detect": "^1.2.0", "@npmcli/config": "^1.2.9", "@npmcli/run-script": "^1.8.3", @@ -813,9 +813,9 @@ } }, "node_modules/@npmcli/arborist": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/@npmcli/arborist/-/arborist-2.2.5.tgz", - "integrity": "sha512-nLnhRZsUa1kPryyI0N6hLGX6lsQTFDqBJRTNHmZNmjgzP7ZBKiqz8y6ItsouT2CpWhvmoIpnstLyoglIQyo0YQ==", + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/@npmcli/arborist/-/arborist-2.2.6.tgz", + "integrity": "sha512-dLWPjMeUTrlIJG+f4j3cOMZ24vJ1GQmZm7QixXeOnx3XCo7reWqzjDZfQvPE21FPUuz25EGoRw+MSHzc7OlxAA==", "inBundle": true, "dependencies": { "@npmcli/installed-package-contents": "^1.0.7", @@ -10946,9 +10946,9 @@ "dev": true }, "@npmcli/arborist": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/@npmcli/arborist/-/arborist-2.2.5.tgz", - "integrity": "sha512-nLnhRZsUa1kPryyI0N6hLGX6lsQTFDqBJRTNHmZNmjgzP7ZBKiqz8y6ItsouT2CpWhvmoIpnstLyoglIQyo0YQ==", + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/@npmcli/arborist/-/arborist-2.2.6.tgz", + "integrity": "sha512-dLWPjMeUTrlIJG+f4j3cOMZ24vJ1GQmZm7QixXeOnx3XCo7reWqzjDZfQvPE21FPUuz25EGoRw+MSHzc7OlxAA==", "requires": { "@npmcli/installed-package-contents": "^1.0.7", "@npmcli/map-workspaces": "^1.0.2", diff --git a/package.json b/package.json index 8ed3c32b88900..3955ac107fe10 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "./package.json": "./package.json" }, "dependencies": { - "@npmcli/arborist": "^2.2.5", + "@npmcli/arborist": "^2.2.6", "@npmcli/ci-detect": "^1.2.0", "@npmcli/config": "^1.2.9", "@npmcli/run-script": "^1.8.3",