@squiz/edge-dev-render-runtime-lib 2.5.1 → 2.5.2

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/lib/index.js CHANGED
@@ -66,7 +66,7 @@ var import_http = __toESM(require("http"));
66
66
  var import_supertest = __toESM(require("supertest"));
67
67
  var import_child_process = require("child_process");
68
68
  var import_path4 = __toESM(require("path"));
69
- var import_os2 = __toESM(require("os"));
69
+ var import_os = __toESM(require("os"));
70
70
  var import_dx_logger_lib = require("@squiz/dx-logger-lib");
71
71
 
72
72
  // src/webserver/app.ts
@@ -200,6 +200,1290 @@ function setHeadersOnExpressResponse(headers, response) {
200
200
  }
201
201
  }
202
202
 
203
+ // src/webserver/controllers/mocks/mockResources.ts
204
+ var resources = [
205
+ {
206
+ id: "1",
207
+ type: {
208
+ code: "image",
209
+ name: "Image"
210
+ },
211
+ status: {
212
+ code: "live",
213
+ name: "Live"
214
+ },
215
+ source: {
216
+ id: "1",
217
+ type: "matrix"
218
+ },
219
+ name: "Example image",
220
+ childCount: 0,
221
+ url: "https://picsum.photos/200/300",
222
+ urls: [],
223
+ squizImage: {
224
+ name: "My Image",
225
+ alt: "My Image that did not load",
226
+ caption: "This above is a loaded image",
227
+ imageVariations: {
228
+ original: {
229
+ url: "http://example.com/image.jpg",
230
+ width: 100,
231
+ height: 100,
232
+ byteSize: 1e3,
233
+ mimeType: "image/jpeg",
234
+ aspectRatio: "1:1",
235
+ sha1Hash: "1234567890abcdef1234567890abcdef12345678"
236
+ }
237
+ },
238
+ exif: {
239
+ thumbnail: {
240
+ Compression: void 0,
241
+ Orientation: void 0,
242
+ ResolutionUnit: void 0,
243
+ ThumbnailLength: void 0,
244
+ ThumbnailOffset: void 0,
245
+ XResolution: void 0,
246
+ YCbCrPositioning: void 0,
247
+ YResolution: void 0
248
+ },
249
+ exif: {
250
+ ApertureValue: void 0,
251
+ BrightnessValue: void 0,
252
+ ColorSpace: void 0,
253
+ ComponentsConfiguration: void 0,
254
+ CompressedBitsPerPixel: void 0,
255
+ CreateDate: void 0,
256
+ DateTimeOriginal: void 0,
257
+ ExifImageHeight: void 0,
258
+ ExifImageWidth: void 0,
259
+ ExifVersion: void 0,
260
+ ExposureCompensation: void 0,
261
+ ExposureMode: void 0,
262
+ ExposureProgram: void 0,
263
+ ExposureTime: void 0,
264
+ FileSource: void 0,
265
+ Flash: void 0,
266
+ FlashpixVersion: void 0,
267
+ FNumber: void 0,
268
+ FocalLength: void 0,
269
+ FocalLengthIn35mmFormat: void 0,
270
+ FocalPlaneResolutionUnit: void 0,
271
+ FocalPlaneXResolution: void 0,
272
+ FocalPlaneYResolution: void 0,
273
+ ImageUniqueID: void 0,
274
+ InteropOffset: void 0,
275
+ ISO: void 0,
276
+ LensMake: void 0,
277
+ LensModel: void 0,
278
+ MakerNote: void 0,
279
+ MaxApertureValue: void 0,
280
+ MeteringMode: void 0,
281
+ SceneCaptureType: void 0,
282
+ SceneType: void 0,
283
+ SensingMethod: void 0,
284
+ ShutterSpeedValue: void 0,
285
+ UserComment: void 0,
286
+ WhiteBalance: void 0
287
+ },
288
+ gps: {
289
+ GPSAltitude: void 0,
290
+ GPSAltitudeRef: void 0,
291
+ GPSAreaInformation: void 0,
292
+ GPSDateStamp: void 0,
293
+ GPSDestBearing: void 0,
294
+ GPSDestBearingRef: void 0,
295
+ GPSDestDistance: void 0,
296
+ GPSDestDistanceRef: void 0,
297
+ GPSDestLatitude: void 0,
298
+ GPSDestLatitudeRef: void 0,
299
+ GPSDestLongitude: void 0,
300
+ GPSDestLongitudeRef: void 0,
301
+ GPSDifferential: void 0,
302
+ GPSDOP: void 0,
303
+ GPSHPositioningError: void 0,
304
+ GPSImgDirection: void 0,
305
+ GPSImgDirectionRef: void 0,
306
+ GPSLatitude: void 0,
307
+ GPSLatitudeRef: void 0,
308
+ GPSLongitude: void 0,
309
+ GPSLongitudeRef: void 0,
310
+ GPSMapDatum: void 0,
311
+ GPSMeasureMode: void 0,
312
+ GPSProcessingMethod: void 0,
313
+ GPSTimeStamp: void 0,
314
+ GPSSatellites: void 0,
315
+ GPSSpeed: void 0,
316
+ GPSSpeedRef: void 0,
317
+ GPSStatus: void 0,
318
+ GPSTrack: void 0,
319
+ GPSTrackRef: void 0,
320
+ GPSVersionId: void 0
321
+ },
322
+ interoperability: {
323
+ InteropIndex: void 0,
324
+ InteropVersion: void 0
325
+ },
326
+ makernote: {
327
+ AutoBracketing: void 0,
328
+ BlurWarning: void 0,
329
+ ExposureWarning: void 0,
330
+ error: void 0,
331
+ FlashExposureComp: void 0,
332
+ FocusMode: void 0,
333
+ FocusWarning: void 0,
334
+ FujiFlashMode: void 0,
335
+ Macro: void 0,
336
+ Quality: void 0,
337
+ Sharpness: void 0,
338
+ SlowSync: void 0,
339
+ Version: void 0,
340
+ WhiteBalance: void 0
341
+ },
342
+ image: {
343
+ Artist: void 0,
344
+ Copyright: void 0,
345
+ ExifOffset: void 0,
346
+ ImageHeight: void 0,
347
+ ImageWidth: void 0,
348
+ Make: void 0,
349
+ Model: void 0,
350
+ ModifyDate: void 0,
351
+ Orientation: void 0,
352
+ ResolutionUnit: void 0,
353
+ Software: void 0,
354
+ XResolution: void 0,
355
+ YCbCrPositioning: void 0,
356
+ YResolution: void 0
357
+ }
358
+ }
359
+ }
360
+ },
361
+ {
362
+ id: "2",
363
+ type: {
364
+ code: "image",
365
+ name: "Image"
366
+ },
367
+ status: {
368
+ code: "live",
369
+ name: "Live"
370
+ },
371
+ source: {
372
+ id: "1",
373
+ type: "matrix"
374
+ },
375
+ name: "Example image two",
376
+ childCount: 0,
377
+ url: "https://picsum.photos/200/300",
378
+ urls: [],
379
+ squizImage: {
380
+ name: "My Image",
381
+ alt: "My Image that did not load",
382
+ caption: "This above is a loaded image",
383
+ imageVariations: {
384
+ original: {
385
+ url: "http://example.com/image.jpg",
386
+ width: 100,
387
+ height: 100,
388
+ byteSize: 1e3,
389
+ mimeType: "image/jpeg",
390
+ aspectRatio: "1:1",
391
+ sha1Hash: "1234567890abcdef1234567890abcdef12345678"
392
+ }
393
+ },
394
+ exif: {
395
+ thumbnail: {
396
+ Compression: void 0,
397
+ Orientation: void 0,
398
+ ResolutionUnit: void 0,
399
+ ThumbnailLength: void 0,
400
+ ThumbnailOffset: void 0,
401
+ XResolution: void 0,
402
+ YCbCrPositioning: void 0,
403
+ YResolution: void 0
404
+ },
405
+ exif: {
406
+ ApertureValue: void 0,
407
+ BrightnessValue: void 0,
408
+ ColorSpace: void 0,
409
+ ComponentsConfiguration: void 0,
410
+ CompressedBitsPerPixel: void 0,
411
+ CreateDate: void 0,
412
+ DateTimeOriginal: void 0,
413
+ ExifImageHeight: void 0,
414
+ ExifImageWidth: void 0,
415
+ ExifVersion: void 0,
416
+ ExposureCompensation: void 0,
417
+ ExposureMode: void 0,
418
+ ExposureProgram: void 0,
419
+ ExposureTime: void 0,
420
+ FileSource: void 0,
421
+ Flash: void 0,
422
+ FlashpixVersion: void 0,
423
+ FNumber: void 0,
424
+ FocalLength: void 0,
425
+ FocalLengthIn35mmFormat: void 0,
426
+ FocalPlaneResolutionUnit: void 0,
427
+ FocalPlaneXResolution: void 0,
428
+ FocalPlaneYResolution: void 0,
429
+ ImageUniqueID: void 0,
430
+ InteropOffset: void 0,
431
+ ISO: void 0,
432
+ LensMake: void 0,
433
+ LensModel: void 0,
434
+ MakerNote: void 0,
435
+ MaxApertureValue: void 0,
436
+ MeteringMode: void 0,
437
+ SceneCaptureType: void 0,
438
+ SceneType: void 0,
439
+ SensingMethod: void 0,
440
+ ShutterSpeedValue: void 0,
441
+ UserComment: void 0,
442
+ WhiteBalance: void 0
443
+ },
444
+ gps: {
445
+ GPSAltitude: void 0,
446
+ GPSAltitudeRef: void 0,
447
+ GPSAreaInformation: void 0,
448
+ GPSDateStamp: void 0,
449
+ GPSDestBearing: void 0,
450
+ GPSDestBearingRef: void 0,
451
+ GPSDestDistance: void 0,
452
+ GPSDestDistanceRef: void 0,
453
+ GPSDestLatitude: void 0,
454
+ GPSDestLatitudeRef: void 0,
455
+ GPSDestLongitude: void 0,
456
+ GPSDestLongitudeRef: void 0,
457
+ GPSDifferential: void 0,
458
+ GPSDOP: void 0,
459
+ GPSHPositioningError: void 0,
460
+ GPSImgDirection: void 0,
461
+ GPSImgDirectionRef: void 0,
462
+ GPSLatitude: void 0,
463
+ GPSLatitudeRef: void 0,
464
+ GPSLongitude: void 0,
465
+ GPSLongitudeRef: void 0,
466
+ GPSMapDatum: void 0,
467
+ GPSMeasureMode: void 0,
468
+ GPSProcessingMethod: void 0,
469
+ GPSTimeStamp: void 0,
470
+ GPSSatellites: void 0,
471
+ GPSSpeed: void 0,
472
+ GPSSpeedRef: void 0,
473
+ GPSStatus: void 0,
474
+ GPSTrack: void 0,
475
+ GPSTrackRef: void 0,
476
+ GPSVersionId: void 0
477
+ },
478
+ interoperability: {
479
+ InteropIndex: void 0,
480
+ InteropVersion: void 0
481
+ },
482
+ makernote: {
483
+ AutoBracketing: void 0,
484
+ BlurWarning: void 0,
485
+ ExposureWarning: void 0,
486
+ error: void 0,
487
+ FlashExposureComp: void 0,
488
+ FocusMode: void 0,
489
+ FocusWarning: void 0,
490
+ FujiFlashMode: void 0,
491
+ Macro: void 0,
492
+ Quality: void 0,
493
+ Sharpness: void 0,
494
+ SlowSync: void 0,
495
+ Version: void 0,
496
+ WhiteBalance: void 0
497
+ },
498
+ image: {
499
+ Artist: void 0,
500
+ Copyright: void 0,
501
+ ExifOffset: void 0,
502
+ ImageHeight: void 0,
503
+ ImageWidth: void 0,
504
+ Make: void 0,
505
+ Model: void 0,
506
+ ModifyDate: void 0,
507
+ Orientation: void 0,
508
+ ResolutionUnit: void 0,
509
+ Software: void 0,
510
+ XResolution: void 0,
511
+ YCbCrPositioning: void 0,
512
+ YResolution: void 0
513
+ }
514
+ }
515
+ }
516
+ },
517
+ {
518
+ id: "3",
519
+ type: {
520
+ code: "page_standard",
521
+ name: "Standard Page"
522
+ },
523
+ status: {
524
+ code: "live",
525
+ name: "Live"
526
+ },
527
+ source: {
528
+ id: "1",
529
+ type: "matrix"
530
+ },
531
+ name: "Example page",
532
+ childCount: 0,
533
+ url: "https://picsum.photos/200/300",
534
+ urls: []
535
+ },
536
+ {
537
+ id: "4",
538
+ type: {
539
+ code: "unknown",
540
+ name: "Unknown Type"
541
+ },
542
+ status: {
543
+ code: "live",
544
+ name: "Live"
545
+ },
546
+ source: {
547
+ id: "1",
548
+ type: "matrix"
549
+ },
550
+ name: "Unknown",
551
+ childCount: 0,
552
+ url: "https://picsum.photos/200/300",
553
+ urls: []
554
+ },
555
+ {
556
+ id: "5",
557
+ type: {
558
+ code: "audio_file",
559
+ name: "Audio File"
560
+ },
561
+ status: {
562
+ code: "live",
563
+ name: "Live"
564
+ },
565
+ source: {
566
+ id: "1",
567
+ type: "matrix"
568
+ },
569
+ name: "Audio File",
570
+ childCount: 0,
571
+ url: "https://picsum.photos/200/300",
572
+ urls: []
573
+ },
574
+ {
575
+ id: "6",
576
+ type: {
577
+ code: "excel_doc",
578
+ name: "MS Excel Document"
579
+ },
580
+ status: {
581
+ code: "live",
582
+ name: "Live"
583
+ },
584
+ source: {
585
+ id: "1",
586
+ type: "matrix"
587
+ },
588
+ name: "Excel Document",
589
+ childCount: 0,
590
+ url: "https://picsum.photos/200/300",
591
+ urls: []
592
+ },
593
+ {
594
+ id: "7",
595
+ type: {
596
+ code: "folder",
597
+ name: "Folder"
598
+ },
599
+ status: {
600
+ code: "live",
601
+ name: "Live"
602
+ },
603
+ source: {
604
+ id: "1",
605
+ type: "matrix"
606
+ },
607
+ name: "Folder",
608
+ childCount: 0,
609
+ url: "https://picsum.photos/200/300",
610
+ urls: []
611
+ },
612
+ {
613
+ id: "8",
614
+ type: {
615
+ code: "page_standard",
616
+ name: "Standard Page"
617
+ },
618
+ status: {
619
+ code: "live",
620
+ name: "Live"
621
+ },
622
+ source: {
623
+ id: "1",
624
+ type: "matrix"
625
+ },
626
+ name: "Standard Page",
627
+ childCount: 0,
628
+ url: "https://picsum.photos/200/300",
629
+ urls: []
630
+ },
631
+ {
632
+ id: "9",
633
+ type: {
634
+ code: "pdf_file",
635
+ name: "PDF File"
636
+ },
637
+ status: {
638
+ code: "live",
639
+ name: "Live"
640
+ },
641
+ source: {
642
+ id: "1",
643
+ type: "matrix"
644
+ },
645
+ name: "PDF File",
646
+ childCount: 0,
647
+ url: "https://picsum.photos/200/300",
648
+ urls: []
649
+ },
650
+ {
651
+ id: "10",
652
+ type: {
653
+ code: "powerpoint_doc",
654
+ name: "MS PowerPoint Document"
655
+ },
656
+ status: {
657
+ code: "live",
658
+ name: "Live"
659
+ },
660
+ source: {
661
+ id: "1",
662
+ type: "matrix"
663
+ },
664
+ name: "Powerpoint presentation",
665
+ childCount: 0,
666
+ url: "https://picsum.photos/200/300",
667
+ urls: []
668
+ },
669
+ {
670
+ id: "11",
671
+ type: {
672
+ code: "site",
673
+ name: "Site"
674
+ },
675
+ status: {
676
+ code: "live",
677
+ name: "Live"
678
+ },
679
+ source: {
680
+ id: "1",
681
+ type: "matrix"
682
+ },
683
+ name: "Site",
684
+ childCount: 0,
685
+ url: "https://picsum.photos/200/300",
686
+ urls: []
687
+ },
688
+ {
689
+ id: "12",
690
+ type: {
691
+ code: "video_file",
692
+ name: "Video File"
693
+ },
694
+ status: {
695
+ code: "live",
696
+ name: "Live"
697
+ },
698
+ source: {
699
+ id: "1",
700
+ type: "matrix"
701
+ },
702
+ name: "Video file",
703
+ childCount: 0,
704
+ url: "https://picsum.photos/200/300",
705
+ urls: []
706
+ },
707
+ {
708
+ id: "13",
709
+ type: {
710
+ code: "word_doc",
711
+ name: "MS Word Document"
712
+ },
713
+ status: {
714
+ code: "live",
715
+ name: "Live"
716
+ },
717
+ source: {
718
+ id: "1",
719
+ type: "matrix"
720
+ },
721
+ name: "Word document",
722
+ childCount: 0,
723
+ url: "https://picsum.photos/200/300",
724
+ urls: []
725
+ },
726
+ {
727
+ id: "14",
728
+ type: {
729
+ code: "physical_file",
730
+ name: "Physical File"
731
+ },
732
+ status: {
733
+ code: "live",
734
+ name: "Live"
735
+ },
736
+ source: {
737
+ id: "1",
738
+ type: "matrix"
739
+ },
740
+ name: "Physical file",
741
+ childCount: 0,
742
+ url: "https://picsum.photos/200/300",
743
+ urls: []
744
+ },
745
+ {
746
+ id: "15",
747
+ type: {
748
+ code: "folder",
749
+ name: "Folder"
750
+ },
751
+ status: {
752
+ code: "live",
753
+ name: "Live"
754
+ },
755
+ source: {
756
+ id: "1",
757
+ type: "matrix"
758
+ },
759
+ name: "Example folder",
760
+ childCount: 10,
761
+ url: "",
762
+ urls: [],
763
+ _children: [
764
+ {
765
+ id: "5",
766
+ type: {
767
+ code: "image",
768
+ name: "Image"
769
+ },
770
+ status: {
771
+ code: "live",
772
+ name: "Live"
773
+ },
774
+ source: {
775
+ id: "1",
776
+ type: "matrix"
777
+ },
778
+ name: "Example image one #2",
779
+ childCount: 0,
780
+ url: "https://picsum.photos/200/300",
781
+ urls: [],
782
+ squizImage: {
783
+ name: "My Image",
784
+ alt: "My Image that did not load",
785
+ caption: "This above is a loaded image",
786
+ imageVariations: {
787
+ original: {
788
+ url: "http://example.com/image.jpg",
789
+ width: 100,
790
+ height: 100,
791
+ byteSize: 1e3,
792
+ mimeType: "image/jpeg",
793
+ aspectRatio: "1:1",
794
+ sha1Hash: "1234567890abcdef1234567890abcdef12345678"
795
+ }
796
+ },
797
+ exif: {
798
+ thumbnail: {
799
+ Compression: void 0,
800
+ Orientation: void 0,
801
+ ResolutionUnit: void 0,
802
+ ThumbnailLength: void 0,
803
+ ThumbnailOffset: void 0,
804
+ XResolution: void 0,
805
+ YCbCrPositioning: void 0,
806
+ YResolution: void 0
807
+ },
808
+ exif: {
809
+ ApertureValue: void 0,
810
+ BrightnessValue: void 0,
811
+ ColorSpace: void 0,
812
+ ComponentsConfiguration: void 0,
813
+ CompressedBitsPerPixel: void 0,
814
+ CreateDate: void 0,
815
+ DateTimeOriginal: void 0,
816
+ ExifImageHeight: void 0,
817
+ ExifImageWidth: void 0,
818
+ ExifVersion: void 0,
819
+ ExposureCompensation: void 0,
820
+ ExposureMode: void 0,
821
+ ExposureProgram: void 0,
822
+ ExposureTime: void 0,
823
+ FileSource: void 0,
824
+ Flash: void 0,
825
+ FlashpixVersion: void 0,
826
+ FNumber: void 0,
827
+ FocalLength: void 0,
828
+ FocalLengthIn35mmFormat: void 0,
829
+ FocalPlaneResolutionUnit: void 0,
830
+ FocalPlaneXResolution: void 0,
831
+ FocalPlaneYResolution: void 0,
832
+ ImageUniqueID: void 0,
833
+ InteropOffset: void 0,
834
+ ISO: void 0,
835
+ LensMake: void 0,
836
+ LensModel: void 0,
837
+ MakerNote: void 0,
838
+ MaxApertureValue: void 0,
839
+ MeteringMode: void 0,
840
+ SceneCaptureType: void 0,
841
+ SceneType: void 0,
842
+ SensingMethod: void 0,
843
+ ShutterSpeedValue: void 0,
844
+ UserComment: void 0,
845
+ WhiteBalance: void 0
846
+ },
847
+ gps: {
848
+ GPSAltitude: void 0,
849
+ GPSAltitudeRef: void 0,
850
+ GPSAreaInformation: void 0,
851
+ GPSDateStamp: void 0,
852
+ GPSDestBearing: void 0,
853
+ GPSDestBearingRef: void 0,
854
+ GPSDestDistance: void 0,
855
+ GPSDestDistanceRef: void 0,
856
+ GPSDestLatitude: void 0,
857
+ GPSDestLatitudeRef: void 0,
858
+ GPSDestLongitude: void 0,
859
+ GPSDestLongitudeRef: void 0,
860
+ GPSDifferential: void 0,
861
+ GPSDOP: void 0,
862
+ GPSHPositioningError: void 0,
863
+ GPSImgDirection: void 0,
864
+ GPSImgDirectionRef: void 0,
865
+ GPSLatitude: void 0,
866
+ GPSLatitudeRef: void 0,
867
+ GPSLongitude: void 0,
868
+ GPSLongitudeRef: void 0,
869
+ GPSMapDatum: void 0,
870
+ GPSMeasureMode: void 0,
871
+ GPSProcessingMethod: void 0,
872
+ GPSTimeStamp: void 0,
873
+ GPSSatellites: void 0,
874
+ GPSSpeed: void 0,
875
+ GPSSpeedRef: void 0,
876
+ GPSStatus: void 0,
877
+ GPSTrack: void 0,
878
+ GPSTrackRef: void 0,
879
+ GPSVersionId: void 0
880
+ },
881
+ interoperability: {
882
+ InteropIndex: void 0,
883
+ InteropVersion: void 0
884
+ },
885
+ makernote: {
886
+ AutoBracketing: void 0,
887
+ BlurWarning: void 0,
888
+ ExposureWarning: void 0,
889
+ error: void 0,
890
+ FlashExposureComp: void 0,
891
+ FocusMode: void 0,
892
+ FocusWarning: void 0,
893
+ FujiFlashMode: void 0,
894
+ Macro: void 0,
895
+ Quality: void 0,
896
+ Sharpness: void 0,
897
+ SlowSync: void 0,
898
+ Version: void 0,
899
+ WhiteBalance: void 0
900
+ },
901
+ image: {
902
+ Artist: void 0,
903
+ Copyright: void 0,
904
+ ExifOffset: void 0,
905
+ ImageHeight: void 0,
906
+ ImageWidth: void 0,
907
+ Make: void 0,
908
+ Model: void 0,
909
+ ModifyDate: void 0,
910
+ Orientation: void 0,
911
+ ResolutionUnit: void 0,
912
+ Software: void 0,
913
+ XResolution: void 0,
914
+ YCbCrPositioning: void 0,
915
+ YResolution: void 0
916
+ }
917
+ }
918
+ }
919
+ },
920
+ {
921
+ id: "6",
922
+ type: {
923
+ code: "image",
924
+ name: "Image"
925
+ },
926
+ status: {
927
+ code: "live",
928
+ name: "Live"
929
+ },
930
+ source: {
931
+ id: "1",
932
+ type: "matrix"
933
+ },
934
+ name: "Example image two #2",
935
+ childCount: 0,
936
+ url: "https://picsum.photos/200/300",
937
+ urls: [],
938
+ squizImage: {
939
+ name: "My Image",
940
+ alt: "My Image that did not load",
941
+ caption: "This above is a loaded image",
942
+ imageVariations: {
943
+ original: {
944
+ url: "http://example.com/image.jpg",
945
+ width: 100,
946
+ height: 100,
947
+ byteSize: 1e3,
948
+ mimeType: "image/jpeg",
949
+ aspectRatio: "1:1",
950
+ sha1Hash: "1234567890abcdef1234567890abcdef12345678"
951
+ }
952
+ },
953
+ exif: {
954
+ thumbnail: {
955
+ Compression: void 0,
956
+ Orientation: void 0,
957
+ ResolutionUnit: void 0,
958
+ ThumbnailLength: void 0,
959
+ ThumbnailOffset: void 0,
960
+ XResolution: void 0,
961
+ YCbCrPositioning: void 0,
962
+ YResolution: void 0
963
+ },
964
+ exif: {
965
+ ApertureValue: void 0,
966
+ BrightnessValue: void 0,
967
+ ColorSpace: void 0,
968
+ ComponentsConfiguration: void 0,
969
+ CompressedBitsPerPixel: void 0,
970
+ CreateDate: void 0,
971
+ DateTimeOriginal: void 0,
972
+ ExifImageHeight: void 0,
973
+ ExifImageWidth: void 0,
974
+ ExifVersion: void 0,
975
+ ExposureCompensation: void 0,
976
+ ExposureMode: void 0,
977
+ ExposureProgram: void 0,
978
+ ExposureTime: void 0,
979
+ FileSource: void 0,
980
+ Flash: void 0,
981
+ FlashpixVersion: void 0,
982
+ FNumber: void 0,
983
+ FocalLength: void 0,
984
+ FocalLengthIn35mmFormat: void 0,
985
+ FocalPlaneResolutionUnit: void 0,
986
+ FocalPlaneXResolution: void 0,
987
+ FocalPlaneYResolution: void 0,
988
+ ImageUniqueID: void 0,
989
+ InteropOffset: void 0,
990
+ ISO: void 0,
991
+ LensMake: void 0,
992
+ LensModel: void 0,
993
+ MakerNote: void 0,
994
+ MaxApertureValue: void 0,
995
+ MeteringMode: void 0,
996
+ SceneCaptureType: void 0,
997
+ SceneType: void 0,
998
+ SensingMethod: void 0,
999
+ ShutterSpeedValue: void 0,
1000
+ UserComment: void 0,
1001
+ WhiteBalance: void 0
1002
+ },
1003
+ gps: {
1004
+ GPSAltitude: void 0,
1005
+ GPSAltitudeRef: void 0,
1006
+ GPSAreaInformation: void 0,
1007
+ GPSDateStamp: void 0,
1008
+ GPSDestBearing: void 0,
1009
+ GPSDestBearingRef: void 0,
1010
+ GPSDestDistance: void 0,
1011
+ GPSDestDistanceRef: void 0,
1012
+ GPSDestLatitude: void 0,
1013
+ GPSDestLatitudeRef: void 0,
1014
+ GPSDestLongitude: void 0,
1015
+ GPSDestLongitudeRef: void 0,
1016
+ GPSDifferential: void 0,
1017
+ GPSDOP: void 0,
1018
+ GPSHPositioningError: void 0,
1019
+ GPSImgDirection: void 0,
1020
+ GPSImgDirectionRef: void 0,
1021
+ GPSLatitude: void 0,
1022
+ GPSLatitudeRef: void 0,
1023
+ GPSLongitude: void 0,
1024
+ GPSLongitudeRef: void 0,
1025
+ GPSMapDatum: void 0,
1026
+ GPSMeasureMode: void 0,
1027
+ GPSProcessingMethod: void 0,
1028
+ GPSTimeStamp: void 0,
1029
+ GPSSatellites: void 0,
1030
+ GPSSpeed: void 0,
1031
+ GPSSpeedRef: void 0,
1032
+ GPSStatus: void 0,
1033
+ GPSTrack: void 0,
1034
+ GPSTrackRef: void 0,
1035
+ GPSVersionId: void 0
1036
+ },
1037
+ interoperability: {
1038
+ InteropIndex: void 0,
1039
+ InteropVersion: void 0
1040
+ },
1041
+ makernote: {
1042
+ AutoBracketing: void 0,
1043
+ BlurWarning: void 0,
1044
+ ExposureWarning: void 0,
1045
+ error: void 0,
1046
+ FlashExposureComp: void 0,
1047
+ FocusMode: void 0,
1048
+ FocusWarning: void 0,
1049
+ FujiFlashMode: void 0,
1050
+ Macro: void 0,
1051
+ Quality: void 0,
1052
+ Sharpness: void 0,
1053
+ SlowSync: void 0,
1054
+ Version: void 0,
1055
+ WhiteBalance: void 0
1056
+ },
1057
+ image: {
1058
+ Artist: void 0,
1059
+ Copyright: void 0,
1060
+ ExifOffset: void 0,
1061
+ ImageHeight: void 0,
1062
+ ImageWidth: void 0,
1063
+ Make: void 0,
1064
+ Model: void 0,
1065
+ ModifyDate: void 0,
1066
+ Orientation: void 0,
1067
+ ResolutionUnit: void 0,
1068
+ Software: void 0,
1069
+ XResolution: void 0,
1070
+ YCbCrPositioning: void 0,
1071
+ YResolution: void 0
1072
+ }
1073
+ }
1074
+ }
1075
+ },
1076
+ {
1077
+ id: "7",
1078
+ type: {
1079
+ code: "page_standard",
1080
+ name: "Standard Page"
1081
+ },
1082
+ status: {
1083
+ code: "live",
1084
+ name: "Live"
1085
+ },
1086
+ source: {
1087
+ id: "1",
1088
+ type: "matrix"
1089
+ },
1090
+ name: "Example page #2",
1091
+ childCount: 0,
1092
+ url: "https://picsum.photos/200/300",
1093
+ urls: []
1094
+ },
1095
+ {
1096
+ id: "8",
1097
+ type: {
1098
+ code: "folder",
1099
+ name: "Folder"
1100
+ },
1101
+ status: {
1102
+ code: "live",
1103
+ name: "Live"
1104
+ },
1105
+ source: {
1106
+ id: "1",
1107
+ type: "matrix"
1108
+ },
1109
+ name: "Example folder #2",
1110
+ childCount: 10,
1111
+ url: "",
1112
+ urls: [],
1113
+ _children: [
1114
+ {
1115
+ id: "9",
1116
+ type: {
1117
+ code: "image",
1118
+ name: "Image"
1119
+ },
1120
+ status: {
1121
+ code: "live",
1122
+ name: "Live"
1123
+ },
1124
+ source: {
1125
+ id: "1",
1126
+ type: "matrix"
1127
+ },
1128
+ name: "Example image one #3",
1129
+ childCount: 0,
1130
+ url: "https://picsum.photos/200/300",
1131
+ urls: [],
1132
+ squizImage: {
1133
+ name: "My Image",
1134
+ alt: "My Image that did not load",
1135
+ caption: "This above is a loaded image",
1136
+ imageVariations: {
1137
+ original: {
1138
+ url: "http://example.com/image.jpg",
1139
+ width: 100,
1140
+ height: 100,
1141
+ byteSize: 1e3,
1142
+ mimeType: "image/jpeg",
1143
+ aspectRatio: "1:1",
1144
+ sha1Hash: "1234567890abcdef1234567890abcdef12345678"
1145
+ }
1146
+ },
1147
+ exif: {
1148
+ thumbnail: {
1149
+ Compression: void 0,
1150
+ Orientation: void 0,
1151
+ ResolutionUnit: void 0,
1152
+ ThumbnailLength: void 0,
1153
+ ThumbnailOffset: void 0,
1154
+ XResolution: void 0,
1155
+ YCbCrPositioning: void 0,
1156
+ YResolution: void 0
1157
+ },
1158
+ exif: {
1159
+ ApertureValue: void 0,
1160
+ BrightnessValue: void 0,
1161
+ ColorSpace: void 0,
1162
+ ComponentsConfiguration: void 0,
1163
+ CompressedBitsPerPixel: void 0,
1164
+ CreateDate: void 0,
1165
+ DateTimeOriginal: void 0,
1166
+ ExifImageHeight: void 0,
1167
+ ExifImageWidth: void 0,
1168
+ ExifVersion: void 0,
1169
+ ExposureCompensation: void 0,
1170
+ ExposureMode: void 0,
1171
+ ExposureProgram: void 0,
1172
+ ExposureTime: void 0,
1173
+ FileSource: void 0,
1174
+ Flash: void 0,
1175
+ FlashpixVersion: void 0,
1176
+ FNumber: void 0,
1177
+ FocalLength: void 0,
1178
+ FocalLengthIn35mmFormat: void 0,
1179
+ FocalPlaneResolutionUnit: void 0,
1180
+ FocalPlaneXResolution: void 0,
1181
+ FocalPlaneYResolution: void 0,
1182
+ ImageUniqueID: void 0,
1183
+ InteropOffset: void 0,
1184
+ ISO: void 0,
1185
+ LensMake: void 0,
1186
+ LensModel: void 0,
1187
+ MakerNote: void 0,
1188
+ MaxApertureValue: void 0,
1189
+ MeteringMode: void 0,
1190
+ SceneCaptureType: void 0,
1191
+ SceneType: void 0,
1192
+ SensingMethod: void 0,
1193
+ ShutterSpeedValue: void 0,
1194
+ UserComment: void 0,
1195
+ WhiteBalance: void 0
1196
+ },
1197
+ gps: {
1198
+ GPSAltitude: void 0,
1199
+ GPSAltitudeRef: void 0,
1200
+ GPSAreaInformation: void 0,
1201
+ GPSDateStamp: void 0,
1202
+ GPSDestBearing: void 0,
1203
+ GPSDestBearingRef: void 0,
1204
+ GPSDestDistance: void 0,
1205
+ GPSDestDistanceRef: void 0,
1206
+ GPSDestLatitude: void 0,
1207
+ GPSDestLatitudeRef: void 0,
1208
+ GPSDestLongitude: void 0,
1209
+ GPSDestLongitudeRef: void 0,
1210
+ GPSDifferential: void 0,
1211
+ GPSDOP: void 0,
1212
+ GPSHPositioningError: void 0,
1213
+ GPSImgDirection: void 0,
1214
+ GPSImgDirectionRef: void 0,
1215
+ GPSLatitude: void 0,
1216
+ GPSLatitudeRef: void 0,
1217
+ GPSLongitude: void 0,
1218
+ GPSLongitudeRef: void 0,
1219
+ GPSMapDatum: void 0,
1220
+ GPSMeasureMode: void 0,
1221
+ GPSProcessingMethod: void 0,
1222
+ GPSTimeStamp: void 0,
1223
+ GPSSatellites: void 0,
1224
+ GPSSpeed: void 0,
1225
+ GPSSpeedRef: void 0,
1226
+ GPSStatus: void 0,
1227
+ GPSTrack: void 0,
1228
+ GPSTrackRef: void 0,
1229
+ GPSVersionId: void 0
1230
+ },
1231
+ interoperability: {
1232
+ InteropIndex: void 0,
1233
+ InteropVersion: void 0
1234
+ },
1235
+ makernote: {
1236
+ AutoBracketing: void 0,
1237
+ BlurWarning: void 0,
1238
+ ExposureWarning: void 0,
1239
+ error: void 0,
1240
+ FlashExposureComp: void 0,
1241
+ FocusMode: void 0,
1242
+ FocusWarning: void 0,
1243
+ FujiFlashMode: void 0,
1244
+ Macro: void 0,
1245
+ Quality: void 0,
1246
+ Sharpness: void 0,
1247
+ SlowSync: void 0,
1248
+ Version: void 0,
1249
+ WhiteBalance: void 0
1250
+ },
1251
+ image: {
1252
+ Artist: void 0,
1253
+ Copyright: void 0,
1254
+ ExifOffset: void 0,
1255
+ ImageHeight: void 0,
1256
+ ImageWidth: void 0,
1257
+ Make: void 0,
1258
+ Model: void 0,
1259
+ ModifyDate: void 0,
1260
+ Orientation: void 0,
1261
+ ResolutionUnit: void 0,
1262
+ Software: void 0,
1263
+ XResolution: void 0,
1264
+ YCbCrPositioning: void 0,
1265
+ YResolution: void 0
1266
+ }
1267
+ }
1268
+ }
1269
+ },
1270
+ {
1271
+ id: "10",
1272
+ type: {
1273
+ code: "image",
1274
+ name: "Image"
1275
+ },
1276
+ status: {
1277
+ code: "live",
1278
+ name: "Live"
1279
+ },
1280
+ source: {
1281
+ id: "1",
1282
+ type: "matrix"
1283
+ },
1284
+ name: "Example image two #3",
1285
+ childCount: 0,
1286
+ url: "https://picsum.photos/200/300",
1287
+ urls: [],
1288
+ squizImage: {
1289
+ name: "My Image",
1290
+ alt: "My Image that did not load",
1291
+ caption: "This above is a loaded image",
1292
+ imageVariations: {
1293
+ original: {
1294
+ url: "http://example.com/image.jpg",
1295
+ width: 100,
1296
+ height: 100,
1297
+ byteSize: 1e3,
1298
+ mimeType: "image/jpeg",
1299
+ aspectRatio: "1:1",
1300
+ sha1Hash: "1234567890abcdef1234567890abcdef12345678"
1301
+ }
1302
+ },
1303
+ exif: {
1304
+ thumbnail: {
1305
+ Compression: void 0,
1306
+ Orientation: void 0,
1307
+ ResolutionUnit: void 0,
1308
+ ThumbnailLength: void 0,
1309
+ ThumbnailOffset: void 0,
1310
+ XResolution: void 0,
1311
+ YCbCrPositioning: void 0,
1312
+ YResolution: void 0
1313
+ },
1314
+ exif: {
1315
+ ApertureValue: void 0,
1316
+ BrightnessValue: void 0,
1317
+ ColorSpace: void 0,
1318
+ ComponentsConfiguration: void 0,
1319
+ CompressedBitsPerPixel: void 0,
1320
+ CreateDate: void 0,
1321
+ DateTimeOriginal: void 0,
1322
+ ExifImageHeight: void 0,
1323
+ ExifImageWidth: void 0,
1324
+ ExifVersion: void 0,
1325
+ ExposureCompensation: void 0,
1326
+ ExposureMode: void 0,
1327
+ ExposureProgram: void 0,
1328
+ ExposureTime: void 0,
1329
+ FileSource: void 0,
1330
+ Flash: void 0,
1331
+ FlashpixVersion: void 0,
1332
+ FNumber: void 0,
1333
+ FocalLength: void 0,
1334
+ FocalLengthIn35mmFormat: void 0,
1335
+ FocalPlaneResolutionUnit: void 0,
1336
+ FocalPlaneXResolution: void 0,
1337
+ FocalPlaneYResolution: void 0,
1338
+ ImageUniqueID: void 0,
1339
+ InteropOffset: void 0,
1340
+ ISO: void 0,
1341
+ LensMake: void 0,
1342
+ LensModel: void 0,
1343
+ MakerNote: void 0,
1344
+ MaxApertureValue: void 0,
1345
+ MeteringMode: void 0,
1346
+ SceneCaptureType: void 0,
1347
+ SceneType: void 0,
1348
+ SensingMethod: void 0,
1349
+ ShutterSpeedValue: void 0,
1350
+ UserComment: void 0,
1351
+ WhiteBalance: void 0
1352
+ },
1353
+ gps: {
1354
+ GPSAltitude: void 0,
1355
+ GPSAltitudeRef: void 0,
1356
+ GPSAreaInformation: void 0,
1357
+ GPSDateStamp: void 0,
1358
+ GPSDestBearing: void 0,
1359
+ GPSDestBearingRef: void 0,
1360
+ GPSDestDistance: void 0,
1361
+ GPSDestDistanceRef: void 0,
1362
+ GPSDestLatitude: void 0,
1363
+ GPSDestLatitudeRef: void 0,
1364
+ GPSDestLongitude: void 0,
1365
+ GPSDestLongitudeRef: void 0,
1366
+ GPSDifferential: void 0,
1367
+ GPSDOP: void 0,
1368
+ GPSHPositioningError: void 0,
1369
+ GPSImgDirection: void 0,
1370
+ GPSImgDirectionRef: void 0,
1371
+ GPSLatitude: void 0,
1372
+ GPSLatitudeRef: void 0,
1373
+ GPSLongitude: void 0,
1374
+ GPSLongitudeRef: void 0,
1375
+ GPSMapDatum: void 0,
1376
+ GPSMeasureMode: void 0,
1377
+ GPSProcessingMethod: void 0,
1378
+ GPSTimeStamp: void 0,
1379
+ GPSSatellites: void 0,
1380
+ GPSSpeed: void 0,
1381
+ GPSSpeedRef: void 0,
1382
+ GPSStatus: void 0,
1383
+ GPSTrack: void 0,
1384
+ GPSTrackRef: void 0,
1385
+ GPSVersionId: void 0
1386
+ },
1387
+ interoperability: {
1388
+ InteropIndex: void 0,
1389
+ InteropVersion: void 0
1390
+ },
1391
+ makernote: {
1392
+ AutoBracketing: void 0,
1393
+ BlurWarning: void 0,
1394
+ ExposureWarning: void 0,
1395
+ error: void 0,
1396
+ FlashExposureComp: void 0,
1397
+ FocusMode: void 0,
1398
+ FocusWarning: void 0,
1399
+ FujiFlashMode: void 0,
1400
+ Macro: void 0,
1401
+ Quality: void 0,
1402
+ Sharpness: void 0,
1403
+ SlowSync: void 0,
1404
+ Version: void 0,
1405
+ WhiteBalance: void 0
1406
+ },
1407
+ image: {
1408
+ Artist: void 0,
1409
+ Copyright: void 0,
1410
+ ExifOffset: void 0,
1411
+ ImageHeight: void 0,
1412
+ ImageWidth: void 0,
1413
+ Make: void 0,
1414
+ Model: void 0,
1415
+ ModifyDate: void 0,
1416
+ Orientation: void 0,
1417
+ ResolutionUnit: void 0,
1418
+ Software: void 0,
1419
+ XResolution: void 0,
1420
+ YCbCrPositioning: void 0,
1421
+ YResolution: void 0
1422
+ }
1423
+ }
1424
+ }
1425
+ },
1426
+ {
1427
+ id: "11",
1428
+ type: {
1429
+ code: "page_standard",
1430
+ name: "Standard Page"
1431
+ },
1432
+ status: {
1433
+ code: "live",
1434
+ name: "Live"
1435
+ },
1436
+ source: {
1437
+ id: "1",
1438
+ type: "matrix"
1439
+ },
1440
+ name: "Example page #3",
1441
+ childCount: 0,
1442
+ url: "https://picsum.photos/200/300",
1443
+ urls: []
1444
+ }
1445
+ ]
1446
+ }
1447
+ ]
1448
+ }
1449
+ ];
1450
+
1451
+ // src/webserver/controllers/utils/ReplaceWithMock.ts
1452
+ function hasSquizType(componentSchema) {
1453
+ if (!componentSchema || typeof componentSchema !== "object") {
1454
+ return false;
1455
+ }
1456
+ const inputSchema = componentSchema.input;
1457
+ if (!inputSchema || typeof inputSchema !== "object" || !inputSchema.properties) {
1458
+ return false;
1459
+ }
1460
+ return Object.values(inputSchema.properties).some(
1461
+ (prop) => prop.type === "SquizImage" || prop.type === "SquizLink"
1462
+ );
1463
+ }
1464
+ function replaceWithMock(componentSchema, data) {
1465
+ if (!componentSchema || typeof componentSchema !== "object") {
1466
+ return componentSchema;
1467
+ }
1468
+ const inputSchema = componentSchema.input;
1469
+ if (!inputSchema || typeof inputSchema !== "object" || !inputSchema.properties) {
1470
+ return componentSchema;
1471
+ }
1472
+ const squizImageKeys = Object.keys(inputSchema.properties).filter(
1473
+ (key) => inputSchema.properties[key].type === "SquizImage"
1474
+ );
1475
+ squizImageKeys.forEach((key) => {
1476
+ if (data[key]) {
1477
+ const resourceToReplace = resources.find((resource) => resource.id = data[key]["matrixAssetId"]);
1478
+ data = {
1479
+ ...data,
1480
+ [key]: resourceToReplace
1481
+ };
1482
+ }
1483
+ });
1484
+ return data;
1485
+ }
1486
+
203
1487
  // src/webserver/controllers/DevelopmentController.ts
204
1488
  var UPPERCASE_REGEX = /[A-Z]/;
205
1489
  var DevelopmentController = class extends import_tsoa3.Controller {
@@ -248,6 +1532,9 @@ var DevelopmentController = class extends import_tsoa3.Controller {
248
1532
  const rootUrl = `http://${req.headers.host}`.replace(/\/+$/, "");
249
1533
  const componentManifest = await this.manifestService.loadManifest(namespace, componentName, version);
250
1534
  const componentFunction = componentManifest.getComponentFunctionByName(functionName);
1535
+ if (hasSquizType(componentFunction)) {
1536
+ data = replaceWithMock(componentFunction, data);
1537
+ }
251
1538
  const defaultPreviewKey = Object.keys(componentManifest.getModel()?.previews ?? {}).at(0) ?? void 0;
252
1539
  const componentTask = {
253
1540
  requestId: Date.now().toString(),
@@ -1019,7 +2306,7 @@ var models = {
1019
2306
  "functions": { "dataType": "array", "array": { "dataType": "refObject", "ref": "ComponentFunction" }, "required": true, "validators": { "minItems": { "value": 0 } } },
1020
2307
  "previews": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "additionalProperties": { "ref": "PreviewDefinition" } },
1021
2308
  "mockedUris": { "dataType": "nestedObjectLiteral", "nestedProperties": {}, "additionalProperties": { "dataType": "union", "subSchemas": [{ "dataType": "nestedObjectLiteral", "nestedProperties": { "path": { "dataType": "string", "required": true }, "type": { "dataType": "enum", "enums": ["file"], "required": true } }, "additionalProperties": { "dataType": "any" } }, { "dataType": "nestedObjectLiteral", "nestedProperties": { "value": { "ref": "MatrixAssetSchema", "required": true }, "type": { "dataType": "enum", "enums": ["inline"], "required": true } }, "additionalProperties": { "dataType": "any" } }] } },
1022
- "ui:metadata": { "dataType": "nestedObjectLiteral", "nestedProperties": { "autoReload": { "dataType": "intersection", "subSchemas": [{ "dataType": "boolean" }, { "dataType": "string" }], "required": true } }, "additionalProperties": { "dataType": "any" } }
2309
+ "ui:metadata": { "dataType": "nestedObjectLiteral", "nestedProperties": { "autoReload": { "dataType": "boolean", "required": true } }, "additionalProperties": { "dataType": "any" } }
1023
2310
  },
1024
2311
  "additionalProperties": false
1025
2312
  },
@@ -1432,10 +2719,8 @@ var ContentRuntimeService = class {
1432
2719
  var import_events = require("events");
1433
2720
  var import_fs = __toESM(require("fs"));
1434
2721
  var esbuild = __toESM(require("esbuild"));
1435
- var import_crypto2 = __toESM(require("crypto"));
1436
2722
  var import_node_path = __toESM(require("node:path"));
1437
2723
  var import_node_vm = __toESM(require("node:vm"));
1438
- var import_os = require("os");
1439
2724
  var import_module = require("module");
1440
2725
  var DevelopmentComponentRunnerService = class {
1441
2726
  async executeEdgeComponentFunction(task, contextAwareness) {
@@ -1619,11 +2904,6 @@ var DevelopmentComponentRunnerService = class {
1619
2904
  };
1620
2905
  return componentContext;
1621
2906
  }
1622
- getOutputLocation(sourceJsFile) {
1623
- const fileInfo = import_fs.default.statSync(sourceJsFile);
1624
- const filenameHash = import_crypto2.default.createHash("md5").update(sourceJsFile).digest("hex");
1625
- return import_node_path.default.join((0, import_os.tmpdir)(), "components", `${filenameHash}_${fileInfo.mtime.getMilliseconds()}.mjs`);
1626
- }
1627
2907
  };
1628
2908
 
1629
2909
  // src/PreviewComponentService.ts
@@ -1888,7 +3168,7 @@ var import_component_logger_lib = require("@squiz/component-logger-lib");
1888
3168
  var testLogger = (0, import_dx_logger_lib.getLogger)({
1889
3169
  name: "render-runtime-lib-test",
1890
3170
  meta: {
1891
- hostname: import_os2.default.hostname(),
3171
+ hostname: import_os.default.hostname(),
1892
3172
  pid: process.pid
1893
3173
  },
1894
3174
  silent: true
@@ -1977,7 +3257,7 @@ var TestServer = class {
1977
3257
  var import_promises2 = __toESM(require("fs/promises"));
1978
3258
  var import_path5 = __toESM(require("path"));
1979
3259
  var import_strict2 = __toESM(require("assert/strict"));
1980
- var import_crypto3 = require("crypto");
3260
+ var import_crypto2 = require("crypto");
1981
3261
  var FIXTURE_NAMESPACE = "some-namespace";
1982
3262
  var ComponentFixture = class {
1983
3263
  static {
@@ -2110,7 +3390,7 @@ function getTestSet() {
2110
3390
  };
2111
3391
  }
2112
3392
  function generateRandomName() {
2113
- return "test-" + (0, import_crypto3.randomUUID)();
3393
+ return "test-" + (0, import_crypto2.randomUUID)();
2114
3394
  }
2115
3395
 
2116
3396
  // src/webserver/controllers/test/render-route-tests.ts