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-05 00:26:27 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2021-03-05 00:26:27 +0300
commit2d4ae598f30049680797685f76154b16a7e15a66 (patch)
tree45a368a27ddb5981d7196f7b601bed47ea9757f4 /node_modules/@npmcli
parentb3e7dd19bb4888dad2bfb6702aed6560a7f91bf8 (diff)
@npmcli/arborist@2.2.6
Diffstat (limited to 'node_modules/@npmcli')
-rw-r--r--node_modules/@npmcli/arborist/lib/edge.js10
-rw-r--r--node_modules/@npmcli/arborist/package.json2
2 files changed, 10 insertions, 2 deletions
diff --git a/node_modules/@npmcli/arborist/lib/edge.js b/node_modules/@npmcli/arborist/lib/edge.js
index c5f00faff..79510d509 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 cf4224234..268f0e72a 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",