@platformatic/service 2.14.0 → 2.15.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/stackable.js +5 -4
- package/package.json +9 -9
- package/schema.json +2 -2
package/lib/stackable.js
CHANGED
|
@@ -27,10 +27,7 @@ class ServiceStackable {
|
|
|
27
27
|
this.context.worker ??= { count: 1, index: 0 }
|
|
28
28
|
this.workerId = this.context.worker.count > 1 ? this.context.worker.index : undefined
|
|
29
29
|
|
|
30
|
-
this.runtimeConfig = deepmerge(
|
|
31
|
-
this.context.runtimeConfig ?? {},
|
|
32
|
-
workerData?.config ?? {}
|
|
33
|
-
)
|
|
30
|
+
this.runtimeConfig = deepmerge(this.context.runtimeConfig ?? {}, workerData?.config ?? {})
|
|
34
31
|
|
|
35
32
|
this.configManager.on('error', err => {
|
|
36
33
|
/* c8 ignore next */
|
|
@@ -158,6 +155,10 @@ class ServiceStackable {
|
|
|
158
155
|
return this.app
|
|
159
156
|
}
|
|
160
157
|
|
|
158
|
+
async getDispatchTarget () {
|
|
159
|
+
return this.getUrl() ?? (await this.getDispatchFunc())
|
|
160
|
+
}
|
|
161
|
+
|
|
161
162
|
async getOpenapiSchema () {
|
|
162
163
|
await this.init()
|
|
163
164
|
await this.app.ready()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/service",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -76,14 +76,14 @@
|
|
|
76
76
|
"rfdc": "^1.3.1",
|
|
77
77
|
"semgrator": "^0.3.0",
|
|
78
78
|
"undici": "^6.9.0",
|
|
79
|
-
"@platformatic/
|
|
80
|
-
"@platformatic/
|
|
81
|
-
"@platformatic/
|
|
82
|
-
"@platformatic/
|
|
83
|
-
"@platformatic/
|
|
84
|
-
"@platformatic/telemetry": "2.
|
|
85
|
-
"@platformatic/
|
|
86
|
-
"@platformatic/
|
|
79
|
+
"@platformatic/client": "2.15.0",
|
|
80
|
+
"@platformatic/config": "2.15.0",
|
|
81
|
+
"@platformatic/metrics": "2.15.0",
|
|
82
|
+
"@platformatic/scalar-theme": "2.15.0",
|
|
83
|
+
"@platformatic/generators": "2.15.0",
|
|
84
|
+
"@platformatic/telemetry": "2.15.0",
|
|
85
|
+
"@platformatic/utils": "2.15.0",
|
|
86
|
+
"@platformatic/ts-compiler": "2.15.0"
|
|
87
87
|
},
|
|
88
88
|
"scripts": {
|
|
89
89
|
"test": "pnpm run lint && borp -T --concurrency=1 --timeout=300000 && tsd",
|
package/schema.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/service/2.
|
|
3
|
-
"version": "2.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/service/2.15.0.json",
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"title": "Platformatic Service",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|