File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
- import JSONBig from 'json-bigint' ;
1
+ import 'json-bigint-patch ' ;
2
2
import type { Session } from 'remix' ;
3
3
import { autoLink } from 'twitter-text' ;
4
4
import invariant from 'tiny-invariant' ;
@@ -9,9 +9,12 @@ import { commitSession, getSession } from '~/session.server';
9
9
10
10
export { nanoid } from 'nanoid' ;
11
11
12
- const DEFAULT_REDIRECT = '/rekt/crypto/articles' ;
12
+ // Provided by `json-bigint-patch` which augments the global `JSON` methods.
13
+ // @see {@link https://github.com/ardatan/json-bigint-patch/blob/master/src/index.js }
14
+ // @see {@link https://github.com/sidorares/json-bigint/issues/74 }
15
+ export const { parse, stringify } = JSON ;
13
16
14
- export const { parse , stringify } = JSONBig ( { useNativeBigInt : true } ) ;
17
+ const DEFAULT_REDIRECT = '/rekt/crypto/articles' ;
15
18
16
19
export function html ( text : string ) : string {
17
20
return autoLink ( text , {
You can’t perform that action at this time.
0 commit comments