0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 11:51:01 +01:00
hono/deno_dist/utils
Yusuke Wada 46c6a8de5e
feat(middleware): introduce "built-in" Validator Middleware (#505)
* feat(middleware): introduce built-in Validator Middleware

* fixed type of `req.json()`

* Feat/builtin validator middleware another idea (#508)

* Enable overwriting of query/header data.

* Returns only verified data.

* rename `index.test.ts` to `middleware.test.ts`

* add `removeAdditional` option

* handling error that the JSON body is null

* tidy

* check is it string or not

* implement `isIn`

* enable validation the valies are duplicate

Co-authored-by: Taku Amano <taku@taaas.jp>
2022-09-13 07:54:06 +09:00
..
jwt chore: fix typo in error class name (#393) 2022-07-17 08:54:43 +09:00
body.ts fix: make that c.req.parseBody parses only FormData (#487) 2022-08-27 11:38:48 +09:00
buffer.ts feat: support Deno! (#336) 2022-07-02 15:09:45 +09:00
cloudflare.ts chore: update deno_dist files 2022-07-02 23:22:51 +09:00
cookie.ts chore: denoify 2022-07-15 08:40:15 +09:00
crypto.ts fix(ETag): fixed an error when the file size is too large. (#461) 2022-08-09 10:35:30 +09:00
encode.ts feat: support Deno! (#336) 2022-07-02 15:09:45 +09:00
filepath.ts feat: add serve-static middlware for deno (#339) 2022-07-02 23:20:09 +09:00
html.ts refactor(utils/html): remove escape function (#450) 2022-08-03 11:39:36 +09:00
http-status.ts feat: support Deno! (#336) 2022-07-02 15:09:45 +09:00
json.ts feat(middleware): introduce "built-in" Validator Middleware (#505) 2022-09-13 07:54:06 +09:00
mime.ts refactor(mime): made .ico file's extension to image/x-icon (#462) 2022-08-09 10:51:08 +09:00
url.ts perf(req): improve c.req.query performance (#498) 2022-09-05 19:08:10 +09:00