@aeriajs/server 0.0.216 → 0.0.218
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 +1 -2
- package/dist/init.mjs +1 -2
- package/package.json +6 -6
package/dist/init.js
CHANGED
|
@@ -6,7 +6,6 @@ const common_1 = require("@aeriajs/common");
|
|
|
6
6
|
const http_1 = require("@aeriajs/http");
|
|
7
7
|
const node_http_1 = require("@aeriajs/node-http");
|
|
8
8
|
const core_1 = require("@aeriajs/core");
|
|
9
|
-
const core_2 = require("@aeriajs/core");
|
|
10
9
|
const constants_js_1 = require("./constants.js");
|
|
11
10
|
const warmup_js_1 = require("./warmup.js");
|
|
12
11
|
const routes_js_1 = require("./routes.js");
|
|
@@ -101,7 +100,7 @@ const init = (_options = {}) => {
|
|
|
101
100
|
});
|
|
102
101
|
});
|
|
103
102
|
if (!options.config.database?.noDatabase) {
|
|
104
|
-
await (0,
|
|
103
|
+
await (0, core_1.getDatabase)();
|
|
105
104
|
}
|
|
106
105
|
server.listen();
|
|
107
106
|
return server;
|
package/dist/init.mjs
CHANGED
|
@@ -3,8 +3,7 @@ import { Result, ACError, HTTPStatus } from "@aeriajs/types";
|
|
|
3
3
|
import { endpointError, throwIfError, deepMerge } from "@aeriajs/common";
|
|
4
4
|
import { defineServerOptions, cors, wrapRouteExecution } from "@aeriajs/http";
|
|
5
5
|
import { registerServer } from "@aeriajs/node-http";
|
|
6
|
-
import { createContext, decodeToken, traverseDocument, ObjectId } from "@aeriajs/core";
|
|
7
|
-
import { getDatabase } from "@aeriajs/core";
|
|
6
|
+
import { createContext, getDatabase, decodeToken, traverseDocument, ObjectId } from "@aeriajs/core";
|
|
8
7
|
import { DEFAULT_API_CONFIG } from "./constants.mjs";
|
|
9
8
|
import { warmup } from "./warmup.mjs";
|
|
10
9
|
import { registerRoutes } from "./routes.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.218",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"mongodb": "^6.5.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@aeriajs/core": "^0.0.
|
|
37
|
-
"@aeriajs/builtins": "^0.0.
|
|
36
|
+
"@aeriajs/core": "^0.0.216",
|
|
37
|
+
"@aeriajs/builtins": "^0.0.216",
|
|
38
38
|
"@aeriajs/common": "^0.0.125",
|
|
39
39
|
"@aeriajs/entrypoint": "^0.0.128",
|
|
40
|
-
"@aeriajs/http": "^0.0.
|
|
41
|
-
"@aeriajs/node-http": "^0.0.
|
|
42
|
-
"@aeriajs/server": "^0.0.
|
|
40
|
+
"@aeriajs/http": "^0.0.151",
|
|
41
|
+
"@aeriajs/node-http": "^0.0.151",
|
|
42
|
+
"@aeriajs/server": "^0.0.218",
|
|
43
43
|
"@aeriajs/types": "^0.0.107",
|
|
44
44
|
"mongodb": "^6.5.0"
|
|
45
45
|
},
|