Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

read-package-json-fast

Package Overview
Dependencies
Maintainers
9
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

read-package-json-fast - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

19

index.js

@@ -11,2 +11,3 @@ const {promisify} = require('util')

})
const normalizePackageBin = require('npm-normalize-package-bin')

@@ -19,3 +20,3 @@ const normalize = data => {

fixFunding(data)
fixBin(data)
normalizePackageBin(data)
return data

@@ -43,18 +44,2 @@ }

const fixBin = data => {
if (typeof data.bin === 'string') {
if (data.name)
data.bin = { [data.name]: data.bin }
else
delete data.bin
} else if (typeof data.bin !== 'object' || !data.bin)
delete data.bin
else
for (const [name, bin] of Object.entries(data.bin)) {
if (typeof bin !== 'string')
delete data.bin[name]
}
return data
}
const fixBundled = data => {

@@ -61,0 +46,0 @@ const bdd = data.bundledDependencies

5

package.json
{
"name": "read-package-json-fast",
"version": "1.1.0",
"version": "1.1.1",
"description": "Like read-package-json, but faster",

@@ -21,4 +21,5 @@ "author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)",

"dependencies": {
"json-parse-even-better-errors": "^2.0.1"
"json-parse-even-better-errors": "^2.0.1",
"npm-normalize-package-bin": "^1.0.1"
}
}

Sorry, the diff of this file is too big to display

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