@platformatic/runtime 1.32.0 → 1.33.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.
@@ -0,0 +1,4 @@
1
+ {
2
+ "name": "test-runtime-package",
3
+ "version": "1.0.42"
4
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "https://platformatic.dev/schemas/v1.22.0/runtime",
3
+ "entrypoint": "service-1",
4
+ "allowCycles": true,
5
+ "hotReload": false,
6
+ "autoload": {
7
+ "path": "./services"
8
+ },
9
+ "server": {
10
+ "hostname": "127.0.0.1",
11
+ "port": 0
12
+ },
13
+ "managementApi": true
14
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "$schema": "https://platformatic.dev/schemas/v1.22.0/service",
3
+ "service": {
4
+ "openapi": true
5
+ },
6
+ "watch": true,
7
+ "metrics": false
8
+ }
package/lib/api-client.js CHANGED
@@ -107,6 +107,8 @@ class RuntimeApiClient extends EventEmitter {
107
107
  async getFormattedMetrics () {
108
108
  const { metrics } = await this.getMetrics()
109
109
 
110
+ if (metrics === null) return null
111
+
110
112
  const entrypointDetails = await this.getEntrypointDetails()
111
113
  const entrypointConfig = await this.getServiceConfig(entrypointDetails.id)
112
114
  const entrypointMetricsPrefix = entrypointConfig.metrics?.prefix
package/lib/api.js CHANGED
@@ -299,7 +299,7 @@ class RuntimeApi {
299
299
 
300
300
  const promRegister = entrypoint.server.metrics?.client?.register
301
301
  if (!promRegister) {
302
- return null
302
+ return { metrics: null }
303
303
  }
304
304
 
305
305
  // All runtime services shares the same metrics registry.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/runtime",
3
- "version": "1.32.0",
3
+ "version": "1.33.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -33,8 +33,8 @@
33
33
  "typescript": "^5.4.2",
34
34
  "undici-oidc-interceptor": "^0.5.0",
35
35
  "why-is-node-running": "^2.2.2",
36
- "@platformatic/sql-graphql": "1.32.0",
37
- "@platformatic/sql-mapper": "1.32.0"
36
+ "@platformatic/sql-graphql": "1.33.0",
37
+ "@platformatic/sql-mapper": "1.33.0"
38
38
  },
39
39
  "dependencies": {
40
40
  "ws": "^8.16.0",
@@ -62,13 +62,13 @@
62
62
  "tail-file-stream": "^0.1.0",
63
63
  "undici": "^6.9.0",
64
64
  "why-is-node-running": "^2.2.2",
65
- "@platformatic/composer": "1.32.0",
66
- "@platformatic/config": "1.32.0",
67
- "@platformatic/db": "1.32.0",
68
- "@platformatic/service": "1.32.0",
69
- "@platformatic/telemetry": "1.32.0",
70
- "@platformatic/generators": "1.32.0",
71
- "@platformatic/utils": "1.32.0"
65
+ "@platformatic/composer": "1.33.0",
66
+ "@platformatic/config": "1.33.0",
67
+ "@platformatic/db": "1.33.0",
68
+ "@platformatic/telemetry": "1.33.0",
69
+ "@platformatic/service": "1.33.0",
70
+ "@platformatic/generators": "1.33.0",
71
+ "@platformatic/utils": "1.33.0"
72
72
  },
73
73
  "standard": {
74
74
  "ignore": [