Skip to content

Commit

Permalink
feat: upgrade to [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Oct 22, 2024
1 parent d0fae20 commit acb6976
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"jmespath": "^0.16.0",
"json-source-map": "^0.6.1",
"jsonpath-plus": "^9.0.0 || ^10.1.0",
"jsonrepair": "3.8.0",
"jsonrepair": "^3.9.0",
"lodash-es": "^4.17.21",
"memoize-one": "^6.0.0",
"natural-compare-lite": "^1.4.0",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/utils/jsonUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ export function parsePartialJson(partialJson: string, parse: (text: string) => u
}

try {
return parse('[' + partialJson + ']')
return parse('{' + partialJson + '}')
} catch {
// we ignore the error on purpose
}

try {
return parse('{' + partialJson + '}')
return parse('[' + partialJson + ']')
} catch {
// we ignore the error on purpose
}
Expand Down

0 comments on commit acb6976

Please sign in to comment.