@atlantjs/arch 3.2.18 → 3.2.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.
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DatabaseConfigAbstract = void 0;
|
|
4
4
|
const typeorm_1 = require("typeorm");
|
|
5
5
|
const guardian_1 = require("../../../../@tool-box/utils/type-guard/guardian");
|
|
6
|
+
const url_abstract_1 = require("../../domain/entities/url.abstract");
|
|
6
7
|
const env_vars_1 = require("../../../../setup/env/env-vars");
|
|
7
8
|
class DatabaseConfigAbstract {
|
|
8
9
|
constructor(props) {
|
|
@@ -33,7 +34,7 @@ class DatabaseConfigAbstract {
|
|
|
33
34
|
resourceArn: this.props.resourceArn ?? "",
|
|
34
35
|
});
|
|
35
36
|
}
|
|
36
|
-
if (this.props.host.
|
|
37
|
+
if (new url_abstract_1.UrlAbstract(this.props.host).has("@")) {
|
|
37
38
|
Object.assign(baseConfig, this.productionOrHomologConfigs);
|
|
38
39
|
}
|
|
39
40
|
this.configs = new typeorm_1.DataSource(baseConfig);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UrlAbstract = void 0;
|
|
4
|
+
const _string_abstract_1 = require("./$string.abstract");
|
|
5
|
+
class UrlAbstract extends _string_abstract_1.$string {
|
|
6
|
+
}
|
|
7
|
+
exports.UrlAbstract = UrlAbstract;
|
package/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export { $number } from "./arch/modules/domain/entities/$number.abstract";
|
|
|
25
25
|
export { $object } from "./arch/modules/domain/entities/$object.abstract";
|
|
26
26
|
export { $string } from "./arch/modules/domain/entities/$string.abstract";
|
|
27
27
|
export { UuidAbstract } from "./arch/modules/domain/entities/uuid.abstract";
|
|
28
|
+
export { UrlAbstract } from "./arch/modules/domain/entities/url.abstract";
|
|
28
29
|
export { HttpStatusCodes } from "./arch/modules/domain/enums/http-status-codes.enum";
|
|
29
30
|
export { NodeEnvs } from "./arch/modules/domain/enums/node-envs.enum";
|
|
30
31
|
export { MiddlewareHandlerAbstract } from "./arch/modules/domain/middlewares/middleware.handler.abstract";
|
package/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
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.UrlAbstract = 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
|
+
exports.diContainer = void 0;
|
|
4
5
|
require("./@tool-box/utils/datatypes/string-utils");
|
|
5
6
|
require("./@tool-box/utils/datatypes/boolean-utils");
|
|
6
7
|
var database_config_1 = require("./arch/modules/application/databases/database.config");
|
|
@@ -53,6 +54,8 @@ var _string_abstract_1 = require("./arch/modules/domain/entities/$string.abstrac
|
|
|
53
54
|
Object.defineProperty(exports, "$string", { enumerable: true, get: function () { return _string_abstract_1.$string; } });
|
|
54
55
|
var uuid_abstract_1 = require("./arch/modules/domain/entities/uuid.abstract");
|
|
55
56
|
Object.defineProperty(exports, "UuidAbstract", { enumerable: true, get: function () { return uuid_abstract_1.UuidAbstract; } });
|
|
57
|
+
var url_abstract_1 = require("./arch/modules/domain/entities/url.abstract");
|
|
58
|
+
Object.defineProperty(exports, "UrlAbstract", { enumerable: true, get: function () { return url_abstract_1.UrlAbstract; } });
|
|
56
59
|
var http_status_codes_enum_1 = require("./arch/modules/domain/enums/http-status-codes.enum");
|
|
57
60
|
Object.defineProperty(exports, "HttpStatusCodes", { enumerable: true, get: function () { return http_status_codes_enum_1.HttpStatusCodes; } });
|
|
58
61
|
var node_envs_enum_1 = require("./arch/modules/domain/enums/node-envs.enum");
|