File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import { Packager } from './packager.js';
19
19
import isEqual from 'lodash/isEqual.js' ;
20
20
import _ from 'lodash' ;
21
21
import isNaN from 'lodash/isNaN.js' ;
22
+ import JSON5 from 'json5' ;
22
23
import axios from 'axios' ;
23
24
import EventEmitter from 'events' ;
24
25
import { matchSorter } from 'match-sorter' ;
@@ -1103,7 +1104,7 @@ export class DeepClient<L extends Link<Id> = Link<Id>> implements DeepClientInst
1103
1104
return serializeError ( any ) ;
1104
1105
} else if ( typeof ( any ) === 'string' ) {
1105
1106
let json ;
1106
- try { json = JSON . parse ( any ) ; } catch ( e ) { }
1107
+ try { json = JSON5 . parse ( any ) ; } catch ( e ) { }
1107
1108
return json ? JSON . stringify ( json , null , 2 ) : any . toString ( ) ;
1108
1109
} else if ( typeof ( any ) === 'object' ) {
1109
1110
return JSON . stringify ( any , null , 2 ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @deep-foundation/deeplinks" ,
3
- "version" : " 0.0.611 " ,
3
+ "version" : " 0.0.612 " ,
4
4
"license" : " Unlicense" ,
5
5
"type" : " module" ,
6
6
"main" : " import.js" ,
You can’t perform that action at this time.
0 commit comments