From 0bc87161cc71aceb2e2f3b5b1a9f770dba2c0560 Mon Sep 17 00:00:00 2001 From: EduardF1 <50618110+EduardF1@users.noreply.github.com> Date: Mon, 4 May 2026 23:56:21 +0200 Subject: [PATCH] fix: correct isJSONSerializable to handle null without throwing --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index a773431b..408b346e 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -19,7 +19,7 @@ export function isJSONSerializable(value: any): boolean { return false; } const t = typeof value; - if (t === "string" || t === "number" || t === "boolean" || t === null) { + if (t === "string" || t === "number" || t === "boolean" || value === null) { return true; } if (t !== "object") {