@platformatic/basic 3.8.0 → 3.9.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/index.d.ts +3 -0
- package/lib/capability.js +2 -0
- package/package.json +5 -5
- package/schema.json +1 -1
package/index.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ export declare const schemaOptions: Partial<Record<string, unknown>>
|
|
|
22
22
|
|
|
23
23
|
export class BaseCapability<Config = Record<string, any>, Options = BaseOptions> {
|
|
24
24
|
basePath: string
|
|
25
|
+
url: string
|
|
26
|
+
|
|
25
27
|
constructor (
|
|
26
28
|
type: string,
|
|
27
29
|
version: string,
|
|
@@ -32,6 +34,7 @@ export class BaseCapability<Config = Record<string, any>, Options = BaseOptions>
|
|
|
32
34
|
|
|
33
35
|
init (): Promise<void>
|
|
34
36
|
start (options: StartOptions): Promise<void>
|
|
37
|
+
close (): Promise<void>
|
|
35
38
|
stop (): Promise<void>
|
|
36
39
|
build (): Promise<void>
|
|
37
40
|
getUrl (): string
|
package/lib/capability.js
CHANGED
|
@@ -88,6 +88,8 @@ export class BaseCapability extends EventEmitter {
|
|
|
88
88
|
this.subprocessForceClose = false
|
|
89
89
|
this.subprocessTerminationSignal = 'SIGINT'
|
|
90
90
|
this.logger = this._initializeLogger()
|
|
91
|
+
// True by default, can be overridden in subclasses. If false, it takes precedence over the runtime configuration
|
|
92
|
+
this.exitOnUnhandledErrors = true
|
|
91
93
|
|
|
92
94
|
// Setup globals
|
|
93
95
|
this.registerGlobals({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/basic",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
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.
|
|
29
|
-
"@platformatic/itc": "3.
|
|
30
|
-
"@platformatic/
|
|
31
|
-
"@platformatic/
|
|
28
|
+
"@platformatic/foundation": "3.9.0",
|
|
29
|
+
"@platformatic/itc": "3.9.0",
|
|
30
|
+
"@platformatic/telemetry": "3.9.0",
|
|
31
|
+
"@platformatic/metrics": "3.9.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"cleaner-spec-reporter": "^0.5.0",
|
package/schema.json
CHANGED