@sveltejs/kit 2.3.2 → 2.3.4
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 +5 -5
- package/src/runtime/app/environment/index.js +6 -0
- package/src/runtime/app/environment/types.d.ts +19 -0
- package/src/runtime/app/paths/index.js +8 -0
- package/src/runtime/app/paths/types.d.ts +28 -0
- package/src/runtime/client/client.js +18 -12
- package/src/runtime/client/fetcher.js +1 -0
- package/src/types/ambient-private.d.ts +16 -9
- package/src/types/ambient.d.ts +0 -38
- package/src/types/global-private.d.ts +11 -0
- package/src/version.js +1 -1
- package/types/index.d.ts +26 -41
- package/types/index.d.ts.map +7 -3
- package/src/runtime/app/environment.js +0 -12
- package/src/runtime/app/paths.js +0 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltejs/kit",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.4",
|
|
4
4
|
"description": "The fastest way to build Svelte apps",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"@types/sade": "^1.7.8",
|
|
33
33
|
"@types/set-cookie-parser": "^2.4.7",
|
|
34
34
|
"dts-buddy": "^0.4.3",
|
|
35
|
-
"rollup": "^4.
|
|
35
|
+
"rollup": "^4.9.5",
|
|
36
36
|
"svelte": "^4.2.8",
|
|
37
|
-
"svelte-preprocess": "^5.1.
|
|
37
|
+
"svelte-preprocess": "^5.1.3",
|
|
38
38
|
"typescript": "^5.3.3",
|
|
39
|
-
"vite": "^5.0.
|
|
40
|
-
"vitest": "^1.0
|
|
39
|
+
"vite": "^5.0.11",
|
|
40
|
+
"vitest": "^1.2.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@sveltejs/vite-plugin-svelte": "^3.0.0",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `true` if the app is running in the browser.
|
|
3
|
+
*/
|
|
4
|
+
export const browser: boolean;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Whether the dev server is running. This is not guaranteed to correspond to `NODE_ENV` or `MODE`.
|
|
8
|
+
*/
|
|
9
|
+
export const dev: boolean;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* SvelteKit analyses your app during the `build` step by running it. During this process, `building` is `true`. This also applies during prerendering.
|
|
13
|
+
*/
|
|
14
|
+
export const building: boolean;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The value of `config.kit.version.name`.
|
|
18
|
+
*/
|
|
19
|
+
export const version: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { base, assets } from '__sveltekit/paths';
|
|
2
|
+
import { base } from '__sveltekit/paths';
|
|
3
|
+
import { resolve_route } from '../../../utils/routing.js';
|
|
4
|
+
|
|
5
|
+
/** @type {import('./types.d.ts').resolveRoute} */
|
|
6
|
+
export function resolveRoute(id, params) {
|
|
7
|
+
return base + resolve_route(id, params);
|
|
8
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A string that matches [`config.kit.paths.base`](https://kit.svelte.dev/docs/configuration#paths).
|
|
3
|
+
*
|
|
4
|
+
* Example usage: `<a href="{base}/your-page">Link</a>`
|
|
5
|
+
*/
|
|
6
|
+
export let base: '' | `/${string}`;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* An absolute path that matches [`config.kit.paths.assets`](https://kit.svelte.dev/docs/configuration#paths).
|
|
10
|
+
*
|
|
11
|
+
* > If a value for `config.kit.paths.assets` is specified, it will be replaced with `'/_svelte_kit_assets'` during `vite dev` or `vite preview`, since the assets don't yet live at their eventual URL.
|
|
12
|
+
*/
|
|
13
|
+
export let assets: '' | `https://${string}` | `http://${string}` | '/_svelte_kit_assets';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Populate a route ID with params to resolve a pathname.
|
|
17
|
+
* @example
|
|
18
|
+
* ```js
|
|
19
|
+
* resolveRoute(
|
|
20
|
+
* `/blog/[slug]/[...somethingElse]`,
|
|
21
|
+
* {
|
|
22
|
+
* slug: 'hello-world',
|
|
23
|
+
* somethingElse: 'something/else'
|
|
24
|
+
* }
|
|
25
|
+
* ); // `/blog/hello-world/something/else`
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export function resolveRoute(id: string, params: Record<string, string | undefined>): string;
|
|
@@ -64,14 +64,20 @@ const scroll_positions = storage.get(SCROLL_KEY) ?? {};
|
|
|
64
64
|
*/
|
|
65
65
|
const snapshots = storage.get(SNAPSHOT_KEY) ?? {};
|
|
66
66
|
|
|
67
|
-
const original_push_state = BROWSER ? history.pushState : () => {};
|
|
68
|
-
const original_replace_state = BROWSER ? history.replaceState : () => {};
|
|
69
|
-
|
|
70
67
|
if (DEV && BROWSER) {
|
|
71
68
|
let warned = false;
|
|
72
69
|
|
|
73
70
|
const warn = () => {
|
|
74
71
|
if (warned) return;
|
|
72
|
+
|
|
73
|
+
// Rather than saving a pointer to the original history methods, which would prevent monkeypatching by other libs,
|
|
74
|
+
// inspect the stack trace to see if we're being called from within SvelteKit.
|
|
75
|
+
let stack = new Error().stack?.split('\n');
|
|
76
|
+
if (!stack) return;
|
|
77
|
+
if (!stack[0].includes('https:') && !stack[0].includes('http:')) stack = stack.slice(1); // Chrome includes the error message in the stack
|
|
78
|
+
stack = stack.slice(2); // remove `warn` and the place where `warn` was called
|
|
79
|
+
if (stack[0].includes(import.meta.url)) return;
|
|
80
|
+
|
|
75
81
|
warned = true;
|
|
76
82
|
|
|
77
83
|
console.warn(
|
|
@@ -79,14 +85,16 @@ if (DEV && BROWSER) {
|
|
|
79
85
|
);
|
|
80
86
|
};
|
|
81
87
|
|
|
88
|
+
const push_state = history.pushState;
|
|
82
89
|
history.pushState = (...args) => {
|
|
83
90
|
warn();
|
|
84
|
-
return
|
|
91
|
+
return push_state.apply(history, args);
|
|
85
92
|
};
|
|
86
93
|
|
|
94
|
+
const replace_state = history.replaceState;
|
|
87
95
|
history.replaceState = (...args) => {
|
|
88
96
|
warn();
|
|
89
|
-
return
|
|
97
|
+
return replace_state.apply(history, args);
|
|
90
98
|
};
|
|
91
99
|
}
|
|
92
100
|
|
|
@@ -252,8 +260,7 @@ export async function start(_app, _target, hydrate) {
|
|
|
252
260
|
current_history_index = current_navigation_index = Date.now();
|
|
253
261
|
|
|
254
262
|
// create initial history entry, so we can return here
|
|
255
|
-
|
|
256
|
-
history,
|
|
263
|
+
history.replaceState(
|
|
257
264
|
{
|
|
258
265
|
...history.state,
|
|
259
266
|
[HISTORY_INDEX]: current_history_index,
|
|
@@ -1296,7 +1303,7 @@ async function navigate({
|
|
|
1296
1303
|
[STATES_KEY]: state
|
|
1297
1304
|
};
|
|
1298
1305
|
|
|
1299
|
-
const fn = replace_state ?
|
|
1306
|
+
const fn = replace_state ? history.replaceState : history.pushState;
|
|
1300
1307
|
fn.call(history, entry, '', url);
|
|
1301
1308
|
|
|
1302
1309
|
if (!replace_state) {
|
|
@@ -1812,7 +1819,7 @@ export function pushState(url, state) {
|
|
|
1812
1819
|
[STATES_KEY]: state
|
|
1813
1820
|
};
|
|
1814
1821
|
|
|
1815
|
-
|
|
1822
|
+
history.pushState(opts, '', resolve_url(url));
|
|
1816
1823
|
|
|
1817
1824
|
page = { ...page, state };
|
|
1818
1825
|
root.$set({ page });
|
|
@@ -1849,7 +1856,7 @@ export function replaceState(url, state) {
|
|
|
1849
1856
|
[STATES_KEY]: state
|
|
1850
1857
|
};
|
|
1851
1858
|
|
|
1852
|
-
|
|
1859
|
+
history.replaceState(opts, '', resolve_url(url));
|
|
1853
1860
|
|
|
1854
1861
|
page = { ...page, state };
|
|
1855
1862
|
root.$set({ page });
|
|
@@ -2180,8 +2187,7 @@ function _start_router() {
|
|
|
2180
2187
|
// we need to update history, otherwise we have to leave it alone
|
|
2181
2188
|
if (hash_navigating) {
|
|
2182
2189
|
hash_navigating = false;
|
|
2183
|
-
|
|
2184
|
-
history,
|
|
2190
|
+
history.replaceState(
|
|
2185
2191
|
{
|
|
2186
2192
|
...history.state,
|
|
2187
2193
|
[HISTORY_INDEX]: ++current_history_index,
|
|
@@ -17,6 +17,7 @@ export function unlock_fetch() {
|
|
|
17
17
|
if (DEV && BROWSER) {
|
|
18
18
|
let can_inspect_stack_trace = false;
|
|
19
19
|
|
|
20
|
+
// detect whether async stack traces work
|
|
20
21
|
const check_stack_trace = async () => {
|
|
21
22
|
const stack = /** @type {string} */ (new Error().stack);
|
|
22
23
|
can_inspect_stack_trace = stack.includes('check_stack_trace');
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var Deno: object;
|
|
1
|
+
/** Internal version of $app/environment */
|
|
2
|
+
declare module '__sveltekit/environment' {
|
|
3
|
+
export const building: boolean;
|
|
4
|
+
export const prerendering: boolean;
|
|
5
|
+
export const version: string;
|
|
6
|
+
export function set_building(): void;
|
|
7
|
+
export function set_prerendering(): void;
|
|
9
8
|
}
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
/** Internal version of $app/paths */
|
|
11
|
+
declare module '__sveltekit/paths' {
|
|
12
|
+
export let base: '' | `/${string}`;
|
|
13
|
+
export let assets: '' | `https://${string}` | `http://${string}` | '/_svelte_kit_assets';
|
|
14
|
+
export let relative: boolean;
|
|
15
|
+
export function reset(): void;
|
|
16
|
+
export function override(paths: { base: string; assets: string }): void;
|
|
17
|
+
export function set_assets(path: string): void;
|
|
18
|
+
}
|
package/src/types/ambient.d.ts
CHANGED
|
@@ -79,41 +79,3 @@ declare module '$service-worker' {
|
|
|
79
79
|
*/
|
|
80
80
|
export const version: string;
|
|
81
81
|
}
|
|
82
|
-
|
|
83
|
-
/** Internal version of $app/environment */
|
|
84
|
-
declare module '__sveltekit/environment' {
|
|
85
|
-
/**
|
|
86
|
-
* SvelteKit analyses your app during the `build` step by running it. During this process, `building` is `true`. This also applies during prerendering.
|
|
87
|
-
*/
|
|
88
|
-
export const building: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* True during prerendering, false otherwise.
|
|
91
|
-
*/
|
|
92
|
-
export const prerendering: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* The value of `config.kit.version.name`.
|
|
95
|
-
*/
|
|
96
|
-
export const version: string;
|
|
97
|
-
export function set_building(): void;
|
|
98
|
-
export function set_prerendering(): void;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/** Internal version of $app/paths */
|
|
102
|
-
declare module '__sveltekit/paths' {
|
|
103
|
-
/**
|
|
104
|
-
* A string that matches [`config.kit.paths.base`](https://kit.svelte.dev/docs/configuration#paths).
|
|
105
|
-
*
|
|
106
|
-
* Example usage: `<a href="{base}/your-page">Link</a>`
|
|
107
|
-
*/
|
|
108
|
-
export let base: '' | `/${string}`;
|
|
109
|
-
/**
|
|
110
|
-
* An absolute path that matches [`config.kit.paths.assets`](https://kit.svelte.dev/docs/configuration#paths).
|
|
111
|
-
*
|
|
112
|
-
* > If a value for `config.kit.paths.assets` is specified, it will be replaced with `'/_svelte_kit_assets'` during `vite dev` or `vite preview`, since the assets don't yet live at their eventual URL.
|
|
113
|
-
*/
|
|
114
|
-
export let assets: '' | `https://${string}` | `http://${string}` | '/_svelte_kit_assets';
|
|
115
|
-
export let relative: boolean;
|
|
116
|
-
export function reset(): void;
|
|
117
|
-
export function override(paths: { base: string; assets: string }): void;
|
|
118
|
-
export function set_assets(path: string): void;
|
|
119
|
-
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
const __SVELTEKIT_ADAPTER_NAME__: string;
|
|
3
|
+
const __SVELTEKIT_APP_VERSION_FILE__: string;
|
|
4
|
+
const __SVELTEKIT_APP_VERSION_POLL_INTERVAL__: number;
|
|
5
|
+
const __SVELTEKIT_DEV__: boolean;
|
|
6
|
+
const __SVELTEKIT_EMBEDDED__: boolean;
|
|
7
|
+
var Bun: object;
|
|
8
|
+
var Deno: object;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export {};
|
package/src/version.js
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -1892,15 +1892,25 @@ declare module '@sveltejs/kit/vite' {
|
|
|
1892
1892
|
}
|
|
1893
1893
|
|
|
1894
1894
|
declare module '$app/environment' {
|
|
1895
|
-
export { building, version } from '__sveltekit/environment';
|
|
1896
1895
|
/**
|
|
1897
1896
|
* `true` if the app is running in the browser.
|
|
1898
1897
|
*/
|
|
1899
1898
|
export const browser: boolean;
|
|
1899
|
+
|
|
1900
1900
|
/**
|
|
1901
1901
|
* Whether the dev server is running. This is not guaranteed to correspond to `NODE_ENV` or `MODE`.
|
|
1902
1902
|
*/
|
|
1903
1903
|
export const dev: boolean;
|
|
1904
|
+
|
|
1905
|
+
/**
|
|
1906
|
+
* SvelteKit analyses your app during the `build` step by running it. During this process, `building` is `true`. This also applies during prerendering.
|
|
1907
|
+
*/
|
|
1908
|
+
export const building: boolean;
|
|
1909
|
+
|
|
1910
|
+
/**
|
|
1911
|
+
* The value of `config.kit.version.name`.
|
|
1912
|
+
*/
|
|
1913
|
+
export const version: string;
|
|
1904
1914
|
}
|
|
1905
1915
|
|
|
1906
1916
|
declare module '$app/forms' {
|
|
@@ -2067,7 +2077,20 @@ declare module '$app/navigation' {
|
|
|
2067
2077
|
}
|
|
2068
2078
|
|
|
2069
2079
|
declare module '$app/paths' {
|
|
2070
|
-
|
|
2080
|
+
/**
|
|
2081
|
+
* A string that matches [`config.kit.paths.base`](https://kit.svelte.dev/docs/configuration#paths).
|
|
2082
|
+
*
|
|
2083
|
+
* Example usage: `<a href="{base}/your-page">Link</a>`
|
|
2084
|
+
*/
|
|
2085
|
+
export let base: '' | `/${string}`;
|
|
2086
|
+
|
|
2087
|
+
/**
|
|
2088
|
+
* An absolute path that matches [`config.kit.paths.assets`](https://kit.svelte.dev/docs/configuration#paths).
|
|
2089
|
+
*
|
|
2090
|
+
* > If a value for `config.kit.paths.assets` is specified, it will be replaced with `'/_svelte_kit_assets'` during `vite dev` or `vite preview`, since the assets don't yet live at their eventual URL.
|
|
2091
|
+
*/
|
|
2092
|
+
export let assets: '' | `https://${string}` | `http://${string}` | '/_svelte_kit_assets';
|
|
2093
|
+
|
|
2071
2094
|
/**
|
|
2072
2095
|
* Populate a route ID with params to resolve a pathname.
|
|
2073
2096
|
* @example
|
|
@@ -2080,7 +2103,7 @@ declare module '$app/paths' {
|
|
|
2080
2103
|
* }
|
|
2081
2104
|
* ); // `/blog/hello-world/something/else`
|
|
2082
2105
|
* ```
|
|
2083
|
-
|
|
2106
|
+
*/
|
|
2084
2107
|
export function resolveRoute(id: string, params: Record<string, string | undefined>): string;
|
|
2085
2108
|
}
|
|
2086
2109
|
|
|
@@ -2198,42 +2221,4 @@ declare module '$service-worker' {
|
|
|
2198
2221
|
export const version: string;
|
|
2199
2222
|
}
|
|
2200
2223
|
|
|
2201
|
-
/** Internal version of $app/environment */
|
|
2202
|
-
declare module '__sveltekit/environment' {
|
|
2203
|
-
/**
|
|
2204
|
-
* SvelteKit analyses your app during the `build` step by running it. During this process, `building` is `true`. This also applies during prerendering.
|
|
2205
|
-
*/
|
|
2206
|
-
export const building: boolean;
|
|
2207
|
-
/**
|
|
2208
|
-
* True during prerendering, false otherwise.
|
|
2209
|
-
*/
|
|
2210
|
-
export const prerendering: boolean;
|
|
2211
|
-
/**
|
|
2212
|
-
* The value of `config.kit.version.name`.
|
|
2213
|
-
*/
|
|
2214
|
-
export const version: string;
|
|
2215
|
-
export function set_building(): void;
|
|
2216
|
-
export function set_prerendering(): void;
|
|
2217
|
-
}
|
|
2218
|
-
|
|
2219
|
-
/** Internal version of $app/paths */
|
|
2220
|
-
declare module '__sveltekit/paths' {
|
|
2221
|
-
/**
|
|
2222
|
-
* A string that matches [`config.kit.paths.base`](https://kit.svelte.dev/docs/configuration#paths).
|
|
2223
|
-
*
|
|
2224
|
-
* Example usage: `<a href="{base}/your-page">Link</a>`
|
|
2225
|
-
*/
|
|
2226
|
-
export let base: '' | `/${string}`;
|
|
2227
|
-
/**
|
|
2228
|
-
* An absolute path that matches [`config.kit.paths.assets`](https://kit.svelte.dev/docs/configuration#paths).
|
|
2229
|
-
*
|
|
2230
|
-
* > If a value for `config.kit.paths.assets` is specified, it will be replaced with `'/_svelte_kit_assets'` during `vite dev` or `vite preview`, since the assets don't yet live at their eventual URL.
|
|
2231
|
-
*/
|
|
2232
|
-
export let assets: '' | `https://${string}` | `http://${string}` | '/_svelte_kit_assets';
|
|
2233
|
-
export let relative: boolean;
|
|
2234
|
-
export function reset(): void;
|
|
2235
|
-
export function override(paths: { base: string; assets: string }): void;
|
|
2236
|
-
export function set_assets(path: string): void;
|
|
2237
|
-
}
|
|
2238
|
-
|
|
2239
2224
|
//# sourceMappingURL=index.d.ts.map
|
package/types/index.d.ts.map
CHANGED
|
@@ -90,6 +90,8 @@
|
|
|
90
90
|
"sveltekit",
|
|
91
91
|
"browser",
|
|
92
92
|
"dev",
|
|
93
|
+
"building",
|
|
94
|
+
"version",
|
|
93
95
|
"deserialize",
|
|
94
96
|
"enhance",
|
|
95
97
|
"applyAction",
|
|
@@ -104,6 +106,8 @@
|
|
|
104
106
|
"preloadCode",
|
|
105
107
|
"pushState",
|
|
106
108
|
"replaceState",
|
|
109
|
+
"base",
|
|
110
|
+
"assets",
|
|
107
111
|
"resolveRoute",
|
|
108
112
|
"getStores",
|
|
109
113
|
"page",
|
|
@@ -121,10 +125,10 @@
|
|
|
121
125
|
"../src/exports/node/index.js",
|
|
122
126
|
"../src/exports/node/polyfills.js",
|
|
123
127
|
"../src/exports/vite/index.js",
|
|
124
|
-
"../src/runtime/app/environment.
|
|
128
|
+
"../src/runtime/app/environment/types.d.ts",
|
|
125
129
|
"../src/runtime/app/forms.js",
|
|
126
130
|
"../src/runtime/client/client.js",
|
|
127
|
-
"../src/runtime/app/paths.
|
|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;;;;;;;;;;;;;;;;;;iBCWJC,WAAWA;;;;;;;;;;;;;;;;;;;;;iBAyCXC,OAAOA;;;;;;;iBC0wDDC,WAAWA;;;;;;;;;iBA5RjBC,aAAaA;;;;;;;;;;;;iBAiBbC,cAAcA;;;;;;;;;;iBAedC,UAAUA;;;;;iBASVC,qBAAqBA;;;;;;;;iBA2BrBC,IAAIA;;;;;;;;;;;;;;;;;;;;;;;;iBAsCJC,UAAUA;;;;iBAmBVC,aAAaA;;;;;;;;;;;;iBAqBPC,WAAWA;;;;;;;;;;;;;;;;;;iBAoCjBC,WAAWA;;;;;iBA2BXC,SAASA;;;;;iBAuCTC,YAAYA;MVhpDhB1D,YAAYA;;;;;;;;;YWvJb2D,IAAIA;;;;;;;YAOJC,MAAMA;;;;;;;;;;;;;;;iBAeDC,YAAYA;;;;iBCnBfC,SAASA;;;;;;;;;;;;;;cAwBTC,IAAIA;;;;;;;;cAeJC,UAAUA;;;;;;cAaVC,OAAOA"
|
|
148
152
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BROWSER, DEV } from 'esm-env';
|
|
2
|
-
export { building, version } from '__sveltekit/environment';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* `true` if the app is running in the browser.
|
|
6
|
-
*/
|
|
7
|
-
export const browser = BROWSER;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Whether the dev server is running. This is not guaranteed to correspond to `NODE_ENV` or `MODE`.
|
|
11
|
-
*/
|
|
12
|
-
export const dev = DEV;
|
package/src/runtime/app/paths.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export { base, assets } from '__sveltekit/paths';
|
|
2
|
-
import { base } from '__sveltekit/paths';
|
|
3
|
-
import { resolve_route } from '../../utils/routing.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Populate a route ID with params to resolve a pathname.
|
|
7
|
-
* @example
|
|
8
|
-
* ```js
|
|
9
|
-
* resolveRoute(
|
|
10
|
-
* `/blog/[slug]/[...somethingElse]`,
|
|
11
|
-
* {
|
|
12
|
-
* slug: 'hello-world',
|
|
13
|
-
* somethingElse: 'something/else'
|
|
14
|
-
* }
|
|
15
|
-
* ); // `/blog/hello-world/something/else`
|
|
16
|
-
* ```
|
|
17
|
-
* @param {string} id
|
|
18
|
-
* @param {Record<string, string | undefined>} params
|
|
19
|
-
* @returns {string}
|
|
20
|
-
*/
|
|
21
|
-
export function resolveRoute(id, params) {
|
|
22
|
-
return base + resolve_route(id, params);
|
|
23
|
-
}
|