@platformatic/foundation 3.17.0 → 3.19.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/module.js +5 -1
- package/lib/schema.js +5 -1
- package/package.json +1 -1
package/lib/module.js
CHANGED
|
@@ -176,7 +176,11 @@ export async function loadModule (require, path) {
|
|
|
176
176
|
/* c8 ignore next 4 */
|
|
177
177
|
if (err.code === 'ERR_REQUIRE_ESM') {
|
|
178
178
|
const toLoad = require.resolve(path)
|
|
179
|
-
|
|
179
|
+
|
|
180
|
+
// Given require(esm) this is unlikely to happen, but we leave it just in case.
|
|
181
|
+
// The reason for eval is that some tools like Turbopack might do static analysis and complain.
|
|
182
|
+
// eslint-disable-next-line no-eval
|
|
183
|
+
return await eval(`import('file://${toLoad}')`)
|
|
180
184
|
} else {
|
|
181
185
|
throw err
|
|
182
186
|
}
|
package/lib/schema.js
CHANGED
|
@@ -599,7 +599,7 @@ export const health = {
|
|
|
599
599
|
maxUnhealthyChecks: overridableValue({ type: 'number', minimum: 1 }, 10),
|
|
600
600
|
maxELU: overridableValue({ type: 'number', minimum: 0, maximum: 1 }, 0.99),
|
|
601
601
|
maxHeapUsed: overridableValue({ type: 'number', minimum: 0, maximum: 1 }, 0.99),
|
|
602
|
-
maxHeapTotal: overridableValue({ type: 'number', minimum: 0 }
|
|
602
|
+
maxHeapTotal: overridableValue({ type: 'number', minimum: 0 }),
|
|
603
603
|
maxYoungGeneration: overridableValue({ type: 'number', minimum: 0 })
|
|
604
604
|
},
|
|
605
605
|
additionalProperties: false
|
|
@@ -1171,6 +1171,10 @@ export const runtimeProperties = {
|
|
|
1171
1171
|
}
|
|
1172
1172
|
]
|
|
1173
1173
|
},
|
|
1174
|
+
healthChecksTimeouts: {
|
|
1175
|
+
anyOf: [{ type: 'integer' }, { type: 'string' }],
|
|
1176
|
+
default: 5000
|
|
1177
|
+
},
|
|
1174
1178
|
plugins: {
|
|
1175
1179
|
type: 'array',
|
|
1176
1180
|
items: {
|