@aeriajs/server 0.0.179 → 0.0.180
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/init.js +4 -1
- package/dist/init.mjs +4 -1
- package/package.json +9 -9
package/dist/init.js
CHANGED
|
@@ -61,7 +61,10 @@ const init = (_options = {}) => {
|
|
|
61
61
|
await options.setup(parentContext);
|
|
62
62
|
}
|
|
63
63
|
await (0, warmup_js_1.warmup)();
|
|
64
|
-
const serverOptions = (0, http_1.defineServerOptions)(
|
|
64
|
+
const serverOptions = (0, http_1.defineServerOptions)({
|
|
65
|
+
host: options.config.host,
|
|
66
|
+
port: options.config.port,
|
|
67
|
+
});
|
|
65
68
|
const apiRouter = (0, routes_js_1.registerRoutes)();
|
|
66
69
|
const server = (0, node_http_1.registerServer)(serverOptions, async (request, response) => {
|
|
67
70
|
if ((0, http_1.cors)(request, response) === null) {
|
package/dist/init.mjs
CHANGED
|
@@ -55,7 +55,10 @@ export const init = (_options = {}) => {
|
|
|
55
55
|
await options.setup(parentContext);
|
|
56
56
|
}
|
|
57
57
|
await warmup();
|
|
58
|
-
const serverOptions = defineServerOptions(
|
|
58
|
+
const serverOptions = defineServerOptions({
|
|
59
|
+
host: options.config.host,
|
|
60
|
+
port: options.config.port
|
|
61
|
+
});
|
|
59
62
|
const apiRouter = registerRoutes();
|
|
60
63
|
const server = registerServer(serverOptions, async (request, response) => {
|
|
61
64
|
if (cors(request, response) === null) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.180",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"mongodb": "^6.5.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@aeriajs/core": "^0.0.
|
|
37
|
-
"@aeriajs/builtins": "^0.0.
|
|
38
|
-
"@aeriajs/common": "^0.0.
|
|
39
|
-
"@aeriajs/entrypoint": "^0.0.
|
|
40
|
-
"@aeriajs/http": "^0.0.
|
|
41
|
-
"@aeriajs/node-http": "^0.0.
|
|
42
|
-
"@aeriajs/server": "^0.0.
|
|
43
|
-
"@aeriajs/types": "^0.0.
|
|
36
|
+
"@aeriajs/core": "^0.0.178",
|
|
37
|
+
"@aeriajs/builtins": "^0.0.178",
|
|
38
|
+
"@aeriajs/common": "^0.0.108",
|
|
39
|
+
"@aeriajs/entrypoint": "^0.0.111",
|
|
40
|
+
"@aeriajs/http": "^0.0.122",
|
|
41
|
+
"@aeriajs/node-http": "^0.0.122",
|
|
42
|
+
"@aeriajs/server": "^0.0.180",
|
|
43
|
+
"@aeriajs/types": "^0.0.91",
|
|
44
44
|
"mongodb": "^6.5.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|