Socket
Socket
Sign inDemoInstall

@npmcli/installed-package-contents

Package Overview
Dependencies
Maintainers
9
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@npmcli/installed-package-contents - npm Package Compare versions

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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc