@platformatic/service 2.15.0 → 2.16.0-alpha.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/stackable.js +4 -5
- package/package.json +9 -9
- package/schema.json +2 -2
package/lib/stackable.js
CHANGED
|
@@ -27,7 +27,10 @@ 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(
|
|
30
|
+
this.runtimeConfig = deepmerge(
|
|
31
|
+
this.context.runtimeConfig ?? {},
|
|
32
|
+
workerData?.config ?? {}
|
|
33
|
+
)
|
|
31
34
|
|
|
32
35
|
this.configManager.on('error', err => {
|
|
33
36
|
/* c8 ignore next */
|
|
@@ -155,10 +158,6 @@ class ServiceStackable {
|
|
|
155
158
|
return this.app
|
|
156
159
|
}
|
|
157
160
|
|
|
158
|
-
async getDispatchTarget () {
|
|
159
|
-
return this.getUrl() ?? (await this.getDispatchFunc())
|
|
160
|
-
}
|
|
161
|
-
|
|
162
161
|
async getOpenapiSchema () {
|
|
163
162
|
await this.init()
|
|
164
163
|
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.16.0-alpha.1",
|
|
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/client": "2.
|
|
80
|
-
"@platformatic/config": "2.
|
|
81
|
-
"@platformatic/metrics": "2.
|
|
82
|
-
"@platformatic/
|
|
83
|
-
"@platformatic/
|
|
84
|
-
"@platformatic/telemetry": "2.
|
|
85
|
-
"@platformatic/
|
|
86
|
-
"@platformatic/
|
|
79
|
+
"@platformatic/client": "2.16.0-alpha.1",
|
|
80
|
+
"@platformatic/config": "2.16.0-alpha.1",
|
|
81
|
+
"@platformatic/metrics": "2.16.0-alpha.1",
|
|
82
|
+
"@platformatic/generators": "2.16.0-alpha.1",
|
|
83
|
+
"@platformatic/scalar-theme": "2.16.0-alpha.1",
|
|
84
|
+
"@platformatic/telemetry": "2.16.0-alpha.1",
|
|
85
|
+
"@platformatic/ts-compiler": "2.16.0-alpha.1",
|
|
86
|
+
"@platformatic/utils": "2.16.0-alpha.1"
|
|
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.16.0-alpha.1.json",
|
|
3
|
+
"version": "2.16.0-alpha.1",
|
|
4
4
|
"title": "Platformatic Service",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|