@tinyhttp/app 2.0.13 → 2.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinyhttp/app",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.15",
|
|
4
4
|
"description": "0-legacy, tiny & fast web framework as a replacement of Express",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://tinyhttp.v1rtl.site",
|
|
@@ -34,13 +34,14 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@tinyhttp/cookie": "2.0.3",
|
|
36
36
|
"@tinyhttp/proxy-addr": "2.0.2",
|
|
37
|
-
"@tinyhttp/req": "2.0.
|
|
38
|
-
"@tinyhttp/res": "2.0.
|
|
37
|
+
"@tinyhttp/req": "2.0.10",
|
|
38
|
+
"@tinyhttp/res": "2.0.11",
|
|
39
39
|
"@tinyhttp/router": "2.0.4",
|
|
40
|
-
"header-range-parser": "
|
|
40
|
+
"header-range-parser": "1.1.1",
|
|
41
41
|
"regexparam": "^2.0.0"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "rollup -c"
|
|
45
|
-
}
|
|
45
|
+
},
|
|
46
|
+
"readme": "# @tinyhttp/app\n\nThe core of tinyhttp. Contains the `App`, `Request` and `Response`. Additionally, it provides special tinyhttp-specific types.\n\n## Install\n\n```sh\npnpm i @tinyhttp/app\n```\n\n## Example\n\n```ts\nimport { App } from '@tinyhttp/app'\nimport type { Request, Response, NextFunction } from '@tinyhttp/app'\n\nnew App()\n .use((req: Request, res: Response, next: NextFunction) => {\n console.log('Did a request')\n next()\n })\n .get('/', (_, res) => res.send('<h1>Hello World</h1>'))\n .get('/page/:page', (req, res) => res.send(`You opened ${req.params.page}`))\n .listen(3000)\n```\n"
|
|
46
47
|
}
|