From e8978bb08691611fbf2ff74ea4dd4ce1bb7775e6 Mon Sep 17 00:00:00 2001 From: "Khoa.vo" Date: Wed, 7 Jan 2026 19:40:49 +0700 Subject: [PATCH] fix: Replace BigInt literal with BigInt function for ES compatibility --- lib/providers/meta-client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/providers/meta-client.ts b/lib/providers/meta-client.ts index 9d9c4a1..ae8ead1 100644 --- a/lib/providers/meta-client.ts +++ b/lib/providers/meta-client.ts @@ -313,7 +313,7 @@ export class MetaAIClient { const externalConversationId = crypto.randomUUID(); const timestamp = Date.now(); const randomPart = Math.floor(Math.random() * 4194304); // 22 bits - const offlineThreadingId = ((BigInt(timestamp) << 22n) | BigInt(randomPart)).toString(); + const offlineThreadingId = ((BigInt(timestamp) << BigInt(22)) | BigInt(randomPart)).toString(); // Store for polling this.session.externalConversationId = externalConversationId;