@platformatic/basic 2.5.5-alpha.1 → 2.5.5-alpha.3
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/lib/base.js +2 -2
- package/lib/worker/child-process.js +0 -1
- package/package.json +6 -6
- package/schema.json +1 -1
package/lib/base.js
CHANGED
|
@@ -282,7 +282,7 @@ export class BaseStackable {
|
|
|
282
282
|
...metricsConfig
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
if (this.childManager) {
|
|
285
|
+
if (this.childManager && this.clientWs) {
|
|
286
286
|
await this.childManager.send(this.clientWs, 'collectMetrics', {
|
|
287
287
|
serviceId: this.id,
|
|
288
288
|
metricsConfig
|
|
@@ -302,7 +302,7 @@ export class BaseStackable {
|
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
async getMetrics ({ format } = {}) {
|
|
305
|
-
if (this.childManager) {
|
|
305
|
+
if (this.childManager && this.clientWs) {
|
|
306
306
|
return this.childManager.send(this.clientWs, 'getMetrics', { format })
|
|
307
307
|
}
|
|
308
308
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/basic",
|
|
3
|
-
"version": "2.5.5-alpha.
|
|
3
|
+
"version": "2.5.5-alpha.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"split2": "^4.2.0",
|
|
24
24
|
"undici": "^6.19.5",
|
|
25
25
|
"ws": "^8.18.0",
|
|
26
|
-
"@platformatic/
|
|
27
|
-
"@platformatic/
|
|
28
|
-
"@platformatic/
|
|
29
|
-
"@platformatic/
|
|
30
|
-
"@platformatic/utils": "2.5.5-alpha.
|
|
26
|
+
"@platformatic/telemetry": "2.5.5-alpha.3",
|
|
27
|
+
"@platformatic/config": "2.5.5-alpha.3",
|
|
28
|
+
"@platformatic/metrics": "2.5.5-alpha.3",
|
|
29
|
+
"@platformatic/itc": "2.5.5-alpha.3",
|
|
30
|
+
"@platformatic/utils": "2.5.5-alpha.3"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"borp": "^0.17.0",
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/basic/2.5.5-alpha.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/basic/2.5.5-alpha.3.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Stackable",
|
|
5
5
|
"type": "object",
|