@platformatic/basic 2.26.1 → 2.27.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 +8 -2
- package/package.json +6 -6
- package/schema.json +1 -1
package/lib/base.js
CHANGED
|
@@ -252,6 +252,8 @@ export class BaseStackable {
|
|
|
252
252
|
await this.childManager.inject()
|
|
253
253
|
|
|
254
254
|
this.subprocess = this.spawn(command)
|
|
255
|
+
this.subprocess.stdout.setEncoding('utf8')
|
|
256
|
+
this.subprocess.stderr.setEncoding('utf8')
|
|
255
257
|
|
|
256
258
|
// Route anything not catched by child process logger to the logger manually
|
|
257
259
|
/* c8 ignore next 3 */
|
|
@@ -389,8 +391,12 @@ export class BaseStackable {
|
|
|
389
391
|
registers: [registry]
|
|
390
392
|
})
|
|
391
393
|
|
|
392
|
-
globalThis.platformatic.onHttpCacheHit = () => {
|
|
393
|
-
|
|
394
|
+
globalThis.platformatic.onHttpCacheHit = () => {
|
|
395
|
+
cacheHitMetric.inc()
|
|
396
|
+
}
|
|
397
|
+
globalThis.platformatic.onHttpCacheMiss = () => {
|
|
398
|
+
cacheMissMetric.inc()
|
|
399
|
+
}
|
|
394
400
|
}
|
|
395
401
|
|
|
396
402
|
async getMetrics ({ format } = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/basic",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.27.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": "^7.0.0",
|
|
25
25
|
"ws": "^8.18.0",
|
|
26
|
-
"@platformatic/config": "2.
|
|
27
|
-
"@platformatic/itc": "2.
|
|
28
|
-
"@platformatic/telemetry": "2.
|
|
29
|
-
"@platformatic/metrics": "2.
|
|
30
|
-
"@platformatic/utils": "2.
|
|
26
|
+
"@platformatic/config": "2.27.0",
|
|
27
|
+
"@platformatic/itc": "2.27.0",
|
|
28
|
+
"@platformatic/telemetry": "2.27.0",
|
|
29
|
+
"@platformatic/metrics": "2.27.0",
|
|
30
|
+
"@platformatic/utils": "2.27.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"borp": "^0.19.0",
|
package/schema.json
CHANGED