@remotion/renderer 4.0.429 → 4.0.431

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.
@@ -7,6 +7,7 @@ const logger_1 = require("../logger");
7
7
  const read_file_1 = require("./read-file");
8
8
  const CANCELLED_ERROR = 'cancelled';
9
9
  const incorrectContentLengthToken = 'Download finished with';
10
+ const noDataSentToken = 'but the server sent no data for';
10
11
  const downloadFileWithoutRetries = ({ onProgress, url, to: toFn, abortSignal, }) => {
11
12
  return new Promise((resolve, reject) => {
12
13
  let rejected = false;
@@ -36,7 +37,7 @@ const downloadFileWithoutRetries = ({ onProgress, url, to: toFn, abortSignal, })
36
37
  if (resolved) {
37
38
  return;
38
39
  }
39
- rejectAndFlag(new Error(`Tried to download file ${url}, but the server sent no data for 20 seconds`));
40
+ rejectAndFlag(new Error(`Tried to download file ${url}, ${noDataSentToken} 20 seconds`));
40
41
  }, 20000);
41
42
  };
42
43
  refreshTimeout();
@@ -129,6 +130,7 @@ const downloadFile = async (options, retries = 2, attempt = 1) => {
129
130
  if (message === 'aborted' ||
130
131
  message.includes('ECONNRESET') ||
131
132
  message.includes(incorrectContentLengthToken) ||
133
+ message.includes(noDataSentToken) ||
132
134
  // Try again if hitting internal errors
133
135
  message.includes('503') ||
134
136
  message.includes('502') ||
package/dist/client.d.ts CHANGED
@@ -243,6 +243,25 @@ export declare const BrowserSafeApis: {
243
243
  type: "aac" | "mp3" | "opus" | "pcm-16";
244
244
  id: "audio-codec";
245
245
  };
246
+ benchmarkConcurrenciesOption: {
247
+ name: string;
248
+ cliFlag: "concurrencies";
249
+ description: () => import("react/jsx-runtime").JSX.Element;
250
+ ssrName: null;
251
+ docLink: string;
252
+ type: string | null;
253
+ getValue: ({ commandLine }: {
254
+ commandLine: Record<string, unknown>;
255
+ }) => {
256
+ value: string;
257
+ source: string;
258
+ } | {
259
+ value: null;
260
+ source: string;
261
+ };
262
+ setConfig: (value: string | null) => void;
263
+ id: "concurrencies";
264
+ };
246
265
  browserExecutableOption: {
247
266
  name: string;
248
267
  cliFlag: "browser-executable";