@platformatic/basic 2.19.0 → 2.20.0-alpha.2

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
@@ -17,7 +17,7 @@ const kITC = Symbol.for('plt.runtime.itc')
17
17
 
18
18
  export class BaseStackable {
19
19
  childManager
20
- #subprocess
20
+ subprocess
21
21
  #subprocessStarted
22
22
 
23
23
  constructor (type, version, options, root, configManager) {
@@ -380,6 +380,7 @@ export class BaseStackable {
380
380
 
381
381
  return {
382
382
  id: this.id,
383
+ config: this.configManager.current,
383
384
  serviceId: this.serviceId,
384
385
  workerId: this.workerId,
385
386
  // Always use URL to avoid serialization problem in Windows
@@ -3,16 +3,15 @@ import { createDirectory, ensureLoggableError } from '@platformatic/utils'
3
3
  import { once } from 'node:events'
4
4
  import { rm, writeFile } from 'node:fs/promises'
5
5
  import { createServer } from 'node:http'
6
- import { pathToFileURL } from 'node:url'
7
- import { register } from 'node:module'
6
+ import { createRequire, register } from 'node:module'
8
7
  import { platform, tmpdir } from 'node:os'
9
- import { dirname, resolve, join } from 'node:path'
8
+ import { dirname, join, resolve } from 'node:path'
9
+ import { pathToFileURL } from 'node:url'
10
10
  import { workerData } from 'node:worker_threads'
11
11
  import { request } from 'undici'
12
12
  import { WebSocketServer } from 'ws'
13
13
  import { exitCodes } from '../errors.js'
14
14
  import { ensureFileUrl } from '../utils.js'
15
- import { createRequire } from 'node:module'
16
15
 
17
16
  export const isWindows = platform() === 'win32'
18
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/basic",
3
- "version": "2.19.0",
3
+ "version": "2.20.0-alpha.2",
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.19.0",
27
- "@platformatic/metrics": "2.19.0",
28
- "@platformatic/itc": "2.19.0",
29
- "@platformatic/utils": "2.19.0",
30
- "@platformatic/telemetry": "2.19.0"
26
+ "@platformatic/config": "2.20.0-alpha.2",
27
+ "@platformatic/itc": "2.20.0-alpha.2",
28
+ "@platformatic/telemetry": "2.20.0-alpha.2",
29
+ "@platformatic/metrics": "2.20.0-alpha.2",
30
+ "@platformatic/utils": "2.20.0-alpha.2"
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.19.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/basic/2.20.0-alpha.2.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Stackable",
5
5
  "type": "object",