@npmcli/installed-package-contents
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -124,3 +124,3 @@ // to GET CONTENTS for folder at PATH (which may be a PACKAGE): | ||
// empty folder, just add the folder itself to the result | ||
if (!dirEntries.length && !bundleDeps) { | ||
if (!dirEntries.length && !bundleDeps && currentDepth !== 0) { | ||
result.add(path) | ||
@@ -127,0 +127,0 @@ return result |
{ | ||
"name": "@npmcli/installed-package-contents", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Get the list of files installed in a package in node_modules, including bundled dependencies", | ||
@@ -5,0 +5,0 @@ "author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)", |
@@ -82,2 +82,6 @@ # @npmcli/installed-package-contents | ||
An empty or missing package folder will return an empty array. Empty | ||
directories _within_ package contents are listed, even if the `depth` | ||
argument would cause them to be traversed into. | ||
## CAVEAT | ||
@@ -84,0 +88,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12045
110