Skip to content

Commit ff8a1f7

Browse files
committed
fix: replace json-stringify-safe with fast-safe-stringify
1 parent dbe92cd commit ff8a1f7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"boolean": "^3.1.4",
2121
"fast-json-stringify": "^2.7.10",
2222
"fast-printf": "^1.6.9",
23+
"fast-safe-stringify": "^2.1.1",
2324
"globalthis": "^1.0.2",
2425
"is-circular": "^1.0.2",
25-
"json-stringify-safe": "^5.0.1",
2626
"semver-compare": "^1.0.0"
2727
},
2828
"description": "JSON logger for Node.js and browser.",

src/factories/createLogger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {
22
printf,
33
} from 'fast-printf';
4+
import stringify from 'fast-safe-stringify';
45
import createGlobalThis from 'globalthis';
56
import isCircular from 'is-circular';
6-
import stringify from 'json-stringify-safe';
77
import {
88
ROARR_LOG_FORMAT_VERSION,
99
} from '../config';

test/roarr/roarr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ test('replaces circular references with [Circular]', (t) => {
6868
{
6969
context: {
7070
bar: {
71-
bar: '[Circular ~.bar]',
71+
bar: '[Circular]',
7272
},
7373
},
7474
message: 'foo',

0 commit comments

Comments
 (0)