@candlerip/shared3 0.0.35 → 0.0.37
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/database/domains/error-log/index.d.ts +8 -0
- package/src/database/domains/error-log/index.js +1 -0
- package/src/database/domains/index.d.ts +1 -0
- package/src/database/domains/index.js +1 -0
- package/src/database/index.d.ts +1 -0
- package/src/database/index.js +1 -0
- package/src/environment/env-file/utils/load-env-file/index.js +2 -2
- package/src/environment/environment-variable-name/configs/environment-variable-names/index.d.ts +2 -0
- package/src/environment/environment-variable-name/configs/environment-variable-names/index.js +2 -0
- package/src/environment/environment-variable-name/configs/index.d.ts +2 -0
- package/src/environment/environment-variable-name/configs/index.js +2 -0
- package/src/environment/environment-variable-name/configs/number-environment-variable-names/index.d.ts +1 -0
- package/src/environment/environment-variable-name/configs/number-environment-variable-names/index.js +2 -0
- package/src/environment/environment-variable-name/domains/index.d.ts +2 -2
- package/src/environment/environment-variable-name/index.d.ts +1 -0
- package/src/environment/environment-variable-name/index.js +1 -0
- package/src/environment/environment-variables/configs/index.d.ts +18 -2
- package/src/environment/environment-variables/configs/index.js +18 -2
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/environment/environment-variables/configs/environment-variables/index.d.ts +0 -18
- package/src/environment/environment-variables/configs/environment-variables/index.js +0 -18
- package/src/environment/environment-variables/configs/number-environment-variables/index.d.ts +0 -1
- package/src/environment/environment-variables/configs/number-environment-variables/index.js +0 -2
package/package.json
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './error-log/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './error-log/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './domains/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './domains/index.js';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as dotenv from 'dotenv';
|
2
|
-
import {
|
2
|
+
import { NUMBER_ENVIRONMENT_VARIABLE_NAMES } from '../../../environment-variable-name/index.js';
|
3
3
|
export const loadEnvFile = (environmentMode) => {
|
4
4
|
const props = { environmentMode };
|
5
5
|
const fileName = `.env.${environmentMode}`;
|
@@ -17,7 +17,7 @@ export const loadEnvFile = (environmentMode) => {
|
|
17
17
|
},
|
18
18
|
};
|
19
19
|
}
|
20
|
-
|
20
|
+
NUMBER_ENVIRONMENT_VARIABLE_NAMES.forEach((it) => {
|
21
21
|
if (parsed[it]) {
|
22
22
|
parsed[it] = parseInt(parsed[it]);
|
23
23
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const NUMBER_ENVIRONMENT_VARIABLE_NAMES: ("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,2 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
export type EnvironmentVariableName =
|
1
|
+
import { ENVIRONMENT_VARIABLE_NAMES } from '../configs/index.js';
|
2
|
+
export type EnvironmentVariableName = (typeof ENVIRONMENT_VARIABLE_NAMES)[number];
|
@@ -1,2 +1,18 @@
|
|
1
|
-
export
|
2
|
-
|
1
|
+
export declare const ENVIRONMENT_VARIABLES: {
|
2
|
+
readonly APP_NAME: "string";
|
3
|
+
readonly CACHE_SERVICE_PORT: "number";
|
4
|
+
readonly DATABASE_URL: "string";
|
5
|
+
readonly DICTIONARY_SERVICE_PORT: "number";
|
6
|
+
readonly DOMAIN_NAME: "string";
|
7
|
+
readonly FRONTEND_URL: "string";
|
8
|
+
readonly LOGGER_SERVICE_PORT: "number";
|
9
|
+
readonly RABBITMQ_MANAGEMENT_PORT: "number";
|
10
|
+
readonly RABBITMQ_PORT: "number";
|
11
|
+
readonly RABBITMQ_PWD: "string";
|
12
|
+
readonly RABBITMQ_URL: "string";
|
13
|
+
readonly RABBITMQ_USER: "string";
|
14
|
+
readonly REDIS_PORT: "number";
|
15
|
+
readonly REDIS_PWD: "string";
|
16
|
+
readonly REDIS_URL: "string";
|
17
|
+
readonly S3_IMAGES_BUCKET_NAME: "string";
|
18
|
+
};
|
@@ -1,2 +1,18 @@
|
|
1
|
-
export
|
2
|
-
|
1
|
+
export const ENVIRONMENT_VARIABLES = {
|
2
|
+
APP_NAME: 'string',
|
3
|
+
CACHE_SERVICE_PORT: 'number',
|
4
|
+
DATABASE_URL: 'string',
|
5
|
+
DICTIONARY_SERVICE_PORT: 'number',
|
6
|
+
DOMAIN_NAME: 'string',
|
7
|
+
FRONTEND_URL: 'string',
|
8
|
+
LOGGER_SERVICE_PORT: 'number',
|
9
|
+
RABBITMQ_MANAGEMENT_PORT: 'number',
|
10
|
+
RABBITMQ_PORT: 'number',
|
11
|
+
RABBITMQ_PWD: 'string',
|
12
|
+
RABBITMQ_URL: 'string',
|
13
|
+
RABBITMQ_USER: 'string',
|
14
|
+
REDIS_PORT: 'number',
|
15
|
+
REDIS_PWD: 'string',
|
16
|
+
REDIS_URL: 'string',
|
17
|
+
S3_IMAGES_BUCKET_NAME: 'string',
|
18
|
+
};
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
@@ -1,18 +0,0 @@
|
|
1
|
-
export declare const ENVIRONMENT_VARIABLES: {
|
2
|
-
readonly APP_NAME: "string";
|
3
|
-
readonly CACHE_SERVICE_PORT: "number";
|
4
|
-
readonly DATABASE_URL: "string";
|
5
|
-
readonly DICTIONARY_SERVICE_PORT: "number";
|
6
|
-
readonly DOMAIN_NAME: "string";
|
7
|
-
readonly FRONTEND_URL: "string";
|
8
|
-
readonly LOGGER_SERVICE_PORT: "number";
|
9
|
-
readonly RABBITMQ_MANAGEMENT_PORT: "number";
|
10
|
-
readonly RABBITMQ_PORT: "number";
|
11
|
-
readonly RABBITMQ_PWD: "string";
|
12
|
-
readonly RABBITMQ_URL: "string";
|
13
|
-
readonly RABBITMQ_USER: "string";
|
14
|
-
readonly REDIS_PORT: "number";
|
15
|
-
readonly REDIS_PWD: "string";
|
16
|
-
readonly REDIS_URL: "string";
|
17
|
-
readonly S3_IMAGES_BUCKET_NAME: "string";
|
18
|
-
};
|
@@ -1,18 +0,0 @@
|
|
1
|
-
export const ENVIRONMENT_VARIABLES = {
|
2
|
-
APP_NAME: 'string',
|
3
|
-
CACHE_SERVICE_PORT: 'number',
|
4
|
-
DATABASE_URL: 'string',
|
5
|
-
DICTIONARY_SERVICE_PORT: 'number',
|
6
|
-
DOMAIN_NAME: 'string',
|
7
|
-
FRONTEND_URL: 'string',
|
8
|
-
LOGGER_SERVICE_PORT: 'number',
|
9
|
-
RABBITMQ_MANAGEMENT_PORT: 'number',
|
10
|
-
RABBITMQ_PORT: 'number',
|
11
|
-
RABBITMQ_PWD: 'string',
|
12
|
-
RABBITMQ_URL: 'string',
|
13
|
-
RABBITMQ_USER: 'string',
|
14
|
-
REDIS_PORT: 'number',
|
15
|
-
REDIS_PWD: 'string',
|
16
|
-
REDIS_URL: 'string',
|
17
|
-
S3_IMAGES_BUCKET_NAME: 'string',
|
18
|
-
};
|
package/src/environment/environment-variables/configs/number-environment-variables/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
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")[];
|