File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 16
16
//
17
17
////////////////////////////////////////////////////////////////////////////
18
18
19
- import util from 'util' ;
19
+ import util from 'node: util' ;
20
20
21
21
export const displayObject = (
22
22
object : Realm . Object | null ,
Original file line number Diff line number Diff line change 1
1
import { display as displayDataCell } from '../ui/RealmBrowser/Content/Table/types/DataCell' ;
2
- import { InspectOptions , inspect } from 'util' ;
2
+ import { InspectOptions , inspect } from 'node: util' ;
3
3
// TODO: Investigate better solution.
4
4
const $REF_MATCHER =
5
5
/ \s * \" \$ r e f [ I d ] * \" * : * ( \" ( .* ?) \" ( , | \s | ) | \s * \{ ( .* ?) \} ( , | \s | ) ) / g;
@@ -22,11 +22,11 @@ export const prettifiedInspect = (
22
22
// If it is possible to serialize the object to a simpler structure with toJSON, do it.
23
23
const simplifiedObject =
24
24
// eslint-disable-next-line @typescript-eslint/no-explicit-any
25
- ( object as any ) . toJSON != null ? ( object as any ) . toJSON ( ) : object ;
25
+ ( object as any ) . toJSON != null ? ( object as any ) : object ;
26
26
return inspect ( simplifiedObject , {
27
27
compact : false ,
28
28
// TODO: Can potentially support higher depth if one can hide symbols properly.
29
- depth : 0 ,
29
+ depth : 3 ,
30
30
breakLength : 80 ,
31
31
showHidden : false ,
32
32
...options ,
You can’t perform that action at this time.
0 commit comments