@remotion/renderer 3.3.94 → 3.3.96
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Page } from './browser/BrowserPage';
|
|
2
|
-
|
|
2
|
+
declare type SetPropsAndEnv = {
|
|
3
3
|
inputProps: unknown;
|
|
4
4
|
envVariables: Record<string, string> | undefined;
|
|
5
5
|
page: Page;
|
|
@@ -10,4 +10,6 @@ export declare const setPropsAndEnv: ({ inputProps, envVariables, page, serveUrl
|
|
|
10
10
|
retriesRemaining: number;
|
|
11
11
|
audioEnabled: boolean;
|
|
12
12
|
videoEnabled: boolean;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
|
+
export declare const setPropsAndEnv: (params: SetPropsAndEnv) => Promise<unknown>;
|
|
15
|
+
export {};
|
|
@@ -7,7 +7,7 @@ const normalize_serve_url_1 = require("./normalize-serve-url");
|
|
|
7
7
|
const puppeteer_evaluate_1 = require("./puppeteer-evaluate");
|
|
8
8
|
const redirect_status_codes_1 = require("./redirect-status-codes");
|
|
9
9
|
const validate_puppeteer_timeout_1 = require("./validate-puppeteer-timeout");
|
|
10
|
-
const
|
|
10
|
+
const innerSetPropsAndEnv = async ({ inputProps, envVariables, page, serveUrl, initialFrame, timeoutInMilliseconds, proxyPort, retriesRemaining, audioEnabled, videoEnabled, }) => {
|
|
11
11
|
(0, validate_puppeteer_timeout_1.validatePuppeteerTimeout)(timeoutInMilliseconds);
|
|
12
12
|
const actualTimeout = timeoutInMilliseconds !== null && timeoutInMilliseconds !== void 0 ? timeoutInMilliseconds : TimeoutSettings_1.DEFAULT_TIMEOUT;
|
|
13
13
|
page.setDefaultTimeout(actualTimeout);
|
|
@@ -54,7 +54,7 @@ const setPropsAndEnv = async ({ inputProps, envVariables, page, serveUrl, initia
|
|
|
54
54
|
resolve();
|
|
55
55
|
}, 2000);
|
|
56
56
|
});
|
|
57
|
-
return (
|
|
57
|
+
return innerSetPropsAndEnv({
|
|
58
58
|
envVariables,
|
|
59
59
|
initialFrame,
|
|
60
60
|
inputProps,
|
|
@@ -110,4 +110,14 @@ const setPropsAndEnv = async ({ inputProps, envVariables, page, serveUrl, initia
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
|
+
const setPropsAndEnv = (params) => {
|
|
114
|
+
return Promise.race([
|
|
115
|
+
innerSetPropsAndEnv(params),
|
|
116
|
+
new Promise((_, reject) => {
|
|
117
|
+
setTimeout(() => {
|
|
118
|
+
reject(new Error('Timed out while setting up the headless browser - the browser seems to not respond. This error is thrown to trigger a retry.'));
|
|
119
|
+
}, 10000);
|
|
120
|
+
}),
|
|
121
|
+
]);
|
|
122
|
+
};
|
|
113
123
|
exports.setPropsAndEnv = setPropsAndEnv;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.96",
|
|
4
4
|
"description": "Renderer for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"execa": "5.1.1",
|
|
18
18
|
"extract-zip": "2.0.1",
|
|
19
|
-
"remotion": "3.3.
|
|
19
|
+
"remotion": "3.3.96",
|
|
20
20
|
"source-map": "^0.8.0-beta.0",
|
|
21
21
|
"ws": "8.7.0"
|
|
22
22
|
},
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"vitest": "0.24.3"
|
|
42
42
|
},
|
|
43
43
|
"optionalDependencies": {
|
|
44
|
-
"@remotion/compositor-darwin-arm64": "3.3.
|
|
45
|
-
"@remotion/compositor-darwin-x64": "3.3.
|
|
46
|
-
"@remotion/compositor-linux-arm64-gnu": "3.3.
|
|
47
|
-
"@remotion/compositor-linux-arm64-musl": "3.3.
|
|
48
|
-
"@remotion/compositor-linux-x64-gnu": "3.3.
|
|
49
|
-
"@remotion/compositor-linux-x64-musl": "3.3.
|
|
50
|
-
"@remotion/compositor-win32-x64-msvc": "3.3.
|
|
44
|
+
"@remotion/compositor-darwin-arm64": "3.3.96",
|
|
45
|
+
"@remotion/compositor-darwin-x64": "3.3.96",
|
|
46
|
+
"@remotion/compositor-linux-arm64-gnu": "3.3.96",
|
|
47
|
+
"@remotion/compositor-linux-arm64-musl": "3.3.96",
|
|
48
|
+
"@remotion/compositor-linux-x64-gnu": "3.3.96",
|
|
49
|
+
"@remotion/compositor-linux-x64-musl": "3.3.96",
|
|
50
|
+
"@remotion/compositor-win32-x64-msvc": "3.3.96"
|
|
51
51
|
},
|
|
52
52
|
"keywords": [
|
|
53
53
|
"remotion",
|