@platformatic/basic 3.34.1 → 3.35.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/capability.js CHANGED
@@ -7,7 +7,13 @@ import {
7
7
  kMetadata,
8
8
  kTimeout
9
9
  } from '@platformatic/foundation'
10
- import { clearRegistry, client, collectThreadMetrics, ensureMetricsGroup, setupOtlpExporter } from '@platformatic/metrics'
10
+ import {
11
+ clearRegistry,
12
+ client,
13
+ collectThreadMetrics,
14
+ ensureMetricsGroup,
15
+ setupOtlpExporter
16
+ } from '@platformatic/metrics'
11
17
  import { parseCommandString } from 'execa'
12
18
  import { spawn } from 'node:child_process'
13
19
  import { tracingChannel } from 'node:diagnostics_channel'
@@ -157,6 +163,10 @@ export class BaseCapability extends EventEmitter {
157
163
  this.status = 'init'
158
164
  }
159
165
 
166
+ getDependencies () {
167
+ return this.dependencies ?? []
168
+ }
169
+
160
170
  updateStatus (status) {
161
171
  this.status = status
162
172
  this.emit(status)
@@ -662,7 +672,11 @@ export class BaseCapability extends EventEmitter {
662
672
  /* c8 ignore next 3 */
663
673
  const subprocess =
664
674
  platform() === 'win32'
665
- ? spawn(command.replace(/^node\b/, process.execPath), { cwd: this.root, shell: true, windowsVerbatimArguments: true })
675
+ ? spawn(command.replace(/^node\b/, process.execPath), {
676
+ cwd: this.root,
677
+ shell: true,
678
+ windowsVerbatimArguments: true
679
+ })
666
680
  : spawn(executable, args, { cwd: this.root, shell: hasChainedCommands })
667
681
 
668
682
  subprocess.stdout.setEncoding('utf8')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/basic",
3
- "version": "3.34.1",
3
+ "version": "3.35.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.34.1",
29
- "@platformatic/metrics": "3.34.1",
30
- "@platformatic/itc": "3.34.1",
31
- "@platformatic/telemetry": "3.34.1"
28
+ "@platformatic/foundation": "3.35.0",
29
+ "@platformatic/metrics": "3.35.0",
30
+ "@platformatic/telemetry": "3.35.0",
31
+ "@platformatic/itc": "3.35.0"
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.34.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/basic/3.35.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Basic Config",
5
5
  "type": "object",