@npmcli/arborist 9.1.0 → 9.1.1

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.
@@ -871,13 +871,9 @@ module.exports = cls => class Reifier extends cls {
871
871
  return relative(dir, resolve(rootDir, overridePath))
872
872
  }
873
873
 
874
- // Fallback: derive the package name from node.resolved in a platform-agnostic way
874
+ // Fallback: derive the file path from node.resolved in a platform-agnostic way
875
875
  const filePath = node.resolved.replace(/^file:/, '')
876
- // A node.package.name could be different than the folder name
877
- const pathParts = filePath.split(/[\\/]/)
878
- const packageName = pathParts[pathParts.length - 1]
879
-
880
- return join('..', packageName)
876
+ return join(filePath)
881
877
  }
882
878
 
883
879
  #registryResolved (resolved) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/arborist",
3
- "version": "9.1.0",
3
+ "version": "9.1.1",
4
4
  "description": "Manage node_modules trees",
5
5
  "dependencies": {
6
6
  "@isaacs/string-locale-compare": "^1.1.0",