🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

json-parse-even-better-errors

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-parse-even-better-errors - npm Package Compare versions

Comparing version
5.0.0
to
6.0.0
+3
-1
lib/index.js

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

errIdx = +badIndexMatch[1]
} else /* istanbul ignore next - doesnt happen in Node 22 */ if (
} else /* node:coverage disable */ if (
// doesn't happen in Node 22+
msg.match(/^Unexpected end of JSON.*/i)

@@ -61,2 +62,3 @@ ) {

}
/* node:coverage enable */

@@ -63,0 +65,0 @@ if (errIdx == null) {

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

@@ -11,4 +11,4 @@ "main": "lib/index.js",

"scripts": {
"test": "tap",
"snap": "tap",
"test": "node --test './test/**/*.js'",
"snap": "node --test --test-update-snapshots './test/**/*.js'",
"lint": "npm run eslint",

@@ -19,3 +19,5 @@ "postlint": "template-oss-check",

"posttest": "npm run lint",
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
"test:node20": "node --test test",
"test:cover": "node --test --experimental-test-coverage --test-timeout=3000 --test-coverage-lines=100 --test-coverage-functions=100 --test-coverage-branches=100 './test/**/*.js'"
},

@@ -33,21 +35,15 @@ "repository": {

"devDependencies": {
"@npmcli/eslint-config": "^5.0.0",
"@npmcli/template-oss": "4.27.1",
"tap": "^16.3.0"
"@npmcli/eslint-config": "^6.0.0",
"@npmcli/template-oss": "5.0.0"
},
"tap": {
"check-coverage": true,
"nyc-arg": [
"--exclude",
"tap-snapshots/**"
]
},
"engines": {
"node": "^20.17.0 || >=22.9.0"
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.27.1",
"publish": true
"version": "5.0.0",
"publish": true,
"testRunner": "node:test",
"latestCiVersion": 24
}
}