diff options
author | Gar <gar+gh@danger.computer> | 2021-05-10 20:04:09 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-05-10 20:04:09 +0300 |
commit | 285976fd12f037f59da47307d98df7ebda5278d9 (patch) | |
tree | 135dbfde262aebc45a79497f239c5d8d952ba3cf /node_modules/@npmcli | |
parent | 1d092144eaaabff63ac8424b40b2286822be7677 (diff) |
@npmcli/arborist@2.4.4
Diffstat (limited to 'node_modules/@npmcli')
-rw-r--r-- | node_modules/@npmcli/arborist/lib/arborist/reify.js | 11 | ||||
-rw-r--r-- | node_modules/@npmcli/arborist/package.json | 2 |
2 files changed, 10 insertions, 3 deletions
diff --git a/node_modules/@npmcli/arborist/lib/arborist/reify.js b/node_modules/@npmcli/arborist/lib/arborist/reify.js index f7731e1c9..b09a9e0fe 100644 --- a/node_modules/@npmcli/arborist/lib/arborist/reify.js +++ b/node_modules/@npmcli/arborist/lib/arborist/reify.js @@ -972,8 +972,15 @@ module.exports = cls => class Reifier extends cls { // would allow versions outside the requested range. Tags and // specific versions save with the save-prefix. const isRange = (subSpec || req).type === 'range' - const range = !isRange || subset(prefixRange, spec, { loose: true }) - ? prefixRange : spec + + let range = spec + if ( + !isRange || + spec === '*' || + subset(prefixRange, spec, { loose: true }) + ) + range = prefixRange + const pname = child.packageName const alias = name !== pname newSpec = alias ? `npm:${pname}@${range}` : range diff --git a/node_modules/@npmcli/arborist/package.json b/node_modules/@npmcli/arborist/package.json index 7f70198cc..bbe87d8bf 100644 --- a/node_modules/@npmcli/arborist/package.json +++ b/node_modules/@npmcli/arborist/package.json @@ -1,6 +1,6 @@ { "name": "@npmcli/arborist", - "version": "2.4.3", + "version": "2.4.4", "description": "Manage node_modules trees", "dependencies": { "@npmcli/installed-package-contents": "^1.0.7", |