@remotion/renderer 4.0.62 → 4.0.65
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/set-props-and-env.js +15 -11
- package/package.json +9 -9
|
@@ -152,17 +152,21 @@ const innerSetPropsAndEnv = async ({ serializedInputPropsWithCustomSchema, envVa
|
|
|
152
152
|
};
|
|
153
153
|
const setPropsAndEnv = async (params) => {
|
|
154
154
|
let timeout = null;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
155
|
+
try {
|
|
156
|
+
const result = await Promise.race([
|
|
157
|
+
innerSetPropsAndEnv(params),
|
|
158
|
+
new Promise((_, reject) => {
|
|
159
|
+
timeout = setTimeout(() => {
|
|
160
|
+
reject(new Error(`Timed out after ${params.timeoutInMilliseconds} while setting up the headless browser. This could be because the you specified takes a long time to load (or network resources that it includes like fonts) or because the browser is not responding. Optimize the site or increase the browser timeout.`));
|
|
161
|
+
}, params.timeoutInMilliseconds);
|
|
162
|
+
}),
|
|
163
|
+
]);
|
|
164
|
+
return result;
|
|
165
|
+
}
|
|
166
|
+
finally {
|
|
167
|
+
if (timeout !== null) {
|
|
168
|
+
clearTimeout(timeout);
|
|
169
|
+
}
|
|
165
170
|
}
|
|
166
|
-
return result;
|
|
167
171
|
};
|
|
168
172
|
exports.setPropsAndEnv = setPropsAndEnv;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.65",
|
|
4
4
|
"description": "Renderer for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"extract-zip": "2.0.1",
|
|
19
19
|
"source-map": "^0.8.0-beta.0",
|
|
20
20
|
"ws": "8.7.0",
|
|
21
|
-
"remotion": "4.0.
|
|
21
|
+
"remotion": "4.0.65"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": ">=16.8.0",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"vitest": "0.31.1"
|
|
41
41
|
},
|
|
42
42
|
"optionalDependencies": {
|
|
43
|
-
"@remotion/compositor-darwin-
|
|
44
|
-
"@remotion/compositor-linux-arm64-
|
|
45
|
-
"@remotion/compositor-linux-
|
|
46
|
-
"@remotion/compositor-darwin-
|
|
47
|
-
"@remotion/compositor-
|
|
48
|
-
"@remotion/compositor-linux-
|
|
49
|
-
"@remotion/compositor-
|
|
43
|
+
"@remotion/compositor-darwin-x64": "4.0.65",
|
|
44
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.65",
|
|
45
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.65",
|
|
46
|
+
"@remotion/compositor-darwin-arm64": "4.0.65",
|
|
47
|
+
"@remotion/compositor-linux-x64-musl": "4.0.65",
|
|
48
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.65",
|
|
49
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.65"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"remotion",
|