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

read-package-json

Package Overview
Dependencies
Maintainers
2
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

read-package-json - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

test/fixtures/erroneous.json

5

package.json
{
"name": "read-package-json",
"version": "1.3.1",
"version": "1.3.2",
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",

@@ -18,2 +18,3 @@ "description": "The thing npm uses to read package.json files with semantics and defaults and validation",

"glob": "^4.0.2",
"json-parse-helpfulerror": "^1.0.2",
"lru-cache": "2",

@@ -23,3 +24,3 @@ "normalize-package-data": "^1.0.0"

"devDependencies": {
"tap": "~0.2.5"
"tap": "^0.7.1"
},

@@ -26,0 +27,0 @@ "optionalDependencies": {

@@ -17,2 +17,3 @@ // vim: set softtabstop=16 shiftwidth=16:

var normalizeData = require("normalize-package-data")
var jsonparse = require("json-parse-helpfulerror")

@@ -83,3 +84,3 @@ // put more stuff on here to customize.

try {
d = JSON.parse(stripBOM(d))
d = jsonparse.parse(stripBOM(d))
} catch (er) {

@@ -400,3 +401,3 @@ d = parseIndex(d)

try {
return JSON.parse(data)
return jsonparse.parse(data)
} catch (er) {

@@ -403,0 +404,0 @@ return null

2

test/fixtures/emptybin.json
{
"name": "badbin-test",
"name": "emptybin-test",
"description": "my desc",

@@ -4,0 +4,0 @@ "repository": {

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