File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ export class ImmediateResponse implements EdgeResponse {
244
244
}
245
245
}
246
246
247
- export class Context extends RecaptchaContext {
247
+ export class XlbContext extends RecaptchaContext {
248
248
readonly sessionPageCookie = "recaptcha-gxlb-t" ;
249
249
readonly challengePageCookie = "recaptcha-gxlb-e" ;
250
250
readonly httpGetCachingEnabled = true ;
Original file line number Diff line number Diff line change @@ -33,12 +33,12 @@ import {
33
33
34
34
import * as http2 from "http2" ;
35
35
import { connectNodeAdapter } from "@connectrpc/connect-node" ;
36
- import { CalloutHeadersRequest , CalloutBodyResponse , Context } from "./edge_binding.js" ;
36
+ import { CalloutHeadersRequest , CalloutBodyResponse , XlbContext } from "./edge_binding.js" ;
37
37
38
38
class CalloutProcessor implements ServiceImpl < typeof ExternalProcessor > {
39
- ctx : Context ;
39
+ ctx : XlbContext ;
40
40
41
- constructor ( ctx : Context ) {
41
+ constructor ( ctx : XlbContext ) {
42
42
this . ctx = ctx ;
43
43
}
44
44
@@ -87,7 +87,7 @@ function getPort(defaultPort: number): number {
87
87
}
88
88
89
89
export async function start ( config : RecaptchaConfig , defaultPort : number , listeningListener ?: ( ) => void ) {
90
- const ctx = new Context ( config ) ;
90
+ const ctx = new XlbContext ( config ) ;
91
91
const routes = ( router : ConnectRouter ) => {
92
92
router . service ( ExternalProcessor , new CalloutProcessor ( ctx ) ) ;
93
93
} ;
You can’t perform that action at this time.
0 commit comments