@platformatic/runtime 1.41.1 → 1.42.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/index.d.ts +1 -0
- package/index.js +2 -1
- package/lib/build-server.js +1 -1
- package/lib/start.js +2 -1
- package/package.json +10 -10
package/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ declare module '@platformatic/runtime' {
|
|
|
17
17
|
export function loadConfig(minimistConfig: object, args: object, store: object, overrides: object, replaceEnv: boolean): void
|
|
18
18
|
export function compile(argv: string[], logger: BaseLogger): void
|
|
19
19
|
export function platformaticRuntime(): Promise<void>
|
|
20
|
+
export function wrapConfigInRuntimeConfig(args: object): object
|
|
20
21
|
export const Generator: RuntimeGenerator.RuntimeGenerator
|
|
21
22
|
}
|
|
22
23
|
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
const { buildServer } = require('./lib/build-server')
|
|
3
|
-
const { platformaticRuntime } = require('./lib/config')
|
|
3
|
+
const { platformaticRuntime, wrapConfigInRuntimeConfig } = require('./lib/config')
|
|
4
4
|
const { start, startCommand } = require('./lib/start')
|
|
5
5
|
const RuntimeApi = require('./lib/api')
|
|
6
6
|
const { compile } = require('./lib/compile')
|
|
@@ -10,6 +10,7 @@ const RuntimeGenerator = require('./lib/generator/runtime-generator')
|
|
|
10
10
|
|
|
11
11
|
module.exports.buildServer = buildServer
|
|
12
12
|
module.exports.platformaticRuntime = platformaticRuntime
|
|
13
|
+
module.exports.wrapConfigInRuntimeConfig = wrapConfigInRuntimeConfig
|
|
13
14
|
module.exports.schema = platformaticRuntime.schema
|
|
14
15
|
module.exports.RuntimeApi = RuntimeApi
|
|
15
16
|
module.exports.start = start
|
package/lib/build-server.js
CHANGED
package/lib/start.js
CHANGED
|
@@ -37,7 +37,8 @@ function startWorker ({ config, dirname, runtimeLogsDir }, env) {
|
|
|
37
37
|
return worker
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
async function buildRuntime (configManager, env
|
|
40
|
+
async function buildRuntime (configManager, env) {
|
|
41
|
+
env = env || process.env
|
|
41
42
|
const config = configManager.current
|
|
42
43
|
|
|
43
44
|
if (inspector.url()) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/runtime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.42.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"typescript": "^5.4.2",
|
|
35
35
|
"undici-oidc-interceptor": "^0.5.0",
|
|
36
36
|
"why-is-node-running": "^2.2.2",
|
|
37
|
-
"@platformatic/sql-graphql": "1.
|
|
38
|
-
"@platformatic/sql-mapper": "1.
|
|
37
|
+
"@platformatic/sql-graphql": "1.42.0",
|
|
38
|
+
"@platformatic/sql-mapper": "1.42.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@fastify/error": "^3.4.1",
|
|
@@ -63,13 +63,13 @@
|
|
|
63
63
|
"undici": "^6.9.0",
|
|
64
64
|
"why-is-node-running": "^2.2.2",
|
|
65
65
|
"ws": "^8.16.0",
|
|
66
|
-
"@platformatic/composer": "1.
|
|
67
|
-
"@platformatic/
|
|
68
|
-
"@platformatic/
|
|
69
|
-
"@platformatic/
|
|
70
|
-
"@platformatic/
|
|
71
|
-
"@platformatic/
|
|
72
|
-
"@platformatic/utils": "1.
|
|
66
|
+
"@platformatic/composer": "1.42.0",
|
|
67
|
+
"@platformatic/db": "1.42.0",
|
|
68
|
+
"@platformatic/config": "1.42.0",
|
|
69
|
+
"@platformatic/service": "1.42.0",
|
|
70
|
+
"@platformatic/generators": "1.42.0",
|
|
71
|
+
"@platformatic/telemetry": "1.42.0",
|
|
72
|
+
"@platformatic/utils": "1.42.0"
|
|
73
73
|
},
|
|
74
74
|
"standard": {
|
|
75
75
|
"ignore": [
|