Socket
Socket
Sign inDemoInstall

json-parse-even-better-errors

Package Overview
Dependencies
0
Maintainers
6
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 3.0.2

4

lib/index.js

@@ -55,3 +55,5 @@ 'use strict'

errIdx = +badIndexMatch[1]
} else if (msg.match(/^Unexpected end of JSON.*/i)) {
} else /* istanbul ignore next - doesnt happen in Node 22 */ if (
msg.match(/^Unexpected end of JSON.*/i)
) {
errIdx = txt.length - 1

@@ -58,0 +60,0 @@ }

{
"name": "json-parse-even-better-errors",
"version": "3.0.1",
"version": "3.0.2",
"description": "JSON.parse with context information on error",

@@ -21,3 +21,3 @@ "main": "lib/index.js",

"type": "git",
"url": "https://github.com/npm/json-parse-even-better-errors.git"
"url": "git+https://github.com/npm/json-parse-even-better-errors.git"
},

@@ -32,3 +32,3 @@ "keywords": [

"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.20.0",
"@npmcli/template-oss": "4.22.0",
"tap": "^16.3.0"

@@ -48,5 +48,5 @@ },

"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.20.0",
"version": "4.22.0",
"publish": true
}
}
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