From 45898bd8ad1b9e220c684c09cb84e5f0a35de7ee Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Tue, 14 Jan 2025 14:08:08 -0700 Subject: [PATCH] ensure removal is clean --- arcjet/index.ts | 4 ++-- protocol/client.ts | 3 ++- protocol/convert.ts | 10 +++++----- protocol/test/client.test.ts | 3 +-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/arcjet/index.ts b/arcjet/index.ts index ffdd6a7fe..7c81d5165 100644 --- a/arcjet/index.ts +++ b/arcjet/index.ts @@ -4,6 +4,7 @@ import type { ArcjetBotRule, ArcjetRule, ArcjetLocalRule, + ArcjetMode, ArcjetRequestDetails, ArcjetTokenBucketRateLimitRule, ArcjetFixedWindowRateLimitRule, @@ -15,15 +16,14 @@ import type { ArcjetWellKnownBot, ArcjetBotCategory, ArcjetEmailType, + ArcjetSensitiveInfoType, } from "@arcjet/protocol"; import { ArcjetBotReason, ArcjetEmailReason, ArcjetErrorReason, - ArcjetMode, ArcjetReason, ArcjetRuleResult, - ArcjetSensitiveInfoType, ArcjetSensitiveInfoReason, ArcjetDecision, ArcjetDenyDecision, diff --git a/protocol/client.ts b/protocol/client.ts index 13728079a..0dee26134 100644 --- a/protocol/client.ts +++ b/protocol/client.ts @@ -10,8 +10,9 @@ import type { ArcjetContext, ArcjetRequestDetails, ArcjetRule, + ArcjetStack, } from "./index.js"; -import { ArcjetDecision, ArcjetStack } from "./index.js"; +import { ArcjetDecision } from "./index.js"; import { DecideService } from "./proto/decide/v1alpha1/decide_connect.js"; import { DecideRequest, diff --git a/protocol/convert.ts b/protocol/convert.ts index 47d922815..3e25e578a 100644 --- a/protocol/convert.ts +++ b/protocol/convert.ts @@ -3,7 +3,12 @@ import type { ArcjetRule, ArcjetRateLimitRule, ArcjetBotRule, + ArcjetConclusion, ArcjetEmailRule, + ArcjetEmailType, + ArcjetMode, + ArcjetRuleState, + ArcjetStack, ArcjetTokenBucketRateLimitRule, ArcjetFixedWindowRateLimitRule, ArcjetSlidingWindowRateLimitRule, @@ -22,13 +27,8 @@ import { ArcjetRateLimitReason, ArcjetRuleResult, ArcjetShieldReason, - ArcjetConclusion, ArcjetDecision, - ArcjetEmailType, - ArcjetMode, ArcjetReason, - ArcjetRuleState, - ArcjetStack, ArcjetIpDetails, ArcjetSensitiveInfoReason, } from "./index.js"; diff --git a/protocol/test/client.test.ts b/protocol/test/client.test.ts index 603b59b23..be04a5883 100644 --- a/protocol/test/client.test.ts +++ b/protocol/test/client.test.ts @@ -15,11 +15,10 @@ import { RuleState, SDKStack, } from "../proto/decide/v1alpha1/decide_pb.js"; -import type { ArcjetRule } from "../index.js"; +import type { ArcjetConclusion, ArcjetRule } from "../index.js"; import { ArcjetAllowDecision, ArcjetChallengeDecision, - ArcjetConclusion, ArcjetDecision, ArcjetDenyDecision, ArcjetErrorDecision,