@epic-web/workshop-utils 0.0.0-semantically-released

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 (79) hide show
  1. package/README.md +3 -0
  2. package/dist/esm/apps.server.d.ts +4205 -0
  3. package/dist/esm/apps.server.d.ts.map +1 -0
  4. package/dist/esm/apps.server.js +1198 -0
  5. package/dist/esm/apps.server.js.map +1 -0
  6. package/dist/esm/cache.server.d.ts +940 -0
  7. package/dist/esm/cache.server.d.ts.map +1 -0
  8. package/dist/esm/cache.server.js +161 -0
  9. package/dist/esm/cache.server.js.map +1 -0
  10. package/dist/esm/compile-mdx.server.d.ts +12 -0
  11. package/dist/esm/compile-mdx.server.d.ts.map +1 -0
  12. package/dist/esm/compile-mdx.server.js +285 -0
  13. package/dist/esm/compile-mdx.server.js.map +1 -0
  14. package/dist/esm/config.server.d.ts +348 -0
  15. package/dist/esm/config.server.d.ts.map +1 -0
  16. package/dist/esm/config.server.js +231 -0
  17. package/dist/esm/config.server.js.map +1 -0
  18. package/dist/esm/db.server.d.ts +463 -0
  19. package/dist/esm/db.server.d.ts.map +1 -0
  20. package/dist/esm/db.server.js +260 -0
  21. package/dist/esm/db.server.js.map +1 -0
  22. package/dist/esm/diff.server.d.ts +18 -0
  23. package/dist/esm/diff.server.d.ts.map +1 -0
  24. package/dist/esm/diff.server.js +437 -0
  25. package/dist/esm/diff.server.js.map +1 -0
  26. package/dist/esm/env.server.d.ts +61 -0
  27. package/dist/esm/env.server.d.ts.map +1 -0
  28. package/dist/esm/env.server.js +42 -0
  29. package/dist/esm/env.server.js.map +1 -0
  30. package/dist/esm/epic-api.server.d.ts +227 -0
  31. package/dist/esm/epic-api.server.d.ts.map +1 -0
  32. package/dist/esm/epic-api.server.js +529 -0
  33. package/dist/esm/epic-api.server.js.map +1 -0
  34. package/dist/esm/git.server.d.ts +49 -0
  35. package/dist/esm/git.server.d.ts.map +1 -0
  36. package/dist/esm/git.server.js +135 -0
  37. package/dist/esm/git.server.js.map +1 -0
  38. package/dist/esm/iframe-sync.d.ts +10 -0
  39. package/dist/esm/iframe-sync.d.ts.map +1 -0
  40. package/dist/esm/iframe-sync.js +97 -0
  41. package/dist/esm/iframe-sync.js.map +1 -0
  42. package/dist/esm/modified-time.server.d.ts +7 -0
  43. package/dist/esm/modified-time.server.d.ts.map +1 -0
  44. package/dist/esm/modified-time.server.js +80 -0
  45. package/dist/esm/modified-time.server.js.map +1 -0
  46. package/dist/esm/notifications.server.d.ts +56 -0
  47. package/dist/esm/notifications.server.d.ts.map +1 -0
  48. package/dist/esm/notifications.server.js +65 -0
  49. package/dist/esm/notifications.server.js.map +1 -0
  50. package/dist/esm/package.json +3 -0
  51. package/dist/esm/playwright.server.d.ts +6 -0
  52. package/dist/esm/playwright.server.d.ts.map +1 -0
  53. package/dist/esm/playwright.server.js +95 -0
  54. package/dist/esm/playwright.server.js.map +1 -0
  55. package/dist/esm/process-manager.server.d.ts +77 -0
  56. package/dist/esm/process-manager.server.d.ts.map +1 -0
  57. package/dist/esm/process-manager.server.js +266 -0
  58. package/dist/esm/process-manager.server.js.map +1 -0
  59. package/dist/esm/test.d.ts +16 -0
  60. package/dist/esm/test.d.ts.map +1 -0
  61. package/dist/esm/test.js +56 -0
  62. package/dist/esm/test.js.map +1 -0
  63. package/dist/esm/timing.server.d.ts +20 -0
  64. package/dist/esm/timing.server.d.ts.map +1 -0
  65. package/dist/esm/timing.server.js +88 -0
  66. package/dist/esm/timing.server.js.map +1 -0
  67. package/dist/esm/user.server.d.ts +17 -0
  68. package/dist/esm/user.server.d.ts.map +1 -0
  69. package/dist/esm/user.server.js +38 -0
  70. package/dist/esm/user.server.js.map +1 -0
  71. package/dist/esm/utils.d.ts +2 -0
  72. package/dist/esm/utils.d.ts.map +1 -0
  73. package/dist/esm/utils.js +13 -0
  74. package/dist/esm/utils.js.map +1 -0
  75. package/dist/esm/utils.server.d.ts +9 -0
  76. package/dist/esm/utils.server.d.ts.map +1 -0
  77. package/dist/esm/utils.server.js +45 -0
  78. package/dist/esm/utils.server.js.map +1 -0
  79. package/package.json +221 -0
@@ -0,0 +1,940 @@
1
+ import * as C from '@epic-web/cachified';
2
+ import { type Timings } from './timing.server.js';
3
+ export declare const solutionAppCache: {
4
+ name: string;
5
+ set: (key: string, value: C.CacheEntry<{
6
+ title: string;
7
+ type: "solution";
8
+ name: string;
9
+ test: {
10
+ type: "browser";
11
+ pathname: string;
12
+ testFiles: string[];
13
+ } | {
14
+ type: "script";
15
+ script: string;
16
+ } | {
17
+ type: "none";
18
+ };
19
+ fullPath: string;
20
+ dev: {
21
+ type: "browser";
22
+ pathname: string;
23
+ } | {
24
+ type: "script";
25
+ initialRoute: string;
26
+ portNumber: number;
27
+ } | {
28
+ type: "none";
29
+ };
30
+ dirName: string;
31
+ relativePath: string;
32
+ stackBlitzUrl: string | null;
33
+ exerciseNumber: number;
34
+ stepNumber: number;
35
+ problemName: string | null;
36
+ instructionsCode?: string | undefined;
37
+ epicVideoEmbeds?: string[] | undefined;
38
+ }>) => C.CacheEntry<{
39
+ title: string;
40
+ type: "solution";
41
+ name: string;
42
+ test: {
43
+ type: "browser";
44
+ pathname: string;
45
+ testFiles: string[];
46
+ } | {
47
+ type: "script";
48
+ script: string;
49
+ } | {
50
+ type: "none";
51
+ };
52
+ fullPath: string;
53
+ dev: {
54
+ type: "browser";
55
+ pathname: string;
56
+ } | {
57
+ type: "script";
58
+ initialRoute: string;
59
+ portNumber: number;
60
+ } | {
61
+ type: "none";
62
+ };
63
+ dirName: string;
64
+ relativePath: string;
65
+ stackBlitzUrl: string | null;
66
+ exerciseNumber: number;
67
+ stepNumber: number;
68
+ problemName: string | null;
69
+ instructionsCode?: string | undefined;
70
+ epicVideoEmbeds?: string[] | undefined;
71
+ }>;
72
+ get: (key: string) => C.CacheEntry<{
73
+ title: string;
74
+ type: "solution";
75
+ name: string;
76
+ test: {
77
+ type: "browser";
78
+ pathname: string;
79
+ testFiles: string[];
80
+ } | {
81
+ type: "script";
82
+ script: string;
83
+ } | {
84
+ type: "none";
85
+ };
86
+ fullPath: string;
87
+ dev: {
88
+ type: "browser";
89
+ pathname: string;
90
+ } | {
91
+ type: "script";
92
+ initialRoute: string;
93
+ portNumber: number;
94
+ } | {
95
+ type: "none";
96
+ };
97
+ dirName: string;
98
+ relativePath: string;
99
+ stackBlitzUrl: string | null;
100
+ exerciseNumber: number;
101
+ stepNumber: number;
102
+ problemName: string | null;
103
+ instructionsCode?: string | undefined;
104
+ epicVideoEmbeds?: string[] | undefined;
105
+ }> | undefined;
106
+ delete: (key: string) => boolean;
107
+ };
108
+ export declare const problemAppCache: {
109
+ name: string;
110
+ set: (key: string, value: C.CacheEntry<{
111
+ title: string;
112
+ type: "problem";
113
+ name: string;
114
+ test: {
115
+ type: "browser";
116
+ pathname: string;
117
+ testFiles: string[];
118
+ } | {
119
+ type: "script";
120
+ script: string;
121
+ } | {
122
+ type: "none";
123
+ };
124
+ fullPath: string;
125
+ dev: {
126
+ type: "browser";
127
+ pathname: string;
128
+ } | {
129
+ type: "script";
130
+ initialRoute: string;
131
+ portNumber: number;
132
+ } | {
133
+ type: "none";
134
+ };
135
+ dirName: string;
136
+ relativePath: string;
137
+ stackBlitzUrl: string | null;
138
+ exerciseNumber: number;
139
+ stepNumber: number;
140
+ solutionName: string | null;
141
+ instructionsCode?: string | undefined;
142
+ epicVideoEmbeds?: string[] | undefined;
143
+ }>) => C.CacheEntry<{
144
+ title: string;
145
+ type: "problem";
146
+ name: string;
147
+ test: {
148
+ type: "browser";
149
+ pathname: string;
150
+ testFiles: string[];
151
+ } | {
152
+ type: "script";
153
+ script: string;
154
+ } | {
155
+ type: "none";
156
+ };
157
+ fullPath: string;
158
+ dev: {
159
+ type: "browser";
160
+ pathname: string;
161
+ } | {
162
+ type: "script";
163
+ initialRoute: string;
164
+ portNumber: number;
165
+ } | {
166
+ type: "none";
167
+ };
168
+ dirName: string;
169
+ relativePath: string;
170
+ stackBlitzUrl: string | null;
171
+ exerciseNumber: number;
172
+ stepNumber: number;
173
+ solutionName: string | null;
174
+ instructionsCode?: string | undefined;
175
+ epicVideoEmbeds?: string[] | undefined;
176
+ }>;
177
+ get: (key: string) => C.CacheEntry<{
178
+ title: string;
179
+ type: "problem";
180
+ name: string;
181
+ test: {
182
+ type: "browser";
183
+ pathname: string;
184
+ testFiles: string[];
185
+ } | {
186
+ type: "script";
187
+ script: string;
188
+ } | {
189
+ type: "none";
190
+ };
191
+ fullPath: string;
192
+ dev: {
193
+ type: "browser";
194
+ pathname: string;
195
+ } | {
196
+ type: "script";
197
+ initialRoute: string;
198
+ portNumber: number;
199
+ } | {
200
+ type: "none";
201
+ };
202
+ dirName: string;
203
+ relativePath: string;
204
+ stackBlitzUrl: string | null;
205
+ exerciseNumber: number;
206
+ stepNumber: number;
207
+ solutionName: string | null;
208
+ instructionsCode?: string | undefined;
209
+ epicVideoEmbeds?: string[] | undefined;
210
+ }> | undefined;
211
+ delete: (key: string) => boolean;
212
+ };
213
+ export declare const exampleAppCache: {
214
+ name: string;
215
+ set: (key: string, value: C.CacheEntry<{
216
+ title: string;
217
+ type: "example";
218
+ name: string;
219
+ test: {
220
+ type: "browser";
221
+ pathname: string;
222
+ testFiles: string[];
223
+ } | {
224
+ type: "script";
225
+ script: string;
226
+ } | {
227
+ type: "none";
228
+ };
229
+ fullPath: string;
230
+ dev: {
231
+ type: "browser";
232
+ pathname: string;
233
+ } | {
234
+ type: "script";
235
+ initialRoute: string;
236
+ portNumber: number;
237
+ } | {
238
+ type: "none";
239
+ };
240
+ dirName: string;
241
+ relativePath: string;
242
+ stackBlitzUrl: string | null;
243
+ instructionsCode?: string | undefined;
244
+ epicVideoEmbeds?: string[] | undefined;
245
+ }>) => C.CacheEntry<{
246
+ title: string;
247
+ type: "example";
248
+ name: string;
249
+ test: {
250
+ type: "browser";
251
+ pathname: string;
252
+ testFiles: string[];
253
+ } | {
254
+ type: "script";
255
+ script: string;
256
+ } | {
257
+ type: "none";
258
+ };
259
+ fullPath: string;
260
+ dev: {
261
+ type: "browser";
262
+ pathname: string;
263
+ } | {
264
+ type: "script";
265
+ initialRoute: string;
266
+ portNumber: number;
267
+ } | {
268
+ type: "none";
269
+ };
270
+ dirName: string;
271
+ relativePath: string;
272
+ stackBlitzUrl: string | null;
273
+ instructionsCode?: string | undefined;
274
+ epicVideoEmbeds?: string[] | undefined;
275
+ }>;
276
+ get: (key: string) => C.CacheEntry<{
277
+ title: string;
278
+ type: "example";
279
+ name: string;
280
+ test: {
281
+ type: "browser";
282
+ pathname: string;
283
+ testFiles: string[];
284
+ } | {
285
+ type: "script";
286
+ script: string;
287
+ } | {
288
+ type: "none";
289
+ };
290
+ fullPath: string;
291
+ dev: {
292
+ type: "browser";
293
+ pathname: string;
294
+ } | {
295
+ type: "script";
296
+ initialRoute: string;
297
+ portNumber: number;
298
+ } | {
299
+ type: "none";
300
+ };
301
+ dirName: string;
302
+ relativePath: string;
303
+ stackBlitzUrl: string | null;
304
+ instructionsCode?: string | undefined;
305
+ epicVideoEmbeds?: string[] | undefined;
306
+ }> | undefined;
307
+ delete: (key: string) => boolean;
308
+ };
309
+ export declare const playgroundAppCache: {
310
+ name: string;
311
+ set: (key: string, value: C.CacheEntry<{
312
+ title: string;
313
+ type: "playground";
314
+ name: string;
315
+ test: {
316
+ type: "browser";
317
+ pathname: string;
318
+ testFiles: string[];
319
+ } | {
320
+ type: "script";
321
+ script: string;
322
+ } | {
323
+ type: "none";
324
+ };
325
+ fullPath: string;
326
+ dev: {
327
+ type: "browser";
328
+ pathname: string;
329
+ } | {
330
+ type: "script";
331
+ initialRoute: string;
332
+ portNumber: number;
333
+ } | {
334
+ type: "none";
335
+ };
336
+ dirName: string;
337
+ relativePath: string;
338
+ stackBlitzUrl: string | null;
339
+ appName: string;
340
+ isUpToDate: boolean;
341
+ instructionsCode?: string | undefined;
342
+ epicVideoEmbeds?: string[] | undefined;
343
+ }>) => C.CacheEntry<{
344
+ title: string;
345
+ type: "playground";
346
+ name: string;
347
+ test: {
348
+ type: "browser";
349
+ pathname: string;
350
+ testFiles: string[];
351
+ } | {
352
+ type: "script";
353
+ script: string;
354
+ } | {
355
+ type: "none";
356
+ };
357
+ fullPath: string;
358
+ dev: {
359
+ type: "browser";
360
+ pathname: string;
361
+ } | {
362
+ type: "script";
363
+ initialRoute: string;
364
+ portNumber: number;
365
+ } | {
366
+ type: "none";
367
+ };
368
+ dirName: string;
369
+ relativePath: string;
370
+ stackBlitzUrl: string | null;
371
+ appName: string;
372
+ isUpToDate: boolean;
373
+ instructionsCode?: string | undefined;
374
+ epicVideoEmbeds?: string[] | undefined;
375
+ }>;
376
+ get: (key: string) => C.CacheEntry<{
377
+ title: string;
378
+ type: "playground";
379
+ name: string;
380
+ test: {
381
+ type: "browser";
382
+ pathname: string;
383
+ testFiles: string[];
384
+ } | {
385
+ type: "script";
386
+ script: string;
387
+ } | {
388
+ type: "none";
389
+ };
390
+ fullPath: string;
391
+ dev: {
392
+ type: "browser";
393
+ pathname: string;
394
+ } | {
395
+ type: "script";
396
+ initialRoute: string;
397
+ portNumber: number;
398
+ } | {
399
+ type: "none";
400
+ };
401
+ dirName: string;
402
+ relativePath: string;
403
+ stackBlitzUrl: string | null;
404
+ appName: string;
405
+ isUpToDate: boolean;
406
+ instructionsCode?: string | undefined;
407
+ epicVideoEmbeds?: string[] | undefined;
408
+ }> | undefined;
409
+ delete: (key: string) => boolean;
410
+ };
411
+ export declare const appsCache: {
412
+ name: string;
413
+ set: (key: string, value: C.CacheEntry<{
414
+ title: string;
415
+ type: "solution";
416
+ name: string;
417
+ test: {
418
+ type: "browser";
419
+ pathname: string;
420
+ testFiles: string[];
421
+ } | {
422
+ type: "script";
423
+ script: string;
424
+ } | {
425
+ type: "none";
426
+ };
427
+ fullPath: string;
428
+ dev: {
429
+ type: "browser";
430
+ pathname: string;
431
+ } | {
432
+ type: "script";
433
+ initialRoute: string;
434
+ portNumber: number;
435
+ } | {
436
+ type: "none";
437
+ };
438
+ dirName: string;
439
+ relativePath: string;
440
+ stackBlitzUrl: string | null;
441
+ exerciseNumber: number;
442
+ stepNumber: number;
443
+ problemName: string | null;
444
+ instructionsCode?: string | undefined;
445
+ epicVideoEmbeds?: string[] | undefined;
446
+ } | {
447
+ title: string;
448
+ type: "problem";
449
+ name: string;
450
+ test: {
451
+ type: "browser";
452
+ pathname: string;
453
+ testFiles: string[];
454
+ } | {
455
+ type: "script";
456
+ script: string;
457
+ } | {
458
+ type: "none";
459
+ };
460
+ fullPath: string;
461
+ dev: {
462
+ type: "browser";
463
+ pathname: string;
464
+ } | {
465
+ type: "script";
466
+ initialRoute: string;
467
+ portNumber: number;
468
+ } | {
469
+ type: "none";
470
+ };
471
+ dirName: string;
472
+ relativePath: string;
473
+ stackBlitzUrl: string | null;
474
+ exerciseNumber: number;
475
+ stepNumber: number;
476
+ solutionName: string | null;
477
+ instructionsCode?: string | undefined;
478
+ epicVideoEmbeds?: string[] | undefined;
479
+ } | {
480
+ title: string;
481
+ type: "example";
482
+ name: string;
483
+ test: {
484
+ type: "browser";
485
+ pathname: string;
486
+ testFiles: string[];
487
+ } | {
488
+ type: "script";
489
+ script: string;
490
+ } | {
491
+ type: "none";
492
+ };
493
+ fullPath: string;
494
+ dev: {
495
+ type: "browser";
496
+ pathname: string;
497
+ } | {
498
+ type: "script";
499
+ initialRoute: string;
500
+ portNumber: number;
501
+ } | {
502
+ type: "none";
503
+ };
504
+ dirName: string;
505
+ relativePath: string;
506
+ stackBlitzUrl: string | null;
507
+ instructionsCode?: string | undefined;
508
+ epicVideoEmbeds?: string[] | undefined;
509
+ } | {
510
+ title: string;
511
+ type: "playground";
512
+ name: string;
513
+ test: {
514
+ type: "browser";
515
+ pathname: string;
516
+ testFiles: string[];
517
+ } | {
518
+ type: "script";
519
+ script: string;
520
+ } | {
521
+ type: "none";
522
+ };
523
+ fullPath: string;
524
+ dev: {
525
+ type: "browser";
526
+ pathname: string;
527
+ } | {
528
+ type: "script";
529
+ initialRoute: string;
530
+ portNumber: number;
531
+ } | {
532
+ type: "none";
533
+ };
534
+ dirName: string;
535
+ relativePath: string;
536
+ stackBlitzUrl: string | null;
537
+ appName: string;
538
+ isUpToDate: boolean;
539
+ instructionsCode?: string | undefined;
540
+ epicVideoEmbeds?: string[] | undefined;
541
+ }>) => C.CacheEntry<{
542
+ title: string;
543
+ type: "solution";
544
+ name: string;
545
+ test: {
546
+ type: "browser";
547
+ pathname: string;
548
+ testFiles: string[];
549
+ } | {
550
+ type: "script";
551
+ script: string;
552
+ } | {
553
+ type: "none";
554
+ };
555
+ fullPath: string;
556
+ dev: {
557
+ type: "browser";
558
+ pathname: string;
559
+ } | {
560
+ type: "script";
561
+ initialRoute: string;
562
+ portNumber: number;
563
+ } | {
564
+ type: "none";
565
+ };
566
+ dirName: string;
567
+ relativePath: string;
568
+ stackBlitzUrl: string | null;
569
+ exerciseNumber: number;
570
+ stepNumber: number;
571
+ problemName: string | null;
572
+ instructionsCode?: string | undefined;
573
+ epicVideoEmbeds?: string[] | undefined;
574
+ } | {
575
+ title: string;
576
+ type: "problem";
577
+ name: string;
578
+ test: {
579
+ type: "browser";
580
+ pathname: string;
581
+ testFiles: string[];
582
+ } | {
583
+ type: "script";
584
+ script: string;
585
+ } | {
586
+ type: "none";
587
+ };
588
+ fullPath: string;
589
+ dev: {
590
+ type: "browser";
591
+ pathname: string;
592
+ } | {
593
+ type: "script";
594
+ initialRoute: string;
595
+ portNumber: number;
596
+ } | {
597
+ type: "none";
598
+ };
599
+ dirName: string;
600
+ relativePath: string;
601
+ stackBlitzUrl: string | null;
602
+ exerciseNumber: number;
603
+ stepNumber: number;
604
+ solutionName: string | null;
605
+ instructionsCode?: string | undefined;
606
+ epicVideoEmbeds?: string[] | undefined;
607
+ } | {
608
+ title: string;
609
+ type: "example";
610
+ name: string;
611
+ test: {
612
+ type: "browser";
613
+ pathname: string;
614
+ testFiles: string[];
615
+ } | {
616
+ type: "script";
617
+ script: string;
618
+ } | {
619
+ type: "none";
620
+ };
621
+ fullPath: string;
622
+ dev: {
623
+ type: "browser";
624
+ pathname: string;
625
+ } | {
626
+ type: "script";
627
+ initialRoute: string;
628
+ portNumber: number;
629
+ } | {
630
+ type: "none";
631
+ };
632
+ dirName: string;
633
+ relativePath: string;
634
+ stackBlitzUrl: string | null;
635
+ instructionsCode?: string | undefined;
636
+ epicVideoEmbeds?: string[] | undefined;
637
+ } | {
638
+ title: string;
639
+ type: "playground";
640
+ name: string;
641
+ test: {
642
+ type: "browser";
643
+ pathname: string;
644
+ testFiles: string[];
645
+ } | {
646
+ type: "script";
647
+ script: string;
648
+ } | {
649
+ type: "none";
650
+ };
651
+ fullPath: string;
652
+ dev: {
653
+ type: "browser";
654
+ pathname: string;
655
+ } | {
656
+ type: "script";
657
+ initialRoute: string;
658
+ portNumber: number;
659
+ } | {
660
+ type: "none";
661
+ };
662
+ dirName: string;
663
+ relativePath: string;
664
+ stackBlitzUrl: string | null;
665
+ appName: string;
666
+ isUpToDate: boolean;
667
+ instructionsCode?: string | undefined;
668
+ epicVideoEmbeds?: string[] | undefined;
669
+ }>;
670
+ get: (key: string) => C.CacheEntry<{
671
+ title: string;
672
+ type: "solution";
673
+ name: string;
674
+ test: {
675
+ type: "browser";
676
+ pathname: string;
677
+ testFiles: string[];
678
+ } | {
679
+ type: "script";
680
+ script: string;
681
+ } | {
682
+ type: "none";
683
+ };
684
+ fullPath: string;
685
+ dev: {
686
+ type: "browser";
687
+ pathname: string;
688
+ } | {
689
+ type: "script";
690
+ initialRoute: string;
691
+ portNumber: number;
692
+ } | {
693
+ type: "none";
694
+ };
695
+ dirName: string;
696
+ relativePath: string;
697
+ stackBlitzUrl: string | null;
698
+ exerciseNumber: number;
699
+ stepNumber: number;
700
+ problemName: string | null;
701
+ instructionsCode?: string | undefined;
702
+ epicVideoEmbeds?: string[] | undefined;
703
+ } | {
704
+ title: string;
705
+ type: "problem";
706
+ name: string;
707
+ test: {
708
+ type: "browser";
709
+ pathname: string;
710
+ testFiles: string[];
711
+ } | {
712
+ type: "script";
713
+ script: string;
714
+ } | {
715
+ type: "none";
716
+ };
717
+ fullPath: string;
718
+ dev: {
719
+ type: "browser";
720
+ pathname: string;
721
+ } | {
722
+ type: "script";
723
+ initialRoute: string;
724
+ portNumber: number;
725
+ } | {
726
+ type: "none";
727
+ };
728
+ dirName: string;
729
+ relativePath: string;
730
+ stackBlitzUrl: string | null;
731
+ exerciseNumber: number;
732
+ stepNumber: number;
733
+ solutionName: string | null;
734
+ instructionsCode?: string | undefined;
735
+ epicVideoEmbeds?: string[] | undefined;
736
+ } | {
737
+ title: string;
738
+ type: "example";
739
+ name: string;
740
+ test: {
741
+ type: "browser";
742
+ pathname: string;
743
+ testFiles: string[];
744
+ } | {
745
+ type: "script";
746
+ script: string;
747
+ } | {
748
+ type: "none";
749
+ };
750
+ fullPath: string;
751
+ dev: {
752
+ type: "browser";
753
+ pathname: string;
754
+ } | {
755
+ type: "script";
756
+ initialRoute: string;
757
+ portNumber: number;
758
+ } | {
759
+ type: "none";
760
+ };
761
+ dirName: string;
762
+ relativePath: string;
763
+ stackBlitzUrl: string | null;
764
+ instructionsCode?: string | undefined;
765
+ epicVideoEmbeds?: string[] | undefined;
766
+ } | {
767
+ title: string;
768
+ type: "playground";
769
+ name: string;
770
+ test: {
771
+ type: "browser";
772
+ pathname: string;
773
+ testFiles: string[];
774
+ } | {
775
+ type: "script";
776
+ script: string;
777
+ } | {
778
+ type: "none";
779
+ };
780
+ fullPath: string;
781
+ dev: {
782
+ type: "browser";
783
+ pathname: string;
784
+ } | {
785
+ type: "script";
786
+ initialRoute: string;
787
+ portNumber: number;
788
+ } | {
789
+ type: "none";
790
+ };
791
+ dirName: string;
792
+ relativePath: string;
793
+ stackBlitzUrl: string | null;
794
+ appName: string;
795
+ isUpToDate: boolean;
796
+ instructionsCode?: string | undefined;
797
+ epicVideoEmbeds?: string[] | undefined;
798
+ }> | undefined;
799
+ delete: (key: string) => boolean;
800
+ };
801
+ export declare const diffCodeCache: {
802
+ name: string;
803
+ set: (key: string, value: C.CacheEntry<string>) => C.CacheEntry<string>;
804
+ get: (key: string) => C.CacheEntry<string> | undefined;
805
+ delete: (key: string) => boolean;
806
+ };
807
+ export declare const diffFilesCache: {
808
+ name: string;
809
+ set: (key: string, value: C.CacheEntry<string>) => C.CacheEntry<string>;
810
+ get: (key: string) => C.CacheEntry<string> | undefined;
811
+ delete: (key: string) => boolean;
812
+ };
813
+ export declare const compiledMarkdownCache: {
814
+ name: string;
815
+ set: (key: string, value: C.CacheEntry<string>) => C.CacheEntry<string>;
816
+ get: (key: string) => C.CacheEntry<string> | undefined;
817
+ delete: (key: string) => boolean;
818
+ };
819
+ export declare const compiledCodeCache: {
820
+ name: string;
821
+ set: (key: string, value: C.CacheEntry<string>) => C.CacheEntry<string>;
822
+ get: (key: string) => C.CacheEntry<string> | undefined;
823
+ delete: (key: string) => boolean;
824
+ };
825
+ export declare const ogCache: {
826
+ name: string;
827
+ set: (key: string, value: C.CacheEntry<string>) => C.CacheEntry<string>;
828
+ get: (key: string) => C.CacheEntry<string> | undefined;
829
+ delete: (key: string) => boolean;
830
+ };
831
+ export declare const compiledInstructionMarkdownCache: C.Cache<{
832
+ code: string;
833
+ title: string | null;
834
+ epicVideoEmbeds: Array<string>;
835
+ }>;
836
+ export declare const dirModifiedTimeCache: {
837
+ name: string;
838
+ set: (key: string, value: C.CacheEntry<number>) => C.CacheEntry<number>;
839
+ get: (key: string) => C.CacheEntry<number> | undefined;
840
+ delete: (key: string) => boolean;
841
+ };
842
+ export declare const connectionCache: {
843
+ name: string;
844
+ set: (key: string, value: C.CacheEntry<boolean>) => C.CacheEntry<boolean>;
845
+ get: (key: string) => C.CacheEntry<boolean> | undefined;
846
+ delete: (key: string) => boolean;
847
+ };
848
+ export declare const checkForUpdatesCache: {
849
+ name: string;
850
+ set: (key: string, value: C.CacheEntry<{
851
+ updatesAvailable: boolean;
852
+ localCommit: string;
853
+ remoteCommit: string;
854
+ diffLink: string | null;
855
+ }>) => C.CacheEntry<{
856
+ updatesAvailable: boolean;
857
+ localCommit: string;
858
+ remoteCommit: string;
859
+ diffLink: string | null;
860
+ }>;
861
+ get: (key: string) => C.CacheEntry<{
862
+ updatesAvailable: boolean;
863
+ localCommit: string;
864
+ remoteCommit: string;
865
+ diffLink: string | null;
866
+ }> | undefined;
867
+ delete: (key: string) => boolean;
868
+ };
869
+ export declare const notificationsCache: {
870
+ name: string;
871
+ set: (key: string, value: C.CacheEntry<{
872
+ title: string;
873
+ message: string;
874
+ type: "info" | "warning" | "danger";
875
+ id: string;
876
+ expiresAt: Date | null;
877
+ link?: string | undefined;
878
+ products?: {
879
+ host: string;
880
+ slug?: string | undefined;
881
+ }[] | undefined;
882
+ }[]>) => C.CacheEntry<{
883
+ title: string;
884
+ message: string;
885
+ type: "info" | "warning" | "danger";
886
+ id: string;
887
+ expiresAt: Date | null;
888
+ link?: string | undefined;
889
+ products?: {
890
+ host: string;
891
+ slug?: string | undefined;
892
+ }[] | undefined;
893
+ }[]>;
894
+ get: (key: string) => C.CacheEntry<{
895
+ title: string;
896
+ message: string;
897
+ type: "info" | "warning" | "danger";
898
+ id: string;
899
+ expiresAt: Date | null;
900
+ link?: string | undefined;
901
+ products?: {
902
+ host: string;
903
+ slug?: string | undefined;
904
+ }[] | undefined;
905
+ }[]> | undefined;
906
+ delete: (key: string) => boolean;
907
+ };
908
+ export declare const fsCache: C.Cache<unknown>;
909
+ export declare function getAllFileCacheEntries(): Promise<Record<string, any>>;
910
+ export declare function deleteCache(): Promise<null | undefined>;
911
+ export declare function makeSingletonCache<CacheEntryType>(name: string): {
912
+ name: string;
913
+ set: (key: string, value: C.CacheEntry<CacheEntryType>) => C.CacheEntry<CacheEntryType>;
914
+ get: (key: string) => C.CacheEntry<CacheEntryType> | undefined;
915
+ delete: (key: string) => boolean;
916
+ };
917
+ export declare function makeSingletonFsCache<CacheEntryType>(name: string): C.Cache<CacheEntryType>;
918
+ /**
919
+ * This wraps @epic-web/cachified to add a few handy features:
920
+ *
921
+ * 1. Automatic timing for timing headers
922
+ * 2. Automatic force refresh based on the request and enhancement of forceFresh
923
+ * to support comma-separated keys to force
924
+ * 3. Offline fallback support. If a fallback is given and we are detected to be
925
+ * offline, then the cached value is used regardless of whether it's expired and
926
+ * if one is not present then the given fallback will be used.
927
+ */
928
+ export declare function cachified<Value>({ request, timings, key, timingKey, offlineFallbackValue, ...options }: Omit<C.CachifiedOptions<Value>, 'forceFresh'> & {
929
+ request?: Request;
930
+ timings?: Timings;
931
+ forceFresh?: boolean | string;
932
+ timingKey?: string;
933
+ offlineFallbackValue?: Value;
934
+ }): Promise<Value>;
935
+ export declare function shouldForceFresh({ forceFresh, request, key, }: {
936
+ forceFresh?: boolean | string;
937
+ request?: Request;
938
+ key?: string;
939
+ }): Promise<boolean>;
940
+ //# sourceMappingURL=cache.server.d.ts.map