@remotion/renderer 4.0.441 → 4.0.442
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/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, }) => {
|
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.442",
|
|
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.442",
|
|
28
|
+
"@remotion/streaming": "4.0.442",
|
|
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.442"
|
|
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.442",
|
|
46
|
+
"@remotion/eslint-config-internal": "4.0.442",
|
|
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.442",
|
|
52
|
+
"@remotion/compositor-darwin-x64": "4.0.442",
|
|
53
|
+
"@remotion/compositor-linux-arm64-gnu": "4.0.442",
|
|
54
|
+
"@remotion/compositor-linux-arm64-musl": "4.0.442",
|
|
55
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.442",
|
|
56
|
+
"@remotion/compositor-linux-x64-musl": "4.0.442",
|
|
57
|
+
"@remotion/compositor-win32-x64-msvc": "4.0.442"
|
|
58
58
|
},
|
|
59
59
|
"keywords": [
|
|
60
60
|
"remotion",
|