Socket
Socket
Sign inDemoInstall

@npmcli/installed-package-contents

Package Overview
Dependencies
Maintainers
9
Versions
12
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.0 to 1.0.1

2

index.js

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

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