@sveltejs/kit 1.20.0 → 1.20.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.20.0",
3
+ "version": "1.20.2",
4
4
  "description": "The fastest way to build Svelte apps",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,6 +17,7 @@
17
17
  align-items: center;
18
18
  justify-content: center;
19
19
  height: 100vh;
20
+ margin: 0;
20
21
  }
21
22
 
22
23
  .error {
@@ -79,8 +79,9 @@ export async function build_service_worker(
79
79
  outDir: `${out}/client`,
80
80
  emptyOutDir: false
81
81
  },
82
- define: vite_config.define,
83
82
  configFile: false,
83
+ define: vite_config.define,
84
+ publicDir: false,
84
85
  resolve: {
85
86
  alias: [...get_config_aliases(kit), { find: '$service-worker', replacement: service_worker }]
86
87
  }
@@ -69,8 +69,8 @@ const valid_layout_exports = new Set([
69
69
  'config'
70
70
  ]);
71
71
  const valid_page_exports = new Set([...valid_layout_exports, 'entries']);
72
- const valid_layout_server_exports = new Set([...valid_layout_exports, 'actions']);
73
- const valid_page_server_exports = new Set([...valid_layout_server_exports, 'entries']);
72
+ const valid_layout_server_exports = new Set([...valid_layout_exports]);
73
+ const valid_page_server_exports = new Set([...valid_layout_server_exports, 'actions', 'entries']);
74
74
  const valid_server_exports = new Set([
75
75
  'GET',
76
76
  'POST',
@@ -168,7 +168,7 @@ export function exec(match, params, matchers) {
168
168
  // and the next value is defined, otherwise the buffer will cause us to skip values
169
169
  const next_param = params[i + 1];
170
170
  const next_value = values[i + 1];
171
- if (next_param && !next_param.rest && next_param.optional && next_value) {
171
+ if (next_param && !next_param.rest && next_param.optional && next_value && param.chained) {
172
172
  buffered = 0;
173
173
  }
174
174
  continue;