From 0a7f0380db85180bd77ca88b172b6510405323d1 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 12 Nov 2025 01:35:20 +0000 Subject: [PATCH] fix: guard __PACKAGE_VERSION__ to avoid ReferenceError in tests Co-Authored-By: Tom Aylott --- src/version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/version.ts b/src/version.ts index 531fbc9..46d1af0 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,4 +1,4 @@ // Version string of this package injected at build time. declare const __PACKAGE_VERSION__: string | undefined; export const VERSION: string = - __PACKAGE_VERSION__ === undefined ? '0.0.0-test' : __PACKAGE_VERSION__; + typeof __PACKAGE_VERSION__ === 'undefined' ? '0.0.0-test' : __PACKAGE_VERSION__;