Skip to content

Commit

Permalink
feat: upgrade to jsonrepair@3.0.0, improving performance and repair…
Browse files Browse the repository at this point in the history
…ing more cases
  • Loading branch information
josdejong committed Dec 19, 2022
1 parent f0bbc27 commit 8a315cf
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 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 @@ -68,7 +68,7 @@
"immutable-json-patch": "^5.1.1",
"jmespath": "^0.16.0",
"json-source-map": "^0.6.1",
"jsonrepair": "^2.2.1",
"jsonrepair": "^3.0.0",
"lodash-es": "^4.17.21",
"memoize-one": "^6.0.0",
"natural-compare-lite": "^1.4.0",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/modes/tablemode/TableMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
import { keyComboFromEvent } from '$lib/utils/keyBindings'
import { createFocusTracker } from '$lib/components/controls/createFocusTracker'
import { getContext, onDestroy, onMount, tick } from 'svelte'
import jsonrepair from 'jsonrepair'
import { jsonrepair } from 'jsonrepair'
import Message from '../../controls/Message.svelte'
import { faCheck, faCode, faWrench } from '@fortawesome/free-solid-svg-icons'
import { measure } from '$lib/utils/timeUtils'
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/modes/textmode/TextMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import { createDebug } from '../../../utils/debug'
import type { JSONPatchDocument } from 'immutable-json-patch'
import { immutableJSONPatch, revertJSONPatch } from 'immutable-json-patch'
import jsonrepair from 'jsonrepair'
import { jsonrepair } from 'jsonrepair'
import { debounce, isEqual, uniqueId } from 'lodash-es'
import { onDestroy, onMount } from 'svelte'
import {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/modes/treemode/TreeMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { createDebug } from '$lib/utils/debug'
import type { JSONPatchDocument, JSONPath, JSONValue } from 'immutable-json-patch'
import { compileJSONPointer, existsIn, getIn, immutableJSONPatch } from 'immutable-json-patch'
import jsonrepair from 'jsonrepair'
import { jsonrepair } from 'jsonrepair'
import { initial, isEmpty, isEqual, last, noop, throttle, uniqueId } from 'lodash-es'
import { getContext, onDestroy, onMount, tick } from 'svelte'
import { createJump } from '$lib/assets/jump.js/src/jump'
Expand Down
2 changes: 1 addition & 1 deletion src/lib/logic/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { MAX_AUTO_REPAIRABLE_SIZE, MAX_VALIDATABLE_SIZE } from '../constants.js'
import { measure } from '../utils/timeUtils.js'
import { normalizeJsonParseError } from '../utils/jsonUtils.js'
import { createDebug } from '../utils/debug.js'
import jsonrepair from 'jsonrepair'
import { jsonrepair } from 'jsonrepair'

const debug = createDebug('validation')

Expand Down
2 changes: 1 addition & 1 deletion src/lib/utils/jsonUtils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { JSONObject, JSONPath, JSONValue } from 'immutable-json-patch'
import { compileJSONPointer } from 'immutable-json-patch'
import jsonSourceMap from 'json-source-map'
import jsonrepair from 'jsonrepair'
import { jsonrepair } from 'jsonrepair'
import { isObject, isObjectOrArray, valueType } from './typeUtils.js'
import { arrayToObject, objectToArray } from './arrayUtils.js'
import type {
Expand Down

0 comments on commit 8a315cf

Please sign in to comment.