@remotion/renderer 4.0.213 → 4.0.214
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/read-file.d.ts +0 -1
- package/dist/assets/truncate-utf8-bytes.js +1 -2
- package/dist/browser/BrowserRunner.d.ts +0 -1
- package/dist/browser/ExecutionContext.js +1 -1
- package/dist/browser/JSHandle.js +2 -2
- package/dist/browser/mitt/index.js +1 -1
- package/dist/browser/util.d.ts +0 -1
- package/dist/browser/util.js +13 -13
- package/dist/call-ffmpeg.d.ts +4 -5
- package/dist/client.d.ts +90 -90
- package/dist/compositor/compose.d.ts +1 -4
- package/dist/compositor/get-executable-path.d.ts +1 -1
- package/dist/compositor/get-executable-path.js +2 -2
- package/dist/get-extension-from-codec.d.ts +1 -1
- package/dist/get-silent-parts.d.ts +4 -4
- package/dist/image-format.d.ts +1 -1
- package/dist/index.d.ts +84 -86
- package/dist/mime-types.js +3 -3
- package/dist/offthread-video-server.d.ts +0 -1
- package/dist/options/audio-codec.d.ts +3 -3
- package/dist/options/color-space.d.ts +8 -4
- package/dist/options/gl.d.ts +3 -3
- package/dist/options/index.d.ts +18 -18
- package/dist/options/log-level.d.ts +2 -2
- package/dist/options/option.d.ts +0 -1
- package/dist/options/options-map.d.ts +61 -61
- package/dist/options/video-codec.d.ts +1 -1
- package/dist/options/x264-preset.d.ts +2 -2
- package/dist/p-limit.d.ts +1 -1
- package/dist/pixel-format.d.ts +1 -1
- package/dist/port-config.d.ts +0 -9
- package/dist/provide-screenshot.d.ts +0 -1
- package/dist/puppeteer-evaluate.js +2 -3
- package/dist/puppeteer-screenshot.d.ts +0 -1
- package/dist/pure.d.ts +4 -4
- package/dist/render-frames.d.ts +0 -1
- package/dist/render-frames.js +1 -1
- package/dist/render-has-audio.d.ts +1 -1
- package/dist/render-media.d.ts +0 -1
- package/dist/render-media.js +1 -1
- package/dist/render-still.d.ts +0 -1
- package/dist/screenshot-dom-element.d.ts +0 -1
- package/dist/screenshot-task.d.ts +2 -3
- package/dist/serve-handler/index.d.ts +0 -1
- package/dist/serve-handler/range-parser.d.ts +2 -2
- package/dist/stitch-frames-to-video.d.ts +0 -1
- package/dist/take-frame-and-compose.d.ts +0 -1
- package/dist/take-frame-and-compose.js +1 -1
- package/dist/to-megabytes.js +1 -2
- package/dist/truthy.js +1 -2
- package/dist/validate-output-filename.d.ts +2 -1
- package/dist/ws/ws-types.d.ts +0 -1
- package/package.json +11 -11
- package/dist/browser/is-target-closed-err.d.ts +0 -1
- package/dist/browser/is-target-closed-err.js +0 -9
- package/dist/is-delay-render-error-with.retry.d.ts +0 -2
- package/dist/is-delay-render-error-with.retry.js +0 -37
- package/dist/streaming.d.ts +0 -11
- package/dist/streaming.js +0 -140
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.truncateUtf8Bytes =
|
|
3
|
+
exports.truncateUtf8Bytes = truncateUtf8Bytes;
|
|
4
4
|
function isHighSurrogate(codePoint) {
|
|
5
5
|
return codePoint >= 0xd800 && codePoint <= 0xdbff;
|
|
6
6
|
}
|
|
@@ -34,4 +34,3 @@ function truncateUtf8Bytes(string, byteLength) {
|
|
|
34
34
|
}
|
|
35
35
|
return string;
|
|
36
36
|
}
|
|
37
|
-
exports.truncateUtf8Bytes = truncateUtf8Bytes;
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/// <reference types="node" />
|
|
17
16
|
import * as childProcess from 'node:child_process';
|
|
18
17
|
import { Connection } from './Connection';
|
|
19
18
|
import type { LaunchOptions } from './LaunchOptions';
|
|
@@ -27,7 +27,7 @@ exports.ExecutionContext = exports.EVALUATION_SCRIPT_URL = void 0;
|
|
|
27
27
|
const JSHandle_1 = require("./JSHandle");
|
|
28
28
|
const util_1 = require("./util");
|
|
29
29
|
exports.EVALUATION_SCRIPT_URL = 'pptr://__puppeteer_evaluation_script__';
|
|
30
|
-
const SOURCE_URL_REGEX = /^[\
|
|
30
|
+
const SOURCE_URL_REGEX = /^[\x20\t]*\/\/[@#] sourceURL=\s*(\S*?)\s*$/m;
|
|
31
31
|
class ExecutionContext {
|
|
32
32
|
constructor(client, contextPayload, world) {
|
|
33
33
|
_ExecutionContext_instances.add(this);
|
package/dist/browser/JSHandle.js
CHANGED
|
@@ -27,7 +27,8 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
27
27
|
};
|
|
28
28
|
var _JSHandle_client, _JSHandle_disposed, _JSHandle_context, _JSHandle_remoteObject;
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.ElementHandle = exports.JSHandle =
|
|
30
|
+
exports.ElementHandle = exports.JSHandle = void 0;
|
|
31
|
+
exports._createJSHandle = _createJSHandle;
|
|
31
32
|
const util_1 = require("./util");
|
|
32
33
|
function _createJSHandle(context, remoteObject) {
|
|
33
34
|
const frame = context.frame();
|
|
@@ -36,7 +37,6 @@ function _createJSHandle(context, remoteObject) {
|
|
|
36
37
|
}
|
|
37
38
|
return new JSHandle(context, context._client, remoteObject);
|
|
38
39
|
}
|
|
39
|
-
exports._createJSHandle = _createJSHandle;
|
|
40
40
|
class JSHandle {
|
|
41
41
|
get _disposed() {
|
|
42
42
|
return __classPrivateFieldGet(this, _JSHandle_disposed, "f");
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = mitt;
|
|
3
4
|
/**
|
|
4
5
|
* Mitt: Tiny (~200b) functional event emitter / pubsub.
|
|
5
6
|
* @name mitt
|
|
@@ -46,4 +47,3 @@ function mitt(all) {
|
|
|
46
47
|
},
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
exports.default = mitt;
|
package/dist/browser/util.d.ts
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/// <reference types="node" />
|
|
17
16
|
import type { HeadlessBrowser } from './Browser';
|
|
18
17
|
import type { CDPSession } from './Connection';
|
|
19
18
|
import type { DevtoolsRemoteObject, ExceptionDetails } from './devtools-types';
|
package/dist/browser/util.js
CHANGED
|
@@ -15,7 +15,19 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.
|
|
18
|
+
exports.isString = void 0;
|
|
19
|
+
exports.getExceptionMessage = getExceptionMessage;
|
|
20
|
+
exports.valueFromRemoteObject = valueFromRemoteObject;
|
|
21
|
+
exports.releaseObject = releaseObject;
|
|
22
|
+
exports.addEventListener = addEventListener;
|
|
23
|
+
exports.removeEventListeners = removeEventListeners;
|
|
24
|
+
exports.evaluationString = evaluationString;
|
|
25
|
+
exports.pageBindingDeliverResultString = pageBindingDeliverResultString;
|
|
26
|
+
exports.pageBindingDeliverErrorString = pageBindingDeliverErrorString;
|
|
27
|
+
exports.pageBindingDeliverErrorValueString = pageBindingDeliverErrorValueString;
|
|
28
|
+
exports.waitWithTimeout = waitWithTimeout;
|
|
29
|
+
exports.isErrorLike = isErrorLike;
|
|
30
|
+
exports.isErrnoException = isErrnoException;
|
|
19
31
|
const assert_1 = require("./assert");
|
|
20
32
|
const Errors_1 = require("./Errors");
|
|
21
33
|
function getExceptionMessage(exceptionDetails) {
|
|
@@ -36,7 +48,6 @@ function getExceptionMessage(exceptionDetails) {
|
|
|
36
48
|
}
|
|
37
49
|
return message;
|
|
38
50
|
}
|
|
39
|
-
exports.getExceptionMessage = getExceptionMessage;
|
|
40
51
|
function valueFromRemoteObject(remoteObject) {
|
|
41
52
|
(0, assert_1.assert)(!remoteObject.objectId, 'Cannot extract value when objectId is given');
|
|
42
53
|
if (remoteObject.unserializableValue) {
|
|
@@ -59,7 +70,6 @@ function valueFromRemoteObject(remoteObject) {
|
|
|
59
70
|
}
|
|
60
71
|
return remoteObject.value;
|
|
61
72
|
}
|
|
62
|
-
exports.valueFromRemoteObject = valueFromRemoteObject;
|
|
63
73
|
async function releaseObject(client, remoteObject) {
|
|
64
74
|
if (!remoteObject.objectId) {
|
|
65
75
|
return;
|
|
@@ -71,19 +81,16 @@ async function releaseObject(client, remoteObject) {
|
|
|
71
81
|
// Swallow these since they are harmless and we don't leak anything in this case.
|
|
72
82
|
});
|
|
73
83
|
}
|
|
74
|
-
exports.releaseObject = releaseObject;
|
|
75
84
|
function addEventListener(emitter, eventName, handler) {
|
|
76
85
|
emitter.on(eventName, handler);
|
|
77
86
|
return () => emitter.off(eventName, handler);
|
|
78
87
|
}
|
|
79
|
-
exports.addEventListener = addEventListener;
|
|
80
88
|
function removeEventListeners(listeners) {
|
|
81
89
|
for (const listener of listeners) {
|
|
82
90
|
listener();
|
|
83
91
|
}
|
|
84
92
|
listeners.length = 0;
|
|
85
93
|
}
|
|
86
|
-
exports.removeEventListeners = removeEventListeners;
|
|
87
94
|
const isString = (obj) => {
|
|
88
95
|
return typeof obj === 'string' || obj instanceof String;
|
|
89
96
|
};
|
|
@@ -101,7 +108,6 @@ function evaluationString(fun, ...args) {
|
|
|
101
108
|
}
|
|
102
109
|
return `(${fun})(${args.map(serializeArgument).join(',')})`;
|
|
103
110
|
}
|
|
104
|
-
exports.evaluationString = evaluationString;
|
|
105
111
|
function pageBindingDeliverResultString(name, seq, result) {
|
|
106
112
|
function deliverResult(_name, _seq, _result) {
|
|
107
113
|
window[_name].callbacks.get(_seq).resolve(_result);
|
|
@@ -109,7 +115,6 @@ function pageBindingDeliverResultString(name, seq, result) {
|
|
|
109
115
|
}
|
|
110
116
|
return evaluationString(deliverResult, name, seq, result);
|
|
111
117
|
}
|
|
112
|
-
exports.pageBindingDeliverResultString = pageBindingDeliverResultString;
|
|
113
118
|
function pageBindingDeliverErrorString(name, seq, message, stack) {
|
|
114
119
|
function deliverError(_name, _seq, _message, _stack) {
|
|
115
120
|
const error = new Error(_message);
|
|
@@ -119,7 +124,6 @@ function pageBindingDeliverErrorString(name, seq, message, stack) {
|
|
|
119
124
|
}
|
|
120
125
|
return evaluationString(deliverError, name, seq, message, stack);
|
|
121
126
|
}
|
|
122
|
-
exports.pageBindingDeliverErrorString = pageBindingDeliverErrorString;
|
|
123
127
|
function pageBindingDeliverErrorValueString(name, seq, value) {
|
|
124
128
|
function deliverErrorValue(_name, _seq, _value) {
|
|
125
129
|
window[_name].callbacks.get(_seq).reject(_value);
|
|
@@ -127,7 +131,6 @@ function pageBindingDeliverErrorValueString(name, seq, value) {
|
|
|
127
131
|
}
|
|
128
132
|
return evaluationString(deliverErrorValue, name, seq, value);
|
|
129
133
|
}
|
|
130
|
-
exports.pageBindingDeliverErrorValueString = pageBindingDeliverErrorValueString;
|
|
131
134
|
async function waitWithTimeout(promise, taskName, timeout, browser) {
|
|
132
135
|
let reject;
|
|
133
136
|
const timeoutError = new Errors_1.TimeoutError(`waiting for ${taskName} failed: timeout ${timeout}ms exceeded`);
|
|
@@ -157,13 +160,10 @@ async function waitWithTimeout(promise, taskName, timeout, browser) {
|
|
|
157
160
|
}
|
|
158
161
|
}
|
|
159
162
|
}
|
|
160
|
-
exports.waitWithTimeout = waitWithTimeout;
|
|
161
163
|
function isErrorLike(obj) {
|
|
162
164
|
return (typeof obj === 'object' && obj !== null && 'name' in obj && 'message' in obj);
|
|
163
165
|
}
|
|
164
|
-
exports.isErrorLike = isErrorLike;
|
|
165
166
|
function isErrnoException(obj) {
|
|
166
167
|
return (isErrorLike(obj) &&
|
|
167
168
|
('errno' in obj || 'code' in obj || 'path' in obj || 'syscall' in obj));
|
|
168
169
|
}
|
|
169
|
-
exports.isErrnoException = isErrnoException;
|
package/dist/call-ffmpeg.d.ts
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import execa from 'execa';
|
|
3
2
|
import type { SpawnOptionsWithoutStdio } from 'node:child_process';
|
|
4
3
|
import type { LogLevel } from './log-level';
|
|
5
4
|
import type { CancelSignal } from './make-cancel-signal';
|
|
6
5
|
export declare const callFf: ({ args, bin, indent, logLevel, options, binariesDirectory, cancelSignal, }: {
|
|
7
|
-
bin:
|
|
6
|
+
bin: "ffmpeg" | "ffprobe";
|
|
8
7
|
args: (string | null)[];
|
|
9
8
|
indent: boolean;
|
|
10
9
|
logLevel: LogLevel;
|
|
11
10
|
binariesDirectory: string | null;
|
|
12
11
|
cancelSignal: CancelSignal | undefined;
|
|
13
|
-
options?: execa.Options<string
|
|
12
|
+
options?: execa.Options<string>;
|
|
14
13
|
}) => execa.ExecaChildProcess<string>;
|
|
15
14
|
export declare const callFfNative: ({ args, bin, indent, logLevel, options, binariesDirectory, cancelSignal, }: {
|
|
16
|
-
bin:
|
|
15
|
+
bin: "ffmpeg" | "ffprobe";
|
|
17
16
|
args: (string | null)[];
|
|
18
17
|
indent: boolean;
|
|
19
18
|
logLevel: LogLevel;
|
|
20
19
|
binariesDirectory: string | null;
|
|
21
20
|
cancelSignal: CancelSignal | undefined;
|
|
22
|
-
options?: SpawnOptionsWithoutStdio
|
|
21
|
+
options?: SpawnOptionsWithoutStdio;
|
|
23
22
|
}) => import("child_process").ChildProcessWithoutNullStreams;
|