Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit 5925858

Browse files
author
v1rtl
committed
replace type_is fork with original module
1 parent 472bbb4 commit 5925858

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

deps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export { Accepts } from 'https://deno.land/x/accepts@2.1.0/mod.ts'
99
export { encodeUrl } from 'https://deno.land/x/encodeurl@1.0.0/mod.ts'
1010
export { charset, contentType, lookup } from 'https://deno.land/x/media_types@v2.8.2/mod.ts'
1111
export { default as rg } from 'https://esm.sh/regexparam'
12-
export { forwarded } from 'https://deno.land/x/forwarded@0.0.4/mod.ts'
13-
export * from 'https://deno.land/x/proxy_addr@0.0.1/mod.ts'
12+
export { forwarded } from 'https://deno.land/x/forwarded@0.0.5/mod.ts'
13+
export * from 'https://deno.land/x/proxy_addr@0.0.2/mod.ts'
1414
import type { ServerRequest as Req, Response as ServerResponse } from 'https://deno.land/std@0.95.0/http/server.ts'
1515

1616
interface Res extends ServerResponse {

egg.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@
44
"entry": "./mod.ts",
55
"description": "0-legacy, tiny & fast web framework as a replacement of Express",
66
"homepage": "https://github.com/talentlessguy/tinyhttp-deno",
7-
"version": "0.1.0",
8-
"files": [
9-
"./*.ts",
10-
"./utils/*.ts",
11-
"./extensions/**/*.ts",
12-
"README.md"
13-
],
7+
"version": "0.1.2",
8+
"files": ["./*.ts", "./utils/*.ts", "./extensions/**/*.ts", "README.md"],
149
"checkFormat": false,
1510
"checkTests": false,
1611
"checkInstallation": false,

extensions/req/headers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Req, Res, parseRange, ParseRangeOptions } from '../../deps.ts'
22
import fresh from 'https://deno.land/x/fresh@v1.0.0/mod.ts'
3-
import { is } from 'https://denopkg.com/talentlessguy/type_is'
3+
import { is } from 'https://deno.land/x/type_is@1.0.3/mod.ts'
44

55
export const getRequestHeader = <Request extends Req = Req>(req: Request) => (header: string) => {
66
const lc = header.toLowerCase()

0 commit comments

Comments
 (0)