@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.
- package/dist/assets/download-file.js +3 -1
- package/dist/client.d.ts +19 -0
- package/dist/esm/client.mjs +779 -742
- package/dist/esm/index.mjs +21 -14
- package/dist/get-cpu-count.js +13 -2
- package/dist/options/{concurrencies.d.ts → benchmark-concurrencies.d.ts} +7 -4
- package/dist/options/benchmark-concurrencies.js +28 -0
- package/dist/options/index.d.ts +19 -0
- package/dist/options/index.js +2 -0
- package/dist/options/{browser-args.d.ts → private-license-key.d.ts} +6 -7
- package/dist/options/private-license-key.js +35 -0
- package/package.json +14 -13
- package/dist/options/browser-args.js +0 -25
- package/dist/options/concurrencies.js +0 -37
- package/dist/options/force.d.ts +0 -16
- package/dist/options/force.js +0 -24
- package/dist/options/help.d.ts +0 -16
- package/dist/options/help.js +0 -26
- package/dist/options/image-format.d.ts +0 -11
- package/dist/options/image-format.js +0 -18
- package/dist/options/output.d.ts +0 -19
- package/dist/options/output.js +0 -38
- package/dist/options/png.d.ts +0 -11
- package/dist/options/png.js +0 -18
- package/dist/options/q.d.ts +0 -19
- package/dist/options/q.js +0 -26
- package/dist/options/quality.d.ts +0 -11
- package/dist/options/quality.js +0 -20
- package/dist/options/quiet.d.ts +0 -19
- package/dist/options/quiet.js +0 -26
|
@@ -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},
|
|
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";
|