@candlerip/shared3 0.0.56 → 0.0.59

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. package/_devops/eslint/eslint.config.js +1 -1
  2. package/package.json +1 -1
  3. package/src/dictionary/dictionary-id/domains/page-dictionary/common-page-dictionary/index.d.ts +2 -2
  4. package/src/environment/environment-variables/configs/index.d.ts +11 -11
  5. package/src/environment/environment-variables/configs/index.js +11 -9
  6. package/src/environment/environment-variables/index.d.ts +1 -1
  7. package/src/environment/environment-variables/index.js +1 -1
  8. package/src/environment/environment-variables/singletons/environment-variables-singleton/index.d.ts +2 -0
  9. package/src/environment/environment-variables/{workers/environment-variables-worker → singletons/environment-variables-singleton}/index.js +1 -1
  10. package/src/environment/environment-variables/{workers/environment-variables-worker → singletons/environment-variables-singleton}/types.d.ts +1 -1
  11. package/src/environment/environment-variables/singletons/index.d.ts +1 -0
  12. package/src/environment/environment-variables/singletons/index.js +1 -0
  13. package/src/index.d.ts +1 -0
  14. package/src/index.js +1 -0
  15. package/src/page/index.d.ts +1 -0
  16. package/src/page/index.js +1 -0
  17. package/src/page/page/configs/index.d.ts +1 -0
  18. package/src/page/page/configs/index.js +1 -0
  19. package/src/page/page/domains/index.d.ts +2 -0
  20. package/src/page/page/domains/index.js +1 -0
  21. package/src/page/page/index.d.ts +2 -0
  22. package/src/page/page/index.js +2 -0
  23. package/src/ssr/server-side-props/domains/contact-page-server-side-props/index.d.ts +2 -0
  24. package/src/ssr/server-side-props/domains/index.d.ts +1 -0
  25. package/src/ssr/server-side-props/domains/index.js +1 -0
  26. package/src/ssr/server-side-props/domains/server-side-props/index.d.ts +2 -0
  27. package/src/ssr/server-side-props/domains/server-side-props/index.js +1 -0
  28. package/src/environment/environment-variables/workers/environment-variables-worker/index.d.ts +0 -2
  29. package/src/environment/environment-variables/workers/index.d.ts +0 -1
  30. package/src/environment/environment-variables/workers/index.js +0 -1
  31. /package/src/environment/environment-variables/{workers/environment-variables-worker → singletons/environment-variables-singleton}/types.js +0 -0
@@ -22,5 +22,5 @@ export default (projectConfig) =>
22
22
  'no-console': [2, { allow: ['error', 'info'] }],
23
23
  },
24
24
  },
25
- projectConfig ?? [],
25
+ ...(projectConfig ?? []),
26
26
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.56",
3
+ "version": "0.0.59",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -30,8 +30,8 @@ export type CommonPageDictionary = {
30
30
  logout: string;
31
31
  };
32
32
  langMenu: {
33
- english: string;
34
- hungarian: string;
33
+ en: string;
34
+ hu: string;
35
35
  };
36
36
  pageMenu: {
37
37
  addPersonPage: string;
@@ -1,13 +1,13 @@
1
1
  export declare const ENVIRONMENT_VARIABLES: {
2
- readonly 'api-gateway': readonly ["API_GATEWAY_PORT", "AUTHENTICATION_AUDIENCE", "AUTHENTICATION_DOMAIN", "CACHE_ENABLED", "DATABASE_URL", "FRONTEND_URL", "RABBITMQ_URL", "REDIS_PWD", "REDIS_URL", "S3_IMAGES_BUCKET_NAME"];
3
- readonly backend: readonly ["API_GATEWAY_PORT", "CACHE_SERVICE_PORT", "FRONTEND_PORT", "LOGGER_SERVICE_PORT", "RABBITMQ_PORT", "RABBITMQ_MANAGEMENT_PORT", "REDIS_PORT"];
4
- readonly 'backend-init': readonly ["APP_NAME", "DOMAIN_NAME", "S3_IMAGES_BUCKET_NAME"];
5
- readonly 'cache-service': readonly ["CACHE_ENABLED", "CACHE_SERVICE_PORT", "DATABASE_URL", "RABBITMQ_URL", "REDIS_PWD", "REDIS_URL"];
6
- readonly frontend: readonly ["DATABASE_URL", "FRONTEND_PORT"];
7
- readonly images: readonly ["S3_IMAGES_BUCKET_NAME"];
8
- readonly 'images-init': readonly ["FRONTEND_URL", "S3_IMAGES_BUCKET_NAME"];
9
- readonly 'logger-service': readonly ["DATABASE_URL", "LOGGER_SERVICE_PORT", "RABBITMQ_URL"];
10
- readonly nginx: readonly ["FRONTEND_PORT"];
11
- readonly rabbitmq: readonly ["RABBITMQ_PORT", "RABBITMQ_MANAGEMENT_PORT", "RABBITMQ_PWD", "RABBITMQ_USER"];
12
- readonly redis: readonly ["REDIS_PORT", "REDIS_PWD"];
2
+ readonly 'api-gateway': readonly ["API_GATEWAY_PORT", "AUTHENTICATION_AUDIENCE", "AUTHENTICATION_DOMAIN", "CACHE_ENABLED", "DATABASE_URL", "FRONTEND_URL", "NODE_ENV", "RABBITMQ_URL", "REDIS_PWD", "REDIS_URL", "S3_IMAGES_BUCKET_NAME"];
3
+ readonly backend: readonly ["API_GATEWAY_PORT", "CACHE_SERVICE_PORT", "FRONTEND_PORT", "LOGGER_SERVICE_PORT", "NODE_ENV", "RABBITMQ_PORT", "RABBITMQ_MANAGEMENT_PORT", "REDIS_PORT"];
4
+ readonly 'backend-init': readonly ["APP_NAME", "DOMAIN_NAME", "NODE_ENV", "S3_IMAGES_BUCKET_NAME"];
5
+ readonly 'cache-service': readonly ["CACHE_ENABLED", "CACHE_SERVICE_PORT", "DATABASE_URL", "NODE_ENV", "RABBITMQ_URL", "REDIS_PWD", "REDIS_URL"];
6
+ readonly frontend: readonly ["DATABASE_URL", "FRONTEND_PORT", "NODE_ENV", "RABBITMQ_URL", "REDIS_PWD", "REDIS_URL", "S3_IMAGES_BUCKET_NAME"];
7
+ readonly images: readonly ["NODE_ENV", "S3_IMAGES_BUCKET_NAME"];
8
+ readonly 'images-init': readonly ["FRONTEND_URL", "NODE_ENV", "S3_IMAGES_BUCKET_NAME"];
9
+ readonly 'logger-service': readonly ["DATABASE_URL", "LOGGER_SERVICE_PORT", "NODE_ENV", "RABBITMQ_URL"];
10
+ readonly nginx: readonly ["FRONTEND_PORT", "NODE_ENV"];
11
+ readonly rabbitmq: readonly ["RABBITMQ_PORT", "RABBITMQ_MANAGEMENT_PORT", "NODE_ENV", "RABBITMQ_PWD", "RABBITMQ_USER"];
12
+ readonly redis: readonly ["NODE_ENV", "REDIS_PORT", "REDIS_PWD"];
13
13
  };
@@ -6,6 +6,7 @@ export const ENVIRONMENT_VARIABLES = {
6
6
  'CACHE_ENABLED',
7
7
  'DATABASE_URL',
8
8
  'FRONTEND_URL',
9
+ 'NODE_ENV',
9
10
  'RABBITMQ_URL',
10
11
  'REDIS_PWD',
11
12
  'REDIS_URL',
@@ -16,19 +17,20 @@ export const ENVIRONMENT_VARIABLES = {
16
17
  'CACHE_SERVICE_PORT',
17
18
  'FRONTEND_PORT',
18
19
  'LOGGER_SERVICE_PORT',
20
+ 'NODE_ENV',
19
21
  'RABBITMQ_PORT',
20
22
  'RABBITMQ_MANAGEMENT_PORT',
21
23
  'REDIS_PORT',
22
24
  ],
23
- 'backend-init': ['APP_NAME', 'DOMAIN_NAME', 'S3_IMAGES_BUCKET_NAME'],
24
- 'cache-service': ['CACHE_ENABLED', 'CACHE_SERVICE_PORT', 'DATABASE_URL', 'RABBITMQ_URL', 'REDIS_PWD', 'REDIS_URL'],
25
- frontend: ['DATABASE_URL', 'FRONTEND_PORT'],
26
- images: ['S3_IMAGES_BUCKET_NAME'],
27
- 'images-init': ['FRONTEND_URL', 'S3_IMAGES_BUCKET_NAME'],
28
- 'logger-service': ['DATABASE_URL', 'LOGGER_SERVICE_PORT', 'RABBITMQ_URL'],
29
- nginx: ['FRONTEND_PORT'],
30
- rabbitmq: ['RABBITMQ_PORT', 'RABBITMQ_MANAGEMENT_PORT', 'RABBITMQ_PWD', 'RABBITMQ_USER'],
31
- redis: ['REDIS_PORT', 'REDIS_PWD'],
25
+ 'backend-init': ['APP_NAME', 'DOMAIN_NAME', 'NODE_ENV', 'S3_IMAGES_BUCKET_NAME'],
26
+ 'cache-service': ['CACHE_ENABLED', 'CACHE_SERVICE_PORT', 'DATABASE_URL', 'NODE_ENV', 'RABBITMQ_URL', 'REDIS_PWD', 'REDIS_URL'],
27
+ frontend: ['DATABASE_URL', 'FRONTEND_PORT', 'NODE_ENV', 'RABBITMQ_URL', 'REDIS_PWD', 'REDIS_URL', 'S3_IMAGES_BUCKET_NAME'],
28
+ images: ['NODE_ENV', 'S3_IMAGES_BUCKET_NAME'],
29
+ 'images-init': ['FRONTEND_URL', 'NODE_ENV', 'S3_IMAGES_BUCKET_NAME'],
30
+ 'logger-service': ['DATABASE_URL', 'LOGGER_SERVICE_PORT', 'NODE_ENV', 'RABBITMQ_URL'],
31
+ nginx: ['FRONTEND_PORT', 'NODE_ENV'],
32
+ rabbitmq: ['RABBITMQ_PORT', 'RABBITMQ_MANAGEMENT_PORT', 'NODE_ENV', 'RABBITMQ_PWD', 'RABBITMQ_USER'],
33
+ redis: ['NODE_ENV', 'REDIS_PORT', 'REDIS_PWD'],
32
34
  };
33
35
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
34
36
  const CHECK = ENVIRONMENT_VARIABLES;
@@ -1,3 +1,3 @@
1
1
  export * from './configs/index.js';
2
2
  export * from './domains/index.js';
3
- export * from './workers/index.js';
3
+ export * from './singletons/index.js';
@@ -1,3 +1,3 @@
1
1
  export * from './configs/index.js';
2
2
  export * from './domains/index.js';
3
- export * from './workers/index.js';
3
+ export * from './singletons/index.js';
@@ -0,0 +1,2 @@
1
+ import { IEnvironmentVariablesSingleton } from './types.js';
2
+ export declare const EnvironmentVariablesSingleton: IEnvironmentVariablesSingleton;
@@ -1,6 +1,6 @@
1
1
  import { isDevelopment as isDev, isProduction as isProd } from '../../../environment-mode/index.js';
2
2
  import { loadEnvFile } from '../../../env-file/index.js';
3
- export const EnvironmentVariablesWorker = (() => {
3
+ export const EnvironmentVariablesSingleton = (() => {
4
4
  const NODE_ENV = process.env.NODE_ENV;
5
5
  let envs;
6
6
  const get = () => envs;
@@ -1,6 +1,6 @@
1
1
  import { CustomError } from '../../../../error/index.js';
2
2
  import { EnvironmentVariables } from '../../domains/index.js';
3
- export type IEnvironmentVariablesWorker = {
3
+ export type IEnvironmentVariablesSingleton = {
4
4
  get: Get;
5
5
  init: Init;
6
6
  isDevelopment: IsDevelopment;
@@ -0,0 +1 @@
1
+ export * from './environment-variables-singleton/index.js';
@@ -0,0 +1 @@
1
+ export * from './environment-variables-singleton/index.js';
package/src/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export * from './error/index.js';
6
6
  export * from './geographical/index.js';
7
7
  export * from './helper/index.js';
8
8
  export * from './image/index.js';
9
+ export * from './page/index.js';
9
10
  export * from './person/index.js';
10
11
  export * from './project/index.js';
11
12
  export * from './ssr/index.js';
package/src/index.js CHANGED
@@ -6,6 +6,7 @@ export * from './error/index.js';
6
6
  export * from './geographical/index.js';
7
7
  export * from './helper/index.js';
8
8
  export * from './image/index.js';
9
+ export * from './page/index.js';
9
10
  export * from './person/index.js';
10
11
  export * from './project/index.js';
11
12
  export * from './ssr/index.js';
@@ -0,0 +1 @@
1
+ export * from './page/index.js';
@@ -0,0 +1 @@
1
+ export * from './page/index.js';
@@ -0,0 +1 @@
1
+ export declare const PAGES: readonly ["homePage", "contactPage"];
@@ -0,0 +1 @@
1
+ export const PAGES = ['homePage', 'contactPage'];
@@ -0,0 +1,2 @@
1
+ import { PAGES } from '../configs/index.js';
2
+ export type Page = (typeof PAGES)[number];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './configs/index.js';
2
+ export * from './domains/index.js';
@@ -0,0 +1,2 @@
1
+ export * from './configs/index.js';
2
+ export * from './domains/index.js';
@@ -1,4 +1,6 @@
1
+ import { Language } from '../../../../dictionary/index.js';
1
2
  import { ContactPageDictionary } from '../../../../dictionary/dictionary-id/index.js';
2
3
  export interface ContactPageServerSideProps {
3
4
  dictionary: ContactPageDictionary;
5
+ language: Language;
4
6
  }
@@ -1 +1,2 @@
1
1
  export * from './contact-page-server-side-props/index.js';
2
+ export * from './server-side-props/index.js';
@@ -1 +1,2 @@
1
1
  export * from './contact-page-server-side-props/index.js';
2
+ export * from './server-side-props/index.js';
@@ -0,0 +1,2 @@
1
+ import { ContactPageServerSideProps } from '../contact-page-server-side-props/index.js';
2
+ export type ServerSideProps = ContactPageServerSideProps;
@@ -1,2 +0,0 @@
1
- import { IEnvironmentVariablesWorker } from './types.js';
2
- export declare const EnvironmentVariablesWorker: IEnvironmentVariablesWorker;
@@ -1 +0,0 @@
1
- export * from './environment-variables-worker/index.js';
@@ -1 +0,0 @@
1
- export * from './environment-variables-worker/index.js';