@platformatic/gateway 3.34.1 → 3.35.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.
package/lib/capability.js CHANGED
@@ -21,19 +21,17 @@ export class GatewayCapability extends ServiceCapability {
21
21
  this.fastifyOptions.routerOptions.constraints = { notHost: notHostConstraints }
22
22
  }
23
23
 
24
- async init () {
25
- if (this.status) {
26
- return
24
+ async getDependencies () {
25
+ if (!this.status) {
26
+ await ensureApplications(this.applicationId, this.config)
27
+ const composedApplications = this.config.gateway?.applications
28
+ .filter(this.#isLocalApplication.bind(this))
29
+ .map(a => a.id)
30
+
31
+ this.dependencies = Array.from(new Set([...this.dependencies, ...composedApplications]))
27
32
  }
28
33
 
29
- await ensureApplications(this.applicationId, this.config)
30
- const composedApplications = this.config.gateway?.applications
31
- .filter(this.#isLocalApplication.bind(this))
32
- .map(a => a.id)
33
-
34
- this.dependencies = Array.from(new Set([...this.dependencies, ...composedApplications]))
35
-
36
- await super.init()
34
+ return this.dependencies
37
35
  }
38
36
 
39
37
  async start () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/gateway",
3
- "version": "3.34.1",
3
+ "version": "3.35.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -33,7 +33,7 @@
33
33
  "typescript": "^5.5.4",
34
34
  "why-is-node-running": "2",
35
35
  "ws": "^8.16.0",
36
- "@platformatic/db": "3.34.1"
36
+ "@platformatic/db": "3.35.0"
37
37
  },
38
38
  "dependencies": {
39
39
  "@fastify/error": "^4.0.0",
@@ -64,11 +64,11 @@
64
64
  "rfdc": "^1.3.1",
65
65
  "semgrator": "^0.3.0",
66
66
  "undici": "^7.0.0",
67
- "@platformatic/basic": "3.34.1",
68
- "@platformatic/scalar-theme": "3.34.1",
69
- "@platformatic/service": "3.34.1",
70
- "@platformatic/telemetry": "3.34.1",
71
- "@platformatic/foundation": "^3.34.1"
67
+ "@platformatic/basic": "3.35.0",
68
+ "@platformatic/foundation": "^3.35.0",
69
+ "@platformatic/scalar-theme": "3.35.0",
70
+ "@platformatic/service": "3.35.0",
71
+ "@platformatic/telemetry": "3.35.0"
72
72
  },
73
73
  "engines": {
74
74
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/gateway/3.34.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/gateway/3.35.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Gateway Config",
5
5
  "type": "object",