@atlantjs/arch 3.2.11 → 3.2.12

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/index.d.ts CHANGED
@@ -40,5 +40,5 @@ export { EntityBackendAbstract } from "./arch/modules/domain/entities/entity-bac
40
40
  export { EntityFrontendAbstract } from "./arch/modules/domain/entities/entity-frontend.abstract";
41
41
  export { SchemaAbstract } from "./arch/modules/infrastructure/repositories/schemas/schema.abstract";
42
42
  export { ENVIRONMENT, IAM_MOVINGAPP_REALM_PUBLIC_KEY_RS256, APP_PORT, LOAD_MODULES, CORS_ALLOWED_ORIGINS, isProdOrHomolog, } from "./setup/env/env-vars";
43
- export { initializeApi } from "./setup";
43
+ export { initializeApi, synthesizePaths } from "./setup";
44
44
  export { diContainer } from "./setup/dependency-injections";
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.diContainer = exports.initializeApi = exports.isProdOrHomolog = exports.CORS_ALLOWED_ORIGINS = exports.LOAD_MODULES = exports.APP_PORT = exports.IAM_MOVINGAPP_REALM_PUBLIC_KEY_RS256 = exports.ENVIRONMENT = exports.SchemaAbstract = exports.EntityFrontendAbstract = exports.EntityBackendAbstract = exports.ResponseAbstract = exports.ValidatorAbstract = exports.PayloadAbstract = exports.ControllerAbstract = exports.UsecaseAbstract = exports.ServiceAbstract = exports.RepositoryAbstract = exports.ProviderAbstract = exports.MiddlewareHandlerAbstract = exports.NodeEnvs = exports.HttpStatusCodes = exports.UuidAbstract = exports.$string = exports.$object = exports.$number = exports.$date = exports.$boolean = exports.$array = exports.InjectionsAbstract = exports.UnknownFailure = exports.FailureAbstract = exports.DatabaseHelperAbstract = exports.Guardian = exports.RandomValue = exports.HttpClient = exports.Return = exports.Failure = exports.Success = exports.Optional = exports.Nothing = exports.Something = exports.ExtendedMap = exports.EntityBuilder = exports.CreateFakeUsecase = exports.UuidBuilder = exports.FailureBuilder = exports.ValueObjectAbstract = exports.DatabaseConfigAbstract = void 0;
3
+ exports.diContainer = exports.synthesizePaths = exports.initializeApi = exports.isProdOrHomolog = exports.CORS_ALLOWED_ORIGINS = exports.LOAD_MODULES = exports.APP_PORT = exports.IAM_MOVINGAPP_REALM_PUBLIC_KEY_RS256 = exports.ENVIRONMENT = exports.SchemaAbstract = exports.EntityFrontendAbstract = exports.EntityBackendAbstract = exports.ResponseAbstract = exports.ValidatorAbstract = exports.PayloadAbstract = exports.ControllerAbstract = exports.UsecaseAbstract = exports.ServiceAbstract = exports.RepositoryAbstract = exports.ProviderAbstract = exports.MiddlewareHandlerAbstract = exports.NodeEnvs = exports.HttpStatusCodes = exports.UuidAbstract = exports.$string = exports.$object = exports.$number = exports.$date = exports.$boolean = exports.$array = exports.InjectionsAbstract = exports.UnknownFailure = exports.FailureAbstract = exports.DatabaseHelperAbstract = exports.Guardian = exports.RandomValue = exports.HttpClient = exports.Return = exports.Failure = exports.Success = exports.Optional = exports.Nothing = exports.Something = exports.ExtendedMap = exports.EntityBuilder = exports.CreateFakeUsecase = exports.UuidBuilder = exports.FailureBuilder = exports.ValueObjectAbstract = exports.DatabaseConfigAbstract = void 0;
4
4
  require("./@tool-box/utils/datatypes/string-utils");
5
5
  require("./@tool-box/utils/datatypes/boolean-utils");
6
6
  var database_config_1 = require("./arch/modules/application/databases/database.config");
@@ -90,5 +90,6 @@ Object.defineProperty(exports, "CORS_ALLOWED_ORIGINS", { enumerable: true, get:
90
90
  Object.defineProperty(exports, "isProdOrHomolog", { enumerable: true, get: function () { return env_vars_1.isProdOrHomolog; } });
91
91
  var setup_1 = require("./setup");
92
92
  Object.defineProperty(exports, "initializeApi", { enumerable: true, get: function () { return setup_1.initializeApi; } });
93
+ Object.defineProperty(exports, "synthesizePaths", { enumerable: true, get: function () { return setup_1.synthesizePaths; } });
93
94
  var dependency_injections_1 = require("./setup/dependency-injections");
94
95
  Object.defineProperty(exports, "diContainer", { enumerable: true, get: function () { return dependency_injections_1.diContainer; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlantjs/arch",
3
- "version": "3.2.11",
3
+ "version": "3.2.12",
4
4
  "main": "index.js",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {
package/setup/index.d.ts CHANGED
@@ -14,4 +14,5 @@ interface ServerProps {
14
14
  ];
15
15
  }
16
16
  export declare function initializeApi(props: ServerProps): void;
17
+ export declare function synthesizePaths(): void;
17
18
  export {};
package/setup/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.initializeApi = initializeApi;
4
+ exports.synthesizePaths = synthesizePaths;
4
5
  require("reflect-metadata");
5
6
  require("./env/load-envs");
6
7
  const guardian_1 = require("../@tool-box/utils/type-guard/guardian");
@@ -25,11 +26,13 @@ function initializeApi(props) {
25
26
  console.error(`❌ Error occurred: ${error}`);
26
27
  }
27
28
  }
28
- function initializeModules(modules = env_vars_1.LOAD_MODULES) {
29
+ function synthesizePaths() {
29
30
  const moduleAlias = require("module-alias");
30
31
  const path = require("node:path");
31
32
  moduleAlias.addAlias("#", path.join(__dirname, "../../../../../src"));
32
33
  moduleAlias.addAlias("!tests", path.join(__dirname, "../../../../../tests"));
34
+ }
35
+ function initializeModules(modules = env_vars_1.LOAD_MODULES) {
33
36
  let processedModules = modules;
34
37
  if (typeof modules === "string") {
35
38
  processedModules = modules