Skip to content

Commit

Permalink
deps: json-parse-even-better-errors@3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed May 7, 2024
1 parent 4c5bf77 commit 18c3b40
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
4 changes: 3 additions & 1 deletion node_modules/json-parse-even-better-errors/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ const parseError = (e, txt, context = 20) => {
let errIdx
if (badIndexMatch) {
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
}

Expand Down
8 changes: 4 additions & 4 deletions node_modules/json-parse-even-better-errors/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "json-parse-even-better-errors",
"version": "3.0.1",
"version": "3.0.2",
"description": "JSON.parse with context information on error",
"main": "lib/index.js",
"files": [
Expand All @@ -18,7 +18,7 @@
},
"repository": {
"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"
},
"keywords": [
"JSON",
Expand All @@ -28,7 +28,7 @@
"license": "MIT",
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.20.0",
"@npmcli/template-oss": "4.22.0",
"tap": "^16.3.0"
},
"tap": {
Expand All @@ -43,7 +43,7 @@
},
"templateOSS": {
"//@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
}
}
13 changes: 7 additions & 6 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"ini": "^4.1.2",
"init-package-json": "^6.0.3",
"is-cidr": "^5.0.5",
"json-parse-even-better-errors": "^3.0.1",
"json-parse-even-better-errors": "^3.0.2",
"libnpmaccess": "^8.0.1",
"libnpmdiff": "^6.0.3",
"libnpmexec": "^8.0.0",
Expand Down Expand Up @@ -6938,10 +6938,11 @@
"peer": true
},
"node_modules/json-parse-even-better-errors": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.1.tgz",
"integrity": "sha512-aatBvbL26wVUCLmbWdCpeu9iF5wOyWpagiKkInA+kfws3sWdBrTnsvN2CKcyCYyUrc7rebNBlK6+kteg7ksecg==",
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.2.tgz",
"integrity": "sha512-fi0NG4bPjCHunUJffmLd0gxssIgkNmArMvis4iNah6Owg1MCJjWhEcDLmsK6iGkJq3tHwbDkTlce70/tmXN4cQ==",
"inBundle": true,
"license": "MIT",
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
}
Expand Down Expand Up @@ -14799,7 +14800,7 @@
"cacache": "^18.0.3",
"common-ancestor-path": "^1.0.1",
"hosted-git-info": "^7.0.2",
"json-parse-even-better-errors": "^3.0.0",
"json-parse-even-better-errors": "^3.0.2",
"json-stringify-nice": "^1.1.4",
"minimatch": "^9.0.4",
"nopt": "^7.0.0",
Expand Down Expand Up @@ -15063,7 +15064,7 @@
"dependencies": {
"@npmcli/git": "^5.0.7",
"@npmcli/run-script": "^8.1.0",
"json-parse-even-better-errors": "^3.0.0",
"json-parse-even-better-errors": "^3.0.2",
"proc-log": "^4.2.0",
"semver": "^7.3.7"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"ini": "^4.1.2",
"init-package-json": "^6.0.3",
"is-cidr": "^5.0.5",
"json-parse-even-better-errors": "^3.0.1",
"json-parse-even-better-errors": "^3.0.2",
"libnpmaccess": "^8.0.1",
"libnpmdiff": "^6.0.3",
"libnpmexec": "^8.0.0",
Expand Down
2 changes: 1 addition & 1 deletion workspaces/arborist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"cacache": "^18.0.3",
"common-ancestor-path": "^1.0.1",
"hosted-git-info": "^7.0.2",
"json-parse-even-better-errors": "^3.0.0",
"json-parse-even-better-errors": "^3.0.2",
"json-stringify-nice": "^1.1.4",
"minimatch": "^9.0.4",
"nopt": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion workspaces/libnpmversion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"dependencies": {
"@npmcli/git": "^5.0.7",
"@npmcli/run-script": "^8.1.0",
"json-parse-even-better-errors": "^3.0.0",
"json-parse-even-better-errors": "^3.0.2",
"proc-log": "^4.2.0",
"semver": "^7.3.7"
},
Expand Down

0 comments on commit 18c3b40

Please sign in to comment.