@atlantjs/backend 11.0.17 → 11.0.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlantjs/backend",
3
- "version": "11.0.17",
3
+ "version": "11.0.19",
4
4
  "main": "index.js",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlantjs/arch": "15.4.2",
35
- "@atlantjs/database": "2.1.9",
35
+ "@atlantjs/database": "2.1.10",
36
36
  "@atlantjs/parchment": "1.0.28",
37
37
  "@aws-sdk/client-ses": "3.1009.0",
38
38
  "@types/signale": "^1.4.7",
package/setup/index.d.ts CHANGED
@@ -9,6 +9,6 @@ interface ServerProps {
9
9
  configs: Newable<DatabaseConfigAbstract | DatabaseLiteConfigAbstract>;
10
10
  }>;
11
11
  }
12
- export declare function initialize(props: ServerProps): Promise<express.Application> | undefined;
12
+ export declare function initialize(props: ServerProps): Promise<express.Application | undefined>;
13
13
  export declare function synthesizePaths(): void;
14
14
  export {};
package/setup/index.js CHANGED
@@ -12,7 +12,7 @@ const signale_1 = __importDefault(require("signale"));
12
12
  const verses_1 = require("../backend/stitch/verses");
13
13
  const dependency_injections_1 = require("./dependency-injections");
14
14
  const server_1 = require("./server/server");
15
- function initialize(props) {
15
+ async function initialize(props) {
16
16
  cfonts_1.default.say("ATLANTJS", {
17
17
  font: "chrome",
18
18
  align: "left",
@@ -49,12 +49,13 @@ function initialize(props) {
49
49
  },
50
50
  ]);
51
51
  try {
52
- return tasks.run().then((ctx) => ctx.server);
52
+ const executedTask = await tasks.run();
53
+ return executedTask.server;
53
54
  }
54
55
  catch (error) {
55
56
  signale_1.default.error(`${error}`);
56
57
  }
57
- return;
58
+ return Promise.reject(new Error("Failed to initialize the server."));
58
59
  }
59
60
  function synthesizePaths() {
60
61
  const moduleAlias = require("module-alias");