@platformatic/service 2.5.6-alpha.2 → 2.6.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
|
@@ -9,8 +9,6 @@ const { extractTypeScriptCompileOptionsFromConfig } = require('./compile')
|
|
|
9
9
|
const { compile } = require('@platformatic/ts-compiler')
|
|
10
10
|
const { deepmerge } = require('@platformatic/utils')
|
|
11
11
|
|
|
12
|
-
const kITC = Symbol.for('plt.runtime.itc')
|
|
13
|
-
|
|
14
12
|
class ServiceStackable {
|
|
15
13
|
constructor (options) {
|
|
16
14
|
this.app = null
|
|
@@ -36,8 +34,7 @@ class ServiceStackable {
|
|
|
36
34
|
this.registerGlobals({
|
|
37
35
|
setOpenapiSchema: this.setOpenapiSchema.bind(this),
|
|
38
36
|
setGraphqlSchema: this.setGraphqlSchema.bind(this),
|
|
39
|
-
setBasePath: this.setBasePath.bind(this)
|
|
40
|
-
invalidateHttpCache: this.#invalidateHttpCache.bind(this)
|
|
37
|
+
setBasePath: this.setBasePath.bind(this)
|
|
41
38
|
})
|
|
42
39
|
}
|
|
43
40
|
|
|
@@ -221,10 +218,6 @@ class ServiceStackable {
|
|
|
221
218
|
globalThis.platformatic = Object.assign(globalThis.platformatic ?? {}, globals)
|
|
222
219
|
}
|
|
223
220
|
|
|
224
|
-
async #invalidateHttpCache (opts = {}) {
|
|
225
|
-
await globalThis[kITC].send('invalidateHttpCache', opts)
|
|
226
|
-
}
|
|
227
|
-
|
|
228
221
|
#setHttpMetrics () {
|
|
229
222
|
this.app.register(httpMetrics, {
|
|
230
223
|
registry: this.metricsRegistry,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/service",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.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/
|
|
81
|
-
"@platformatic/
|
|
82
|
-
"@platformatic/generators": "2.
|
|
83
|
-
"@platformatic/
|
|
84
|
-
"@platformatic/
|
|
85
|
-
"@platformatic/
|
|
86
|
-
"@platformatic/utils": "2.
|
|
79
|
+
"@platformatic/client": "2.6.0",
|
|
80
|
+
"@platformatic/metrics": "2.6.0",
|
|
81
|
+
"@platformatic/config": "2.6.0",
|
|
82
|
+
"@platformatic/generators": "2.6.0",
|
|
83
|
+
"@platformatic/scalar-theme": "2.6.0",
|
|
84
|
+
"@platformatic/telemetry": "2.6.0",
|
|
85
|
+
"@platformatic/ts-compiler": "2.6.0",
|
|
86
|
+
"@platformatic/utils": "2.6.0"
|
|
87
87
|
},
|
|
88
88
|
"scripts": {
|
|
89
89
|
"test": "pnpm run lint && borp -T --concurrency=1 --timeout=180000 && 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.6.0.json",
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"title": "Platformatic Service",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|