Skip to content

Commit

Permalink
0.0.612
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Oct 7, 2024
1 parent 47ea3a4 commit 2f4173e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion imports/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { Packager } from './packager.js';
import isEqual from 'lodash/isEqual.js';
import _ from 'lodash';
import isNaN from 'lodash/isNaN.js';
import JSON5 from 'json5';
import axios from 'axios';
import EventEmitter from 'events';
import { matchSorter } from 'match-sorter';
Expand Down Expand Up @@ -1103,7 +1104,7 @@ export class DeepClient<L extends Link<Id> = Link<Id>> implements DeepClientInst
return serializeError(any);
} else if (typeof(any) === 'string') {
let json;
try { json = JSON.parse(any); } catch(e) {}
try { json = JSON5.parse(any); } catch(e) {}
return json ? JSON.stringify(json, null, 2) : any.toString();
} else if (typeof(any) === 'object') {
return JSON.stringify(any, null, 2);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deep-foundation/deeplinks",
"version": "0.0.611",
"version": "0.0.612",
"license": "Unlicense",
"type": "module",
"main": "import.js",
Expand Down

0 comments on commit 2f4173e

Please sign in to comment.