json-parse-even-better-errors
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -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 | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9939
115
0