@platformatic/service 2.19.0-alpha.4 → 2.19.0-alpha.6
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 +1 -8
- package/package.json +11 -11
- package/schema.json +2 -2
package/lib/stackable.js
CHANGED
|
@@ -12,8 +12,6 @@ const { extractTypeScriptCompileOptionsFromConfig } = require('./compile')
|
|
|
12
12
|
const { compile } = require('@platformatic/ts-compiler')
|
|
13
13
|
const { deepmerge } = require('@platformatic/utils')
|
|
14
14
|
|
|
15
|
-
const kITC = Symbol.for('plt.runtime.itc')
|
|
16
|
-
|
|
17
15
|
class ServiceStackable {
|
|
18
16
|
constructor (options) {
|
|
19
17
|
this.app = null
|
|
@@ -50,8 +48,7 @@ class ServiceStackable {
|
|
|
50
48
|
setOpenapiSchema: this.setOpenapiSchema.bind(this),
|
|
51
49
|
setGraphqlSchema: this.setGraphqlSchema.bind(this),
|
|
52
50
|
setBasePath: this.setBasePath.bind(this),
|
|
53
|
-
runtimeBasePath: this.runtimeConfig?.basePath ?? null
|
|
54
|
-
invalidateHttpCache: this.#invalidateHttpCache.bind(this)
|
|
51
|
+
runtimeBasePath: this.runtimeConfig?.basePath ?? null
|
|
55
52
|
})
|
|
56
53
|
}
|
|
57
54
|
|
|
@@ -235,10 +232,6 @@ class ServiceStackable {
|
|
|
235
232
|
globalThis.platformatic = Object.assign(globalThis.platformatic ?? {}, globals)
|
|
236
233
|
}
|
|
237
234
|
|
|
238
|
-
async #invalidateHttpCache (opts = {}) {
|
|
239
|
-
await globalThis[kITC].send('invalidateHttpCache', opts)
|
|
240
|
-
}
|
|
241
|
-
|
|
242
235
|
#setHttpMetrics () {
|
|
243
236
|
this.app.register(httpMetrics, {
|
|
244
237
|
registry: this.metricsRegistry,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/service",
|
|
3
|
-
"version": "2.19.0-alpha.
|
|
3
|
+
"version": "2.19.0-alpha.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"strip-ansi": "^7.1.0",
|
|
32
32
|
"tsd": "^0.31.0",
|
|
33
33
|
"typescript": "^5.5.4",
|
|
34
|
-
"undici": "
|
|
34
|
+
"undici": "^6.0.0",
|
|
35
35
|
"vscode-json-languageservice": "^5.3.9",
|
|
36
36
|
"why-is-node-running": "^2.2.2",
|
|
37
37
|
"yaml": "^2.4.1"
|
|
@@ -75,15 +75,15 @@
|
|
|
75
75
|
"prom-client": "^15.1.2",
|
|
76
76
|
"rfdc": "^1.3.1",
|
|
77
77
|
"semgrator": "^0.3.0",
|
|
78
|
-
"undici": "
|
|
79
|
-
"@platformatic/
|
|
80
|
-
"@platformatic/
|
|
81
|
-
"@platformatic/metrics": "2.19.0-alpha.
|
|
82
|
-
"@platformatic/generators": "2.19.0-alpha.
|
|
83
|
-
"@platformatic/
|
|
84
|
-
"@platformatic/
|
|
85
|
-
"@platformatic/
|
|
86
|
-
"@platformatic/
|
|
78
|
+
"undici": "^6.9.0",
|
|
79
|
+
"@platformatic/config": "2.19.0-alpha.6",
|
|
80
|
+
"@platformatic/client": "2.19.0-alpha.6",
|
|
81
|
+
"@platformatic/metrics": "2.19.0-alpha.6",
|
|
82
|
+
"@platformatic/generators": "2.19.0-alpha.6",
|
|
83
|
+
"@platformatic/telemetry": "2.19.0-alpha.6",
|
|
84
|
+
"@platformatic/scalar-theme": "2.19.0-alpha.6",
|
|
85
|
+
"@platformatic/ts-compiler": "2.19.0-alpha.6",
|
|
86
|
+
"@platformatic/utils": "2.19.0-alpha.6"
|
|
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.19.0-alpha.
|
|
3
|
-
"version": "2.19.0-alpha.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/service/2.19.0-alpha.6.json",
|
|
3
|
+
"version": "2.19.0-alpha.6",
|
|
4
4
|
"title": "Platformatic Service",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|