Socket
Socket
Sign inDemoInstall

@npmcli/installed-package-contents

Package Overview
Dependencies
11
Maintainers
9
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

6

index.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc