Skip to content

Commit

Permalink
feat: add maximum breath and depth limits
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Nov 16, 2023
1 parent dbe9b26 commit fbee5f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utilities/stringify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const stringify = (value: unknown): string => {
try {
return safeStringify(value) ?? '';
} catch (error) {
// The only time I've seen this happen is when the value was excessively large.
// eslint-disable-next-line no-console
console.error('[roarr] could not serialize value', value);

Expand Down

0 comments on commit fbee5f5

Please sign in to comment.