@platformatic/basic 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/base.js CHANGED
@@ -38,10 +38,7 @@ export class BaseStackable {
38
38
  this.startHttpTimer = null
39
39
  this.endHttpTimer = null
40
40
  this.clientWs = null
41
- this.runtimeConfig = deepmerge(
42
- options.context?.runtimeConfig ?? {},
43
- workerData?.config ?? {}
44
- )
41
+ this.runtimeConfig = deepmerge(options.context?.runtimeConfig ?? {}, workerData?.config ?? {})
45
42
 
46
43
  // Setup the logger
47
44
  const pinoOptions = {
@@ -109,6 +106,10 @@ export class BaseStackable {
109
106
  return this
110
107
  }
111
108
 
109
+ async getDispatchTarget () {
110
+ return this.getUrl() ?? this.getDispatchFunc()
111
+ }
112
+
112
113
  async getOpenapiSchema () {
113
114
  return this.openapiSchema
114
115
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/basic",
3
- "version": "2.14.0",
3
+ "version": "2.15.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -23,11 +23,11 @@
23
23
  "split2": "^4.2.0",
24
24
  "undici": "^6.19.5",
25
25
  "ws": "^8.18.0",
26
- "@platformatic/config": "2.14.0",
27
- "@platformatic/itc": "2.14.0",
28
- "@platformatic/utils": "2.14.0",
29
- "@platformatic/metrics": "2.14.0",
30
- "@platformatic/telemetry": "2.14.0"
26
+ "@platformatic/config": "2.15.0",
27
+ "@platformatic/itc": "2.15.0",
28
+ "@platformatic/metrics": "2.15.0",
29
+ "@platformatic/utils": "2.15.0",
30
+ "@platformatic/telemetry": "2.15.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "borp": "^0.18.0",
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/basic/2.14.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/basic/2.15.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Stackable",
5
5
  "type": "object",