@sveltejs/kit 1.0.0-next.370 → 1.0.0-next.371
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/dist/cli.js +1 -1
- package/package.json +2 -3
- package/types/index.d.ts +3 -1
package/dist/cli.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltejs/kit",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.371",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/sveltejs/kit",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"homepage": "https://kit.svelte.dev",
|
|
11
11
|
"type": "module",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@sveltejs/vite-plugin-svelte": "
|
|
13
|
+
"@sveltejs/vite-plugin-svelte": "1.0.0-next.49",
|
|
14
14
|
"chokidar": "^3.5.3",
|
|
15
15
|
"sade": "^1.8.1"
|
|
16
16
|
},
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
"marked": "^4.0.16",
|
|
34
34
|
"mime": "^3.0.0",
|
|
35
35
|
"node-fetch": "^3.2.4",
|
|
36
|
-
"port-authority": "^2.0.1",
|
|
37
36
|
"rollup": "^2.75.3",
|
|
38
37
|
"selfsigned": "^2.0.1",
|
|
39
38
|
"set-cookie-parser": "^2.4.8",
|
package/types/index.d.ts
CHANGED
|
@@ -246,7 +246,9 @@ export interface RequestEvent<Params extends Record<string, string> = Record<str
|
|
|
246
246
|
/**
|
|
247
247
|
* A `(event: RequestEvent) => RequestHandlerOutput` function exported from an endpoint that corresponds to an HTTP verb (`get`, `put`, `patch`, etc) and handles requests with that method. Note that since 'delete' is a reserved word in JavaScript, delete handles are called `del` instead.
|
|
248
248
|
*
|
|
249
|
-
*
|
|
249
|
+
* It receives `Params` as the first generic argument, which you can skip by using [generated types](/docs/types#generated-types) instead.
|
|
250
|
+
*
|
|
251
|
+
* The next generic argument `Output` is used to validate the returned `body` from your functions by passing it through `BodyValidator`, which will make sure the variable in the `body` matches what with you assign here. It defaults to `ResponseBody`, which will error when `body` receives a [custom object type](https://www.typescriptlang.org/docs/handbook/2/objects.html).
|
|
250
252
|
*/
|
|
251
253
|
export interface RequestHandler<
|
|
252
254
|
Params extends Record<string, string> = Record<string, string>,
|