@remotion/renderer 4.0.115 → 4.0.116

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.
@@ -120,7 +120,7 @@ const downloadBrowser = async (options) => {
120
120
  onProgress: (progress) => {
121
121
  if (progress.downloaded > lastProgress + 10000000) {
122
122
  lastProgress = progress.downloaded;
123
- logger_1.Log.infoAdvanced({ indent: options.indent, logLevel: options.logLevel }, `Downloading Thorium - ${toMegabytes(progress.downloaded)}/${toMegabytes(progress.totalSize)}`);
123
+ logger_1.Log.info({ indent: options.indent, logLevel: options.logLevel }, `Downloading Thorium - ${toMegabytes(progress.downloaded)}/${toMegabytes(progress.totalSize)}`);
124
124
  }
125
125
  },
126
126
  indent: options.indent,
@@ -133,7 +133,7 @@ class Page extends EventEmitter_1.EventEmitter {
133
133
  .join(':');
134
134
  const tag = [origPosition === null || origPosition === void 0 ? void 0 : origPosition.name, file].filter(truthy_1.truthy).join('@');
135
135
  if (log.type === 'error') {
136
- logger_1.Log.errorAdvanced({
136
+ logger_1.Log.error({
137
137
  logLevel,
138
138
  tag,
139
139
  indent,
@@ -149,10 +149,10 @@ class Page extends EventEmitter_1.EventEmitter {
149
149
  }
150
150
  else if (log.type === 'error') {
151
151
  if (log.text.includes('Failed to load resource:')) {
152
- logger_1.Log.errorAdvanced({ logLevel, tag: url, indent }, log.text);
152
+ logger_1.Log.error({ logLevel, tag: url, indent }, log.text);
153
153
  }
154
154
  else {
155
- logger_1.Log.errorAdvanced({ logLevel, tag: `console.${log.type}`, indent }, log.text);
155
+ logger_1.Log.error({ logLevel, tag: `console.${log.type}`, indent }, log.text);
156
156
  }
157
157
  }
158
158
  else {
@@ -198,7 +198,7 @@ class CDPSession extends EventEmitter_1.EventEmitter {
198
198
  var _a;
199
199
  if (__classPrivateFieldGet(this, _CDPSession_callbacks, "f").size > 100) {
200
200
  for (const callback of __classPrivateFieldGet(this, _CDPSession_callbacks, "f").values()) {
201
- logger_1.Log.info(callback.fn);
201
+ logger_1.Log.info({ indent: false, logLevel: 'info' }, callback.fn);
202
202
  }
203
203
  throw new Error('Leak detected: Too many callbacks');
204
204
  }
package/dist/client.d.ts CHANGED
@@ -532,10 +532,7 @@ export declare const BrowserSafeApis: {
532
532
  getValue: ({ commandLine }: {
533
533
  commandLine: Record<string, unknown>;
534
534
  }) => {
535
- value: true;
536
- source: string;
537
- } | {
538
- value: false;
535
+ value: boolean;
539
536
  source: string;
540
537
  };
541
538
  setConfig: (should: boolean) => void;
@@ -558,6 +555,66 @@ export declare const BrowserSafeApis: {
558
555
  };
559
556
  setConfig: (profile: "ultrafast" | "superfast" | "veryfast" | "faster" | "fast" | "medium" | "slow" | "slower" | "veryslow" | "placebo" | null) => void;
560
557
  };
558
+ logLevelOption: {
559
+ cliFlag: "log";
560
+ name: string;
561
+ ssrName: string;
562
+ description: () => import("react/jsx-runtime").JSX.Element;
563
+ docLink: string;
564
+ getValue: ({ commandLine }: {
565
+ commandLine: Record<string, unknown>;
566
+ }) => {
567
+ value: "verbose" | "info" | "warn" | "error";
568
+ source: string;
569
+ };
570
+ setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
571
+ type: "verbose" | "info" | "warn" | "error";
572
+ };
573
+ delayRenderTimeoutInMillisecondsOption: {
574
+ name: string;
575
+ cliFlag: "timeout";
576
+ description: () => import("react/jsx-runtime").JSX.Element;
577
+ ssrName: "timeoutInMilliseconds";
578
+ docLink: string;
579
+ type: number;
580
+ getValue: ({ commandLine }: {
581
+ commandLine: Record<string, unknown>;
582
+ }) => {
583
+ source: string;
584
+ value: number;
585
+ };
586
+ setConfig: (value: number) => void;
587
+ };
588
+ headlessOption: {
589
+ name: string;
590
+ cliFlag: "disable-headless";
591
+ description: () => import("react/jsx-runtime").JSX.Element;
592
+ ssrName: string;
593
+ docLink: string;
594
+ type: boolean;
595
+ getValue: ({ commandLine }: {
596
+ commandLine: Record<string, unknown>;
597
+ }) => {
598
+ source: string;
599
+ value: boolean;
600
+ };
601
+ setConfig: (value: boolean) => void;
602
+ };
603
+ overwriteOption: {
604
+ name: string;
605
+ cliFlag: "overwrite";
606
+ description: () => import("react/jsx-runtime").JSX.Element;
607
+ ssrName: string;
608
+ docLink: string;
609
+ type: boolean;
610
+ getValue: ({ commandLine }: {
611
+ commandLine: Record<string, unknown>;
612
+ }, defaultValue: boolean) => {
613
+ source: string;
614
+ value: boolean;
615
+ };
616
+ setConfig: (value: boolean) => void;
617
+ };
561
618
  };
562
619
  validColorSpaces: readonly ["default", "bt709", "bt2020-ncl"];
563
620
  optionsMap: {
@@ -623,10 +680,7 @@ export declare const BrowserSafeApis: {
623
680
  getValue: ({ commandLine }: {
624
681
  commandLine: Record<string, unknown>;
625
682
  }) => {
626
- value: true;
627
- source: string;
628
- } | {
629
- value: false;
683
+ value: boolean;
630
684
  source: string;
631
685
  };
632
686
  setConfig: (should: boolean) => void;
@@ -769,6 +823,36 @@ export declare const BrowserSafeApis: {
769
823
  };
770
824
  setConfig: () => void;
771
825
  };
826
+ readonly logLevel: {
827
+ cliFlag: "log";
828
+ name: string;
829
+ ssrName: string;
830
+ description: () => import("react/jsx-runtime").JSX.Element;
831
+ docLink: string;
832
+ getValue: ({ commandLine }: {
833
+ commandLine: Record<string, unknown>;
834
+ }) => {
835
+ value: "verbose" | "info" | "warn" | "error";
836
+ source: string;
837
+ };
838
+ setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
839
+ type: "verbose" | "info" | "warn" | "error";
840
+ };
841
+ readonly timeoutInMilliseconds: {
842
+ name: string;
843
+ cliFlag: "timeout";
844
+ description: () => import("react/jsx-runtime").JSX.Element;
845
+ ssrName: "timeoutInMilliseconds";
846
+ docLink: string;
847
+ type: number;
848
+ getValue: ({ commandLine }: {
849
+ commandLine: Record<string, unknown>;
850
+ }) => {
851
+ source: string;
852
+ value: number;
853
+ };
854
+ setConfig: (value: number) => void;
855
+ };
772
856
  };
773
857
  readonly renderStill: {
774
858
  readonly offthreadVideoCacheSizeInBytes: {
@@ -804,6 +888,36 @@ export declare const BrowserSafeApis: {
804
888
  value: number;
805
889
  };
806
890
  };
891
+ readonly logLevel: {
892
+ cliFlag: "log";
893
+ name: string;
894
+ ssrName: string;
895
+ description: () => import("react/jsx-runtime").JSX.Element;
896
+ docLink: string;
897
+ getValue: ({ commandLine }: {
898
+ commandLine: Record<string, unknown>;
899
+ }) => {
900
+ value: "verbose" | "info" | "warn" | "error";
901
+ source: string;
902
+ };
903
+ setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
904
+ type: "verbose" | "info" | "warn" | "error";
905
+ };
906
+ readonly timeoutInMilliseconds: {
907
+ name: string;
908
+ cliFlag: "timeout";
909
+ description: () => import("react/jsx-runtime").JSX.Element;
910
+ ssrName: "timeoutInMilliseconds";
911
+ docLink: string;
912
+ type: number;
913
+ getValue: ({ commandLine }: {
914
+ commandLine: Record<string, unknown>;
915
+ }) => {
916
+ source: string;
917
+ value: number;
918
+ };
919
+ setConfig: (value: number) => void;
920
+ };
807
921
  };
808
922
  readonly getCompositions: {
809
923
  readonly offthreadVideoCacheSizeInBytes: {
@@ -824,6 +938,36 @@ export declare const BrowserSafeApis: {
824
938
  };
825
939
  setConfig: (size: number | null) => void;
826
940
  };
941
+ readonly logLevel: {
942
+ cliFlag: "log";
943
+ name: string;
944
+ ssrName: string;
945
+ description: () => import("react/jsx-runtime").JSX.Element;
946
+ docLink: string;
947
+ getValue: ({ commandLine }: {
948
+ commandLine: Record<string, unknown>;
949
+ }) => {
950
+ value: "verbose" | "info" | "warn" | "error";
951
+ source: string;
952
+ };
953
+ setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
954
+ type: "verbose" | "info" | "warn" | "error";
955
+ };
956
+ readonly timeoutInMilliseconds: {
957
+ name: string;
958
+ cliFlag: "timeout";
959
+ description: () => import("react/jsx-runtime").JSX.Element;
960
+ ssrName: "timeoutInMilliseconds";
961
+ docLink: string;
962
+ type: number;
963
+ getValue: ({ commandLine }: {
964
+ commandLine: Record<string, unknown>;
965
+ }) => {
966
+ source: string;
967
+ value: number;
968
+ };
969
+ setConfig: (value: number) => void;
970
+ };
827
971
  };
828
972
  readonly selectComposition: {
829
973
  readonly offthreadVideoCacheSizeInBytes: {
@@ -844,6 +988,36 @@ export declare const BrowserSafeApis: {
844
988
  };
845
989
  setConfig: (size: number | null) => void;
846
990
  };
991
+ readonly logLevel: {
992
+ cliFlag: "log";
993
+ name: string;
994
+ ssrName: string;
995
+ description: () => import("react/jsx-runtime").JSX.Element;
996
+ docLink: string;
997
+ getValue: ({ commandLine }: {
998
+ commandLine: Record<string, unknown>;
999
+ }) => {
1000
+ value: "verbose" | "info" | "warn" | "error";
1001
+ source: string;
1002
+ };
1003
+ setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
1004
+ type: "verbose" | "info" | "warn" | "error";
1005
+ };
1006
+ readonly timeoutInMilliseconds: {
1007
+ name: string;
1008
+ cliFlag: "timeout";
1009
+ description: () => import("react/jsx-runtime").JSX.Element;
1010
+ ssrName: "timeoutInMilliseconds";
1011
+ docLink: string;
1012
+ type: number;
1013
+ getValue: ({ commandLine }: {
1014
+ commandLine: Record<string, unknown>;
1015
+ }) => {
1016
+ source: string;
1017
+ value: number;
1018
+ };
1019
+ setConfig: (value: number) => void;
1020
+ };
847
1021
  };
848
1022
  readonly renderFrames: {
849
1023
  readonly offthreadVideoCacheSizeInBytes: {
@@ -879,6 +1053,36 @@ export declare const BrowserSafeApis: {
879
1053
  value: number;
880
1054
  };
881
1055
  };
1056
+ readonly logLevel: {
1057
+ cliFlag: "log";
1058
+ name: string;
1059
+ ssrName: string;
1060
+ description: () => import("react/jsx-runtime").JSX.Element;
1061
+ docLink: string;
1062
+ getValue: ({ commandLine }: {
1063
+ commandLine: Record<string, unknown>;
1064
+ }) => {
1065
+ value: "verbose" | "info" | "warn" | "error";
1066
+ source: string;
1067
+ };
1068
+ setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
1069
+ type: "verbose" | "info" | "warn" | "error";
1070
+ };
1071
+ readonly timeoutInMilliseconds: {
1072
+ name: string;
1073
+ cliFlag: "timeout";
1074
+ description: () => import("react/jsx-runtime").JSX.Element;
1075
+ ssrName: "timeoutInMilliseconds";
1076
+ docLink: string;
1077
+ type: number;
1078
+ getValue: ({ commandLine }: {
1079
+ commandLine: Record<string, unknown>;
1080
+ }) => {
1081
+ source: string;
1082
+ value: number;
1083
+ };
1084
+ setConfig: (value: number) => void;
1085
+ };
882
1086
  };
883
1087
  readonly renderMediaOnLambda: {
884
1088
  readonly offthreadVideoCacheSizeInBytes: {
@@ -1052,6 +1256,36 @@ export declare const BrowserSafeApis: {
1052
1256
  };
1053
1257
  setConfig: () => void;
1054
1258
  };
1259
+ readonly logLevel: {
1260
+ cliFlag: "log";
1261
+ name: string;
1262
+ ssrName: string;
1263
+ description: () => import("react/jsx-runtime").JSX.Element;
1264
+ docLink: string;
1265
+ getValue: ({ commandLine }: {
1266
+ commandLine: Record<string, unknown>;
1267
+ }) => {
1268
+ value: "verbose" | "info" | "warn" | "error";
1269
+ source: string;
1270
+ };
1271
+ setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
1272
+ type: "verbose" | "info" | "warn" | "error";
1273
+ };
1274
+ readonly timeoutInMilliseconds: {
1275
+ name: string;
1276
+ cliFlag: "timeout";
1277
+ description: () => import("react/jsx-runtime").JSX.Element;
1278
+ ssrName: "timeoutInMilliseconds";
1279
+ docLink: string;
1280
+ type: number;
1281
+ getValue: ({ commandLine }: {
1282
+ commandLine: Record<string, unknown>;
1283
+ }) => {
1284
+ source: string;
1285
+ value: number;
1286
+ };
1287
+ setConfig: (value: number) => void;
1288
+ };
1055
1289
  };
1056
1290
  readonly renderStillOnLambda: {
1057
1291
  readonly offthreadVideoCacheSizeInBytes: {
@@ -1087,6 +1321,69 @@ export declare const BrowserSafeApis: {
1087
1321
  value: number;
1088
1322
  };
1089
1323
  };
1324
+ readonly logLevel: {
1325
+ cliFlag: "log";
1326
+ name: string;
1327
+ ssrName: string;
1328
+ description: () => import("react/jsx-runtime").JSX.Element;
1329
+ docLink: string;
1330
+ getValue: ({ commandLine }: {
1331
+ commandLine: Record<string, unknown>;
1332
+ }) => {
1333
+ value: "verbose" | "info" | "warn" | "error";
1334
+ source: string;
1335
+ };
1336
+ setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
1337
+ type: "verbose" | "info" | "warn" | "error";
1338
+ };
1339
+ readonly deleteAfter: {
1340
+ name: string;
1341
+ cliFlag: "delete-after";
1342
+ description: () => import("react/jsx-runtime").JSX.Element;
1343
+ ssrName: "deleteAfter";
1344
+ docLink: string;
1345
+ type: import(".").DeleteAfter | null;
1346
+ getValue: ({ commandLine }: {
1347
+ commandLine: Record<string, unknown>;
1348
+ }) => {
1349
+ source: string;
1350
+ value: import(".").DeleteAfter;
1351
+ } | {
1352
+ source: string;
1353
+ value: null;
1354
+ };
1355
+ setConfig: (value: import(".").DeleteAfter | null) => void;
1356
+ };
1357
+ readonly scale: {
1358
+ name: string;
1359
+ cliFlag: "scale";
1360
+ description: () => import("react/jsx-runtime").JSX.Element;
1361
+ ssrName: string;
1362
+ docLink: string;
1363
+ type: number;
1364
+ getValue: ({ commandLine }: {
1365
+ commandLine: Record<string, unknown>;
1366
+ }) => {
1367
+ source: string;
1368
+ value: number;
1369
+ };
1370
+ setConfig: (scale: number) => void;
1371
+ };
1372
+ readonly timeoutInMilliseconds: {
1373
+ name: string;
1374
+ cliFlag: "timeout";
1375
+ description: () => import("react/jsx-runtime").JSX.Element;
1376
+ ssrName: "timeoutInMilliseconds";
1377
+ docLink: string;
1378
+ type: number;
1379
+ getValue: ({ commandLine }: {
1380
+ commandLine: Record<string, unknown>;
1381
+ }) => {
1382
+ source: string;
1383
+ value: number;
1384
+ };
1385
+ setConfig: (value: number) => void;
1386
+ };
1090
1387
  };
1091
1388
  readonly getCompositionsOnLambda: {
1092
1389
  readonly offthreadVideoCacheSizeInBytes: {
@@ -1107,6 +1404,36 @@ export declare const BrowserSafeApis: {
1107
1404
  };
1108
1405
  setConfig: (size: number | null) => void;
1109
1406
  };
1407
+ readonly logLevel: {
1408
+ cliFlag: "log";
1409
+ name: string;
1410
+ ssrName: string;
1411
+ description: () => import("react/jsx-runtime").JSX.Element;
1412
+ docLink: string;
1413
+ getValue: ({ commandLine }: {
1414
+ commandLine: Record<string, unknown>;
1415
+ }) => {
1416
+ value: "verbose" | "info" | "warn" | "error";
1417
+ source: string;
1418
+ };
1419
+ setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
1420
+ type: "verbose" | "info" | "warn" | "error";
1421
+ };
1422
+ readonly timeoutInMilliseconds: {
1423
+ name: string;
1424
+ cliFlag: "timeout";
1425
+ description: () => import("react/jsx-runtime").JSX.Element;
1426
+ ssrName: "timeoutInMilliseconds";
1427
+ docLink: string;
1428
+ type: number;
1429
+ getValue: ({ commandLine }: {
1430
+ commandLine: Record<string, unknown>;
1431
+ }) => {
1432
+ source: string;
1433
+ value: number;
1434
+ };
1435
+ setConfig: (value: number) => void;
1436
+ };
1110
1437
  };
1111
1438
  readonly renderMediaOnCloudRun: {
1112
1439
  readonly offthreadVideoCacheSizeInBytes: {
@@ -1262,6 +1589,96 @@ export declare const BrowserSafeApis: {
1262
1589
  };
1263
1590
  setConfig: () => void;
1264
1591
  };
1592
+ readonly logLevel: {
1593
+ cliFlag: "log";
1594
+ name: string;
1595
+ ssrName: string;
1596
+ description: () => import("react/jsx-runtime").JSX.Element;
1597
+ docLink: string;
1598
+ getValue: ({ commandLine }: {
1599
+ commandLine: Record<string, unknown>;
1600
+ }) => {
1601
+ value: "verbose" | "info" | "warn" | "error";
1602
+ source: string;
1603
+ };
1604
+ setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
1605
+ type: "verbose" | "info" | "warn" | "error";
1606
+ };
1607
+ readonly delayRenderTimeoutInMilliseconds: {
1608
+ name: string;
1609
+ cliFlag: "timeout";
1610
+ description: () => import("react/jsx-runtime").JSX.Element;
1611
+ ssrName: "timeoutInMilliseconds";
1612
+ docLink: string;
1613
+ type: number;
1614
+ getValue: ({ commandLine }: {
1615
+ commandLine: Record<string, unknown>;
1616
+ }) => {
1617
+ source: string;
1618
+ value: number;
1619
+ };
1620
+ setConfig: (value: number) => void;
1621
+ };
1622
+ readonly enforceAudioTrack: {
1623
+ name: string;
1624
+ cliFlag: "enforce-audio-track";
1625
+ description: () => import("react/jsx-runtime").JSX.Element;
1626
+ ssrName: string;
1627
+ docLink: string;
1628
+ type: boolean;
1629
+ getValue: ({ commandLine }: {
1630
+ commandLine: Record<string, unknown>;
1631
+ }) => {
1632
+ source: string;
1633
+ value: boolean;
1634
+ };
1635
+ setConfig: (value: boolean) => void;
1636
+ };
1637
+ readonly scale: {
1638
+ name: string;
1639
+ cliFlag: "scale";
1640
+ description: () => import("react/jsx-runtime").JSX.Element;
1641
+ ssrName: string;
1642
+ docLink: string;
1643
+ type: number;
1644
+ getValue: ({ commandLine }: {
1645
+ commandLine: Record<string, unknown>;
1646
+ }) => {
1647
+ source: string;
1648
+ value: number;
1649
+ };
1650
+ setConfig: (scale: number) => void;
1651
+ };
1652
+ readonly crf: {
1653
+ name: string;
1654
+ cliFlag: "crf";
1655
+ description: () => import("react/jsx-runtime").JSX.Element;
1656
+ ssrName: string;
1657
+ docLink: string;
1658
+ type: number;
1659
+ getValue: ({ commandLine }: {
1660
+ commandLine: Record<string, unknown>;
1661
+ }) => {
1662
+ source: string;
1663
+ value: import("./crf").Crf;
1664
+ };
1665
+ setConfig: (crf: import("./crf").Crf) => void;
1666
+ };
1667
+ readonly jpegQuality: {
1668
+ name: string;
1669
+ cliFlag: "jpeg-quality";
1670
+ description: () => import("react/jsx-runtime").JSX.Element;
1671
+ ssrName: string;
1672
+ docLink: string;
1673
+ type: number;
1674
+ setConfig: (q: number | undefined) => void;
1675
+ getValue: ({ commandLine }: {
1676
+ commandLine: Record<string, unknown>;
1677
+ }) => {
1678
+ source: string;
1679
+ value: number;
1680
+ };
1681
+ };
1265
1682
  };
1266
1683
  readonly renderStillOnCloudRun: {
1267
1684
  readonly offthreadVideoCacheSizeInBytes: {
@@ -1282,6 +1699,66 @@ export declare const BrowserSafeApis: {
1282
1699
  };
1283
1700
  setConfig: (size: number | null) => void;
1284
1701
  };
1702
+ readonly logLevel: {
1703
+ cliFlag: "log";
1704
+ name: string;
1705
+ ssrName: string;
1706
+ description: () => import("react/jsx-runtime").JSX.Element;
1707
+ docLink: string;
1708
+ getValue: ({ commandLine }: {
1709
+ commandLine: Record<string, unknown>;
1710
+ }) => {
1711
+ value: "verbose" | "info" | "warn" | "error";
1712
+ source: string;
1713
+ };
1714
+ setConfig: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
1715
+ type: "verbose" | "info" | "warn" | "error";
1716
+ };
1717
+ readonly scale: {
1718
+ name: string;
1719
+ cliFlag: "scale";
1720
+ description: () => import("react/jsx-runtime").JSX.Element;
1721
+ ssrName: string;
1722
+ docLink: string;
1723
+ type: number;
1724
+ getValue: ({ commandLine }: {
1725
+ commandLine: Record<string, unknown>;
1726
+ }) => {
1727
+ source: string;
1728
+ value: number;
1729
+ };
1730
+ setConfig: (scale: number) => void;
1731
+ };
1732
+ readonly jpegQuality: {
1733
+ name: string;
1734
+ cliFlag: "jpeg-quality";
1735
+ description: () => import("react/jsx-runtime").JSX.Element;
1736
+ ssrName: string;
1737
+ docLink: string;
1738
+ type: number;
1739
+ setConfig: (q: number | undefined) => void;
1740
+ getValue: ({ commandLine }: {
1741
+ commandLine: Record<string, unknown>;
1742
+ }) => {
1743
+ source: string;
1744
+ value: number;
1745
+ };
1746
+ };
1747
+ readonly delayRenderTimeoutInMilliseconds: {
1748
+ name: string;
1749
+ cliFlag: "timeout";
1750
+ description: () => import("react/jsx-runtime").JSX.Element;
1751
+ ssrName: "timeoutInMilliseconds";
1752
+ docLink: string;
1753
+ type: number;
1754
+ getValue: ({ commandLine }: {
1755
+ commandLine: Record<string, unknown>;
1756
+ }) => {
1757
+ source: string;
1758
+ value: number;
1759
+ };
1760
+ setConfig: (value: number) => void;
1761
+ };
1285
1762
  };
1286
1763
  };
1287
1764
  codecSupportsCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif") => boolean;
@@ -2,7 +2,6 @@ import type { VideoConfig } from 'remotion/no-react';
2
2
  import type { BrowserExecutable } from './browser-executable';
3
3
  import type { BrowserLog } from './browser-log';
4
4
  import type { HeadlessBrowser } from './browser/Browser';
5
- import { type LogLevel } from './log-level';
6
5
  import type { ChromiumOptions } from './open-browser';
7
6
  import type { ToOptions } from './options/option';
8
7
  import type { optionsMap } from './options/options-map';
@@ -13,12 +12,10 @@ type InternalGetCompositionsOptions = {
13
12
  puppeteerInstance: HeadlessBrowser | undefined;
14
13
  onBrowserLog: null | ((log: BrowserLog) => void);
15
14
  browserExecutable: BrowserExecutable | null;
16
- timeoutInMilliseconds: number;
17
15
  chromiumOptions: ChromiumOptions;
18
16
  port: number | null;
19
17
  server: RemotionServer | undefined;
20
18
  indent: boolean;
21
- logLevel: LogLevel;
22
19
  serveUrlOrWebpackUrl: string;
23
20
  } & ToOptions<typeof optionsMap.getCompositions>;
24
21
  export type GetCompositionsOptions = {
@@ -27,12 +24,9 @@ export type GetCompositionsOptions = {
27
24
  puppeteerInstance?: HeadlessBrowser;
28
25
  onBrowserLog?: (log: BrowserLog) => void;
29
26
  browserExecutable?: BrowserExecutable;
30
- timeoutInMilliseconds?: number;
31
27
  chromiumOptions?: ChromiumOptions;
32
28
  port?: number | null;
33
- logLevel?: LogLevel;
34
- offthreadVideoCacheSizeInBytes?: number | null;
35
- };
29
+ } & Partial<ToOptions<typeof optionsMap.getCompositions>>;
36
30
  export declare const internalGetCompositions: (args_0: InternalGetCompositionsOptions) => Promise<VideoConfig[]>;
37
31
  /**
38
32
  * @description Gets the compositions defined in a Remotion project based on a Webpack bundle.
@@ -6,7 +6,6 @@ const TimeoutSettings_1 = require("./browser/TimeoutSettings");
6
6
  const handle_javascript_exception_1 = require("./error-handling/handle-javascript-exception");
7
7
  const find_closest_package_json_1 = require("./find-closest-package-json");
8
8
  const get_browser_instance_1 = require("./get-browser-instance");
9
- const logger_1 = require("./logger");
10
9
  const prepare_server_1 = require("./prepare-server");
11
10
  const puppeteer_evaluate_1 = require("./puppeteer-evaluate");
12
11
  const seek_to_frame_1 = require("./seek-to-frame");
@@ -124,6 +123,7 @@ const internalGetCompositionsRaw = async ({ browserExecutable, chromiumOptions,
124
123
  timeoutInMilliseconds,
125
124
  indent,
126
125
  logLevel,
126
+ offthreadVideoCacheSizeInBytes,
127
127
  });
128
128
  })
129
129
  .then((comp) => {
@@ -166,7 +166,7 @@ const getCompositions = (serveUrlOrWebpackUrl, config) => {
166
166
  serveUrlOrWebpackUrl,
167
167
  server: undefined,
168
168
  timeoutInMilliseconds: timeoutInMilliseconds !== null && timeoutInMilliseconds !== void 0 ? timeoutInMilliseconds : TimeoutSettings_1.DEFAULT_TIMEOUT,
169
- logLevel: logLevel !== null && logLevel !== void 0 ? logLevel : (0, logger_1.getLogLevel)(),
169
+ logLevel: logLevel !== null && logLevel !== void 0 ? logLevel : 'info',
170
170
  offthreadVideoCacheSizeInBytes: (_a = config === null || config === void 0 ? void 0 : config.offthreadVideoCacheSizeInBytes) !== null && _a !== void 0 ? _a : null,
171
171
  });
172
172
  };