@npmcli/arborist 2.4.3 → 2.4.4

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.
@@ -972,8 +972,15 @@ module.exports = cls => class Reifier extends cls {
972
972
  // would allow versions outside the requested range. Tags and
973
973
  // specific versions save with the save-prefix.
974
974
  const isRange = (subSpec || req).type === 'range'
975
- const range = !isRange || subset(prefixRange, spec, { loose: true })
976
- ? prefixRange : spec
975
+
976
+ let range = spec
977
+ if (
978
+ !isRange ||
979
+ spec === '*' ||
980
+ subset(prefixRange, spec, { loose: true })
981
+ )
982
+ range = prefixRange
983
+
977
984
  const pname = child.packageName
978
985
  const alias = name !== pname
979
986
  newSpec = alias ? `npm:${pname}@${range}` : range
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/arborist",
3
- "version": "2.4.3",
3
+ "version": "2.4.4",
4
4
  "description": "Manage node_modules trees",
5
5
  "dependencies": {
6
6
  "@npmcli/installed-package-contents": "^1.0.7",