Socket
Socket
Sign inDemoInstall

read-package-json-fast

Package Overview
Dependencies
2
Maintainers
5
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.1 to 2.0.2

9

index.js

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

const rpj = path => readFile(path, 'utf8')
.then(data => normalize(parse(data)))
.then(data => normalize(stripUnderscores(parse(data))))
.catch(er => {

@@ -14,2 +14,9 @@ er.path = path

// do not preserve _fields set in files, they are sus
const stripUnderscores = data => {
for (const key of Object.keys(data).filter(k => /^_/.test(k)))
delete data[key]
return data
}
const normalize = data => {

@@ -16,0 +23,0 @@ add_id(data)

2

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

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc