From 23e05463e0459ae1b5592603bc7db51166a6f9f0 Mon Sep 17 00:00:00 2001 From: Andreas Schmitz Date: Fri, 21 Jun 2024 09:19:43 +0200 Subject: [PATCH] fix: use proper cqlParser object to run properly in all environments --- src/CqlParser.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CqlParser.ts b/src/CqlParser.ts index 5fd8d5e..e832f78 100644 --- a/src/CqlParser.ts +++ b/src/CqlParser.ts @@ -92,8 +92,8 @@ export class CqlParser { read(text: string | undefined): Filter | Expression | undefined { try { - // @ts-expect-error - return cqlParser.parse(text); + // @ts-expect-error defined in the window object + return window.cqlParser.parse(text); } catch (e) { return undefined; }