@platformatic/control 2.25.0 → 2.26.0
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.
|
@@ -35,7 +35,9 @@ class RuntimeApiClient {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
async getRuntimes () {
|
|
38
|
-
const runtimePIDs = platform() === 'win32'
|
|
38
|
+
const runtimePIDs = platform() === 'win32'
|
|
39
|
+
? await this.#getWindowsRuntimePIDs()
|
|
40
|
+
: await this.#getUnixRuntimePIDs()
|
|
39
41
|
|
|
40
42
|
const getMetadataRequests = await Promise.allSettled(
|
|
41
43
|
runtimePIDs.map(async runtimePID => {
|
|
@@ -62,7 +64,8 @@ class RuntimeApiClient {
|
|
|
62
64
|
|
|
63
65
|
const { statusCode, body } = await client.request({
|
|
64
66
|
path: '/api/v1/metadata',
|
|
65
|
-
method: 'GET'
|
|
67
|
+
method: 'GET',
|
|
68
|
+
headersTimeout: 10 * 1000,
|
|
66
69
|
})
|
|
67
70
|
|
|
68
71
|
if (statusCode !== 200) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/control",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.26.0",
|
|
4
4
|
"description": "Platformatic Control",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"split2": "^4.2.0",
|
|
26
26
|
"tsd": "^0.31.0",
|
|
27
27
|
"typescript": "^5.5.4",
|
|
28
|
-
"@platformatic/
|
|
29
|
-
"@platformatic/
|
|
28
|
+
"@platformatic/service": "2.26.0",
|
|
29
|
+
"@platformatic/runtime": "2.26.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@fastify/error": "^4.0.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"table": "^6.8.1",
|
|
38
38
|
"undici": "^7.0.0",
|
|
39
39
|
"ws": "^8.16.0",
|
|
40
|
-
"@platformatic/utils": "2.
|
|
40
|
+
"@platformatic/utils": "2.26.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"test": "pnpm run lint && pnpm run unit",
|