@arkstack/contract 0.12.34 → 0.12.35
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/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ declare abstract class Arkstack<TApp, TRoutes = unknown, THandler = unknown> {
|
|
|
81
81
|
/**
|
|
82
82
|
* Boostrap the app and start up the server
|
|
83
83
|
*
|
|
84
|
-
* @param defaultPort start the server with this port if
|
|
84
|
+
* @param defaultPort start the server with this port if neither PORT nor APP_PORT env variable is set
|
|
85
85
|
* @param defer Set to true to skip server startup
|
|
86
86
|
*/
|
|
87
87
|
startup(defaultPort?: number, defer?: boolean): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -32,14 +32,14 @@ var Arkstack = class Arkstack {
|
|
|
32
32
|
/**
|
|
33
33
|
* Boostrap the app and start up the server
|
|
34
34
|
*
|
|
35
|
-
* @param defaultPort start the server with this port if
|
|
35
|
+
* @param defaultPort start the server with this port if neither PORT nor APP_PORT env variable is set
|
|
36
36
|
* @param defer Set to true to skip server startup
|
|
37
37
|
*/
|
|
38
38
|
async startup(defaultPort = 3e3, defer) {
|
|
39
39
|
const { bootWithDetectedPort } = await import("@arkstack/common");
|
|
40
40
|
await bootWithDetectedPort(async (port) => {
|
|
41
41
|
await this.boot(port, defer);
|
|
42
|
-
}, Number(process.env.APP_PORT ?? defaultPort), this, defer);
|
|
42
|
+
}, Number(process.env.PORT ?? process.env.APP_PORT ?? defaultPort), this, defer);
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* Shuts down the application by disconnecting from the database and exiting the process.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkstack/contract",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.35",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Contract module for Arkstack, providing shared interfaces and type contracts used across the framework.",
|
|
6
6
|
"homepage": "https://arkstack.toneflix.net",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"./package.json": "./package.json"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@arkstack/foundry": "^0.12.
|
|
31
|
+
"@arkstack/foundry": "^0.12.35"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "tsdown --config-loader unrun",
|