@remotion/renderer 4.0.441 → 4.0.443
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/esm/index.mjs +15 -19
- package/dist/get-port.js +15 -19
- package/dist/options/browser-download-dir.d.ts +16 -0
- package/dist/options/browser-download-dir.js +42 -0
- package/package.json +13 -13
package/dist/esm/index.mjs
CHANGED
|
@@ -15638,33 +15638,29 @@ var isPortAvailableOnHost = ({
|
|
|
15638
15638
|
host
|
|
15639
15639
|
}) => {
|
|
15640
15640
|
return new Promise((resolve2) => {
|
|
15641
|
-
|
|
15642
|
-
|
|
15643
|
-
|
|
15644
|
-
|
|
15645
|
-
socket.destroy();
|
|
15641
|
+
const server = net.createServer();
|
|
15642
|
+
server.unref();
|
|
15643
|
+
server.on("error", () => {
|
|
15644
|
+
resolve2("unavailable");
|
|
15646
15645
|
});
|
|
15647
|
-
|
|
15648
|
-
|
|
15649
|
-
|
|
15650
|
-
|
|
15651
|
-
resolve2(status);
|
|
15652
|
-
});
|
|
15653
|
-
socket.on("error", () => {
|
|
15654
|
-
status = "available";
|
|
15646
|
+
server.listen({ port: portToTry, host }, () => {
|
|
15647
|
+
server.close(() => {
|
|
15648
|
+
resolve2("available");
|
|
15649
|
+
});
|
|
15655
15650
|
});
|
|
15656
|
-
socket.on("close", () => resolve2(status));
|
|
15657
|
-
socket.connect(portToTry, host);
|
|
15658
15651
|
});
|
|
15659
15652
|
};
|
|
15660
15653
|
var testPortAvailableOnMultipleHosts = async ({
|
|
15661
15654
|
hosts,
|
|
15662
15655
|
port
|
|
15663
15656
|
}) => {
|
|
15664
|
-
const
|
|
15665
|
-
|
|
15666
|
-
|
|
15667
|
-
|
|
15657
|
+
for (const host of hosts) {
|
|
15658
|
+
const result = await isPortAvailableOnHost({ portToTry: port, host });
|
|
15659
|
+
if (result === "unavailable") {
|
|
15660
|
+
return "unavailable";
|
|
15661
|
+
}
|
|
15662
|
+
}
|
|
15663
|
+
return "available";
|
|
15668
15664
|
};
|
|
15669
15665
|
var getPort = async ({
|
|
15670
15666
|
from,
|
package/dist/get-port.js
CHANGED
|
@@ -8,30 +8,26 @@ const net_1 = __importDefault(require("net"));
|
|
|
8
8
|
const locks_1 = require("./locks");
|
|
9
9
|
const isPortAvailableOnHost = ({ portToTry, host, }) => {
|
|
10
10
|
return new Promise((resolve) => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
socket.destroy();
|
|
11
|
+
const server = net_1.default.createServer();
|
|
12
|
+
server.unref();
|
|
13
|
+
server.on('error', () => {
|
|
14
|
+
resolve('unavailable');
|
|
16
15
|
});
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
resolve(status);
|
|
16
|
+
server.listen({ port: portToTry, host }, () => {
|
|
17
|
+
server.close(() => {
|
|
18
|
+
resolve('available');
|
|
19
|
+
});
|
|
22
20
|
});
|
|
23
|
-
socket.on('error', () => {
|
|
24
|
-
status = 'available';
|
|
25
|
-
});
|
|
26
|
-
socket.on('close', () => resolve(status));
|
|
27
|
-
socket.connect(portToTry, host);
|
|
28
21
|
});
|
|
29
22
|
};
|
|
30
23
|
const testPortAvailableOnMultipleHosts = async ({ hosts, port, }) => {
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
24
|
+
for (const host of hosts) {
|
|
25
|
+
const result = await isPortAvailableOnHost({ portToTry: port, host });
|
|
26
|
+
if (result === 'unavailable') {
|
|
27
|
+
return 'unavailable';
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return 'available';
|
|
35
31
|
};
|
|
36
32
|
exports.testPortAvailableOnMultipleHosts = testPortAvailableOnMultipleHosts;
|
|
37
33
|
const getPort = async ({ from, to, hostsToTest, onPortUnavailable, }) => {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const browserDownloadDirOption: {
|
|
2
|
+
name: string;
|
|
3
|
+
cliFlag: "browser-download-dir";
|
|
4
|
+
description: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
ssrName: "browserDownloadDir";
|
|
6
|
+
docLink: string;
|
|
7
|
+
type: string | null;
|
|
8
|
+
getValue: ({ commandLine }: {
|
|
9
|
+
commandLine: Record<string, unknown>;
|
|
10
|
+
}) => {
|
|
11
|
+
source: string;
|
|
12
|
+
value: string | null;
|
|
13
|
+
};
|
|
14
|
+
setConfig: (value: string | null) => void;
|
|
15
|
+
id: "browser-download-dir";
|
|
16
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.browserDownloadDirOption = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const cliFlag = 'browser-download-dir';
|
|
6
|
+
let currentDirectory = null;
|
|
7
|
+
exports.browserDownloadDirOption = {
|
|
8
|
+
name: 'Browser Download Directory',
|
|
9
|
+
cliFlag,
|
|
10
|
+
description: () => (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: ["Specify the directory where the browser should be downloaded to when calling ",
|
|
11
|
+
jsx_runtime_1.jsx("code", { children: "npx remotion browser ensure" }),
|
|
12
|
+
". By default, Remotion downloads the browser into ",
|
|
13
|
+
jsx_runtime_1.jsx("code", { children: "node_modules/.remotion" }),
|
|
14
|
+
" inside the nearest project root. Use this option to override the default download location. Pass ",
|
|
15
|
+
jsx_runtime_1.jsx("code", { children: "null" }),
|
|
16
|
+
" to use the default location."] })),
|
|
17
|
+
ssrName: 'browserDownloadDir',
|
|
18
|
+
docLink: 'https://www.remotion.dev/docs/config#setbrowserdownloaddir',
|
|
19
|
+
type: '',
|
|
20
|
+
getValue: ({ commandLine }) => {
|
|
21
|
+
if (commandLine[cliFlag] !== undefined) {
|
|
22
|
+
return {
|
|
23
|
+
source: 'cli',
|
|
24
|
+
value: commandLine[cliFlag],
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
if (currentDirectory !== null) {
|
|
28
|
+
return {
|
|
29
|
+
source: 'config',
|
|
30
|
+
value: currentDirectory,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
source: 'default',
|
|
35
|
+
value: null,
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
setConfig: (value) => {
|
|
39
|
+
currentDirectory = value;
|
|
40
|
+
},
|
|
41
|
+
id: cliFlag,
|
|
42
|
+
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/renderer"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/renderer",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.443",
|
|
7
7
|
"description": "Render Remotion videos using Node.js or Bun",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"execa": "5.1.1",
|
|
26
26
|
"extract-zip": "2.0.1",
|
|
27
|
-
"remotion": "4.0.
|
|
28
|
-
"@remotion/streaming": "4.0.
|
|
27
|
+
"remotion": "4.0.443",
|
|
28
|
+
"@remotion/streaming": "4.0.443",
|
|
29
29
|
"source-map": "^0.8.0-beta.0",
|
|
30
30
|
"ws": "8.17.1",
|
|
31
|
-
"@remotion/licensing": "4.0.
|
|
31
|
+
"@remotion/licensing": "4.0.443"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": ">=16.8.0",
|
|
@@ -42,19 +42,19 @@
|
|
|
42
42
|
"react-dom": "19.2.3",
|
|
43
43
|
"@typescript/native-preview": "7.0.0-dev.20260217.1",
|
|
44
44
|
"@types/ws": "8.5.10",
|
|
45
|
-
"@remotion/example-videos": "4.0.
|
|
46
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
45
|
+
"@remotion/example-videos": "4.0.443",
|
|
46
|
+
"@remotion/eslint-config-internal": "4.0.443",
|
|
47
47
|
"eslint": "9.19.0",
|
|
48
48
|
"@types/node": "20.12.14"
|
|
49
49
|
},
|
|
50
50
|
"optionalDependencies": {
|
|
51
|
-
"@remotion/compositor-darwin-arm64": "4.0.
|
|
52
|
-
"@remotion/compositor-darwin-x64": "4.0.
|
|
53
|
-
"@remotion/compositor-linux-arm64-gnu": "4.0.
|
|
54
|
-
"@remotion/compositor-linux-arm64-musl": "4.0.
|
|
55
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
56
|
-
"@remotion/compositor-linux-x64-musl": "4.0.
|
|
57
|
-
"@remotion/compositor-win32-x64-msvc": "4.0.
|
|
51
|
+
"@remotion/compositor-darwin-arm64": "4.0.443",
|
|
52
|
+
"@remotion/compositor-darwin-x64": "4.0.443",
|
|
53
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.443",
|
|
54
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.443",
|
|
55
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.443",
|
|
56
|
+
"@remotion/compositor-linux-x64-musl": "4.0.443",
|
|
57
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.443"
|
|
58
58
|
},
|
|
59
59
|
"keywords": [
|
|
60
60
|
"remotion",
|