Skip to content

Commit 0a7430b

Browse files
committed
Renaming Context to XlbContext
1 parent 2ad3169 commit 0a7430b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bindings/xlb/src/edge_binding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export class ImmediateResponse implements EdgeResponse {
244244
}
245245
}
246246

247-
export class Context extends RecaptchaContext {
247+
export class XlbContext extends RecaptchaContext {
248248
readonly sessionPageCookie = "recaptcha-gxlb-t";
249249
readonly challengePageCookie = "recaptcha-gxlb-e";
250250
readonly httpGetCachingEnabled = true;

bindings/xlb/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ import {
3333

3434
import * as http2 from "http2";
3535
import { connectNodeAdapter } from "@connectrpc/connect-node";
36-
import { CalloutHeadersRequest, CalloutBodyResponse, Context } from "./edge_binding.js";
36+
import { CalloutHeadersRequest, CalloutBodyResponse, XlbContext } from "./edge_binding.js";
3737

3838
class CalloutProcessor implements ServiceImpl<typeof ExternalProcessor> {
39-
ctx: Context;
39+
ctx: XlbContext;
4040

41-
constructor(ctx: Context) {
41+
constructor(ctx: XlbContext) {
4242
this.ctx = ctx;
4343
}
4444

@@ -87,7 +87,7 @@ function getPort(defaultPort: number): number {
8787
}
8888

8989
export async function start(config: RecaptchaConfig, defaultPort: number, listeningListener?: () => void) {
90-
const ctx = new Context(config);
90+
const ctx = new XlbContext(config);
9191
const routes = (router: ConnectRouter) => {
9292
router.service(ExternalProcessor, new CalloutProcessor(ctx));
9393
};

0 commit comments

Comments
 (0)