@remotion/renderer 4.0.428 → 4.0.430
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/README.md +7 -7
- package/dist/assets/download-file.js +3 -1
- package/dist/browser/BrowserFetcher.js +1 -1
- package/dist/browser/BrowserPage.d.ts +1 -1
- package/dist/browser/BrowserPage.js +1 -1
- package/dist/browser/BrowserRunner.js +1 -1
- package/dist/browser/FrameManager.d.ts +1 -1
- package/dist/browser/FrameManager.js +2 -2
- package/dist/browser/handle-failed-resource.d.ts +1 -1
- package/dist/call-ffmpeg.d.ts +1 -1
- package/dist/call-ffmpeg.js +1 -1
- package/dist/client.d.ts +19 -0
- package/dist/compositor/compositor.js +1 -1
- package/dist/ensure-browser.js +1 -1
- package/dist/esm/client.mjs +779 -742
- package/dist/esm/index.mjs +34 -27
- package/dist/get-compositions.js +1 -1
- 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/{output.d.ts → image-format-option.d.ts} +6 -7
- package/dist/options/image-format-option.js +33 -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/dist/render-frames.js +1 -1
- package/dist/render-media.js +2 -2
- package/dist/render-still.js +2 -2
- package/dist/select-composition.js +1 -1
- package/package.json +15 -14
- package/types/ws/index.d.ts +76 -64
- 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.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
package/types/ws/index.d.ts
CHANGED
|
@@ -57,12 +57,12 @@ declare class WebSocket extends EventEmitter {
|
|
|
57
57
|
constructor(address: null);
|
|
58
58
|
constructor(
|
|
59
59
|
address: string | URL,
|
|
60
|
-
options?: WebSocket.ClientOptions | ClientRequestArgs
|
|
60
|
+
options?: WebSocket.ClientOptions | ClientRequestArgs,
|
|
61
61
|
);
|
|
62
62
|
constructor(
|
|
63
63
|
address: string | URL,
|
|
64
64
|
protocols?: string | string[],
|
|
65
|
-
options?: WebSocket.ClientOptions | ClientRequestArgs
|
|
65
|
+
options?: WebSocket.ClientOptions | ClientRequestArgs,
|
|
66
66
|
);
|
|
67
67
|
close(code?: number, data?: string | Buffer): void;
|
|
68
68
|
ping(data?: any, mask?: boolean, cb?: (err: Error) => void): void;
|
|
@@ -76,7 +76,7 @@ declare class WebSocket extends EventEmitter {
|
|
|
76
76
|
compress?: boolean | undefined;
|
|
77
77
|
fin?: boolean | undefined;
|
|
78
78
|
},
|
|
79
|
-
cb?: (err?: Error) => void
|
|
79
|
+
cb?: (err?: Error) => void,
|
|
80
80
|
): void;
|
|
81
81
|
terminate(): void;
|
|
82
82
|
/**
|
|
@@ -93,186 +93,186 @@ declare class WebSocket extends EventEmitter {
|
|
|
93
93
|
addEventListener(
|
|
94
94
|
method: 'message',
|
|
95
95
|
cb: (event: WebSocket.MessageEvent) => void,
|
|
96
|
-
options?: WebSocket.EventListenerOptions
|
|
96
|
+
options?: WebSocket.EventListenerOptions,
|
|
97
97
|
): void;
|
|
98
98
|
addEventListener(
|
|
99
99
|
method: 'close',
|
|
100
100
|
cb: (event: WebSocket.CloseEvent) => void,
|
|
101
|
-
options?: WebSocket.EventListenerOptions
|
|
101
|
+
options?: WebSocket.EventListenerOptions,
|
|
102
102
|
): void;
|
|
103
103
|
addEventListener(
|
|
104
104
|
method: 'error',
|
|
105
105
|
cb: (event: WebSocket.ErrorEvent) => void,
|
|
106
|
-
options?: WebSocket.EventListenerOptions
|
|
106
|
+
options?: WebSocket.EventListenerOptions,
|
|
107
107
|
): void;
|
|
108
108
|
addEventListener(
|
|
109
109
|
method: 'open',
|
|
110
110
|
cb: (event: WebSocket.Event) => void,
|
|
111
|
-
options?: WebSocket.EventListenerOptions
|
|
111
|
+
options?: WebSocket.EventListenerOptions,
|
|
112
112
|
): void;
|
|
113
113
|
removeEventListener(
|
|
114
114
|
method: 'message',
|
|
115
|
-
cb: (event: WebSocket.MessageEvent) => void
|
|
115
|
+
cb: (event: WebSocket.MessageEvent) => void,
|
|
116
116
|
): void;
|
|
117
117
|
removeEventListener(
|
|
118
118
|
method: 'close',
|
|
119
|
-
cb: (event: WebSocket.CloseEvent) => void
|
|
119
|
+
cb: (event: WebSocket.CloseEvent) => void,
|
|
120
120
|
): void;
|
|
121
121
|
removeEventListener(
|
|
122
122
|
method: 'error',
|
|
123
|
-
cb: (event: WebSocket.ErrorEvent) => void
|
|
123
|
+
cb: (event: WebSocket.ErrorEvent) => void,
|
|
124
124
|
): void;
|
|
125
125
|
removeEventListener(
|
|
126
126
|
method: 'open',
|
|
127
|
-
cb: (event: WebSocket.Event) => void
|
|
127
|
+
cb: (event: WebSocket.Event) => void,
|
|
128
128
|
): void;
|
|
129
129
|
on(
|
|
130
130
|
event: 'close',
|
|
131
|
-
listener: (this: WebSocket, code: number, reason: Buffer) => void
|
|
131
|
+
listener: (this: WebSocket, code: number, reason: Buffer) => void,
|
|
132
132
|
): this;
|
|
133
133
|
on(event: 'error', listener: (this: WebSocket, err: Error) => void): this;
|
|
134
134
|
on(
|
|
135
135
|
event: 'upgrade',
|
|
136
|
-
listener: (this: WebSocket, request: IncomingMessage) => void
|
|
136
|
+
listener: (this: WebSocket, request: IncomingMessage) => void,
|
|
137
137
|
): this;
|
|
138
138
|
on(
|
|
139
139
|
event: 'message',
|
|
140
140
|
listener: (
|
|
141
141
|
this: WebSocket,
|
|
142
142
|
data: WebSocket.RawData,
|
|
143
|
-
isBinary: boolean
|
|
144
|
-
) => void
|
|
143
|
+
isBinary: boolean,
|
|
144
|
+
) => void,
|
|
145
145
|
): this;
|
|
146
146
|
on(event: 'open', listener: (this: WebSocket) => void): this;
|
|
147
147
|
on(
|
|
148
148
|
event: 'ping' | 'pong',
|
|
149
|
-
listener: (this: WebSocket, data: Buffer) => void
|
|
149
|
+
listener: (this: WebSocket, data: Buffer) => void,
|
|
150
150
|
): this;
|
|
151
151
|
on(
|
|
152
152
|
event: 'unexpected-response',
|
|
153
153
|
listener: (
|
|
154
154
|
this: WebSocket,
|
|
155
155
|
request: ClientRequest,
|
|
156
|
-
response: IncomingMessage
|
|
157
|
-
) => void
|
|
156
|
+
response: IncomingMessage,
|
|
157
|
+
) => void,
|
|
158
158
|
): this;
|
|
159
159
|
on(
|
|
160
160
|
event: string | symbol,
|
|
161
|
-
listener: (this: WebSocket, ...args: any[]) => void
|
|
161
|
+
listener: (this: WebSocket, ...args: any[]) => void,
|
|
162
162
|
): this;
|
|
163
163
|
once(
|
|
164
164
|
event: 'close',
|
|
165
|
-
listener: (this: WebSocket, code: number, reason: Buffer) => void
|
|
165
|
+
listener: (this: WebSocket, code: number, reason: Buffer) => void,
|
|
166
166
|
): this;
|
|
167
167
|
once(event: 'error', listener: (this: WebSocket, err: Error) => void): this;
|
|
168
168
|
once(
|
|
169
169
|
event: 'upgrade',
|
|
170
|
-
listener: (this: WebSocket, request: IncomingMessage) => void
|
|
170
|
+
listener: (this: WebSocket, request: IncomingMessage) => void,
|
|
171
171
|
): this;
|
|
172
172
|
once(
|
|
173
173
|
event: 'message',
|
|
174
174
|
listener: (
|
|
175
175
|
this: WebSocket,
|
|
176
176
|
data: WebSocket.RawData,
|
|
177
|
-
isBinary: boolean
|
|
178
|
-
) => void
|
|
177
|
+
isBinary: boolean,
|
|
178
|
+
) => void,
|
|
179
179
|
): this;
|
|
180
180
|
once(event: 'open', listener: (this: WebSocket) => void): this;
|
|
181
181
|
once(
|
|
182
182
|
event: 'ping' | 'pong',
|
|
183
|
-
listener: (this: WebSocket, data: Buffer) => void
|
|
183
|
+
listener: (this: WebSocket, data: Buffer) => void,
|
|
184
184
|
): this;
|
|
185
185
|
once(
|
|
186
186
|
event: 'unexpected-response',
|
|
187
187
|
listener: (
|
|
188
188
|
this: WebSocket,
|
|
189
189
|
request: ClientRequest,
|
|
190
|
-
response: IncomingMessage
|
|
191
|
-
) => void
|
|
190
|
+
response: IncomingMessage,
|
|
191
|
+
) => void,
|
|
192
192
|
): this;
|
|
193
193
|
once(
|
|
194
194
|
event: string | symbol,
|
|
195
|
-
listener: (this: WebSocket, ...args: any[]) => void
|
|
195
|
+
listener: (this: WebSocket, ...args: any[]) => void,
|
|
196
196
|
): this;
|
|
197
197
|
off(
|
|
198
198
|
event: 'close',
|
|
199
|
-
listener: (this: WebSocket, code: number, reason: Buffer) => void
|
|
199
|
+
listener: (this: WebSocket, code: number, reason: Buffer) => void,
|
|
200
200
|
): this;
|
|
201
201
|
off(event: 'error', listener: (this: WebSocket, err: Error) => void): this;
|
|
202
202
|
off(
|
|
203
203
|
event: 'upgrade',
|
|
204
|
-
listener: (this: WebSocket, request: IncomingMessage) => void
|
|
204
|
+
listener: (this: WebSocket, request: IncomingMessage) => void,
|
|
205
205
|
): this;
|
|
206
206
|
off(
|
|
207
207
|
event: 'message',
|
|
208
208
|
listener: (
|
|
209
209
|
this: WebSocket,
|
|
210
210
|
data: WebSocket.RawData,
|
|
211
|
-
isBinary: boolean
|
|
212
|
-
) => void
|
|
211
|
+
isBinary: boolean,
|
|
212
|
+
) => void,
|
|
213
213
|
): this;
|
|
214
214
|
off(event: 'open', listener: (this: WebSocket) => void): this;
|
|
215
215
|
off(
|
|
216
216
|
event: 'ping' | 'pong',
|
|
217
|
-
listener: (this: WebSocket, data: Buffer) => void
|
|
217
|
+
listener: (this: WebSocket, data: Buffer) => void,
|
|
218
218
|
): this;
|
|
219
219
|
off(
|
|
220
220
|
event: 'unexpected-response',
|
|
221
221
|
listener: (
|
|
222
222
|
this: WebSocket,
|
|
223
223
|
request: ClientRequest,
|
|
224
|
-
response: IncomingMessage
|
|
225
|
-
) => void
|
|
224
|
+
response: IncomingMessage,
|
|
225
|
+
) => void,
|
|
226
226
|
): this;
|
|
227
227
|
off(
|
|
228
228
|
event: string | symbol,
|
|
229
|
-
listener: (this: WebSocket, ...args: any[]) => void
|
|
229
|
+
listener: (this: WebSocket, ...args: any[]) => void,
|
|
230
230
|
): this;
|
|
231
231
|
addListener(
|
|
232
232
|
event: 'close',
|
|
233
|
-
listener: (code: number, reason: Buffer) => void
|
|
233
|
+
listener: (code: number, reason: Buffer) => void,
|
|
234
234
|
): this;
|
|
235
235
|
addListener(event: 'error', listener: (err: Error) => void): this;
|
|
236
236
|
addListener(
|
|
237
237
|
event: 'upgrade',
|
|
238
|
-
listener: (request: IncomingMessage) => void
|
|
238
|
+
listener: (request: IncomingMessage) => void,
|
|
239
239
|
): this;
|
|
240
240
|
addListener(
|
|
241
241
|
event: 'message',
|
|
242
|
-
listener: (data: WebSocket.RawData, isBinary: boolean) => void
|
|
242
|
+
listener: (data: WebSocket.RawData, isBinary: boolean) => void,
|
|
243
243
|
): this;
|
|
244
244
|
addListener(event: 'open', listener: () => void): this;
|
|
245
245
|
addListener(event: 'ping' | 'pong', listener: (data: Buffer) => void): this;
|
|
246
246
|
addListener(
|
|
247
247
|
event: 'unexpected-response',
|
|
248
|
-
listener: (request: ClientRequest, response: IncomingMessage) => void
|
|
248
|
+
listener: (request: ClientRequest, response: IncomingMessage) => void,
|
|
249
249
|
): this;
|
|
250
250
|
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
251
251
|
removeListener(
|
|
252
252
|
event: 'close',
|
|
253
|
-
listener: (code: number, reason: Buffer) => void
|
|
253
|
+
listener: (code: number, reason: Buffer) => void,
|
|
254
254
|
): this;
|
|
255
255
|
removeListener(event: 'error', listener: (err: Error) => void): this;
|
|
256
256
|
removeListener(
|
|
257
257
|
event: 'upgrade',
|
|
258
|
-
listener: (request: IncomingMessage) => void
|
|
258
|
+
listener: (request: IncomingMessage) => void,
|
|
259
259
|
): this;
|
|
260
260
|
removeListener(
|
|
261
261
|
event: 'message',
|
|
262
|
-
listener: (data: WebSocket.RawData, isBinary: boolean) => void
|
|
262
|
+
listener: (data: WebSocket.RawData, isBinary: boolean) => void,
|
|
263
263
|
): this;
|
|
264
264
|
removeListener(event: 'open', listener: () => void): this;
|
|
265
265
|
removeListener(
|
|
266
266
|
event: 'ping' | 'pong',
|
|
267
|
-
listener: (data: Buffer) => void
|
|
267
|
+
listener: (data: Buffer) => void,
|
|
268
268
|
): this;
|
|
269
269
|
removeListener(
|
|
270
270
|
event: 'unexpected-response',
|
|
271
|
-
listener: (request: ClientRequest, response: IncomingMessage) => void
|
|
271
|
+
listener: (request: ClientRequest, response: IncomingMessage) => void,
|
|
272
272
|
): this;
|
|
273
273
|
removeListener(
|
|
274
274
|
event: string | symbol,
|
|
275
|
-
listener: (...args: any[]) => void
|
|
275
|
+
listener: (...args: any[]) => void,
|
|
276
276
|
): this;
|
|
277
277
|
}
|
|
278
278
|
declare const WebSocketAlias: typeof WebSocket;
|
|
@@ -315,8 +315,8 @@ declare namespace WebSocket {
|
|
|
315
315
|
res: boolean,
|
|
316
316
|
code?: number,
|
|
317
317
|
message?: string,
|
|
318
|
-
headers?: OutgoingHttpHeaders
|
|
319
|
-
) => void
|
|
318
|
+
headers?: OutgoingHttpHeaders,
|
|
319
|
+
) => void,
|
|
320
320
|
) => void;
|
|
321
321
|
interface ClientOptions extends SecureContextOptions {
|
|
322
322
|
protocol?: string | undefined;
|
|
@@ -399,7 +399,7 @@ declare namespace WebSocket {
|
|
|
399
399
|
| undefined;
|
|
400
400
|
handleProtocols?: (
|
|
401
401
|
protocols: Set<string>,
|
|
402
|
-
request: IncomingMessage
|
|
402
|
+
request: IncomingMessage,
|
|
403
403
|
) => string | false;
|
|
404
404
|
path?: string | undefined;
|
|
405
405
|
noServer?: boolean | undefined;
|
|
@@ -425,75 +425,87 @@ declare namespace WebSocket {
|
|
|
425
425
|
request: IncomingMessage,
|
|
426
426
|
socket: Duplex,
|
|
427
427
|
upgradeHead: Buffer,
|
|
428
|
-
callback: (client: T, request: IncomingMessage) => void
|
|
428
|
+
callback: (client: T, request: IncomingMessage) => void,
|
|
429
429
|
): void;
|
|
430
430
|
shouldHandle(request: IncomingMessage): boolean | Promise<boolean>;
|
|
431
431
|
on(
|
|
432
432
|
event: 'connection',
|
|
433
|
-
cb: (this: Server<T>, socket: T, request: IncomingMessage) => void
|
|
433
|
+
cb: (this: Server<T>, socket: T, request: IncomingMessage) => void,
|
|
434
434
|
): this;
|
|
435
435
|
on(event: 'error', cb: (this: Server<T>, error: Error) => void): this;
|
|
436
436
|
on(
|
|
437
437
|
event: 'headers',
|
|
438
|
-
cb: (
|
|
438
|
+
cb: (
|
|
439
|
+
this: Server<T>,
|
|
440
|
+
headers: string[],
|
|
441
|
+
request: IncomingMessage,
|
|
442
|
+
) => void,
|
|
439
443
|
): this;
|
|
440
444
|
on(event: 'close' | 'listening', cb: (this: Server<T>) => void): this;
|
|
441
445
|
on(
|
|
442
446
|
event: string | symbol,
|
|
443
|
-
listener: (this: Server<T>, ...args: any[]) => void
|
|
447
|
+
listener: (this: Server<T>, ...args: any[]) => void,
|
|
444
448
|
): this;
|
|
445
449
|
once(
|
|
446
450
|
event: 'connection',
|
|
447
|
-
cb: (this: Server<T>, socket: T, request: IncomingMessage) => void
|
|
451
|
+
cb: (this: Server<T>, socket: T, request: IncomingMessage) => void,
|
|
448
452
|
): this;
|
|
449
453
|
once(event: 'error', cb: (this: Server<T>, error: Error) => void): this;
|
|
450
454
|
once(
|
|
451
455
|
event: 'headers',
|
|
452
|
-
cb: (
|
|
456
|
+
cb: (
|
|
457
|
+
this: Server<T>,
|
|
458
|
+
headers: string[],
|
|
459
|
+
request: IncomingMessage,
|
|
460
|
+
) => void,
|
|
453
461
|
): this;
|
|
454
462
|
once(event: 'close' | 'listening', cb: (this: Server<T>) => void): this;
|
|
455
463
|
once(
|
|
456
464
|
event: string | symbol,
|
|
457
|
-
listener: (this: Server<T>, ...args: any[]) => void
|
|
465
|
+
listener: (this: Server<T>, ...args: any[]) => void,
|
|
458
466
|
): this;
|
|
459
467
|
off(
|
|
460
468
|
event: 'connection',
|
|
461
|
-
cb: (this: Server<T>, socket: T, request: IncomingMessage) => void
|
|
469
|
+
cb: (this: Server<T>, socket: T, request: IncomingMessage) => void,
|
|
462
470
|
): this;
|
|
463
471
|
off(event: 'error', cb: (this: Server<T>, error: Error) => void): this;
|
|
464
472
|
off(
|
|
465
473
|
event: 'headers',
|
|
466
|
-
cb: (
|
|
474
|
+
cb: (
|
|
475
|
+
this: Server<T>,
|
|
476
|
+
headers: string[],
|
|
477
|
+
request: IncomingMessage,
|
|
478
|
+
) => void,
|
|
467
479
|
): this;
|
|
468
480
|
off(event: 'close' | 'listening', cb: (this: Server<T>) => void): this;
|
|
469
481
|
off(
|
|
470
482
|
event: string | symbol,
|
|
471
|
-
listener: (this: Server<T>, ...args: any[]) => void
|
|
483
|
+
listener: (this: Server<T>, ...args: any[]) => void,
|
|
472
484
|
): this;
|
|
473
485
|
addListener(
|
|
474
486
|
event: 'connection',
|
|
475
|
-
cb: (client: T, request: IncomingMessage) => void
|
|
487
|
+
cb: (client: T, request: IncomingMessage) => void,
|
|
476
488
|
): this;
|
|
477
489
|
addListener(event: 'error', cb: (err: Error) => void): this;
|
|
478
490
|
addListener(
|
|
479
491
|
event: 'headers',
|
|
480
|
-
cb: (headers: string[], request: IncomingMessage) => void
|
|
492
|
+
cb: (headers: string[], request: IncomingMessage) => void,
|
|
481
493
|
): this;
|
|
482
494
|
addListener(event: 'close' | 'listening', cb: () => void): this;
|
|
483
495
|
addListener(
|
|
484
496
|
event: string | symbol,
|
|
485
|
-
listener: (...args: any[]) => void
|
|
497
|
+
listener: (...args: any[]) => void,
|
|
486
498
|
): this;
|
|
487
499
|
removeListener(event: 'connection', cb: (client: T) => void): this;
|
|
488
500
|
removeListener(event: 'error', cb: (err: Error) => void): this;
|
|
489
501
|
removeListener(
|
|
490
502
|
event: 'headers',
|
|
491
|
-
cb: (headers: string[], request: IncomingMessage) => void
|
|
503
|
+
cb: (headers: string[], request: IncomingMessage) => void,
|
|
492
504
|
): this;
|
|
493
505
|
removeListener(event: 'close' | 'listening', cb: () => void): this;
|
|
494
506
|
removeListener(
|
|
495
507
|
event: string | symbol,
|
|
496
|
-
listener: (...args: any[]) => void
|
|
508
|
+
listener: (...args: any[]) => void,
|
|
497
509
|
): this;
|
|
498
510
|
}
|
|
499
511
|
const WebSocketServer: typeof Server;
|
|
@@ -502,7 +514,7 @@ declare namespace WebSocket {
|
|
|
502
514
|
interface WebSocket extends WebSocketAlias {}
|
|
503
515
|
function createWebSocketStream(
|
|
504
516
|
websocket: WebSocket,
|
|
505
|
-
options?: DuplexOptions
|
|
517
|
+
options?: DuplexOptions,
|
|
506
518
|
): Duplex;
|
|
507
519
|
}
|
|
508
520
|
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.browserArgsOption = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const cliFlag = 'browser-args';
|
|
6
|
-
let currentBrowserArgs = '';
|
|
7
|
-
exports.browserArgsOption = {
|
|
8
|
-
name: 'Browser Args',
|
|
9
|
-
cliFlag,
|
|
10
|
-
ssrName: 'browserArgs',
|
|
11
|
-
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "A set of command line flags that should be passed to the browser." })),
|
|
12
|
-
docLink: 'https://www.remotion.dev/docs/cli/studio#--browser-args',
|
|
13
|
-
type: '',
|
|
14
|
-
getValue: ({ commandLine }) => {
|
|
15
|
-
if (commandLine[cliFlag] !== undefined)
|
|
16
|
-
return { value: String(commandLine[cliFlag]), source: 'cli' };
|
|
17
|
-
if (currentBrowserArgs !== '')
|
|
18
|
-
return { value: currentBrowserArgs, source: 'config' };
|
|
19
|
-
return { value: '', source: 'default' };
|
|
20
|
-
},
|
|
21
|
-
setConfig: (value) => {
|
|
22
|
-
currentBrowserArgs = value;
|
|
23
|
-
},
|
|
24
|
-
id: cliFlag,
|
|
25
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.concurrenciesOption = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const cliFlag = 'concurrencies';
|
|
6
|
-
let currentConcurrencies = '';
|
|
7
|
-
exports.concurrenciesOption = {
|
|
8
|
-
name: 'Concurrencies',
|
|
9
|
-
cliFlag,
|
|
10
|
-
ssrName: 'concurrencies',
|
|
11
|
-
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["You can specify which concurrency value should be used while rendering the video. Multiple concurrency values can be passed separated by comma. Learn more about", ' ', jsx_runtime_1.jsx("a", { href: "/docs/terminology/concurrency", children: jsx_runtime_1.jsx("code", { children: "concurrency" }) })
|
|
12
|
-
] })),
|
|
13
|
-
docLink: 'https://www.remotion.dev/docs/cli/benchmark#--concurrencies',
|
|
14
|
-
type: '',
|
|
15
|
-
getValue: ({ commandLine }) => {
|
|
16
|
-
if (commandLine[cliFlag]) {
|
|
17
|
-
return {
|
|
18
|
-
value: String(commandLine[cliFlag]),
|
|
19
|
-
source: 'cli',
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
if (currentConcurrencies) {
|
|
23
|
-
return {
|
|
24
|
-
value: currentConcurrencies,
|
|
25
|
-
source: 'config',
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
source: 'default',
|
|
30
|
-
value: '',
|
|
31
|
-
};
|
|
32
|
-
},
|
|
33
|
-
setConfig: (value) => {
|
|
34
|
-
currentConcurrencies = value;
|
|
35
|
-
},
|
|
36
|
-
id: cliFlag,
|
|
37
|
-
};
|
package/dist/options/force.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const forceOption: {
|
|
2
|
-
name: string;
|
|
3
|
-
cliFlag: "force";
|
|
4
|
-
ssrName: "force";
|
|
5
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
docLink: null;
|
|
7
|
-
type: boolean;
|
|
8
|
-
getValue: ({ commandLine }: {
|
|
9
|
-
commandLine: Record<string, unknown>;
|
|
10
|
-
}) => {
|
|
11
|
-
value: boolean;
|
|
12
|
-
source: string;
|
|
13
|
-
};
|
|
14
|
-
setConfig: () => void;
|
|
15
|
-
id: "force";
|
|
16
|
-
};
|
package/dist/options/force.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.forceOption = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const cliFlag = 'force';
|
|
6
|
-
exports.forceOption = {
|
|
7
|
-
name: 'Force',
|
|
8
|
-
cliFlag,
|
|
9
|
-
ssrName: 'force',
|
|
10
|
-
description: () => jsx_runtime_1.jsx(jsx_runtime_1.Fragment, {}),
|
|
11
|
-
docLink: null,
|
|
12
|
-
type: false,
|
|
13
|
-
getValue: ({ commandLine }) => {
|
|
14
|
-
if (commandLine[cliFlag] !== undefined) {
|
|
15
|
-
return { value: Boolean(commandLine[cliFlag]), source: 'cli' };
|
|
16
|
-
}
|
|
17
|
-
return {
|
|
18
|
-
source: 'default',
|
|
19
|
-
value: false,
|
|
20
|
-
};
|
|
21
|
-
},
|
|
22
|
-
setConfig: () => { },
|
|
23
|
-
id: cliFlag,
|
|
24
|
-
};
|
package/dist/options/help.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const helpOption: {
|
|
2
|
-
name: string;
|
|
3
|
-
cliFlag: "help";
|
|
4
|
-
ssrName: "help";
|
|
5
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
docLink: string;
|
|
7
|
-
type: boolean;
|
|
8
|
-
getValue: ({ commandLine }: {
|
|
9
|
-
commandLine: Record<string, unknown>;
|
|
10
|
-
}) => {
|
|
11
|
-
value: boolean;
|
|
12
|
-
source: string;
|
|
13
|
-
};
|
|
14
|
-
setConfig: (value: boolean) => void;
|
|
15
|
-
id: "help";
|
|
16
|
-
};
|
package/dist/options/help.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.helpOption = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const cliFlag = 'help';
|
|
6
|
-
let currentHelp = null;
|
|
7
|
-
exports.helpOption = {
|
|
8
|
-
name: 'Help',
|
|
9
|
-
cliFlag,
|
|
10
|
-
ssrName: 'help',
|
|
11
|
-
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Prints available commands and flags for the Remotion CLI." })),
|
|
12
|
-
docLink: 'https://www.remotion.dev/docs/cli/help',
|
|
13
|
-
type: false,
|
|
14
|
-
getValue: ({ commandLine }) => {
|
|
15
|
-
if (commandLine[cliFlag] !== undefined) {
|
|
16
|
-
return { value: Boolean(commandLine[cliFlag]), source: 'cli' };
|
|
17
|
-
}
|
|
18
|
-
if (currentHelp !== null)
|
|
19
|
-
return { value: currentHelp, source: 'config' };
|
|
20
|
-
return { value: false, source: 'default' };
|
|
21
|
-
},
|
|
22
|
-
setConfig: (value) => {
|
|
23
|
-
currentHelp = value;
|
|
24
|
-
},
|
|
25
|
-
id: cliFlag,
|
|
26
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const imageFormatOption: {
|
|
2
|
-
name: string;
|
|
3
|
-
cliFlag: "image-format";
|
|
4
|
-
ssrName: "imageFormat";
|
|
5
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
docLink: string;
|
|
7
|
-
type: never;
|
|
8
|
-
getValue: () => never;
|
|
9
|
-
setConfig: () => void;
|
|
10
|
-
id: "image-format";
|
|
11
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.imageFormatOption = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const cliFlag = 'image-format';
|
|
6
|
-
exports.imageFormatOption = {
|
|
7
|
-
name: 'Image Format (deprecated)',
|
|
8
|
-
cliFlag,
|
|
9
|
-
ssrName: 'imageFormat',
|
|
10
|
-
description: () => jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Deprecated. Use --png / --jpeg / --webp instead." }),
|
|
11
|
-
docLink: 'https://www.remotion.dev/docs/cli/render#--image-format',
|
|
12
|
-
type: null,
|
|
13
|
-
getValue: () => {
|
|
14
|
-
throw new Error('The "--image-format" flag is deprecated.');
|
|
15
|
-
},
|
|
16
|
-
setConfig: () => { },
|
|
17
|
-
id: cliFlag,
|
|
18
|
-
};
|
package/dist/options/output.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.outputOption = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const cliFlag = 'output';
|
|
6
|
-
let currentOutput;
|
|
7
|
-
// Option for --output
|
|
8
|
-
exports.outputOption = {
|
|
9
|
-
name: 'Output',
|
|
10
|
-
cliFlag,
|
|
11
|
-
ssrName: 'output',
|
|
12
|
-
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Sets the output file path, as an alternative to the", ' ', jsx_runtime_1.jsx("code", { children: "output-location" }),
|
|
13
|
-
" positional argument."] })),
|
|
14
|
-
docLink: 'https://www.remotion.dev/docs/cli/render#--output-',
|
|
15
|
-
type: '',
|
|
16
|
-
getValue: ({ commandLine }) => {
|
|
17
|
-
if (commandLine[cliFlag] !== undefined) {
|
|
18
|
-
return {
|
|
19
|
-
value: commandLine[cliFlag],
|
|
20
|
-
source: 'cli',
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
if (currentOutput !== undefined) {
|
|
24
|
-
return {
|
|
25
|
-
value: currentOutput,
|
|
26
|
-
source: 'config',
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
source: 'default',
|
|
31
|
-
value: undefined,
|
|
32
|
-
};
|
|
33
|
-
},
|
|
34
|
-
setConfig: (value) => {
|
|
35
|
-
currentOutput = value;
|
|
36
|
-
},
|
|
37
|
-
id: cliFlag,
|
|
38
|
-
};
|
package/dist/options/png.d.ts
DELETED
package/dist/options/png.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.pngOption = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const cliFlag = 'png';
|
|
6
|
-
exports.pngOption = {
|
|
7
|
-
name: 'PNG (deprecated)',
|
|
8
|
-
cliFlag,
|
|
9
|
-
ssrName: 'png',
|
|
10
|
-
description: () => jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Deprecated. Throws an error if used." }),
|
|
11
|
-
docLink: null,
|
|
12
|
-
type: null,
|
|
13
|
-
getValue: () => {
|
|
14
|
-
throw new Error('The "--png" flag is deprecated.');
|
|
15
|
-
},
|
|
16
|
-
setConfig: () => { },
|
|
17
|
-
id: cliFlag,
|
|
18
|
-
};
|
package/dist/options/q.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare const qOption: {
|
|
2
|
-
name: string;
|
|
3
|
-
cliFlag: "q";
|
|
4
|
-
ssrName: "q";
|
|
5
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
docLink: string;
|
|
7
|
-
type: boolean;
|
|
8
|
-
getValue: ({ commandLine }: {
|
|
9
|
-
commandLine: Record<string, unknown>;
|
|
10
|
-
}) => {
|
|
11
|
-
value: true;
|
|
12
|
-
source: string;
|
|
13
|
-
} | {
|
|
14
|
-
value: false;
|
|
15
|
-
source: string;
|
|
16
|
-
};
|
|
17
|
-
setConfig: (value: boolean) => void;
|
|
18
|
-
id: "q";
|
|
19
|
-
};
|