@platformatic/service 2.44.1 → 2.44.2
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.js +2 -2
- package/lib/start.js +3 -1
- package/package.json +9 -9
- package/schema.json +2 -2
package/index.js
CHANGED
|
@@ -143,8 +143,8 @@ platformaticService.configType = 'service'
|
|
|
143
143
|
platformaticService.schema = schema
|
|
144
144
|
platformaticService.configManagerConfig = module.exports.configManagerConfig
|
|
145
145
|
|
|
146
|
-
function _buildServer (options, app) {
|
|
147
|
-
return buildServer(options, app || module.exports)
|
|
146
|
+
function _buildServer (options, app, context) {
|
|
147
|
+
return buildServer(options, app || module.exports, context)
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
async function buildStackable (options, app = platformaticService, Stackable = ServiceStackable) {
|
package/lib/start.js
CHANGED
|
@@ -11,6 +11,7 @@ const {
|
|
|
11
11
|
const { addLoggerToTheConfig, isDocker } = require('./utils.js')
|
|
12
12
|
const { randomUUID } = require('crypto')
|
|
13
13
|
const { fastify } = require('fastify')
|
|
14
|
+
const { features } = require('@platformatic/utils')
|
|
14
15
|
|
|
15
16
|
async function adjustHttpsKeyAndCert (arg) {
|
|
16
17
|
if (typeof arg === 'string') {
|
|
@@ -116,7 +117,8 @@ async function buildServer (options, app, context) {
|
|
|
116
117
|
handler.start = async function () {
|
|
117
118
|
serverContext.url = await handler.listen({
|
|
118
119
|
host: options.server?.hostname || '127.0.0.1',
|
|
119
|
-
port: options.server?.port || 0
|
|
120
|
+
port: options.server?.port || 0,
|
|
121
|
+
reusePort: features.node.reusePort && context?.isProduction
|
|
120
122
|
})
|
|
121
123
|
return serverContext.url
|
|
122
124
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/service",
|
|
3
|
-
"version": "2.44.
|
|
3
|
+
"version": "2.44.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -77,14 +77,14 @@
|
|
|
77
77
|
"rfdc": "^1.3.1",
|
|
78
78
|
"semgrator": "^0.3.0",
|
|
79
79
|
"undici": "^7.0.0",
|
|
80
|
-
"@platformatic/client": "2.44.
|
|
81
|
-
"@platformatic/
|
|
82
|
-
"@platformatic/
|
|
83
|
-
"@platformatic/
|
|
84
|
-
"@platformatic/
|
|
85
|
-
"@platformatic/telemetry": "2.44.
|
|
86
|
-
"@platformatic/ts-compiler": "2.44.
|
|
87
|
-
"@platformatic/utils": "2.44.
|
|
80
|
+
"@platformatic/client": "2.44.2",
|
|
81
|
+
"@platformatic/generators": "2.44.2",
|
|
82
|
+
"@platformatic/metrics": "2.44.2",
|
|
83
|
+
"@platformatic/scalar-theme": "2.44.2",
|
|
84
|
+
"@platformatic/config": "2.44.2",
|
|
85
|
+
"@platformatic/telemetry": "2.44.2",
|
|
86
|
+
"@platformatic/ts-compiler": "2.44.2",
|
|
87
|
+
"@platformatic/utils": "2.44.2"
|
|
88
88
|
},
|
|
89
89
|
"scripts": {
|
|
90
90
|
"test": "pnpm run lint && borp -T --concurrency=1 --timeout=300000 && tsd",
|
package/schema.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/service/2.44.
|
|
3
|
-
"version": "2.44.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/service/2.44.2.json",
|
|
3
|
+
"version": "2.44.2",
|
|
4
4
|
"title": "Platformatic Service",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|