diff --git a/node_modules/read-package-tree/README.md b/node_modules/read-package-tree/README.md index d2248f82b55a9..c8edffd2bcc2e 100644 --- a/node_modules/read-package-tree/README.md +++ b/node_modules/read-package-tree/README.md @@ -1,5 +1,7 @@ # read-package-tree +[![Build Status](https://travis-ci.org/npm/read-package-tree.svg?branch=master)](https://travis-ci.org/npm/read-package-tree) + Read the contents of node_modules. ## USAGE diff --git a/node_modules/read-package-tree/package.json b/node_modules/read-package-tree/package.json index bb7295dadac68..948f096620033 100644 --- a/node_modules/read-package-tree/package.json +++ b/node_modules/read-package-tree/package.json @@ -1,32 +1,29 @@ { - "_args": [ - [ - "read-package-tree@5.2.1", - "/Users/rebecca/code/npm" - ] - ], - "_from": "read-package-tree@5.2.1", - "_id": "read-package-tree@5.2.1", + "_from": "read-package-tree@latest", + "_id": "read-package-tree@5.2.2", "_inBundle": false, - "_integrity": "sha512-2CNoRoh95LxY47LvqrehIAfUVda2JbuFE/HaGYs42bNrGG+ojbw1h3zOcPcQ+1GQ3+rkzNndZn85u1XyZ3UsIA==", + "_integrity": "sha512-rW3XWUUkhdKmN2JKB4FL563YAgtINifso5KShykufR03nJ5loGFlkUMe1g/yxmqX073SoYYTsgXu7XdDinKZuA==", "_location": "/read-package-tree", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "tag", "registry": true, - "raw": "read-package-tree@5.2.1", + "raw": "read-package-tree@latest", "name": "read-package-tree", "escapedName": "read-package-tree", - "rawSpec": "5.2.1", + "rawSpec": "latest", "saveSpec": null, - "fetchSpec": "5.2.1" + "fetchSpec": "latest" }, "_requiredBy": [ - "/" + "#USER", + "/", + "/licensee" ], - "_resolved": "https://registry.npmjs.org/read-package-tree/-/read-package-tree-5.2.1.tgz", - "_spec": "5.2.1", - "_where": "/Users/rebecca/code/npm", + "_resolved": "https://registry.npmjs.org/read-package-tree/-/read-package-tree-5.2.2.tgz", + "_shasum": "4b6a0ef2d943c1ea36a578214c9a7f6b7424f7a8", + "_spec": "read-package-tree@latest", + "_where": "/Users/zkat/Documents/code/work/npm", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", @@ -35,6 +32,7 @@ "bugs": { "url": "https://github.com/npm/read-package-tree/issues" }, + "bundleDependencies": false, "dependencies": { "debuglog": "^1.0.1", "dezalgo": "^1.0.0", @@ -42,12 +40,13 @@ "read-package-json": "^2.0.0", "readdir-scoped-modules": "^1.0.0" }, + "deprecated": false, "description": "Read the contents of node_modules.", "devDependencies": { "archy": "^1.0.0", "mkdirp": "^0.5.1", "tacks": "^1.2.1", - "tap": "^6.3.0" + "tap": "^12.5.2" }, "directories": { "test": "test" @@ -66,5 +65,5 @@ "scripts": { "test": "tap test/*.js" }, - "version": "5.2.1" + "version": "5.2.2" } diff --git a/node_modules/read-package-tree/rpt.js b/node_modules/read-package-tree/rpt.js index c577ea1801186..fd43be9c22c0c 100644 --- a/node_modules/read-package-tree/rpt.js +++ b/node_modules/read-package-tree/rpt.js @@ -47,9 +47,9 @@ function Node (pkg, logical, physical, er, cache, fromLink) { debug(node.constructor.name, dpath(physical), pkg && pkg._id) - const parent = path.dirname(logical) + const parent = path.basename(path.dirname(logical)) if (parent[0] === '@') { - node.name = path.basename(parent) + '/' + path.basename(logical) + node.name = parent + '/' + path.basename(logical) } else { node.name = path.basename(logical) } @@ -83,12 +83,11 @@ function Link (pkg, logical, physical, realpath, er, cache) { debug(this.constructor.name, dpath(physical), pkg && pkg._id) - const dir = path.dirname(logical) - const parent = path.dirname(dir) + const parent = path.basename(path.dirname(logical)) if (parent[0] === '@') { - this.name = path.basename(parent) + '/' + path.basename(dir) + this.name = parent + '/' + path.basename(logical) } else { - this.name = path.basename(dir) + this.name = path.basename(logical) } this.id = ID++ this.path = logical diff --git a/package-lock.json b/package-lock.json index fea697889df25..4609b25780dd1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6623,9 +6623,9 @@ } }, "read-package-tree": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/read-package-tree/-/read-package-tree-5.2.1.tgz", - "integrity": "sha512-2CNoRoh95LxY47LvqrehIAfUVda2JbuFE/HaGYs42bNrGG+ojbw1h3zOcPcQ+1GQ3+rkzNndZn85u1XyZ3UsIA==", + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/read-package-tree/-/read-package-tree-5.2.2.tgz", + "integrity": "sha512-rW3XWUUkhdKmN2JKB4FL563YAgtINifso5KShykufR03nJ5loGFlkUMe1g/yxmqX073SoYYTsgXu7XdDinKZuA==", "requires": { "debuglog": "^1.0.1", "dezalgo": "^1.0.0", diff --git a/package.json b/package.json index 39410b89672ff..b5656fe1a7268 100644 --- a/package.json +++ b/package.json @@ -114,7 +114,7 @@ "read-cmd-shim": "~1.0.1", "read-installed": "~4.0.3", "read-package-json": "^2.0.13", - "read-package-tree": "^5.2.1", + "read-package-tree": "^5.2.2", "readable-stream": "^3.1.1", "request": "^2.88.0", "retry": "^0.12.0",