@sveltejs/kit 1.0.0-next.27 → 1.0.0-next.273

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.
Files changed (86) hide show
  1. package/README.md +12 -9
  2. package/assets/app/env.js +20 -0
  3. package/assets/app/navigation.js +79 -0
  4. package/assets/app/paths.js +1 -0
  5. package/assets/app/stores.js +97 -0
  6. package/assets/chunks/utils.js +13 -0
  7. package/assets/client/singletons.js +21 -0
  8. package/assets/client/start.js +1520 -0
  9. package/assets/components/error.svelte +18 -2
  10. package/assets/env.js +8 -0
  11. package/assets/paths.js +13 -0
  12. package/assets/server/index.js +2760 -0
  13. package/dist/chunks/amp_hook.js +56 -0
  14. package/dist/chunks/build.js +658 -0
  15. package/dist/chunks/cert.js +28154 -0
  16. package/dist/chunks/index.js +467 -0
  17. package/dist/chunks/index2.js +836 -0
  18. package/dist/chunks/index3.js +638 -0
  19. package/dist/chunks/index4.js +115 -0
  20. package/dist/chunks/index5.js +891 -0
  21. package/dist/chunks/index6.js +170 -0
  22. package/dist/chunks/index7.js +15584 -0
  23. package/dist/chunks/index8.js +4207 -0
  24. package/dist/chunks/misc.js +3 -0
  25. package/dist/chunks/multipart-parser.js +449 -0
  26. package/dist/cli.js +1132 -86
  27. package/dist/hooks.js +28 -0
  28. package/dist/install-fetch.js +6518 -0
  29. package/dist/node.js +95 -0
  30. package/package.json +96 -54
  31. package/svelte-kit.js +2 -0
  32. package/types/ambient-modules.d.ts +208 -0
  33. package/types/app.d.ts +35 -0
  34. package/types/config.d.ts +200 -0
  35. package/types/csp.d.ts +115 -0
  36. package/types/endpoint.d.ts +39 -0
  37. package/types/helper.d.ts +23 -0
  38. package/types/hooks.d.ts +37 -0
  39. package/types/index.d.ts +24 -0
  40. package/types/internal.d.ts +260 -0
  41. package/types/page.d.ts +33 -0
  42. package/CHANGELOG.md +0 -319
  43. package/assets/runtime/app/navigation.js +0 -23
  44. package/assets/runtime/app/navigation.js.map +0 -1
  45. package/assets/runtime/app/paths.js +0 -2
  46. package/assets/runtime/app/paths.js.map +0 -1
  47. package/assets/runtime/app/stores.js +0 -78
  48. package/assets/runtime/app/stores.js.map +0 -1
  49. package/assets/runtime/internal/singletons.js +0 -15
  50. package/assets/runtime/internal/singletons.js.map +0 -1
  51. package/assets/runtime/internal/start.js +0 -591
  52. package/assets/runtime/internal/start.js.map +0 -1
  53. package/assets/runtime/utils-85ebcc60.js +0 -18
  54. package/assets/runtime/utils-85ebcc60.js.map +0 -1
  55. package/dist/api.js +0 -44
  56. package/dist/api.js.map +0 -1
  57. package/dist/build.js +0 -246
  58. package/dist/build.js.map +0 -1
  59. package/dist/cli.js.map +0 -1
  60. package/dist/colors.js +0 -37
  61. package/dist/colors.js.map +0 -1
  62. package/dist/create_app.js +0 -580
  63. package/dist/create_app.js.map +0 -1
  64. package/dist/index.js +0 -368
  65. package/dist/index.js.map +0 -1
  66. package/dist/index2.js +0 -12035
  67. package/dist/index2.js.map +0 -1
  68. package/dist/index3.js +0 -547
  69. package/dist/index3.js.map +0 -1
  70. package/dist/index4.js +0 -74
  71. package/dist/index4.js.map +0 -1
  72. package/dist/index5.js +0 -464
  73. package/dist/index5.js.map +0 -1
  74. package/dist/index6.js +0 -734
  75. package/dist/index6.js.map +0 -1
  76. package/dist/logging.js +0 -43
  77. package/dist/logging.js.map +0 -1
  78. package/dist/package.js +0 -432
  79. package/dist/package.js.map +0 -1
  80. package/dist/renderer.js +0 -2403
  81. package/dist/renderer.js.map +0 -1
  82. package/dist/standard.js +0 -101
  83. package/dist/standard.js.map +0 -1
  84. package/dist/utils.js +0 -58
  85. package/dist/utils.js.map +0 -1
  86. package/svelte-kit +0 -3
@@ -0,0 +1,33 @@
1
+ import { Fallthrough } from './endpoint';
2
+ import { Either, MaybePromise } from './helper';
3
+
4
+ export interface LoadInput<Params = Record<string, string>> {
5
+ url: URL;
6
+ params: Params;
7
+ props: Record<string, any>;
8
+ fetch(info: RequestInfo, init?: RequestInit): Promise<Response>;
9
+ session: App.Session;
10
+ stuff: Partial<App.Stuff>;
11
+ }
12
+
13
+ export interface ErrorLoadInput<Params = Record<string, string>> extends LoadInput<Params> {
14
+ status?: number;
15
+ error?: Error;
16
+ }
17
+
18
+ export interface LoadOutput<Props = Record<string, any>> {
19
+ status?: number;
20
+ error?: string | Error;
21
+ redirect?: string;
22
+ props?: Props;
23
+ stuff?: Partial<App.Stuff>;
24
+ maxage?: number;
25
+ }
26
+
27
+ export interface Load<Params = Record<string, string>, Props = Record<string, any>> {
28
+ (input: LoadInput<Params>): MaybePromise<Either<Fallthrough, LoadOutput<Props>>>;
29
+ }
30
+
31
+ export interface ErrorLoad<Params = Record<string, string>, Props = Record<string, any>> {
32
+ (input: ErrorLoadInput<Params>): MaybePromise<LoadOutput<Props>>;
33
+ }
package/CHANGELOG.md DELETED
@@ -1,319 +0,0 @@
1
- # @sveltejs/kit
2
-
3
- ## 1.0.0-next.27
4
-
5
- ### Patch Changes
6
-
7
- - Fail build if prerender errors
8
- - Hide logging behind --verbose option
9
-
10
- ## 1.0.0-next.26
11
-
12
- ### Patch Changes
13
-
14
- - Fix svelte-announcer CSS
15
-
16
- ## 1.0.0-next.25
17
-
18
- ### Patch Changes
19
-
20
- - Surface stack traces for endpoint/page rendering errors
21
-
22
- ## 1.0.0-next.24
23
-
24
- ### Patch Changes
25
-
26
- - 26643df: Account for config.paths when prerendering
27
-
28
- ## 1.0.0-next.23
29
-
30
- ### Patch Changes
31
-
32
- - 9b758aa: Upgrade to Snowpack 3
33
-
34
- ## 1.0.0-next.22
35
-
36
- ### Patch Changes
37
-
38
- - bb68595: use readFileSync instead of createReadStream
39
-
40
- ## 1.0.0-next.21
41
-
42
- ### Patch Changes
43
-
44
- - 217e4cc: Set paths to empty string before prerender
45
-
46
- ## 1.0.0-next.20
47
-
48
- ### Patch Changes
49
-
50
- - ccf4aa7: Implement prerender config
51
-
52
- ## 1.0.0-next.19
53
-
54
- ### Patch Changes
55
-
56
- - deda984: Make navigating store contain from and to properties
57
-
58
- ## 1.0.0-next.18
59
-
60
- ### Patch Changes
61
-
62
- - c29b61e: Announce page changes
63
- - 72da270: Reset focus properly
64
-
65
- ## 1.0.0-next.17
66
-
67
- ### Patch Changes
68
-
69
- - f7dea55: Set process.env.NODE_ENV when invoking via the CLI
70
-
71
- ## 1.0.0-next.16
72
-
73
- ### Patch Changes
74
-
75
- - Remove temporary logging
76
- - Add sveltekit:prefetch and sveltekit:noscroll
77
-
78
- ## 1.0.0-next.15
79
-
80
- ### Patch Changes
81
-
82
- - 6d1bb11: Fix AMP CSS
83
- - d8b53af: Ignore $layout and $error files when finding static paths
84
- - Better scroll tracking
85
-
86
- ## 1.0.0-next.14
87
-
88
- ### Patch Changes
89
-
90
- - Fix dev loader
91
-
92
- ## 1.0.0-next.13
93
-
94
- ### Patch Changes
95
-
96
- - 1ea4d6b: More robust CSS extraction
97
-
98
- ## 1.0.0-next.12
99
-
100
- ### Patch Changes
101
-
102
- - e7c88dd: Tweak AMP validation screen
103
-
104
- ## 1.0.0-next.11
105
-
106
- ### Patch Changes
107
-
108
- - a31f218: Fix SSR loader invalidation
109
-
110
- ## 1.0.0-next.10
111
-
112
- ### Patch Changes
113
-
114
- - 8b14d29: Omit svelte-data scripts from AMP pages
115
-
116
- ## 1.0.0-next.9
117
-
118
- ### Patch Changes
119
-
120
- - f5fa223: AMP support
121
- - 47f2ee1: Always remove trailing slashes
122
- - 1becb94: Replace preload with load
123
-
124
- ## 1.0.0-next.8
125
-
126
- ### Patch Changes
127
-
128
- - 15dd751: Use meta http-equiv=refresh
129
- - be7e031: Fix handling of static files
130
- - ed6b8fd: Implement \$app/env
131
-
132
- ## 1.0.0-next.7
133
-
134
- ### Patch Changes
135
-
136
- - 76705b0: make HMR work outside localhost
137
-
138
- ## 1.0.0-next.6
139
-
140
- ### Patch Changes
141
-
142
- - 0e45255: Move options behind kit namespace, change paths -> kit.files
143
- - fa7f2b2: Implement live bindings for SSR code
144
-
145
- ## 1.0.0-next.5
146
-
147
- ### Patch Changes
148
-
149
- - Return dependencies from render
150
-
151
- ## 1.0.0-next.4
152
-
153
- ### Patch Changes
154
-
155
- - af01b0d: Move renderer out of app assets folder
156
-
157
- ## 1.0.0-next.3
158
-
159
- ### Patch Changes
160
-
161
- - Add paths to manifest, for static prerendering
162
-
163
- ## 1.0.0-next.2
164
-
165
- ### Patch Changes
166
-
167
- - Fix typo causing misnamed assets folder
168
-
169
- ## 1.0.0-next.1
170
-
171
- ### Patch Changes
172
-
173
- - a4bc090: Transform exported functions correctly
174
- - 00bbf98: Fix nested layouts
175
-
176
- ## 0.0.31-next.0
177
-
178
- ### Patch Changes
179
-
180
- - ffd7bba: Fix SSR cache invalidation
181
-
182
- ## 0.0.30
183
-
184
- ### Patch Changes
185
-
186
- - Add back stores(), but with deprecation warning
187
- - Rename stores.preloading to stores.navigating
188
- - Rewrite routing logic
189
-
190
- ## 0.0.29
191
-
192
- ### Patch Changes
193
-
194
- - 10872cc: Normalize request.query
195
-
196
- ## 0.0.28
197
-
198
- ### Patch Changes
199
-
200
- - Add svelte-kit start command
201
-
202
- ## 0.0.27
203
-
204
- ### Patch Changes
205
-
206
- - rename CLI to svelte-kit
207
- - 0904e22: rename svelte CLI to svelte-kit
208
- - Validate route responses
209
- - Make paths and target configurable
210
-
211
- ## 0.0.26
212
-
213
- ### Patch Changes
214
-
215
- - b475ed4: Overhaul adapter API - fixes #166
216
- - Updated dependencies [b475ed4]
217
- - @sveltejs/app-utils@0.0.18
218
-
219
- ## 0.0.25
220
-
221
- ### Patch Changes
222
-
223
- - Updated dependencies [3bdf33b]
224
- - @sveltejs/app-utils@0.0.17
225
-
226
- ## 0.0.24
227
-
228
- ### Patch Changes
229
-
230
- - 67eaeea: Move app-utils stuff into subpackages
231
- - 7f8df30: Move kit runtime code, expose via \$app aliases
232
- - Updated dependencies [67eaeea]
233
- - @sveltejs/app-utils@0.0.16
234
-
235
- ## 0.0.23
236
-
237
- ### Patch Changes
238
-
239
- - a163000: Parse body on incoming requests
240
- - a346eab: Copy over latest Sapper router code
241
- - Updated dependencies [a163000]
242
- - @sveltejs/app-utils@0.0.15
243
-
244
- ## 0.0.22
245
-
246
- ### Patch Changes
247
-
248
- - Force bump version
249
-
250
- ## 0.0.21
251
-
252
- ### Patch Changes
253
-
254
- - Build setup entry point
255
- - Work around pkg.exports constraint
256
- - Respond with 500s if render fails
257
- - Updated dependencies [undefined]
258
- - Updated dependencies [undefined]
259
- - Updated dependencies [undefined]
260
- - @sveltejs/app-utils@0.0.14
261
-
262
- ## 0.0.20
263
-
264
- ### Patch Changes
265
-
266
- - Pass setup module to renderer
267
- - Bump Snowpack version
268
- - Updated dependencies [undefined]
269
- - Updated dependencies [96c06d8]
270
- - @sveltejs/app-utils@0.0.13
271
-
272
- ## 0.0.19
273
-
274
- ### Patch Changes
275
-
276
- - fa9d7ce: Handle import.meta in SSR module loader
277
- - 0320208: Rename 'server route' to 'endpoint'
278
- - b9444d2: Update to Snowpack 2.15
279
- - 5ca907c: Use shared mkdirp helper
280
- - Updated dependencies [0320208]
281
- - Updated dependencies [5ca907c]
282
- - @sveltejs/app-utils@0.0.12
283
-
284
- ## 0.0.18
285
-
286
- ### Patch Changes
287
-
288
- - Updated dependencies [undefined]
289
- - @sveltejs/app-utils@0.0.11
290
-
291
- ## 0.0.17
292
-
293
- ### Patch Changes
294
-
295
- - 19323e9: Update Snowpack
296
- - Updated dependencies [19323e9]
297
- - @sveltejs/app-utils@0.0.10
298
-
299
- ## 0.0.16
300
-
301
- ### Patch Changes
302
-
303
- - Updated dependencies [90a98ae]
304
- - @sveltejs/app-utils@0.0.9
305
-
306
- ## 0.0.15
307
-
308
- ### Patch Changes
309
-
310
- - Updated dependencies [undefined]
311
- - @sveltejs/app-utils@0.0.8
312
-
313
- ## 0.0.14
314
-
315
- ### Patch Changes
316
-
317
- - various
318
- - Updated dependencies [undefined]
319
- - @sveltejs/app-utils@0.0.7
@@ -1,23 +0,0 @@
1
- import { g as get_base_uri } from '../utils-85ebcc60.js';
2
- import { router, renderer } from '../internal/singletons.js';
3
-
4
- async function goto(href, opts) {
5
- return router.goto(href, opts);
6
- }
7
-
8
- function prefetch(href) {
9
- return renderer.prefetch(new URL(href, get_base_uri(document)));
10
- }
11
-
12
- async function prefetchRoutes(pathnames) {
13
- const path_routes = pathnames
14
- ? router.pages.filter((page) => pathnames.some((pathname) => page.pattern.test(pathname)))
15
- : router.pages;
16
-
17
- const promises = path_routes.map((r) => Promise.all(r.parts.map((load) => load())));
18
-
19
- await Promise.all(promises);
20
- }
21
-
22
- export { goto, prefetch, prefetchRoutes };
23
- //# sourceMappingURL=navigation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"navigation.js","sources":["../../../src/runtime/app/navigation/index.js"],"sourcesContent":["import { router, renderer } from '../../internal/singletons';\nimport { get_base_uri } from '../../internal/utils';\n\nexport async function goto(href, opts) {\n\treturn router.goto(href, opts);\n}\n\nexport function prefetch(href) {\n\treturn renderer.prefetch(new URL(href, get_base_uri(document)));\n}\n\nexport async function prefetchRoutes(pathnames) {\n\tconst path_routes = pathnames\n\t\t? router.pages.filter((page) => pathnames.some((pathname) => page.pattern.test(pathname)))\n\t\t: router.pages;\n\n\tconst promises = path_routes.map((r) => Promise.all(r.parts.map((load) => load())));\n\n\tawait Promise.all(promises);\n}\n"],"names":[],"mappings":";;;AAGO,eAAe,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE;AACvC,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAChC,CAAC;AACD;AACO,SAAS,QAAQ,CAAC,IAAI,EAAE;AAC/B,CAAC,OAAO,QAAQ,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AACjE,CAAC;AACD;AACO,eAAe,cAAc,CAAC,SAAS,EAAE;AAChD,CAAC,MAAM,WAAW,GAAG,SAAS;AAC9B,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,KAAK,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;AAC5F,IAAI,MAAM,CAAC,KAAK,CAAC;AACjB;AACA,CAAC,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACrF;AACA,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC7B;;;;"}
@@ -1,2 +0,0 @@
1
- export { assets, base } from '../internal/singletons.js';
2
- //# sourceMappingURL=paths.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"paths.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,78 +0,0 @@
1
- import { getContext } from 'svelte';
2
-
3
- // const ssr = (import.meta as any).env.SSR;
4
- const ssr = typeof window === 'undefined'; // TODO why doesn't previous line work in build?
5
-
6
- // TODO remove this (for 1.0? after 1.0?)
7
- let warned = false;
8
- function stores() {
9
- if (!warned) {
10
- console.error('stores() is deprecated; use getStores() instead');
11
- warned = true;
12
- }
13
- return getStores();
14
- }
15
-
16
- const getStores = () => {
17
- const stores = getContext('__svelte__');
18
-
19
- return {
20
- page: {
21
- subscribe: stores.page.subscribe
22
- },
23
- navigating: {
24
- subscribe: stores.navigating.subscribe
25
- },
26
- get preloading() {
27
- console.error('stores.preloading is deprecated; use stores.navigating instead');
28
- return {
29
- subscribe: stores.navigating.subscribe
30
- };
31
- },
32
- session: stores.session
33
- };
34
- };
35
-
36
- const page = {
37
- subscribe(fn) {
38
- const store = getStores().page;
39
- return store.subscribe(fn);
40
- }
41
- };
42
-
43
- const navigating = {
44
- subscribe(fn) {
45
- const store = getStores().navigating;
46
- return store.subscribe(fn);
47
- }
48
- };
49
-
50
- const error = (verb) => {
51
- throw new Error(
52
- ssr
53
- ? `Can only ${verb} session store in browser`
54
- : `Cannot ${verb} session store before subscribing`
55
- );
56
- };
57
-
58
- const session = {
59
- subscribe(fn) {
60
- const store = getStores().session;
61
-
62
- if (!ssr) {
63
- session.set = store.set;
64
- session.update = store.update;
65
- }
66
-
67
- return store.subscribe(fn);
68
- },
69
- set: (value) => {
70
- error('set');
71
- },
72
- update: (updater) => {
73
- error('update');
74
- }
75
- };
76
-
77
- export { getStores, navigating, page, session, stores };
78
- //# sourceMappingURL=stores.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stores.js","sources":["../../../src/runtime/app/stores/index.js"],"sourcesContent":["import { getContext } from 'svelte';\n\n// const ssr = (import.meta as any).env.SSR;\nconst ssr = typeof window === 'undefined'; // TODO why doesn't previous line work in build?\n\n// TODO remove this (for 1.0? after 1.0?)\nlet warned = false;\nexport function stores() {\n\tif (!warned) {\n\t\tconsole.error('stores() is deprecated; use getStores() instead');\n\t\twarned = true;\n\t}\n\treturn getStores();\n}\n\nexport const getStores = () => {\n\tconst stores = getContext('__svelte__');\n\n\treturn {\n\t\tpage: {\n\t\t\tsubscribe: stores.page.subscribe\n\t\t},\n\t\tnavigating: {\n\t\t\tsubscribe: stores.navigating.subscribe\n\t\t},\n\t\tget preloading() {\n\t\t\tconsole.error('stores.preloading is deprecated; use stores.navigating instead');\n\t\t\treturn {\n\t\t\t\tsubscribe: stores.navigating.subscribe\n\t\t\t};\n\t\t},\n\t\tsession: stores.session\n\t};\n};\n\nexport const page = {\n\tsubscribe(fn) {\n\t\tconst store = getStores().page;\n\t\treturn store.subscribe(fn);\n\t}\n};\n\nexport const navigating = {\n\tsubscribe(fn) {\n\t\tconst store = getStores().navigating;\n\t\treturn store.subscribe(fn);\n\t}\n};\n\nconst error = (verb) => {\n\tthrow new Error(\n\t\tssr\n\t\t\t? `Can only ${verb} session store in browser`\n\t\t\t: `Cannot ${verb} session store before subscribing`\n\t);\n};\n\nexport const session = {\n\tsubscribe(fn) {\n\t\tconst store = getStores().session;\n\n\t\tif (!ssr) {\n\t\t\tsession.set = store.set;\n\t\t\tsession.update = store.update;\n\t\t}\n\n\t\treturn store.subscribe(fn);\n\t},\n\tset: (value) => {\n\t\terror('set');\n\t},\n\tupdate: (updater) => {\n\t\terror('update');\n\t}\n};\n"],"names":[],"mappings":";;AAEA;AACA,MAAM,GAAG,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC;AAC1C;AACA;AACA,IAAI,MAAM,GAAG,KAAK,CAAC;AACZ,SAAS,MAAM,GAAG;AACzB,CAAC,IAAI,CAAC,MAAM,EAAE;AACd,EAAE,OAAO,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAC;AACnE,EAAE,MAAM,GAAG,IAAI,CAAC;AAChB,EAAE;AACF,CAAC,OAAO,SAAS,EAAE,CAAC;AACpB,CAAC;AACD;AACY,MAAC,SAAS,GAAG,MAAM;AAC/B,CAAC,MAAM,MAAM,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC;AACzC;AACA,CAAC,OAAO;AACR,EAAE,IAAI,EAAE;AACR,GAAG,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,SAAS;AACnC,GAAG;AACH,EAAE,UAAU,EAAE;AACd,GAAG,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,SAAS;AACzC,GAAG;AACH,EAAE,IAAI,UAAU,GAAG;AACnB,GAAG,OAAO,CAAC,KAAK,CAAC,gEAAgE,CAAC,CAAC;AACnF,GAAG,OAAO;AACV,IAAI,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,SAAS;AAC1C,IAAI,CAAC;AACL,GAAG;AACH,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO;AACzB,EAAE,CAAC;AACH,EAAE;AACF;AACY,MAAC,IAAI,GAAG;AACpB,CAAC,SAAS,CAAC,EAAE,EAAE;AACf,EAAE,MAAM,KAAK,GAAG,SAAS,EAAE,CAAC,IAAI,CAAC;AACjC,EAAE,OAAO,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;AAC7B,EAAE;AACF,EAAE;AACF;AACY,MAAC,UAAU,GAAG;AAC1B,CAAC,SAAS,CAAC,EAAE,EAAE;AACf,EAAE,MAAM,KAAK,GAAG,SAAS,EAAE,CAAC,UAAU,CAAC;AACvC,EAAE,OAAO,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;AAC7B,EAAE;AACF,EAAE;AACF;AACA,MAAM,KAAK,GAAG,CAAC,IAAI,KAAK;AACxB,CAAC,MAAM,IAAI,KAAK;AAChB,EAAE,GAAG;AACL,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,yBAAyB,CAAC;AAChD,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,iCAAiC,CAAC;AACtD,EAAE,CAAC;AACH,CAAC,CAAC;AACF;AACY,MAAC,OAAO,GAAG;AACvB,CAAC,SAAS,CAAC,EAAE,EAAE;AACf,EAAE,MAAM,KAAK,GAAG,SAAS,EAAE,CAAC,OAAO,CAAC;AACpC;AACA,EAAE,IAAI,CAAC,GAAG,EAAE;AACZ,GAAG,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC;AAC3B,GAAG,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;AACjC,GAAG;AACH;AACA,EAAE,OAAO,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;AAC7B,EAAE;AACF,CAAC,GAAG,EAAE,CAAC,KAAK,KAAK;AACjB,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;AACf,EAAE;AACF,CAAC,MAAM,EAAE,CAAC,OAAO,KAAK;AACtB,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;AAClB,EAAE;AACF;;;;"}
@@ -1,15 +0,0 @@
1
- let router;
2
- let renderer;
3
- let base;
4
- let assets;
5
-
6
- function init(opts) {
7
- ({ router, renderer } = opts);
8
- }
9
-
10
- function set_paths(paths) {
11
- ({ base, assets } = paths);
12
- }
13
-
14
- export { assets, base, init, renderer, router, set_paths };
15
- //# sourceMappingURL=singletons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"singletons.js","sources":["../../../src/runtime/internal/singletons.js"],"sourcesContent":["export let router;\nexport let renderer;\nexport let base;\nexport let assets;\n\nexport function init(opts) {\n\t({ router, renderer } = opts);\n}\n\nexport function set_paths(paths) {\n\t({ base, assets } = paths);\n}\n"],"names":[],"mappings":"AAAU,IAAC,OAAO;AACR,IAAC,SAAS;AACV,IAAC,KAAK;AACN,IAAC,OAAO;AAClB;AACO,SAAS,IAAI,CAAC,IAAI,EAAE;AAC3B,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE;AAC/B,CAAC;AACD;AACO,SAAS,SAAS,CAAC,KAAK,EAAE;AACjC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE;AAC5B;;;;"}