@npmcli/installed-package-contents
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -58,5 +58,2 @@ // to GET CONTENTS for folder at PATH (which may be a PACKAGE): | ||
} | ||
if (typeof pkg.bin === 'string') { | ||
pkg.bin = { [basename(pkg.name)]: pkg.bin } | ||
} | ||
pkg[normalized] = true | ||
@@ -184,6 +181,7 @@ return pkg | ||
module.exports = ({path, depth = 1}) => pkgContents({ | ||
module.exports = ({path, depth = 1, packageJsonCache}) => pkgContents({ | ||
path: resolve(path), | ||
depth, | ||
pkg: true, | ||
packageJsonCache, | ||
}).then(results => [...results]) | ||
@@ -190,0 +188,0 @@ |
{ | ||
"name": "@npmcli/installed-package-contents", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Get the list of files installed in a package in node_modules, including bundled dependencies", | ||
@@ -20,8 +20,8 @@ "author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)", | ||
"devDependencies": { | ||
"tap": "^14.10.2" | ||
"tap": "^14.10.4" | ||
}, | ||
"dependencies": { | ||
"npm-bundled": "^1.1.0", | ||
"npm-bundled": "^1.1.1", | ||
"npm-normalize-package-bin": "^1.0.1", | ||
"read-package-json-fast": "^1.1.0", | ||
"read-package-json-fast": "^1.1.1", | ||
"readdir-scoped-modules": "^1.1.0" | ||
@@ -28,0 +28,0 @@ }, |
12133
198
Updatednpm-bundled@^1.1.1