@platformatic/service 0.47.3 → 0.47.6

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/schema.js CHANGED
@@ -328,8 +328,7 @@ const server = {
328
328
  },
329
329
  cors
330
330
  },
331
- additionalProperties: false,
332
- required: ['hostname', 'port']
331
+ additionalProperties: false
333
332
  }
334
333
 
335
334
  const watch = {
package/lib/start.js CHANGED
@@ -73,12 +73,10 @@ async function buildServer (options, app) {
73
73
  }
74
74
  }
75
75
  const handler = await restartable(createRestartable)
76
- if (options.server) {
77
- handler.decorate('start', async () => {
78
- url = await handler.listen({ host: options.server.hostname, port: options.server.port })
79
- return url
80
- })
81
- }
76
+ handler.decorate('start', async () => {
77
+ url = await handler.listen({ host: options.server?.hostname || '127.0.0.1', port: options.server?.port || 0 })
78
+ return url
79
+ })
82
80
  configManager.on('error', function (err) {
83
81
  /* c8 ignore next 1 */
84
82
  handler.log.error({ err }, 'error reloading the configuration')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/service",
3
- "version": "0.47.3",
3
+ "version": "0.47.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -67,11 +67,11 @@
67
67
  "pino-pretty": "^10.0.0",
68
68
  "rfdc": "^1.3.0",
69
69
  "ua-parser-js": "^1.0.35",
70
- "@platformatic/client": "0.47.3",
71
- "@platformatic/config": "0.47.3",
72
- "@platformatic/swagger-ui-theme": "0.47.3",
73
- "@platformatic/telemetry": "0.47.3",
74
- "@platformatic/utils": "0.47.3"
70
+ "@platformatic/client": "0.47.6",
71
+ "@platformatic/config": "0.47.6",
72
+ "@platformatic/swagger-ui-theme": "0.47.6",
73
+ "@platformatic/telemetry": "0.47.6",
74
+ "@platformatic/utils": "0.47.6"
75
75
  },
76
76
  "standard": {
77
77
  "ignore": [