@platformatic/service 2.8.2-alpha.1 → 2.9.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 +1 -8
- package/package.json +9 -9
- 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
|
|
@@ -53,8 +51,7 @@ class ServiceStackable {
|
|
|
53
51
|
setOpenapiSchema: this.setOpenapiSchema.bind(this),
|
|
54
52
|
setGraphqlSchema: this.setGraphqlSchema.bind(this),
|
|
55
53
|
setBasePath: this.setBasePath.bind(this),
|
|
56
|
-
runtimeBasePath: this.runtimeConfig?.basePath ?? null
|
|
57
|
-
invalidateHttpCache: this.#invalidateHttpCache.bind(this)
|
|
54
|
+
runtimeBasePath: this.runtimeConfig?.basePath ?? null
|
|
58
55
|
})
|
|
59
56
|
}
|
|
60
57
|
|
|
@@ -234,10 +231,6 @@ class ServiceStackable {
|
|
|
234
231
|
globalThis.platformatic = Object.assign(globalThis.platformatic ?? {}, globals)
|
|
235
232
|
}
|
|
236
233
|
|
|
237
|
-
async #invalidateHttpCache (opts = {}) {
|
|
238
|
-
await globalThis[kITC].send('invalidateHttpCache', opts)
|
|
239
|
-
}
|
|
240
|
-
|
|
241
234
|
#setHttpMetrics () {
|
|
242
235
|
this.app.register(httpMetrics, {
|
|
243
236
|
registry: this.metricsRegistry,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/service",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.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/client": "2.
|
|
80
|
-
"@platformatic/config": "2.
|
|
81
|
-
"@platformatic/metrics": "2.
|
|
82
|
-
"@platformatic/generators": "2.
|
|
83
|
-
"@platformatic/scalar-theme": "2.
|
|
84
|
-
"@platformatic/
|
|
85
|
-
"@platformatic/
|
|
86
|
-
"@platformatic/
|
|
79
|
+
"@platformatic/client": "2.9.0",
|
|
80
|
+
"@platformatic/config": "2.9.0",
|
|
81
|
+
"@platformatic/metrics": "2.9.0",
|
|
82
|
+
"@platformatic/generators": "2.9.0",
|
|
83
|
+
"@platformatic/scalar-theme": "2.9.0",
|
|
84
|
+
"@platformatic/ts-compiler": "2.9.0",
|
|
85
|
+
"@platformatic/utils": "2.9.0",
|
|
86
|
+
"@platformatic/telemetry": "2.9.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.9.0.json",
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"title": "Platformatic Service",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|