@sveltejs/kit 1.0.1 → 1.0.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/kit",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",
@@ -34,11 +34,11 @@
34
34
  "@types/set-cookie-parser": "^2.4.2",
35
35
  "marked": "^4.2.3",
36
36
  "rollup": "^3.7.0",
37
- "svelte": "^3.54.0",
37
+ "svelte": "^3.55.0",
38
38
  "svelte-preprocess": "^5.0.0",
39
- "typescript": "^4.9.3",
39
+ "typescript": "^4.9.4",
40
40
  "uvu": "^0.5.6",
41
- "vite": "^4.0.0"
41
+ "vite": "^4.0.4"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "svelte": "^3.54.0",
@@ -62,7 +62,7 @@ export async function render_page(event, route, page, options, state, resolve_op
62
62
  // (this also determines status code)
63
63
  action_result = await handle_action_request(event, leaf_node.server);
64
64
  if (action_result?.type === 'redirect') {
65
- return redirect_response(303, action_result.location);
65
+ return redirect_response(action_result.status, action_result.location);
66
66
  }
67
67
  if (action_result?.type === 'error') {
68
68
  const error = action_result.error;
@@ -211,7 +211,7 @@ export async function load_data({
211
211
  const included = resolve_opts.filterSerializedResponseHeaders(lower, value);
212
212
  if (!included) {
213
213
  throw new Error(
214
- `Failed to get response header "${lower}" — it must be included by the \`filterSerializedResponseHeaders\` option: https://kit.svelte.dev/docs/hooks#server-hooks-handle (at ${event.route})`
214
+ `Failed to get response header "${lower}" — it must be included by the \`filterSerializedResponseHeaders\` option: https://kit.svelte.dev/docs/hooks#server-hooks-handle (at ${event.route.id})`
215
215
  );
216
216
  }
217
217
  }