@platformatic/basic 2.8.1 → 2.8.2-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/base.js +8 -1
- package/package.json +6 -6
- package/schema.json +1 -1
package/lib/base.js
CHANGED
|
@@ -13,6 +13,8 @@ import { NonZeroExitCode } from './errors.js'
|
|
|
13
13
|
import { cleanBasePath } from './utils.js'
|
|
14
14
|
import { ChildManager } from './worker/child-manager.js'
|
|
15
15
|
|
|
16
|
+
const kITC = Symbol.for('plt.runtime.itc')
|
|
17
|
+
|
|
16
18
|
export class BaseStackable {
|
|
17
19
|
childManager
|
|
18
20
|
#subprocess
|
|
@@ -68,7 +70,8 @@ export class BaseStackable {
|
|
|
68
70
|
setOpenapiSchema: this.setOpenapiSchema.bind(this),
|
|
69
71
|
setGraphqlSchema: this.setGraphqlSchema.bind(this),
|
|
70
72
|
setBasePath: this.setBasePath.bind(this),
|
|
71
|
-
runtimeBasePath: this.runtimeConfig?.basePath ?? null
|
|
73
|
+
runtimeBasePath: this.runtimeConfig?.basePath ?? null,
|
|
74
|
+
invalidateHttpCache: this.#invalidateHttpCache.bind(this)
|
|
72
75
|
})
|
|
73
76
|
}
|
|
74
77
|
|
|
@@ -335,6 +338,10 @@ export class BaseStackable {
|
|
|
335
338
|
return format === 'json' ? await this.metricsRegistry.getMetricsAsJSON() : await this.metricsRegistry.metrics()
|
|
336
339
|
}
|
|
337
340
|
|
|
341
|
+
async #invalidateHttpCache (opts = {}) {
|
|
342
|
+
await globalThis[kITC].send('invalidateHttpCache', opts)
|
|
343
|
+
}
|
|
344
|
+
|
|
338
345
|
getMeta () {
|
|
339
346
|
return {
|
|
340
347
|
composer: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/basic",
|
|
3
|
-
"version": "2.8.1",
|
|
3
|
+
"version": "2.8.2-alpha.1",
|
|
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/
|
|
27
|
-
"@platformatic/
|
|
28
|
-
"@platformatic/
|
|
29
|
-
"@platformatic/
|
|
30
|
-
"@platformatic/telemetry": "2.8.1"
|
|
26
|
+
"@platformatic/itc": "2.8.2-alpha.1",
|
|
27
|
+
"@platformatic/config": "2.8.2-alpha.1",
|
|
28
|
+
"@platformatic/utils": "2.8.2-alpha.1",
|
|
29
|
+
"@platformatic/metrics": "2.8.2-alpha.1",
|
|
30
|
+
"@platformatic/telemetry": "2.8.2-alpha.1"
|
|
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.8.1.json",
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/basic/2.8.2-alpha.1.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Stackable",
|
|
5
5
|
"type": "object",
|