@platformatic/runtime 0.42.3 → 0.43.1

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/api.js CHANGED
@@ -197,6 +197,7 @@ class RuntimeApi {
197
197
  }
198
198
 
199
199
  try {
200
+ await service.server.ready()
200
201
  const openapiSchema = service.server.swagger()
201
202
  return openapiSchema
202
203
  } catch (err) {
package/lib/app.js CHANGED
@@ -123,6 +123,9 @@ class PlatformaticApp {
123
123
  this.server.log.error({ err })
124
124
  process.exit(1)
125
125
  }
126
+ } else {
127
+ // Make sure the server has run all the onReady hooks before returning.
128
+ await this.server.ready()
126
129
  }
127
130
  }
128
131
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/runtime",
3
- "version": "0.42.3",
3
+ "version": "0.43.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -24,8 +24,8 @@
24
24
  "standard": "^17.1.0",
25
25
  "tsd": "^0.29.0",
26
26
  "typescript": "^5.1.6",
27
- "@platformatic/sql-graphql": "0.42.3",
28
- "@platformatic/sql-mapper": "0.42.3"
27
+ "@platformatic/sql-graphql": "0.43.1",
28
+ "@platformatic/sql-mapper": "0.43.1"
29
29
  },
30
30
  "dependencies": {
31
31
  "@hapi/topo": "^6.0.2",
@@ -42,12 +42,12 @@
42
42
  "pino": "^8.14.1",
43
43
  "pino-pretty": "^10.0.0",
44
44
  "undici": "^5.22.1",
45
- "@platformatic/composer": "0.42.3",
46
- "@platformatic/config": "0.42.3",
47
- "@platformatic/db": "0.42.3",
48
- "@platformatic/service": "0.42.3",
49
- "@platformatic/telemetry": "0.42.3",
50
- "@platformatic/utils": "0.42.3"
45
+ "@platformatic/composer": "0.43.1",
46
+ "@platformatic/config": "0.43.1",
47
+ "@platformatic/db": "0.43.1",
48
+ "@platformatic/service": "0.43.1",
49
+ "@platformatic/telemetry": "0.43.1",
50
+ "@platformatic/utils": "0.43.1"
51
51
  },
52
52
  "standard": {
53
53
  "ignore": [