From 73928c8c77c643577384cb5481a1dff955638388 Mon Sep 17 00:00:00 2001 From: blaine-arcjet <146491715+blaine-arcjet@users.noreply.github.com> Date: Fri, 20 Sep 2024 09:55:52 -0700 Subject: [PATCH] fix(protocol): Ensure relative imports have extensions (#1722) It seems that there's a difference between `moduleResolution: "node"` and `"moduleResolution": "node16"` in that you need to always have an extension for `node16` to resolve a relative filepath. This adds some missing extensions to the relative filepaths in our protocol package to resolve this issue. Fixes #1720 --- protocol/convert.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/convert.ts b/protocol/convert.ts index a7ea666cd..4f57811e6 100644 --- a/protocol/convert.ts +++ b/protocol/convert.ts @@ -9,7 +9,7 @@ import type { ArcjetSlidingWindowRateLimitRule, ArcjetShieldRule, ArcjetSensitiveInfoRule, -} from "./index"; +} from "./index.js"; import { ArcjetAllowDecision, ArcjetBotReason, @@ -31,7 +31,7 @@ import { ArcjetStack, ArcjetIpDetails, ArcjetSensitiveInfoReason, -} from "./index"; +} from "./index.js"; import type { IpDetails } from "./proto/decide/v1alpha1/decide_pb.js"; import { BotV2Reason,