@epic-web/workshop-utils 6.87.5 → 6.88.1
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/dist/apps.server.d.ts +159 -0
- package/dist/apps.server.js +8 -1
- package/dist/cache.server.d.ts +12 -0
- package/package.json +1 -1
package/dist/apps.server.d.ts
CHANGED
|
@@ -39,6 +39,9 @@ declare const BaseExerciseStepAppSchema: z.ZodObject<{
|
|
|
39
39
|
}, z.core.$strip>, z.ZodObject<{
|
|
40
40
|
type: z.ZodLiteral<"export">;
|
|
41
41
|
pathname: z.ZodString;
|
|
42
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
+
type: z.ZodLiteral<"file">;
|
|
44
|
+
pathname: z.ZodString;
|
|
42
45
|
}, z.core.$strip>, z.ZodObject<{
|
|
43
46
|
type: z.ZodLiteral<"none">;
|
|
44
47
|
}, z.core.$strip>]>;
|
|
@@ -74,6 +77,9 @@ declare const ProblemAppSchema: z.ZodObject<{
|
|
|
74
77
|
}, z.core.$strip>, z.ZodObject<{
|
|
75
78
|
type: z.ZodLiteral<"export">;
|
|
76
79
|
pathname: z.ZodString;
|
|
80
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
+
type: z.ZodLiteral<"file">;
|
|
82
|
+
pathname: z.ZodString;
|
|
77
83
|
}, z.core.$strip>, z.ZodObject<{
|
|
78
84
|
type: z.ZodLiteral<"none">;
|
|
79
85
|
}, z.core.$strip>]>;
|
|
@@ -111,6 +117,9 @@ declare const SolutionAppSchema: z.ZodObject<{
|
|
|
111
117
|
}, z.core.$strip>, z.ZodObject<{
|
|
112
118
|
type: z.ZodLiteral<"export">;
|
|
113
119
|
pathname: z.ZodString;
|
|
120
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
121
|
+
type: z.ZodLiteral<"file">;
|
|
122
|
+
pathname: z.ZodString;
|
|
114
123
|
}, z.core.$strip>, z.ZodObject<{
|
|
115
124
|
type: z.ZodLiteral<"none">;
|
|
116
125
|
}, z.core.$strip>]>;
|
|
@@ -148,6 +157,9 @@ declare const ExtraAppSchema: z.ZodObject<{
|
|
|
148
157
|
}, z.core.$strip>, z.ZodObject<{
|
|
149
158
|
type: z.ZodLiteral<"export">;
|
|
150
159
|
pathname: z.ZodString;
|
|
160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
161
|
+
type: z.ZodLiteral<"file">;
|
|
162
|
+
pathname: z.ZodString;
|
|
151
163
|
}, z.core.$strip>, z.ZodObject<{
|
|
152
164
|
type: z.ZodLiteral<"none">;
|
|
153
165
|
}, z.core.$strip>]>;
|
|
@@ -182,6 +194,9 @@ declare const PlaygroundAppSchema: z.ZodObject<{
|
|
|
182
194
|
}, z.core.$strip>, z.ZodObject<{
|
|
183
195
|
type: z.ZodLiteral<"export">;
|
|
184
196
|
pathname: z.ZodString;
|
|
197
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
198
|
+
type: z.ZodLiteral<"file">;
|
|
199
|
+
pathname: z.ZodString;
|
|
185
200
|
}, z.core.$strip>, z.ZodObject<{
|
|
186
201
|
type: z.ZodLiteral<"none">;
|
|
187
202
|
}, z.core.$strip>]>;
|
|
@@ -229,6 +244,9 @@ declare const ExerciseSchema: z.ZodObject<{
|
|
|
229
244
|
}, z.core.$strip>, z.ZodObject<{
|
|
230
245
|
type: z.ZodLiteral<"export">;
|
|
231
246
|
pathname: z.ZodString;
|
|
247
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
248
|
+
type: z.ZodLiteral<"file">;
|
|
249
|
+
pathname: z.ZodString;
|
|
232
250
|
}, z.core.$strip>, z.ZodObject<{
|
|
233
251
|
type: z.ZodLiteral<"none">;
|
|
234
252
|
}, z.core.$strip>]>;
|
|
@@ -266,6 +284,9 @@ declare const ExerciseSchema: z.ZodObject<{
|
|
|
266
284
|
}, z.core.$strip>, z.ZodObject<{
|
|
267
285
|
type: z.ZodLiteral<"export">;
|
|
268
286
|
pathname: z.ZodString;
|
|
287
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
288
|
+
type: z.ZodLiteral<"file">;
|
|
289
|
+
pathname: z.ZodString;
|
|
269
290
|
}, z.core.$strip>, z.ZodObject<{
|
|
270
291
|
type: z.ZodLiteral<"none">;
|
|
271
292
|
}, z.core.$strip>]>;
|
|
@@ -305,6 +326,9 @@ declare const ExerciseSchema: z.ZodObject<{
|
|
|
305
326
|
}, z.core.$strip>, z.ZodObject<{
|
|
306
327
|
type: z.ZodLiteral<"export">;
|
|
307
328
|
pathname: z.ZodString;
|
|
329
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
330
|
+
type: z.ZodLiteral<"file">;
|
|
331
|
+
pathname: z.ZodString;
|
|
308
332
|
}, z.core.$strip>, z.ZodObject<{
|
|
309
333
|
type: z.ZodLiteral<"none">;
|
|
310
334
|
}, z.core.$strip>]>;
|
|
@@ -346,6 +370,9 @@ declare const ExerciseSchema: z.ZodObject<{
|
|
|
346
370
|
}, z.core.$strip>, z.ZodObject<{
|
|
347
371
|
type: z.ZodLiteral<"export">;
|
|
348
372
|
pathname: z.ZodString;
|
|
373
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
374
|
+
type: z.ZodLiteral<"file">;
|
|
375
|
+
pathname: z.ZodString;
|
|
349
376
|
}, z.core.$strip>, z.ZodObject<{
|
|
350
377
|
type: z.ZodLiteral<"none">;
|
|
351
378
|
}, z.core.$strip>]>;
|
|
@@ -383,6 +410,9 @@ declare const ExerciseSchema: z.ZodObject<{
|
|
|
383
410
|
} | {
|
|
384
411
|
type: "export";
|
|
385
412
|
pathname: string;
|
|
413
|
+
} | {
|
|
414
|
+
type: "file";
|
|
415
|
+
pathname: string;
|
|
386
416
|
} | {
|
|
387
417
|
type: "none";
|
|
388
418
|
};
|
|
@@ -420,6 +450,9 @@ declare const ExerciseSchema: z.ZodObject<{
|
|
|
420
450
|
} | {
|
|
421
451
|
type: "export";
|
|
422
452
|
pathname: string;
|
|
453
|
+
} | {
|
|
454
|
+
type: "file";
|
|
455
|
+
pathname: string;
|
|
423
456
|
} | {
|
|
424
457
|
type: "none";
|
|
425
458
|
};
|
|
@@ -459,6 +492,9 @@ declare const ExerciseSchema: z.ZodObject<{
|
|
|
459
492
|
} | {
|
|
460
493
|
type: "export";
|
|
461
494
|
pathname: string;
|
|
495
|
+
} | {
|
|
496
|
+
type: "file";
|
|
497
|
+
pathname: string;
|
|
462
498
|
} | {
|
|
463
499
|
type: "none";
|
|
464
500
|
};
|
|
@@ -499,6 +535,9 @@ declare const ExerciseSchema: z.ZodObject<{
|
|
|
499
535
|
} | {
|
|
500
536
|
type: "export";
|
|
501
537
|
pathname: string;
|
|
538
|
+
} | {
|
|
539
|
+
type: "file";
|
|
540
|
+
pathname: string;
|
|
502
541
|
} | {
|
|
503
542
|
type: "none";
|
|
504
543
|
};
|
|
@@ -539,6 +578,9 @@ declare const ExerciseSchema: z.ZodObject<{
|
|
|
539
578
|
} | {
|
|
540
579
|
type: "export";
|
|
541
580
|
pathname: string;
|
|
581
|
+
} | {
|
|
582
|
+
type: "file";
|
|
583
|
+
pathname: string;
|
|
542
584
|
} | {
|
|
543
585
|
type: "none";
|
|
544
586
|
};
|
|
@@ -576,6 +618,9 @@ declare const ExerciseSchema: z.ZodObject<{
|
|
|
576
618
|
} | {
|
|
577
619
|
type: "export";
|
|
578
620
|
pathname: string;
|
|
621
|
+
} | {
|
|
622
|
+
type: "file";
|
|
623
|
+
pathname: string;
|
|
579
624
|
} | {
|
|
580
625
|
type: "none";
|
|
581
626
|
};
|
|
@@ -615,6 +660,9 @@ declare const ExerciseSchema: z.ZodObject<{
|
|
|
615
660
|
} | {
|
|
616
661
|
type: "export";
|
|
617
662
|
pathname: string;
|
|
663
|
+
} | {
|
|
664
|
+
type: "file";
|
|
665
|
+
pathname: string;
|
|
618
666
|
} | {
|
|
619
667
|
type: "none";
|
|
620
668
|
};
|
|
@@ -655,6 +703,9 @@ declare const ExerciseSchema: z.ZodObject<{
|
|
|
655
703
|
} | {
|
|
656
704
|
type: "export";
|
|
657
705
|
pathname: string;
|
|
706
|
+
} | {
|
|
707
|
+
type: "file";
|
|
708
|
+
pathname: string;
|
|
658
709
|
} | {
|
|
659
710
|
type: "none";
|
|
660
711
|
};
|
|
@@ -696,6 +747,9 @@ declare const ExerciseSchema: z.ZodObject<{
|
|
|
696
747
|
}, z.core.$strip>, z.ZodObject<{
|
|
697
748
|
type: z.ZodLiteral<"export">;
|
|
698
749
|
pathname: z.ZodString;
|
|
750
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
751
|
+
type: z.ZodLiteral<"file">;
|
|
752
|
+
pathname: z.ZodString;
|
|
699
753
|
}, z.core.$strip>, z.ZodObject<{
|
|
700
754
|
type: z.ZodLiteral<"none">;
|
|
701
755
|
}, z.core.$strip>]>;
|
|
@@ -733,6 +787,9 @@ declare const ExerciseSchema: z.ZodObject<{
|
|
|
733
787
|
}, z.core.$strip>, z.ZodObject<{
|
|
734
788
|
type: z.ZodLiteral<"export">;
|
|
735
789
|
pathname: z.ZodString;
|
|
790
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
791
|
+
type: z.ZodLiteral<"file">;
|
|
792
|
+
pathname: z.ZodString;
|
|
736
793
|
}, z.core.$strip>, z.ZodObject<{
|
|
737
794
|
type: z.ZodLiteral<"none">;
|
|
738
795
|
}, z.core.$strip>]>;
|
|
@@ -771,6 +828,9 @@ declare const ExerciseStepAppSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
771
828
|
}, z.core.$strip>, z.ZodObject<{
|
|
772
829
|
type: z.ZodLiteral<"export">;
|
|
773
830
|
pathname: z.ZodString;
|
|
831
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
832
|
+
type: z.ZodLiteral<"file">;
|
|
833
|
+
pathname: z.ZodString;
|
|
774
834
|
}, z.core.$strip>, z.ZodObject<{
|
|
775
835
|
type: z.ZodLiteral<"none">;
|
|
776
836
|
}, z.core.$strip>]>;
|
|
@@ -807,6 +867,9 @@ declare const ExerciseStepAppSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
807
867
|
}, z.core.$strip>, z.ZodObject<{
|
|
808
868
|
type: z.ZodLiteral<"export">;
|
|
809
869
|
pathname: z.ZodString;
|
|
870
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
871
|
+
type: z.ZodLiteral<"file">;
|
|
872
|
+
pathname: z.ZodString;
|
|
810
873
|
}, z.core.$strip>, z.ZodObject<{
|
|
811
874
|
type: z.ZodLiteral<"none">;
|
|
812
875
|
}, z.core.$strip>]>;
|
|
@@ -844,6 +907,9 @@ declare const AppSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
|
844
907
|
}, z.core.$strip>, z.ZodObject<{
|
|
845
908
|
type: z.ZodLiteral<"export">;
|
|
846
909
|
pathname: z.ZodString;
|
|
910
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
911
|
+
type: z.ZodLiteral<"file">;
|
|
912
|
+
pathname: z.ZodString;
|
|
847
913
|
}, z.core.$strip>, z.ZodObject<{
|
|
848
914
|
type: z.ZodLiteral<"none">;
|
|
849
915
|
}, z.core.$strip>]>;
|
|
@@ -880,6 +946,9 @@ declare const AppSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
|
880
946
|
}, z.core.$strip>, z.ZodObject<{
|
|
881
947
|
type: z.ZodLiteral<"export">;
|
|
882
948
|
pathname: z.ZodString;
|
|
949
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
950
|
+
type: z.ZodLiteral<"file">;
|
|
951
|
+
pathname: z.ZodString;
|
|
883
952
|
}, z.core.$strip>, z.ZodObject<{
|
|
884
953
|
type: z.ZodLiteral<"none">;
|
|
885
954
|
}, z.core.$strip>]>;
|
|
@@ -916,6 +985,9 @@ declare const AppSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
|
916
985
|
}, z.core.$strip>, z.ZodObject<{
|
|
917
986
|
type: z.ZodLiteral<"export">;
|
|
918
987
|
pathname: z.ZodString;
|
|
988
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
989
|
+
type: z.ZodLiteral<"file">;
|
|
990
|
+
pathname: z.ZodString;
|
|
919
991
|
}, z.core.$strip>, z.ZodObject<{
|
|
920
992
|
type: z.ZodLiteral<"none">;
|
|
921
993
|
}, z.core.$strip>]>;
|
|
@@ -951,6 +1023,9 @@ declare const AppSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
|
951
1023
|
}, z.core.$strip>, z.ZodObject<{
|
|
952
1024
|
type: z.ZodLiteral<"export">;
|
|
953
1025
|
pathname: z.ZodString;
|
|
1026
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1027
|
+
type: z.ZodLiteral<"file">;
|
|
1028
|
+
pathname: z.ZodString;
|
|
954
1029
|
}, z.core.$strip>, z.ZodObject<{
|
|
955
1030
|
type: z.ZodLiteral<"none">;
|
|
956
1031
|
}, z.core.$strip>]>;
|
|
@@ -1042,6 +1117,9 @@ export declare function getExercise(exerciseNumber: number | string, { request,
|
|
|
1042
1117
|
} | {
|
|
1043
1118
|
type: "export";
|
|
1044
1119
|
pathname: string;
|
|
1120
|
+
} | {
|
|
1121
|
+
type: "file";
|
|
1122
|
+
pathname: string;
|
|
1045
1123
|
} | {
|
|
1046
1124
|
type: "none";
|
|
1047
1125
|
};
|
|
@@ -1079,6 +1157,9 @@ export declare function getExercise(exerciseNumber: number | string, { request,
|
|
|
1079
1157
|
} | {
|
|
1080
1158
|
type: "export";
|
|
1081
1159
|
pathname: string;
|
|
1160
|
+
} | {
|
|
1161
|
+
type: "file";
|
|
1162
|
+
pathname: string;
|
|
1082
1163
|
} | {
|
|
1083
1164
|
type: "none";
|
|
1084
1165
|
};
|
|
@@ -1118,6 +1199,9 @@ export declare function getExercise(exerciseNumber: number | string, { request,
|
|
|
1118
1199
|
} | {
|
|
1119
1200
|
type: "export";
|
|
1120
1201
|
pathname: string;
|
|
1202
|
+
} | {
|
|
1203
|
+
type: "file";
|
|
1204
|
+
pathname: string;
|
|
1121
1205
|
} | {
|
|
1122
1206
|
type: "none";
|
|
1123
1207
|
};
|
|
@@ -1158,6 +1242,9 @@ export declare function getExercise(exerciseNumber: number | string, { request,
|
|
|
1158
1242
|
} | {
|
|
1159
1243
|
type: "export";
|
|
1160
1244
|
pathname: string;
|
|
1245
|
+
} | {
|
|
1246
|
+
type: "file";
|
|
1247
|
+
pathname: string;
|
|
1161
1248
|
} | {
|
|
1162
1249
|
type: "none";
|
|
1163
1250
|
};
|
|
@@ -1197,6 +1284,9 @@ export declare function getExercise(exerciseNumber: number | string, { request,
|
|
|
1197
1284
|
} | {
|
|
1198
1285
|
type: "export";
|
|
1199
1286
|
pathname: string;
|
|
1287
|
+
} | {
|
|
1288
|
+
type: "file";
|
|
1289
|
+
pathname: string;
|
|
1200
1290
|
} | {
|
|
1201
1291
|
type: "none";
|
|
1202
1292
|
};
|
|
@@ -1234,6 +1324,9 @@ export declare function getExercise(exerciseNumber: number | string, { request,
|
|
|
1234
1324
|
} | {
|
|
1235
1325
|
type: "export";
|
|
1236
1326
|
pathname: string;
|
|
1327
|
+
} | {
|
|
1328
|
+
type: "file";
|
|
1329
|
+
pathname: string;
|
|
1237
1330
|
} | {
|
|
1238
1331
|
type: "none";
|
|
1239
1332
|
};
|
|
@@ -1283,6 +1376,9 @@ export declare function requireExercise(exerciseNumber: number | string, { reque
|
|
|
1283
1376
|
} | {
|
|
1284
1377
|
type: "export";
|
|
1285
1378
|
pathname: string;
|
|
1379
|
+
} | {
|
|
1380
|
+
type: "file";
|
|
1381
|
+
pathname: string;
|
|
1286
1382
|
} | {
|
|
1287
1383
|
type: "none";
|
|
1288
1384
|
};
|
|
@@ -1320,6 +1416,9 @@ export declare function requireExercise(exerciseNumber: number | string, { reque
|
|
|
1320
1416
|
} | {
|
|
1321
1417
|
type: "export";
|
|
1322
1418
|
pathname: string;
|
|
1419
|
+
} | {
|
|
1420
|
+
type: "file";
|
|
1421
|
+
pathname: string;
|
|
1323
1422
|
} | {
|
|
1324
1423
|
type: "none";
|
|
1325
1424
|
};
|
|
@@ -1359,6 +1458,9 @@ export declare function requireExercise(exerciseNumber: number | string, { reque
|
|
|
1359
1458
|
} | {
|
|
1360
1459
|
type: "export";
|
|
1361
1460
|
pathname: string;
|
|
1461
|
+
} | {
|
|
1462
|
+
type: "file";
|
|
1463
|
+
pathname: string;
|
|
1362
1464
|
} | {
|
|
1363
1465
|
type: "none";
|
|
1364
1466
|
};
|
|
@@ -1399,6 +1501,9 @@ export declare function requireExercise(exerciseNumber: number | string, { reque
|
|
|
1399
1501
|
} | {
|
|
1400
1502
|
type: "export";
|
|
1401
1503
|
pathname: string;
|
|
1504
|
+
} | {
|
|
1505
|
+
type: "file";
|
|
1506
|
+
pathname: string;
|
|
1402
1507
|
} | {
|
|
1403
1508
|
type: "none";
|
|
1404
1509
|
};
|
|
@@ -1438,6 +1543,9 @@ export declare function requireExercise(exerciseNumber: number | string, { reque
|
|
|
1438
1543
|
} | {
|
|
1439
1544
|
type: "export";
|
|
1440
1545
|
pathname: string;
|
|
1546
|
+
} | {
|
|
1547
|
+
type: "file";
|
|
1548
|
+
pathname: string;
|
|
1441
1549
|
} | {
|
|
1442
1550
|
type: "none";
|
|
1443
1551
|
};
|
|
@@ -1475,6 +1583,9 @@ export declare function requireExercise(exerciseNumber: number | string, { reque
|
|
|
1475
1583
|
} | {
|
|
1476
1584
|
type: "export";
|
|
1477
1585
|
pathname: string;
|
|
1586
|
+
} | {
|
|
1587
|
+
type: "file";
|
|
1588
|
+
pathname: string;
|
|
1478
1589
|
} | {
|
|
1479
1590
|
type: "none";
|
|
1480
1591
|
};
|
|
@@ -1517,6 +1628,9 @@ export declare function requireExerciseApp(params: Parameters<typeof getExercise
|
|
|
1517
1628
|
} | {
|
|
1518
1629
|
type: "export";
|
|
1519
1630
|
pathname: string;
|
|
1631
|
+
} | {
|
|
1632
|
+
type: "file";
|
|
1633
|
+
pathname: string;
|
|
1520
1634
|
} | {
|
|
1521
1635
|
type: "none";
|
|
1522
1636
|
};
|
|
@@ -1553,6 +1667,9 @@ export declare function requireExerciseApp(params: Parameters<typeof getExercise
|
|
|
1553
1667
|
} | {
|
|
1554
1668
|
type: "export";
|
|
1555
1669
|
pathname: string;
|
|
1670
|
+
} | {
|
|
1671
|
+
type: "file";
|
|
1672
|
+
pathname: string;
|
|
1556
1673
|
} | {
|
|
1557
1674
|
type: "none";
|
|
1558
1675
|
};
|
|
@@ -1594,6 +1711,9 @@ export declare function getExerciseApp(params: {
|
|
|
1594
1711
|
} | {
|
|
1595
1712
|
type: "export";
|
|
1596
1713
|
pathname: string;
|
|
1714
|
+
} | {
|
|
1715
|
+
type: "file";
|
|
1716
|
+
pathname: string;
|
|
1597
1717
|
} | {
|
|
1598
1718
|
type: "none";
|
|
1599
1719
|
};
|
|
@@ -1630,6 +1750,9 @@ export declare function getExerciseApp(params: {
|
|
|
1630
1750
|
} | {
|
|
1631
1751
|
type: "export";
|
|
1632
1752
|
pathname: string;
|
|
1753
|
+
} | {
|
|
1754
|
+
type: "file";
|
|
1755
|
+
pathname: string;
|
|
1633
1756
|
} | {
|
|
1634
1757
|
type: "none";
|
|
1635
1758
|
};
|
|
@@ -1667,6 +1790,9 @@ export declare function getAppByName(name: string, { request, timings }?: Cachif
|
|
|
1667
1790
|
} | {
|
|
1668
1791
|
type: "export";
|
|
1669
1792
|
pathname: string;
|
|
1793
|
+
} | {
|
|
1794
|
+
type: "file";
|
|
1795
|
+
pathname: string;
|
|
1670
1796
|
} | {
|
|
1671
1797
|
type: "none";
|
|
1672
1798
|
};
|
|
@@ -1703,6 +1829,9 @@ export declare function getAppByName(name: string, { request, timings }?: Cachif
|
|
|
1703
1829
|
} | {
|
|
1704
1830
|
type: "export";
|
|
1705
1831
|
pathname: string;
|
|
1832
|
+
} | {
|
|
1833
|
+
type: "file";
|
|
1834
|
+
pathname: string;
|
|
1706
1835
|
} | {
|
|
1707
1836
|
type: "none";
|
|
1708
1837
|
};
|
|
@@ -1739,6 +1868,9 @@ export declare function getAppByName(name: string, { request, timings }?: Cachif
|
|
|
1739
1868
|
} | {
|
|
1740
1869
|
type: "export";
|
|
1741
1870
|
pathname: string;
|
|
1871
|
+
} | {
|
|
1872
|
+
type: "file";
|
|
1873
|
+
pathname: string;
|
|
1742
1874
|
} | {
|
|
1743
1875
|
type: "none";
|
|
1744
1876
|
};
|
|
@@ -1772,6 +1904,9 @@ export declare function getAppByName(name: string, { request, timings }?: Cachif
|
|
|
1772
1904
|
} | {
|
|
1773
1905
|
type: "export";
|
|
1774
1906
|
pathname: string;
|
|
1907
|
+
} | {
|
|
1908
|
+
type: "file";
|
|
1909
|
+
pathname: string;
|
|
1775
1910
|
} | {
|
|
1776
1911
|
type: "none";
|
|
1777
1912
|
};
|
|
@@ -1808,6 +1943,9 @@ export declare function getNextExerciseApp(app: ExerciseStepApp, { request, timi
|
|
|
1808
1943
|
} | {
|
|
1809
1944
|
type: "export";
|
|
1810
1945
|
pathname: string;
|
|
1946
|
+
} | {
|
|
1947
|
+
type: "file";
|
|
1948
|
+
pathname: string;
|
|
1811
1949
|
} | {
|
|
1812
1950
|
type: "none";
|
|
1813
1951
|
};
|
|
@@ -1844,6 +1982,9 @@ export declare function getNextExerciseApp(app: ExerciseStepApp, { request, timi
|
|
|
1844
1982
|
} | {
|
|
1845
1983
|
type: "export";
|
|
1846
1984
|
pathname: string;
|
|
1985
|
+
} | {
|
|
1986
|
+
type: "file";
|
|
1987
|
+
pathname: string;
|
|
1847
1988
|
} | {
|
|
1848
1989
|
type: "none";
|
|
1849
1990
|
};
|
|
@@ -1881,6 +2022,9 @@ export declare function getPrevExerciseApp(app: ExerciseStepApp, { request, timi
|
|
|
1881
2022
|
} | {
|
|
1882
2023
|
type: "export";
|
|
1883
2024
|
pathname: string;
|
|
2025
|
+
} | {
|
|
2026
|
+
type: "file";
|
|
2027
|
+
pathname: string;
|
|
1884
2028
|
} | {
|
|
1885
2029
|
type: "none";
|
|
1886
2030
|
};
|
|
@@ -1917,6 +2061,9 @@ export declare function getPrevExerciseApp(app: ExerciseStepApp, { request, timi
|
|
|
1917
2061
|
} | {
|
|
1918
2062
|
type: "export";
|
|
1919
2063
|
pathname: string;
|
|
2064
|
+
} | {
|
|
2065
|
+
type: "file";
|
|
2066
|
+
pathname: string;
|
|
1920
2067
|
} | {
|
|
1921
2068
|
type: "none";
|
|
1922
2069
|
};
|
|
@@ -1961,6 +2108,9 @@ export declare function getAppFromFile(filePath: string): Promise<{
|
|
|
1961
2108
|
} | {
|
|
1962
2109
|
type: "export";
|
|
1963
2110
|
pathname: string;
|
|
2111
|
+
} | {
|
|
2112
|
+
type: "file";
|
|
2113
|
+
pathname: string;
|
|
1964
2114
|
} | {
|
|
1965
2115
|
type: "none";
|
|
1966
2116
|
};
|
|
@@ -1997,6 +2147,9 @@ export declare function getAppFromFile(filePath: string): Promise<{
|
|
|
1997
2147
|
} | {
|
|
1998
2148
|
type: "export";
|
|
1999
2149
|
pathname: string;
|
|
2150
|
+
} | {
|
|
2151
|
+
type: "file";
|
|
2152
|
+
pathname: string;
|
|
2000
2153
|
} | {
|
|
2001
2154
|
type: "none";
|
|
2002
2155
|
};
|
|
@@ -2033,6 +2186,9 @@ export declare function getAppFromFile(filePath: string): Promise<{
|
|
|
2033
2186
|
} | {
|
|
2034
2187
|
type: "export";
|
|
2035
2188
|
pathname: string;
|
|
2189
|
+
} | {
|
|
2190
|
+
type: "file";
|
|
2191
|
+
pathname: string;
|
|
2036
2192
|
} | {
|
|
2037
2193
|
type: "none";
|
|
2038
2194
|
};
|
|
@@ -2066,6 +2222,9 @@ export declare function getAppFromFile(filePath: string): Promise<{
|
|
|
2066
2222
|
} | {
|
|
2067
2223
|
type: "export";
|
|
2068
2224
|
pathname: string;
|
|
2225
|
+
} | {
|
|
2226
|
+
type: "file";
|
|
2227
|
+
pathname: string;
|
|
2069
2228
|
} | {
|
|
2070
2229
|
type: "none";
|
|
2071
2230
|
};
|
package/dist/apps.server.js
CHANGED
|
@@ -118,6 +118,10 @@ const BaseAppSchema = z.object({
|
|
|
118
118
|
type: z.literal('export'),
|
|
119
119
|
pathname: z.string(),
|
|
120
120
|
}),
|
|
121
|
+
z.object({
|
|
122
|
+
type: z.literal('file'),
|
|
123
|
+
pathname: z.string(),
|
|
124
|
+
}),
|
|
121
125
|
z.object({ type: z.literal('none') }),
|
|
122
126
|
]),
|
|
123
127
|
stackBlitzUrl: z.string().nullable(),
|
|
@@ -761,7 +765,10 @@ async function getDevInfo({ fullPath, portNumber, }) {
|
|
|
761
765
|
const packageJsonPath = path.join(fullPath, 'package.json');
|
|
762
766
|
const hasPackageJson = await fsExtra.pathExists(packageJsonPath);
|
|
763
767
|
if (!hasPackageJson) {
|
|
764
|
-
|
|
768
|
+
const hasIndexEntry = Boolean(await firstToExist(path.join(fullPath, 'index.html'), path.join(fullPath, 'index.tsx'), path.join(fullPath, 'index.ts'), path.join(fullPath, 'index.jsx'), path.join(fullPath, 'index.js'), path.join(fullPath, 'index.mjs'), path.join(fullPath, 'index.cjs')));
|
|
769
|
+
return hasIndexEntry
|
|
770
|
+
? { type: 'browser', pathname: getPathname(fullPath) }
|
|
771
|
+
: { type: 'file', pathname: getPathname(fullPath) };
|
|
765
772
|
}
|
|
766
773
|
else {
|
|
767
774
|
return { type: 'none' };
|
package/dist/cache.server.d.ts
CHANGED
|
@@ -49,6 +49,9 @@ export declare const solutionAppCache: C.Cache<{
|
|
|
49
49
|
} | {
|
|
50
50
|
type: "export";
|
|
51
51
|
pathname: string;
|
|
52
|
+
} | {
|
|
53
|
+
type: "file";
|
|
54
|
+
pathname: string;
|
|
52
55
|
} | {
|
|
53
56
|
type: "none";
|
|
54
57
|
};
|
|
@@ -86,6 +89,9 @@ export declare const problemAppCache: C.Cache<{
|
|
|
86
89
|
} | {
|
|
87
90
|
type: "export";
|
|
88
91
|
pathname: string;
|
|
92
|
+
} | {
|
|
93
|
+
type: "file";
|
|
94
|
+
pathname: string;
|
|
89
95
|
} | {
|
|
90
96
|
type: "none";
|
|
91
97
|
};
|
|
@@ -123,6 +129,9 @@ export declare const extraAppCache: C.Cache<{
|
|
|
123
129
|
} | {
|
|
124
130
|
type: "export";
|
|
125
131
|
pathname: string;
|
|
132
|
+
} | {
|
|
133
|
+
type: "file";
|
|
134
|
+
pathname: string;
|
|
126
135
|
} | {
|
|
127
136
|
type: "none";
|
|
128
137
|
};
|
|
@@ -157,6 +166,9 @@ export declare const playgroundAppCache: C.Cache<{
|
|
|
157
166
|
} | {
|
|
158
167
|
type: "export";
|
|
159
168
|
pathname: string;
|
|
169
|
+
} | {
|
|
170
|
+
type: "file";
|
|
171
|
+
pathname: string;
|
|
160
172
|
} | {
|
|
161
173
|
type: "none";
|
|
162
174
|
};
|