@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 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 = () => { cacheHitMetric.inc() }
393
- globalThis.platformatic.onHttpCacheMiss = () => { cacheMissMetric.inc() }
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.26.1",
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.26.1",
27
- "@platformatic/itc": "2.26.1",
28
- "@platformatic/telemetry": "2.26.1",
29
- "@platformatic/metrics": "2.26.1",
30
- "@platformatic/utils": "2.26.1"
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
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/basic/2.26.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/basic/2.27.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Stackable",
5
5
  "type": "object",