@npmcli/installed-package-contents
Advanced tools
Comparing version 1.0.2 to 1.0.3
11
index.js
@@ -99,6 +99,11 @@ // to GET CONTENTS for folder at PATH (which may be a PACKAGE): | ||
const bins = await Promise.all(Object.keys(pkg.bin).map(b => { | ||
const binFiles = [] | ||
Object.keys(pkg.bin).forEach(b => { | ||
const base = resolve(nm, '.bin', b) | ||
return [base, base + '.cmd', base + '.ps1'] | ||
}).flat().map(b => stat(b).then(() => b).catch((er) => null))) | ||
binFiles.push(base, base + '.cmd', base + '.ps1') | ||
}) | ||
const bins = await Promise.all( | ||
binFiles.map(b => stat(b).then(() => b).catch((er) => null)) | ||
) | ||
bins.filter(b => b).forEach(b => result.add(b)) | ||
@@ -105,0 +110,0 @@ } |
{ | ||
"name": "@npmcli/installed-package-contents", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Get the list of files installed in a package in node_modules, including bundled dependencies", | ||
@@ -30,3 +30,6 @@ "author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)", | ||
"index.js" | ||
] | ||
], | ||
"engines": { | ||
"node": ">= 10" | ||
} | ||
} |
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
12061
199