@candlerip/shared3 0.0.34 → 0.0.35
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/environment/environment-variables/configs/environment-variables/index.d.ts +3 -2
- package/src/environment/environment-variables/configs/environment-variables/index.js +3 -2
- package/src/environment/environment-variables/configs/number-environment-variables/index.d.ts +1 -1
- package/src/error/custom-error/utils/console-custom-error/index.js +3 -3
- package/src/project/project-config/configs/project-config/index.d.ts +1 -1
- package/src/project/project-config/configs/project-config/index.js +1 -1
package/package.json
CHANGED
@@ -8,8 +8,9 @@ export declare const ENVIRONMENT_VARIABLES: {
|
|
8
8
|
readonly LOGGER_SERVICE_PORT: "number";
|
9
9
|
readonly RABBITMQ_MANAGEMENT_PORT: "number";
|
10
10
|
readonly RABBITMQ_PORT: "number";
|
11
|
-
readonly RABBITMQ_PWD: "
|
12
|
-
readonly
|
11
|
+
readonly RABBITMQ_PWD: "string";
|
12
|
+
readonly RABBITMQ_URL: "string";
|
13
|
+
readonly RABBITMQ_USER: "string";
|
13
14
|
readonly REDIS_PORT: "number";
|
14
15
|
readonly REDIS_PWD: "string";
|
15
16
|
readonly REDIS_URL: "string";
|
@@ -8,8 +8,9 @@ export const ENVIRONMENT_VARIABLES = {
|
|
8
8
|
LOGGER_SERVICE_PORT: 'number',
|
9
9
|
RABBITMQ_MANAGEMENT_PORT: 'number',
|
10
10
|
RABBITMQ_PORT: 'number',
|
11
|
-
RABBITMQ_PWD: '
|
12
|
-
|
11
|
+
RABBITMQ_PWD: 'string',
|
12
|
+
RABBITMQ_URL: 'string',
|
13
|
+
RABBITMQ_USER: 'string',
|
13
14
|
REDIS_PORT: 'number',
|
14
15
|
REDIS_PWD: 'string',
|
15
16
|
REDIS_URL: 'string',
|
package/src/environment/environment-variables/configs/number-environment-variables/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const NUMBER_ENVIRONMENT_VARIABLES: ("APP_NAME" | "CACHE_SERVICE_PORT" | "DATABASE_URL" | "DICTIONARY_SERVICE_PORT" | "DOMAIN_NAME" | "FRONTEND_URL" | "LOGGER_SERVICE_PORT" | "RABBITMQ_MANAGEMENT_PORT" | "RABBITMQ_PORT" | "RABBITMQ_PWD" | "RABBITMQ_USER" | "REDIS_PORT" | "REDIS_PWD" | "REDIS_URL" | "S3_IMAGES_BUCKET_NAME")[];
|
1
|
+
export declare const NUMBER_ENVIRONMENT_VARIABLES: ("APP_NAME" | "CACHE_SERVICE_PORT" | "DATABASE_URL" | "DICTIONARY_SERVICE_PORT" | "DOMAIN_NAME" | "FRONTEND_URL" | "LOGGER_SERVICE_PORT" | "RABBITMQ_MANAGEMENT_PORT" | "RABBITMQ_PORT" | "RABBITMQ_PWD" | "RABBITMQ_URL" | "RABBITMQ_USER" | "REDIS_PORT" | "REDIS_PWD" | "REDIS_URL" | "S3_IMAGES_BUCKET_NAME")[];
|
@@ -1,12 +1,12 @@
|
|
1
1
|
export const consoleCustomError = (customError) => {
|
2
2
|
console.error('***ERROR***:', customError.message);
|
3
3
|
if (customError.err) {
|
4
|
-
console.error('
|
4
|
+
console.error('ERR:', customError.err);
|
5
5
|
}
|
6
6
|
if (customError.info) {
|
7
|
-
console.error('
|
7
|
+
console.error('INFO:', customError.info);
|
8
8
|
}
|
9
9
|
if (customError.props) {
|
10
|
-
console.error('
|
10
|
+
console.error('PROPS:', customError.props);
|
11
11
|
}
|
12
12
|
};
|
@@ -18,7 +18,7 @@ export declare const PROJECT_CONFIG: {
|
|
18
18
|
readonly environmentVariableNames: readonly ["FRONTEND_URL", "S3_IMAGES_BUCKET_NAME"];
|
19
19
|
};
|
20
20
|
readonly 'logger-service-project-config': {
|
21
|
-
readonly environmentVariableNames: readonly ["DATABASE_URL", "LOGGER_SERVICE_PORT"];
|
21
|
+
readonly environmentVariableNames: readonly ["DATABASE_URL", "LOGGER_SERVICE_PORT", "RABBITMQ_URL"];
|
22
22
|
};
|
23
23
|
readonly 'rabbitmq-project-config': {
|
24
24
|
readonly environmentVariableNames: readonly ["RABBITMQ_PORT", "RABBITMQ_MANAGEMENT_PORT", "RABBITMQ_PWD", "RABBITMQ_USER"];
|
@@ -18,7 +18,7 @@ export const PROJECT_CONFIG = {
|
|
18
18
|
environmentVariableNames: ['FRONTEND_URL', 'S3_IMAGES_BUCKET_NAME'],
|
19
19
|
},
|
20
20
|
'logger-service-project-config': {
|
21
|
-
environmentVariableNames: ['DATABASE_URL', 'LOGGER_SERVICE_PORT'],
|
21
|
+
environmentVariableNames: ['DATABASE_URL', 'LOGGER_SERVICE_PORT', 'RABBITMQ_URL'],
|
22
22
|
},
|
23
23
|
'rabbitmq-project-config': {
|
24
24
|
environmentVariableNames: ['RABBITMQ_PORT', 'RABBITMQ_MANAGEMENT_PORT', 'RABBITMQ_PWD', 'RABBITMQ_USER'],
|