@platformatic/basic 3.13.0 → 3.13.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/capability.js CHANGED
@@ -69,7 +69,7 @@ export class BaseCapability extends EventEmitter {
69
69
  this.standardStreams = standardStreams
70
70
 
71
71
  this.applicationId = this.context.applicationId
72
- this.workerId = this.context.worker.count > 1 ? this.context.worker.index : undefined
72
+ this.workerId = this.context.worker.index
73
73
  this.telemetryConfig = this.context.telemetryConfig
74
74
  this.serverConfig = deepmerge(this.context.serverConfig ?? {}, config.server ?? {})
75
75
  this.openapiSchema = null
@@ -327,7 +327,7 @@ export class ChildProcess extends ITC {
327
327
  pinoOptions.timestamp = buildPinoTimestamp(loggerOptions.timestamp)
328
328
  }
329
329
 
330
- if (loggerOptions.base !== null && typeof globalThis.platformatic.workerId !== 'undefined') {
330
+ if (loggerOptions.base !== null) {
331
331
  pinoOptions.base = {
332
332
  ...(pinoOptions.base ?? {}),
333
333
  pid: process.pid,
@@ -401,10 +401,7 @@ export class ChildProcess extends ITC {
401
401
  }
402
402
 
403
403
  #setupHandlers () {
404
- const errorLabel =
405
- typeof globalThis.platformatic.workerId !== 'undefined'
406
- ? `worker ${globalThis.platformatic.workerId} of the application "${globalThis.platformatic.applicationId}"`
407
- : `application "${globalThis.platformatic.applicationId}"`
404
+ const errorLabel = `worker ${globalThis.platformatic.workerId} of the application "${globalThis.platformatic.applicationId}"`
408
405
 
409
406
  function handleUnhandled (type, err) {
410
407
  this.#logger.error({ err: ensureLoggableError(err) }, `Child process for the ${errorLabel} threw an ${type}.`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/basic",
3
- "version": "3.13.0",
3
+ "version": "3.13.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -25,10 +25,10 @@
25
25
  "split2": "^4.2.0",
26
26
  "undici": "^7.0.0",
27
27
  "ws": "^8.18.0",
28
- "@platformatic/foundation": "3.13.0",
29
- "@platformatic/itc": "3.13.0",
30
- "@platformatic/telemetry": "3.13.0",
31
- "@platformatic/metrics": "3.13.0"
28
+ "@platformatic/foundation": "3.13.1",
29
+ "@platformatic/metrics": "3.13.1",
30
+ "@platformatic/itc": "3.13.1",
31
+ "@platformatic/telemetry": "3.13.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "cleaner-spec-reporter": "^0.5.0",
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/basic/3.13.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/basic/3.13.1.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Basic Config",
5
5
  "type": "object",