@platformatic/basic 2.17.0 → 2.19.0-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 +2 -1
- package/lib/worker/child-manager.js +3 -4
- package/package.json +6 -6
- package/schema.json +1 -1
package/lib/base.js
CHANGED
|
@@ -15,7 +15,7 @@ import { ChildManager } from './worker/child-manager.js'
|
|
|
15
15
|
|
|
16
16
|
export class BaseStackable {
|
|
17
17
|
childManager
|
|
18
|
-
|
|
18
|
+
subprocess
|
|
19
19
|
#subprocessStarted
|
|
20
20
|
|
|
21
21
|
constructor (type, version, options, root, configManager) {
|
|
@@ -349,6 +349,7 @@ export class BaseStackable {
|
|
|
349
349
|
|
|
350
350
|
return {
|
|
351
351
|
id: this.id,
|
|
352
|
+
config: this.configManager.current,
|
|
352
353
|
serviceId: this.serviceId,
|
|
353
354
|
workerId: this.workerId,
|
|
354
355
|
// 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 {
|
|
7
|
-
import { register } from 'node:module'
|
|
6
|
+
import { createRequire, register } from 'node:module'
|
|
8
7
|
import { platform, tmpdir } from 'node:os'
|
|
9
|
-
import { dirname,
|
|
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.
|
|
3
|
+
"version": "2.19.0-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/config": "2.
|
|
27
|
-
"@platformatic/
|
|
28
|
-
"@platformatic/
|
|
29
|
-
"@platformatic/
|
|
30
|
-
"@platformatic/
|
|
26
|
+
"@platformatic/config": "2.19.0-alpha.1",
|
|
27
|
+
"@platformatic/utils": "2.19.0-alpha.1",
|
|
28
|
+
"@platformatic/telemetry": "2.19.0-alpha.1",
|
|
29
|
+
"@platformatic/metrics": "2.19.0-alpha.1",
|
|
30
|
+
"@platformatic/itc": "2.19.0-alpha.1"
|
|
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.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/basic/2.19.0-alpha.1.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Stackable",
|
|
5
5
|
"type": "object",
|