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

Commit 58b6378

Browse files
author
v1rtl
committed
make some of app's methods chainable
1 parent f838c06 commit 58b6378

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

app.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,17 @@ export class App<
146146

147147
set(setting: string, value: any) {
148148
this.settings[setting] = value
149+
return this
149150
}
150151

151152
enable(setting: string) {
152153
this.settings[setting] = true
154+
return this
153155
}
154156

155157
disable(setting: string) {
156158
this.settings[setting] = false
159+
return this
157160
}
158161

159162
/**

deps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export { isIP } from 'https://deno.land/x/isIP@1.0.0/mod.ts'
88
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.4/mod.ts'
11-
export { default as rg } from 'https://deno.land/x/regexparam@v1.3.0/src/index.js'
11+
export { parse as rg } from 'https://deno.land/x/regexparam@v2.0.0/src/index.js'
1212
export { forwarded } from 'https://deno.land/x/forwarded@0.0.5/mod.ts'
1313
export * from 'https://deno.land/x/proxy_addr@0.0.4/mod.ts'
1414
import type { ServerRequest as Req, Response as ServerResponse } from 'https://deno.land/std@0.97.0/http/server.ts'

egg.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
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.4",
7+
"version": "0.1.6",
88
"files": [
99
"./*.ts",
1010
"./utils/*.ts",
1111
"./extensions/**/*.ts",
1212
"README.md"
1313
],
1414
"checkFormat": false,
15-
"checkTests": false,
15+
"checkTests": true,
1616
"checkInstallation": false,
1717
"check": true,
1818
"unlisted": false,

0 commit comments

Comments
 (0)