diff --git a/mod.ts b/mod.ts index 6d82f0c..dfbc4d6 100644 --- a/mod.ts +++ b/mod.ts @@ -1,4 +1,4 @@ -import { ConnInfo } from 'https://deno.land/std@0.148.0/http/server.ts' +import { ConnInfo } from 'https://deno.land/std@0.167.0/http/server.ts' export type RequestWithConnection = Request & { conn: ConnInfo } diff --git a/mod_test.ts b/mod_test.ts index 802ade9..821821c 100644 --- a/mod_test.ts +++ b/mod_test.ts @@ -1,6 +1,6 @@ import type { RequestWithConnection } from './mod.ts' import { forwarded } from './mod.ts' -import { ConnInfo } from 'https://deno.land/std@0.148.0/http/server.ts' +import { ConnInfo } from 'https://deno.land/std@0.167.0/http/server.ts' import { describe, it, expect, run } from 'https://deno.land/x/tincan@1.0.1/mod.ts' const createReq = (hostname: string, headers?: Record): RequestWithConnection => @@ -13,7 +13,7 @@ const createReq = (hostname: string, headers?: Record): RequestW } } as ConnInfo, headers: new Headers(headers || {}) - } as any) + } as unknown as RequestWithConnection) describe('forwarded(req)', () => { it('should work with `X-Forwarded-For` header', () => {