@platformatic/watt-extra 0.1.4 → 0.1.6-alpha.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/watt.js CHANGED
@@ -149,6 +149,7 @@ class Watt {
149
149
 
150
150
  this.#logger.info('Building runtime')
151
151
 
152
+ process._rawDebug('--------PATCHED CONFIG--------', this.#config)
152
153
  const runtime = new Runtime(this.#config, { isProduction: true })
153
154
 
154
155
  /* c8 ignore next 3 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/watt-extra",
3
- "version": "0.1.4",
3
+ "version": "0.1.6-alpha.0",
4
4
  "description": "The Platformatic runtime manager",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -36,7 +36,7 @@ async function metadata (app, _opts) {
36
36
  runtime.getRuntimeMetadata()
37
37
  ])
38
38
 
39
- const applications = await Promise.all(
39
+ const services = await Promise.all(
40
40
  runtimeConfig.applications.map((application) =>
41
41
  runtime.getApplicationDetails(application.id)
42
42
  )
@@ -49,7 +49,7 @@ async function metadata (app, _opts) {
49
49
  setDefaultHeaders(await app.getAuthorizationHeader())
50
50
  await controlPlaneClient.saveApplicationInstanceState({
51
51
  id: app.instanceId,
52
- applications,
52
+ services,
53
53
  metadata: runtimeMetadata
54
54
  }, {
55
55
  headers: await app.getAuthorizationHeader()
@@ -60,7 +60,7 @@ test('should spawn a service app sending the state', async (t) => {
60
60
  assert.strictEqual(applicationStates.length, 1)
61
61
  const [state] = applicationStates
62
62
  assert.strictEqual(state.instanceId, hostname())
63
- assert.deepStrictEqual(state.state.applications.length, 1)
63
+ assert.deepStrictEqual(state.state.services.length, 1)
64
64
  assert.strictEqual(
65
65
  state.state.metadata.platformaticVersion,
66
66
  platformaticVersion