@sveltejs/kit 1.9.1 → 1.9.3
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
|
@@ -334,7 +334,7 @@ function kit({ svelte_config }) {
|
|
|
334
334
|
|
|
335
335
|
async load(id, options) {
|
|
336
336
|
const browser = !options?.ssr;
|
|
337
|
-
const global = `__sveltekit_${version_hash}`;
|
|
337
|
+
const global = `globalThis.__sveltekit_${version_hash}`;
|
|
338
338
|
|
|
339
339
|
if (options?.ssr === false && process.env.TEST !== 'true') {
|
|
340
340
|
const normalized_cwd = vite.normalizePath(cwd);
|
package/src/utils/routing.js
CHANGED
|
@@ -152,6 +152,14 @@ export function exec(match, params, matchers) {
|
|
|
152
152
|
|
|
153
153
|
if (!param.matcher || matchers[param.matcher](value)) {
|
|
154
154
|
result[param.name] = value;
|
|
155
|
+
|
|
156
|
+
// Now that the params match, reset the buffer if the next param isn't the [...rest]
|
|
157
|
+
// and the next value is defined, otherwise the buffer will cause us to skip values
|
|
158
|
+
const next_param = params[i + 1];
|
|
159
|
+
const next_value = values[i + 1];
|
|
160
|
+
if (next_param && !next_param.rest && next_value) {
|
|
161
|
+
buffered = 0;
|
|
162
|
+
}
|
|
155
163
|
continue;
|
|
156
164
|
}
|
|
157
165
|
|