@platformatic/service 2.1.1 → 2.2.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/start.js CHANGED
@@ -103,13 +103,13 @@ async function buildServer (options, app, context) {
103
103
  context
104
104
  }
105
105
  const handler = await createServer(serverContext)
106
- handler.decorate('start', async () => {
106
+ handler.start = async function () {
107
107
  serverContext.url = await handler.listen({
108
108
  host: options.server?.hostname || '127.0.0.1',
109
109
  port: options.server?.port || 0,
110
110
  })
111
111
  return serverContext.url
112
- })
112
+ }
113
113
  configManager.on('error', function (err) {
114
114
  /* c8 ignore next 1 */
115
115
  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": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -76,13 +76,13 @@
76
76
  "rfdc": "^1.3.1",
77
77
  "semgrator": "^0.3.0",
78
78
  "undici": "^6.9.0",
79
- "@platformatic/client": "2.1.1",
80
- "@platformatic/generators": "2.1.1",
81
- "@platformatic/config": "2.1.1",
82
- "@platformatic/ts-compiler": "2.1.1",
83
- "@platformatic/telemetry": "2.1.1",
84
- "@platformatic/scalar-theme": "2.1.1",
85
- "@platformatic/utils": "2.1.1"
79
+ "@platformatic/client": "2.2.0",
80
+ "@platformatic/config": "2.2.0",
81
+ "@platformatic/scalar-theme": "2.2.0",
82
+ "@platformatic/telemetry": "2.2.0",
83
+ "@platformatic/generators": "2.2.0",
84
+ "@platformatic/ts-compiler": "2.2.0",
85
+ "@platformatic/utils": "2.2.0"
86
86
  },
87
87
  "scripts": {
88
88
  "test": "pnpm run lint && borp -T --concurrency=1 --timeout=180000 && tsd",
package/schema.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/service/2.1.1.json",
3
- "version": "2.1.1",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/service/2.2.0.json",
3
+ "version": "2.2.0",
4
4
  "title": "Platformatic Service",
5
5
  "type": "object",
6
6
  "properties": {