@remotion/renderer 4.0.79 → 4.0.81
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/seek-to-frame.js +8 -3
- package/package.json +9 -9
package/dist/seek-to-frame.js
CHANGED
|
@@ -9,7 +9,7 @@ const cancelledToken = 'cancelled';
|
|
|
9
9
|
const readyToken = 'ready';
|
|
10
10
|
const waitForReady = ({ page, timeoutInMilliseconds, frame, indent, logLevel, }) => {
|
|
11
11
|
const cleanups = [];
|
|
12
|
-
const
|
|
12
|
+
const retrieveCancelledErrorAndReject = () => {
|
|
13
13
|
return new Promise((_, reject) => {
|
|
14
14
|
(0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
|
|
15
15
|
pageFunction: () => window.remotion_cancelledError,
|
|
@@ -17,7 +17,8 @@ const waitForReady = ({ page, timeoutInMilliseconds, frame, indent, logLevel, })
|
|
|
17
17
|
frame: null,
|
|
18
18
|
page,
|
|
19
19
|
timeoutInMilliseconds,
|
|
20
|
-
})
|
|
20
|
+
})
|
|
21
|
+
.then(({ value: val }) => {
|
|
21
22
|
if (typeof val !== 'string') {
|
|
22
23
|
reject(val);
|
|
23
24
|
return;
|
|
@@ -29,6 +30,10 @@ const waitForReady = ({ page, timeoutInMilliseconds, frame, indent, logLevel, })
|
|
|
29
30
|
message: val.split('\n')[0],
|
|
30
31
|
stackFrame: (0, parse_browser_error_stack_1.parseStack)(val.split('\n')),
|
|
31
32
|
}));
|
|
33
|
+
})
|
|
34
|
+
.catch((err) => {
|
|
35
|
+
logger_1.Log.verbose({ indent, logLevel }, 'Could not get cancelled error', err);
|
|
36
|
+
reject(new Error('Render was cancelled using cancelRender()'));
|
|
32
37
|
});
|
|
33
38
|
});
|
|
34
39
|
};
|
|
@@ -49,7 +54,7 @@ const waitForReady = ({ page, timeoutInMilliseconds, frame, indent, logLevel, })
|
|
|
49
54
|
.then((a) => {
|
|
50
55
|
const token = a.toString();
|
|
51
56
|
if (token === cancelledToken) {
|
|
52
|
-
return
|
|
57
|
+
return retrieveCancelledErrorAndReject();
|
|
53
58
|
}
|
|
54
59
|
if (token === readyToken) {
|
|
55
60
|
return resolve(a);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/renderer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.81",
|
|
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.81"
|
|
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-
|
|
44
|
-
"@remotion/compositor-darwin-x64": "4.0.
|
|
45
|
-
"@remotion/compositor-
|
|
46
|
-
"@remotion/compositor-linux-arm64-
|
|
47
|
-
"@remotion/compositor-linux-x64-musl": "4.0.
|
|
48
|
-
"@remotion/compositor-win32-x64-msvc": "4.0.
|
|
49
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
43
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.81",
|
|
44
|
+
"@remotion/compositor-darwin-x64": "4.0.81",
|
|
45
|
+
"@remotion/compositor-darwin-arm64": "4.0.81",
|
|
46
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.81",
|
|
47
|
+
"@remotion/compositor-linux-x64-musl": "4.0.81",
|
|
48
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.81",
|
|
49
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.81"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"remotion",
|