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.3 to 1.0.4

3

index.js

@@ -26,2 +26,3 @@ // to GET CONTENTS for folder at PATH (which may be a PACKAGE):

const {relative, resolve, basename, dirname} = require('path')
const normalizePackageBin = require('npm-normalize-package-bin')

@@ -31,3 +32,3 @@ const readPackage = ({ path, packageJsonCache }) =>

: readFile(path).then(json => {
const pkg = JSON.parse(json)
const pkg = normalizePackageBin(JSON.parse(json))
packageJsonCache.set(path, pkg)

@@ -34,0 +35,0 @@ return pkg

{
"name": "@npmcli/installed-package-contents",
"version": "1.0.3",
"version": "1.0.4",
"description": "Get the list of files installed in a package in node_modules, including bundled dependencies",

@@ -24,2 +24,3 @@ "author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)",

"npm-bundled": "^1.1.0",
"npm-normalize-package-bin": "^1.0.1",
"read-package-json-fast": "^1.1.0",

@@ -26,0 +27,0 @@ "readdir-scoped-modules": "^1.1.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