@sveltejs/kit 1.0.0-next.232 → 1.0.0-next.236
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/assets/app/navigation.js +1 -3
- package/assets/client/singletons.js +5 -2
- package/assets/server/index.js +275 -450
- package/dist/chunks/{build.js → http.js} +23 -1
- package/dist/chunks/index.js +280 -446
- package/dist/chunks/index3.js +15 -20
- package/dist/chunks/index5.js +24 -39
- package/dist/chunks/index6.js +16 -13
- package/dist/chunks/url.js +1 -23
- package/dist/cli.js +28 -7
- package/dist/hooks.js +8 -8
- package/dist/node.js +27 -1
- package/package.json +1 -1
- package/types/ambient-modules.d.ts +11 -14
- package/types/app.d.ts +3 -17
- package/types/config.d.ts +0 -6
- package/types/endpoint.d.ts +11 -13
- package/types/helper.d.ts +4 -25
- package/types/hooks.d.ts +15 -28
- package/types/index.d.ts +2 -10
- package/types/internal.d.ts +11 -14
- package/types/page.d.ts +29 -17
package/assets/app/navigation.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { renderer, router
|
|
1
|
+
import { renderer, router } from '../client/singletons.js';
|
|
2
2
|
import { g as get_base_uri } from '../chunks/utils.js';
|
|
3
3
|
|
|
4
|
-
const router = /** @type {import('../client/router').Router} */ (router$1);
|
|
5
|
-
|
|
6
4
|
/**
|
|
7
5
|
* @param {string} name
|
|
8
6
|
*/
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* The router is nullable, but not typed that way for ease-of-use
|
|
3
|
+
* @type {import('./router').Router}
|
|
4
|
+
*/
|
|
2
5
|
let router;
|
|
3
6
|
|
|
4
7
|
/** @type {import('./renderer').Renderer} */
|
|
@@ -11,7 +14,7 @@ let renderer;
|
|
|
11
14
|
* }} opts
|
|
12
15
|
*/
|
|
13
16
|
function init(opts) {
|
|
14
|
-
router = opts.router;
|
|
17
|
+
router = /** @type {import('../client/router').Router} */ (opts.router);
|
|
15
18
|
renderer = opts.renderer;
|
|
16
19
|
}
|
|
17
20
|
|