Skip to content

Commit 2f4173e

Browse files
committed
0.0.612
1 parent 47ea3a4 commit 2f4173e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

imports/client.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { Packager } from './packager.js';
1919
import isEqual from 'lodash/isEqual.js';
2020
import _ from 'lodash';
2121
import isNaN from 'lodash/isNaN.js';
22+
import JSON5 from 'json5';
2223
import axios from 'axios';
2324
import EventEmitter from 'events';
2425
import { matchSorter } from 'match-sorter';
@@ -1103,7 +1104,7 @@ export class DeepClient<L extends Link<Id> = Link<Id>> implements DeepClientInst
11031104
return serializeError(any);
11041105
} else if (typeof(any) === 'string') {
11051106
let json;
1106-
try { json = JSON.parse(any); } catch(e) {}
1107+
try { json = JSON5.parse(any); } catch(e) {}
11071108
return json ? JSON.stringify(json, null, 2) : any.toString();
11081109
} else if (typeof(any) === 'object') {
11091110
return JSON.stringify(any, null, 2);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@deep-foundation/deeplinks",
3-
"version": "0.0.611",
3+
"version": "0.0.612",
44
"license": "Unlicense",
55
"type": "module",
66
"main": "import.js",

0 commit comments

Comments
 (0)