@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
|
@@ -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
|
}
|
package/src/utils/exports.js
CHANGED
|
@@ -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
|
|
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',
|
package/src/utils/routing.js
CHANGED
|
@@ -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;
|