@atlantjs/backend 1.4.0 → 1.4.2

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.
@@ -1,14 +1,14 @@
1
1
  export interface InjectionsToken {
2
- command?: {
3
- [key: string]: Symbol;
2
+ command: {
3
+ [key: string]: symbol;
4
4
  };
5
- service?: {
6
- [key: string]: Symbol;
5
+ service: {
6
+ [key: string]: symbol;
7
7
  };
8
- repository?: {
9
- [key: string]: Symbol;
8
+ repository: {
9
+ [key: string]: symbol;
10
10
  };
11
- helper?: {
12
- [key: string]: Symbol;
11
+ helper: {
12
+ [key: string]: symbol;
13
13
  };
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlantjs/backend",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "main": "index.js",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {
package/setup/index.d.ts CHANGED
@@ -1,16 +1,14 @@
1
- import { interfaces } from "inversify";
2
1
  import { Newable } from "@atlantjs/arch";
2
+ import { interfaces } from "inversify";
3
+ import { DatabaseLiteConfigAbstract } from "../backend/application/databases/database-lite.config";
3
4
  import { DatabaseConfigAbstract } from "../backend/application/databases/database.config";
4
5
  import { DatabaseHelperAbstract } from "../backend/application/databases/database.helper.abstract";
5
- import { DatabaseLiteConfigAbstract } from "../backend/application/databases/database-lite.config";
6
6
  interface ServerProps {
7
- databases?: [
8
- {
9
- token: interfaces.ServiceIdentifier<unknown>;
10
- target: InstanceType<typeof DatabaseHelperAbstract>;
11
- configs: Newable<DatabaseConfigAbstract | DatabaseLiteConfigAbstract>;
12
- }
13
- ];
7
+ databases?: Array<{
8
+ token: interfaces.ServiceIdentifier<unknown>;
9
+ target: InstanceType<typeof DatabaseHelperAbstract>;
10
+ configs: Newable<DatabaseConfigAbstract | DatabaseLiteConfigAbstract>;
11
+ }>;
14
12
  }
15
13
  export declare function initializeApi(props: ServerProps): void;
16
14
  export declare function synthesizePaths(): void;
package/setup/index.js CHANGED
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.initializeApi = initializeApi;
4
4
  exports.synthesizePaths = synthesizePaths;
5
- const load_envs_1 = require("../backend/application/env/load-envs");
6
5
  const arch_1 = require("@atlantjs/arch");
6
+ const env_vars_1 = require("../backend/application/env/env-vars");
7
+ const load_envs_1 = require("../backend/application/env/load-envs");
7
8
  const dependency_injections_1 = require("./dependency-injections");
8
9
  const server_1 = require("./server/server");
9
- const env_vars_1 = require("../backend/application/env/env-vars");
10
10
  function initializeApi(props) {
11
11
  try {
12
12
  (0, load_envs_1.loadEnvs)();