@remotion/renderer 4.0.461 → 4.0.463
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/browser/BrowserFetcher.js +2 -5
- package/dist/browser/extract-zip-archive.d.ts +1 -0
- package/dist/browser/extract-zip-archive.js +144 -0
- package/dist/esm/index.mjs +1905 -355
- package/package.json +13 -15
- package/vendor/yauzl-patched/LICENSE +21 -0
- package/vendor/yauzl-patched/buffer-crc32.js +111 -0
- package/vendor/yauzl-patched/fd-slicer.js +326 -0
- package/vendor/yauzl-patched/index.d.ts +23 -0
- package/vendor/yauzl-patched/index.js +969 -0
- package/vendor/yauzl-patched/pend.js +55 -0
- package/dist/options/experimental-visual-mode.d.ts +0 -16
- package/dist/options/experimental-visual-mode.js +0 -30
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
module.exports = Pend;
|
|
2
|
+
|
|
3
|
+
function Pend() {
|
|
4
|
+
this.pending = 0;
|
|
5
|
+
this.max = Infinity;
|
|
6
|
+
this.listeners = [];
|
|
7
|
+
this.waiting = [];
|
|
8
|
+
this.error = null;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
Pend.prototype.go = function(fn) {
|
|
12
|
+
if (this.pending < this.max) {
|
|
13
|
+
pendGo(this, fn);
|
|
14
|
+
} else {
|
|
15
|
+
this.waiting.push(fn);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
Pend.prototype.wait = function(cb) {
|
|
20
|
+
if (this.pending === 0) {
|
|
21
|
+
cb(this.error);
|
|
22
|
+
} else {
|
|
23
|
+
this.listeners.push(cb);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
Pend.prototype.hold = function() {
|
|
28
|
+
return pendHold(this);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
function pendHold(self) {
|
|
32
|
+
self.pending += 1;
|
|
33
|
+
var called = false;
|
|
34
|
+
return onCb;
|
|
35
|
+
function onCb(err) {
|
|
36
|
+
if (called) throw new Error("callback called twice");
|
|
37
|
+
called = true;
|
|
38
|
+
self.error = self.error || err;
|
|
39
|
+
self.pending -= 1;
|
|
40
|
+
if (self.waiting.length > 0 && self.pending < self.max) {
|
|
41
|
+
pendGo(self, self.waiting.shift());
|
|
42
|
+
} else if (self.pending === 0) {
|
|
43
|
+
var listeners = self.listeners;
|
|
44
|
+
self.listeners = [];
|
|
45
|
+
listeners.forEach(cbListener);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function cbListener(listener) {
|
|
49
|
+
listener(self.error);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function pendGo(self, fn) {
|
|
54
|
+
fn(pendHold(self));
|
|
55
|
+
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const experimentalVisualModeOption: {
|
|
2
|
-
name: string;
|
|
3
|
-
cliFlag: "experimental-visual-mode";
|
|
4
|
-
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
ssrName: null;
|
|
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: "experimental-visual-mode";
|
|
16
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.experimentalVisualModeOption = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
let experimentalVisualModeEnabled = false;
|
|
6
|
-
const cliFlag = 'experimental-visual-mode';
|
|
7
|
-
exports.experimentalVisualModeOption = {
|
|
8
|
-
name: 'Experimental Visual Mode',
|
|
9
|
-
cliFlag,
|
|
10
|
-
description: () => (jsx_runtime_1.jsx(jsx_runtime_1.Fragment, { children: "Nothing here yet, but this is our playground for experiments." })),
|
|
11
|
-
ssrName: null,
|
|
12
|
-
docLink: 'https://www.remotion.dev/docs/config#setexperimentalvisualmode',
|
|
13
|
-
type: false,
|
|
14
|
-
getValue: ({ commandLine }) => {
|
|
15
|
-
if (commandLine[cliFlag] !== null) {
|
|
16
|
-
return {
|
|
17
|
-
value: commandLine[cliFlag],
|
|
18
|
-
source: 'cli',
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
return {
|
|
22
|
-
value: experimentalVisualModeEnabled,
|
|
23
|
-
source: 'config',
|
|
24
|
-
};
|
|
25
|
-
},
|
|
26
|
-
setConfig(value) {
|
|
27
|
-
experimentalVisualModeEnabled = value;
|
|
28
|
-
},
|
|
29
|
-
id: cliFlag,
|
|
30
|
-
};
|