@intlayer/config 1.0.0 → 1.0.1

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.
Files changed (99) hide show
  1. package/dist/cjs/client.cjs +17 -25
  2. package/dist/cjs/client.cjs.map +1 -1
  3. package/dist/cjs/client.d.ts +3 -16
  4. package/dist/cjs/configFile/buildConfigurationFields.cjs +30 -52
  5. package/dist/cjs/configFile/buildConfigurationFields.cjs.map +1 -1
  6. package/dist/cjs/configFile/buildConfigurationFields.d.ts +4 -7
  7. package/dist/cjs/configFile/getConfiguration.cjs +16 -29
  8. package/dist/cjs/configFile/getConfiguration.cjs.map +1 -1
  9. package/dist/cjs/configFile/getConfiguration.d.ts +5 -7
  10. package/dist/cjs/configFile/index.cjs +9 -21
  11. package/dist/cjs/configFile/index.d.ts +3 -6
  12. package/dist/cjs/configFile/loadConfigurationFile.cjs +18 -37
  13. package/dist/cjs/configFile/loadConfigurationFile.cjs.map +1 -1
  14. package/dist/cjs/configFile/loadConfigurationFile.d.ts +3 -5
  15. package/dist/cjs/configFile/searchConfigurationFile.cjs +8 -13
  16. package/dist/cjs/configFile/searchConfigurationFile.d.ts +3 -5
  17. package/dist/cjs/defaultValues/internationalization.cjs +11 -16
  18. package/dist/cjs/defaultValues/internationalization.cjs.map +1 -1
  19. package/dist/cjs/defaultValues/internationalization.d.ts +1 -1
  20. package/dist/cjs/defaultValues/middleware.cjs +13 -18
  21. package/dist/cjs/defaultValues/middleware.d.ts +1 -8
  22. package/dist/cjs/defaultValues/server.cjs +17 -22
  23. package/dist/cjs/defaultValues/server.d.ts +1 -12
  24. package/dist/cjs/envVariables/formatEnvVariable.cjs +11 -17
  25. package/dist/cjs/envVariables/getConfiguration.cjs +23 -49
  26. package/dist/cjs/envVariables/getConfiguration.cjs.map +1 -1
  27. package/dist/cjs/envVariables/getConfiguration.d.ts +3 -14
  28. package/dist/cjs/envVariables/index.cjs +17 -25
  29. package/dist/cjs/envVariables/index.d.ts +4 -10
  30. package/dist/cjs/envVariables/utils.cjs +8 -13
  31. package/dist/cjs/envVariables/utils.d.ts +5 -14
  32. package/dist/cjs/index.cjs +20 -28
  33. package/dist/cjs/index.cjs.map +1 -1
  34. package/dist/cjs/index.d.ts +5 -22
  35. package/dist/cjs/types/config.cjs +17 -0
  36. package/dist/cjs/types/config.cjs.map +1 -0
  37. package/dist/cjs/types/config.d.ts +75 -0
  38. package/dist/cjs/{defaultValues → types}/locales.cjs +8 -13
  39. package/dist/cjs/types/locales.cjs.map +1 -0
  40. package/dist/cjs/types/locales.d.ts +236 -0
  41. package/dist/esm/client.d.mts +3 -16
  42. package/dist/esm/client.mjs +5 -5
  43. package/dist/esm/client.mjs.map +1 -1
  44. package/dist/esm/configFile/buildConfigurationFields.d.mts +4 -7
  45. package/dist/esm/configFile/buildConfigurationFields.mjs +20 -25
  46. package/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -1
  47. package/dist/esm/configFile/getConfiguration.d.mts +5 -7
  48. package/dist/esm/configFile/getConfiguration.mjs +9 -8
  49. package/dist/esm/configFile/getConfiguration.mjs.map +1 -1
  50. package/dist/esm/configFile/index.d.mts +3 -6
  51. package/dist/esm/configFile/index.mjs +2 -2
  52. package/dist/esm/configFile/loadConfigurationFile.d.mts +3 -5
  53. package/dist/esm/configFile/loadConfigurationFile.mjs +14 -24
  54. package/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -1
  55. package/dist/esm/configFile/searchConfigurationFile.d.mts +3 -5
  56. package/dist/esm/configFile/searchConfigurationFile.mjs +4 -2
  57. package/dist/esm/defaultValues/internationalization.d.mts +1 -1
  58. package/dist/esm/defaultValues/internationalization.mjs +11 -4
  59. package/dist/esm/defaultValues/internationalization.mjs.map +1 -1
  60. package/dist/esm/defaultValues/middleware.d.mts +1 -8
  61. package/dist/esm/defaultValues/middleware.mjs +2 -2
  62. package/dist/esm/defaultValues/server.d.mts +1 -12
  63. package/dist/esm/defaultValues/server.mjs +2 -2
  64. package/dist/esm/envVariables/formatEnvVariable.mjs +7 -6
  65. package/dist/esm/envVariables/getConfiguration.d.mts +3 -14
  66. package/dist/esm/envVariables/getConfiguration.mjs +15 -9
  67. package/dist/esm/envVariables/getConfiguration.mjs.map +1 -1
  68. package/dist/esm/envVariables/index.d.mts +4 -10
  69. package/dist/esm/envVariables/index.mjs +5 -5
  70. package/dist/esm/envVariables/utils.d.mts +5 -14
  71. package/dist/esm/envVariables/utils.mjs +4 -2
  72. package/dist/esm/index.d.mts +5 -22
  73. package/dist/esm/index.mjs +6 -6
  74. package/dist/esm/index.mjs.map +1 -1
  75. package/dist/esm/types/config.d.mts +75 -0
  76. package/dist/esm/types/config.mjs +1 -0
  77. package/dist/esm/types/locales.d.mts +236 -0
  78. package/dist/esm/{defaultValues → types}/locales.mjs +4 -2
  79. package/dist/esm/types/locales.mjs.map +1 -0
  80. package/package.json +5 -8
  81. package/src/client.ts +3 -2
  82. package/src/configFile/buildConfigurationFields.ts +1 -1
  83. package/src/configFile/getConfiguration.ts +1 -1
  84. package/src/configFile/loadConfigurationFile.ts +1 -1
  85. package/src/defaultValues/internationalization.ts +1 -1
  86. package/src/envVariables/getConfiguration.ts +2 -2
  87. package/src/index.ts +3 -2
  88. package/src/types/{index.ts → config.ts} +1 -1
  89. package/src/{defaultValues → types}/locales.ts +6 -0
  90. package/dist/cjs/defaultValues/locales.cjs.map +0 -1
  91. package/dist/cjs/defaultValues/locales.d.ts +0 -234
  92. package/dist/cjs/types/index.cjs +0 -21
  93. package/dist/cjs/types/index.cjs.map +0 -1
  94. package/dist/cjs/types/index.d.ts +0 -89
  95. package/dist/esm/defaultValues/locales.d.mts +0 -234
  96. package/dist/esm/defaultValues/locales.mjs.map +0 -1
  97. package/dist/esm/types/index.d.mts +0 -89
  98. package/dist/esm/types/index.mjs +0 -1
  99. /package/dist/esm/types/{index.mjs.map → config.mjs.map} +0 -0
@@ -1,8 +1,6 @@
1
- import { CustomIntlayerConfig } from "../types/index.js";
2
- import "../defaultValues/locales.js";
1
+ import { CustomIntlayerConfig } from '../types/config.js';
2
+ import '../types/locales.js';
3
3
 
4
- declare const loadConfigurationFile: (
5
- configFilePath: string
6
- ) => CustomIntlayerConfig | undefined;
4
+ declare const loadConfigurationFile: (configFilePath: string) => CustomIntlayerConfig | undefined;
7
5
 
8
6
  export { loadConfigurationFile };
@@ -8,21 +8,17 @@ var __export = (target, all) => {
8
8
  __defProp(target, name, { get: all[name], enumerable: true });
9
9
  };
10
10
  var __copyProps = (to, from, except, desc) => {
11
- if ((from && typeof from === "object") || typeof from === "function") {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
12
  for (let key of __getOwnPropNames(from))
13
13
  if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, {
15
- get: () => from[key],
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable,
17
- });
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
15
  }
19
16
  return to;
20
17
  };
21
- var __toCommonJS = (mod) =>
22
- __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
19
  var searchConfigurationFile_exports = {};
24
20
  __export(searchConfigurationFile_exports, {
25
- searchConfigurationFile: () => searchConfigurationFile,
21
+ searchConfigurationFile: () => searchConfigurationFile
26
22
  });
27
23
  module.exports = __toCommonJS(searchConfigurationFile_exports);
28
24
  var import_fs = require("fs");
@@ -56,8 +52,7 @@ const searchConfigurationFile = (configFilePath) => {
56
52
  return { configurationFilePath, numCustomConfiguration };
57
53
  };
58
54
  // Annotate the CommonJS export names for ESM import in node:
59
- 0 &&
60
- (module.exports = {
61
- searchConfigurationFile,
62
- });
63
- //# sourceMappingURL=searchConfigurationFile.cjs.map
55
+ 0 && (module.exports = {
56
+ searchConfigurationFile
57
+ });
58
+ //# sourceMappingURL=searchConfigurationFile.cjs.map
@@ -1,9 +1,7 @@
1
1
  type SearchConfigurationFileResult = {
2
- configurationFilePath?: string;
3
- numCustomConfiguration: number;
2
+ configurationFilePath?: string;
3
+ numCustomConfiguration: number;
4
4
  };
5
- declare const searchConfigurationFile: (
6
- configFilePath: string
7
- ) => SearchConfigurationFileResult;
5
+ declare const searchConfigurationFile: (configFilePath: string) => SearchConfigurationFileResult;
8
6
 
9
7
  export { searchConfigurationFile };
@@ -8,35 +8,30 @@ var __export = (target, all) => {
8
8
  __defProp(target, name, { get: all[name], enumerable: true });
9
9
  };
10
10
  var __copyProps = (to, from, except, desc) => {
11
- if ((from && typeof from === "object") || typeof from === "function") {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
12
  for (let key of __getOwnPropNames(from))
13
13
  if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, {
15
- get: () => from[key],
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable,
17
- });
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
15
  }
19
16
  return to;
20
17
  };
21
- var __toCommonJS = (mod) =>
22
- __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
19
  var internationalization_exports = {};
24
20
  __export(internationalization_exports, {
25
21
  DEFAULT_LOCALE: () => DEFAULT_LOCALE,
26
- LOCALES: () => LOCALES,
22
+ LOCALES: () => LOCALES
27
23
  });
28
24
  module.exports = __toCommonJS(internationalization_exports);
29
- var import_locales = require("./locales.cjs");
25
+ var import_locales = require('../types/locales.cjs');
30
26
  const LOCALES = [
31
27
  import_locales.Locales.ENGLISH,
32
28
  import_locales.Locales.FRENCH,
33
- import_locales.Locales.SPANISH,
29
+ import_locales.Locales.SPANISH
34
30
  ];
35
31
  const DEFAULT_LOCALE = import_locales.Locales.ENGLISH;
36
32
  // Annotate the CommonJS export names for ESM import in node:
37
- 0 &&
38
- (module.exports = {
39
- DEFAULT_LOCALE,
40
- LOCALES,
41
- });
42
- //# sourceMappingURL=internationalization.cjs.map
33
+ 0 && (module.exports = {
34
+ DEFAULT_LOCALE,
35
+ LOCALES
36
+ });
37
+ //# sourceMappingURL=internationalization.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/defaultValues/internationalization.ts"],"sourcesContent":["import { Locales } from './locales';\n\nexport const LOCALES: Locales[] = [\n Locales.ENGLISH,\n Locales.FRENCH,\n Locales.SPANISH,\n];\n\nexport const DEFAULT_LOCALE = Locales.ENGLISH;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAwB;AAEjB,MAAM,UAAqB;AAAA,EAChC,uBAAQ;AAAA,EACR,uBAAQ;AAAA,EACR,uBAAQ;AACV;AAEO,MAAM,iBAAiB,uBAAQ;","names":[]}
1
+ {"version":3,"sources":["../../../src/defaultValues/internationalization.ts"],"sourcesContent":["import { Locales } from '../types/locales';\n\nexport const LOCALES: Locales[] = [\n Locales.ENGLISH,\n Locales.FRENCH,\n Locales.SPANISH,\n];\n\nexport const DEFAULT_LOCALE = Locales.ENGLISH;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAwB;AAEjB,MAAM,UAAqB;AAAA,EAChC,uBAAQ;AAAA,EACR,uBAAQ;AAAA,EACR,uBAAQ;AACV;AAEO,MAAM,iBAAiB,uBAAQ;","names":[]}
@@ -1,4 +1,4 @@
1
- import { Locales } from "./locales.js";
1
+ import { Locales } from '../types/locales.js';
2
2
 
3
3
  declare const LOCALES: Locales[];
4
4
  declare const DEFAULT_LOCALE = Locales.ENGLISH;
@@ -8,18 +8,14 @@ var __export = (target, all) => {
8
8
  __defProp(target, name, { get: all[name], enumerable: true });
9
9
  };
10
10
  var __copyProps = (to, from, except, desc) => {
11
- if ((from && typeof from === "object") || typeof from === "function") {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
12
  for (let key of __getOwnPropNames(from))
13
13
  if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, {
15
- get: () => from[key],
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable,
17
- });
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
15
  }
19
16
  return to;
20
17
  };
21
- var __toCommonJS = (mod) =>
22
- __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
19
  var middleware_exports = {};
24
20
  __export(middleware_exports, {
25
21
  BASE_PATH: () => BASE_PATH,
@@ -27,7 +23,7 @@ __export(middleware_exports, {
27
23
  HEADER_NAME: () => HEADER_NAME,
28
24
  NO_PREFIX: () => NO_PREFIX,
29
25
  PREFIX_DEFAULT: () => PREFIX_DEFAULT,
30
- SERVER_SET_COOKIE: () => SERVER_SET_COOKIE,
26
+ SERVER_SET_COOKIE: () => SERVER_SET_COOKIE
31
27
  });
32
28
  module.exports = __toCommonJS(middleware_exports);
33
29
  const HEADER_NAME = "x-intlayer-locale";
@@ -37,13 +33,12 @@ const BASE_PATH = "";
37
33
  const SERVER_SET_COOKIE = "always";
38
34
  const NO_PREFIX = false;
39
35
  // Annotate the CommonJS export names for ESM import in node:
40
- 0 &&
41
- (module.exports = {
42
- BASE_PATH,
43
- COOKIE_NAME,
44
- HEADER_NAME,
45
- NO_PREFIX,
46
- PREFIX_DEFAULT,
47
- SERVER_SET_COOKIE,
48
- });
49
- //# sourceMappingURL=middleware.cjs.map
36
+ 0 && (module.exports = {
37
+ BASE_PATH,
38
+ COOKIE_NAME,
39
+ HEADER_NAME,
40
+ NO_PREFIX,
41
+ PREFIX_DEFAULT,
42
+ SERVER_SET_COOKIE
43
+ });
44
+ //# sourceMappingURL=middleware.cjs.map
@@ -5,11 +5,4 @@ declare const BASE_PATH = "";
5
5
  declare const SERVER_SET_COOKIE = "always";
6
6
  declare const NO_PREFIX = false;
7
7
 
8
- export {
9
- BASE_PATH,
10
- COOKIE_NAME,
11
- HEADER_NAME,
12
- NO_PREFIX,
13
- PREFIX_DEFAULT,
14
- SERVER_SET_COOKIE,
15
- };
8
+ export { BASE_PATH, COOKIE_NAME, HEADER_NAME, NO_PREFIX, PREFIX_DEFAULT, SERVER_SET_COOKIE };
@@ -8,18 +8,14 @@ var __export = (target, all) => {
8
8
  __defProp(target, name, { get: all[name], enumerable: true });
9
9
  };
10
10
  var __copyProps = (to, from, except, desc) => {
11
- if ((from && typeof from === "object") || typeof from === "function") {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
12
  for (let key of __getOwnPropNames(from))
13
13
  if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, {
15
- get: () => from[key],
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable,
17
- });
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
15
  }
19
16
  return to;
20
17
  };
21
- var __toCommonJS = (mod) =>
22
- __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
19
  var server_exports = {};
24
20
  __export(server_exports, {
25
21
  BUNDLE_DIR_NAME: () => BUNDLE_DIR_NAME,
@@ -31,7 +27,7 @@ __export(server_exports, {
31
27
  MAIN_DIR_NAME: () => MAIN_DIR_NAME,
32
28
  MODULE_AUGMENTATION_DIR_NAME: () => MODULE_AUGMENTATION_DIR_NAME,
33
29
  RESULT_DIR_NAME: () => RESULT_DIR_NAME,
34
- TYPES_DIR_NAME: () => TYPES_DIR_NAME,
30
+ TYPES_DIR_NAME: () => TYPES_DIR_NAME
35
31
  });
36
32
  module.exports = __toCommonJS(server_exports);
37
33
  const FILE_EXTENSIONS = [".content.ts", ".content.js", ".content.json"];
@@ -45,17 +41,16 @@ const DICTIONARIES_DIR_NAME = "dictionary";
45
41
  const TYPES_DIR_NAME = "types";
46
42
  const MAIN_DIR_NAME = "main";
47
43
  // Annotate the CommonJS export names for ESM import in node:
48
- 0 &&
49
- (module.exports = {
50
- BUNDLE_DIR_NAME,
51
- BUNDLE_FILE_EXTENSION,
52
- CONTENT_DIR_NAME,
53
- DICTIONARIES_DIR_NAME,
54
- EXCLUDED_PATHS,
55
- FILE_EXTENSIONS,
56
- MAIN_DIR_NAME,
57
- MODULE_AUGMENTATION_DIR_NAME,
58
- RESULT_DIR_NAME,
59
- TYPES_DIR_NAME,
60
- });
61
- //# sourceMappingURL=server.cjs.map
44
+ 0 && (module.exports = {
45
+ BUNDLE_DIR_NAME,
46
+ BUNDLE_FILE_EXTENSION,
47
+ CONTENT_DIR_NAME,
48
+ DICTIONARIES_DIR_NAME,
49
+ EXCLUDED_PATHS,
50
+ FILE_EXTENSIONS,
51
+ MAIN_DIR_NAME,
52
+ MODULE_AUGMENTATION_DIR_NAME,
53
+ RESULT_DIR_NAME,
54
+ TYPES_DIR_NAME
55
+ });
56
+ //# sourceMappingURL=server.cjs.map
@@ -9,15 +9,4 @@ declare const DICTIONARIES_DIR_NAME = "dictionary";
9
9
  declare const TYPES_DIR_NAME = "types";
10
10
  declare const MAIN_DIR_NAME = "main";
11
11
 
12
- export {
13
- BUNDLE_DIR_NAME,
14
- BUNDLE_FILE_EXTENSION,
15
- CONTENT_DIR_NAME,
16
- DICTIONARIES_DIR_NAME,
17
- EXCLUDED_PATHS,
18
- FILE_EXTENSIONS,
19
- MAIN_DIR_NAME,
20
- MODULE_AUGMENTATION_DIR_NAME,
21
- RESULT_DIR_NAME,
22
- TYPES_DIR_NAME,
23
- };
12
+ export { BUNDLE_DIR_NAME, BUNDLE_FILE_EXTENSION, CONTENT_DIR_NAME, DICTIONARIES_DIR_NAME, EXCLUDED_PATHS, FILE_EXTENSIONS, MAIN_DIR_NAME, MODULE_AUGMENTATION_DIR_NAME, RESULT_DIR_NAME, TYPES_DIR_NAME };
@@ -8,33 +8,28 @@ var __export = (target, all) => {
8
8
  __defProp(target, name, { get: all[name], enumerable: true });
9
9
  };
10
10
  var __copyProps = (to, from, except, desc) => {
11
- if ((from && typeof from === "object") || typeof from === "function") {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
12
  for (let key of __getOwnPropNames(from))
13
13
  if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, {
15
- get: () => from[key],
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable,
17
- });
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
15
  }
19
16
  return to;
20
17
  };
21
- var __toCommonJS = (mod) =>
22
- __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
19
  var formatEnvVariable_exports = {};
24
20
  __export(formatEnvVariable_exports, {
25
- formatEnvVariable: () => formatEnvVariable,
21
+ formatEnvVariable: () => formatEnvVariable
26
22
  });
27
23
  module.exports = __toCommonJS(formatEnvVariable_exports);
28
- var import_getConfiguration = require("../configFile/getConfiguration.cjs");
24
+ var import_getConfiguration = require('../configFile/getConfiguration.cjs');
29
25
  const formatEnvVariable = (prefix = "NEXT_PUBLIC_INTLAYER_") => {
30
26
  const intlayerConfig = (0, import_getConfiguration.getConfiguration)();
31
- const formatEnvName = (key) =>
32
- prefix + key.replace(/([a-z0-9])([A-Z])/g, "$1_$2").toUpperCase();
27
+ const formatEnvName = (key) => prefix + key.replace(/([a-z0-9])([A-Z])/g, "$1_$2").toUpperCase();
33
28
  const env = {};
34
29
  for (const [key, value] of Object.entries({
35
30
  ...intlayerConfig.content,
36
31
  ...intlayerConfig.internationalization,
37
- ...intlayerConfig.middleware,
32
+ ...intlayerConfig.middleware
38
33
  })) {
39
34
  if (typeof value === "string") {
40
35
  env[formatEnvName(key)] = value;
@@ -45,8 +40,7 @@ const formatEnvVariable = (prefix = "NEXT_PUBLIC_INTLAYER_") => {
45
40
  return env;
46
41
  };
47
42
  // Annotate the CommonJS export names for ESM import in node:
48
- 0 &&
49
- (module.exports = {
50
- formatEnvVariable,
51
- });
52
- //# sourceMappingURL=formatEnvVariable.cjs.map
43
+ 0 && (module.exports = {
44
+ formatEnvVariable
45
+ });
46
+ //# sourceMappingURL=formatEnvVariable.cjs.map
@@ -8,28 +8,24 @@ var __export = (target, all) => {
8
8
  __defProp(target, name, { get: all[name], enumerable: true });
9
9
  };
10
10
  var __copyProps = (to, from, except, desc) => {
11
- if ((from && typeof from === "object") || typeof from === "function") {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
12
  for (let key of __getOwnPropNames(from))
13
13
  if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, {
15
- get: () => from[key],
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable,
17
- });
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
15
  }
19
16
  return to;
20
17
  };
21
- var __toCommonJS = (mod) =>
22
- __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
19
  var getConfiguration_exports = {};
24
20
  __export(getConfiguration_exports, {
25
21
  getConfiguration: () => getConfiguration,
26
22
  intlayerConfiguration: () => intlayerConfiguration,
27
23
  intlayerContentConfiguration: () => intlayerContentConfiguration,
28
24
  intlayerIntlConfiguration: () => intlayerIntlConfiguration,
29
- intlayerMiddlewareConfiguration: () => intlayerMiddlewareConfiguration,
25
+ intlayerMiddlewareConfiguration: () => intlayerMiddlewareConfiguration
30
26
  });
31
27
  module.exports = __toCommonJS(getConfiguration_exports);
32
- var import_utils = require("./utils.cjs");
28
+ var import_utils = require('./utils.cjs');
33
29
  const intlayerIntlConfiguration = {
34
30
  locales: (0, import_utils.getEnvValue)(
35
31
  process.env.NEXT_PUBLIC_INTLAYER_LOCALES,
@@ -38,7 +34,7 @@ const intlayerIntlConfiguration = {
38
34
  defaultLocale: (0, import_utils.getEnvValue)(
39
35
  process.env.NEXT_PUBLIC_INTLAYER_DEFAULT_LOCALE,
40
36
  "string"
41
- ),
37
+ )
42
38
  };
43
39
  const intlayerMiddlewareConfiguration = {
44
40
  headerName: (0, import_utils.getEnvValue)(
@@ -53,36 +49,24 @@ const intlayerMiddlewareConfiguration = {
53
49
  process.env.NEXT_PUBLIC_INTLAYER_PREFIX_DEFAULT,
54
50
  "boolean"
55
51
  ),
56
- basePath: (0, import_utils.getEnvValue)(
57
- process.env.NEXT_PUBLIC_INTLAYER_BASE_PATH,
58
- "string"
59
- ),
52
+ basePath: (0, import_utils.getEnvValue)(process.env.NEXT_PUBLIC_INTLAYER_BASE_PATH, "string"),
60
53
  serverSetCookie: (0, import_utils.getEnvValue)(
61
54
  process.env.NEXT_PUBLIC_INTLAYER_SERVER_SET_COOKIE,
62
55
  "string"
63
56
  ),
64
- noPrefix: (0, import_utils.getEnvValue)(
65
- process.env.NEXT_PUBLIC_INTLAYER_NO_PREFIX,
66
- "boolean"
67
- ),
57
+ noPrefix: (0, import_utils.getEnvValue)(process.env.NEXT_PUBLIC_INTLAYER_NO_PREFIX, "boolean")
68
58
  };
69
59
  const intlayerContentConfiguration = {
70
60
  fileExtensions: (0, import_utils.getEnvValue)(
71
61
  process.env.NEXT_PUBLIC_INTLAYER_FILE_EXTENSIONS,
72
62
  "array"
73
63
  ),
74
- baseDir: (0, import_utils.getEnvValue)(
75
- "NEXT_PUBLIC_INTLAYER_BASE_DIR",
76
- "string"
77
- ),
64
+ baseDir: (0, import_utils.getEnvValue)("NEXT_PUBLIC_INTLAYER_BASE_DIR", "string"),
78
65
  contentDirName: (0, import_utils.getEnvValue)(
79
66
  process.env.NEXT_PUBLIC_INTLAYER_CONTENT_DIR_NAME,
80
67
  "string"
81
68
  ),
82
- contentDir: (0, import_utils.getEnvValue)(
83
- "NEXT_PUBLIC_INTLAYER_CONTENT_DIR",
84
- "string"
85
- ),
69
+ contentDir: (0, import_utils.getEnvValue)("NEXT_PUBLIC_INTLAYER_CONTENT_DIR", "string"),
86
70
  excludedPath: (0, import_utils.getEnvValue)(
87
71
  process.env.NEXT_PUBLIC_INTLAYER_EXCLUDED_PATH,
88
72
  "array"
@@ -91,10 +75,7 @@ const intlayerContentConfiguration = {
91
75
  process.env.NEXT_PUBLIC_INTLAYER_RESULT_DIR_NAME,
92
76
  "string"
93
77
  ),
94
- resultDir: (0, import_utils.getEnvValue)(
95
- "NEXT_PUBLIC_INTLAYER_RESULT_DIR",
96
- "string"
97
- ),
78
+ resultDir: (0, import_utils.getEnvValue)("NEXT_PUBLIC_INTLAYER_RESULT_DIR", "string"),
98
79
  moduleAugmentationDirName: (0, import_utils.getEnvValue)(
99
80
  process.env.NEXT_PUBLIC_INTLAYER_MODULE_AUGMENTATION_DIR_NAME,
100
81
  "string"
@@ -127,18 +108,12 @@ const intlayerContentConfiguration = {
127
108
  process.env.NEXT_PUBLIC_INTLAYER_TYPES_DIR_NAME,
128
109
  "string"
129
110
  ),
130
- typesDir: (0, import_utils.getEnvValue)(
131
- process.env.NEXT_PUBLIC_INTLAYER_TYPES_DIR,
132
- "string"
133
- ),
111
+ typesDir: (0, import_utils.getEnvValue)(process.env.NEXT_PUBLIC_INTLAYER_TYPES_DIR, "string"),
134
112
  mainDirName: (0, import_utils.getEnvValue)(
135
113
  process.env.NEXT_PUBLIC_INTLAYER_MAIN_DIR_NAME,
136
114
  "string"
137
115
  ),
138
- mainDir: (0, import_utils.getEnvValue)(
139
- process.env.NEXT_PUBLIC_INTLAYER_MAIN_DIR,
140
- "string"
141
- ),
116
+ mainDir: (0, import_utils.getEnvValue)(process.env.NEXT_PUBLIC_INTLAYER_MAIN_DIR, "string"),
142
117
  watchedFilesPattern: (0, import_utils.getEnvValue)(
143
118
  process.env.NEXT_PUBLIC_INTLAYER_WATCHED_FILES_PATTERN,
144
119
  "array"
@@ -150,21 +125,20 @@ const intlayerContentConfiguration = {
150
125
  outputFilesPatternWithPath: (0, import_utils.getEnvValue)(
151
126
  process.env.NEXT_PUBLIC_INTLAYER_OUTPUT_FILES_PATTERN,
152
127
  "string"
153
- ),
128
+ )
154
129
  };
155
130
  const intlayerConfiguration = {
156
131
  internationalization: intlayerIntlConfiguration,
157
132
  middleware: intlayerMiddlewareConfiguration,
158
- content: intlayerContentConfiguration,
133
+ content: intlayerContentConfiguration
159
134
  };
160
135
  const getConfiguration = () => intlayerConfiguration;
161
136
  // Annotate the CommonJS export names for ESM import in node:
162
- 0 &&
163
- (module.exports = {
164
- getConfiguration,
165
- intlayerConfiguration,
166
- intlayerContentConfiguration,
167
- intlayerIntlConfiguration,
168
- intlayerMiddlewareConfiguration,
169
- });
170
- //# sourceMappingURL=getConfiguration.cjs.map
137
+ 0 && (module.exports = {
138
+ getConfiguration,
139
+ intlayerConfiguration,
140
+ intlayerContentConfiguration,
141
+ intlayerIntlConfiguration,
142
+ intlayerMiddlewareConfiguration
143
+ });
144
+ //# sourceMappingURL=getConfiguration.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/envVariables/getConfiguration.ts"],"sourcesContent":["import type { Locales } from '../defaultValues/locales';\nimport type {\n ContentConfig,\n InternationalizationConfig,\n IntlayerConfig,\n MiddlewareConfig,\n ServerSetCookieRule,\n} from '../types';\nimport { getEnvValue } from './utils';\n\nexport const intlayerIntlConfiguration: InternationalizationConfig = {\n locales: getEnvValue<Locales>(\n process.env.NEXT_PUBLIC_INTLAYER_LOCALES,\n 'array'\n )!,\n defaultLocale: getEnvValue<Locales>(\n process.env.NEXT_PUBLIC_INTLAYER_DEFAULT_LOCALE,\n 'string'\n )!,\n};\n\nexport const intlayerMiddlewareConfiguration: MiddlewareConfig = {\n headerName: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_HEADER_NAME,\n 'string'\n )!,\n cookieName: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_COOKIE_NAME,\n 'string'\n )!,\n prefixDefault: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_PREFIX_DEFAULT,\n 'boolean'\n )!,\n basePath: getEnvValue(process.env.NEXT_PUBLIC_INTLAYER_BASE_PATH, 'string')!,\n serverSetCookie: getEnvValue<ServerSetCookieRule>(\n process.env.NEXT_PUBLIC_INTLAYER_SERVER_SET_COOKIE,\n 'string'\n )!,\n noPrefix: getEnvValue(process.env.NEXT_PUBLIC_INTLAYER_NO_PREFIX, 'boolean')!,\n};\n\nexport const intlayerContentConfiguration: ContentConfig = {\n fileExtensions: getEnvValue<string>(\n process.env.NEXT_PUBLIC_INTLAYER_FILE_EXTENSIONS,\n 'array'\n )!,\n baseDir: getEnvValue('NEXT_PUBLIC_INTLAYER_BASE_DIR', 'string')!,\n contentDirName: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_CONTENT_DIR_NAME,\n 'string'\n )!,\n contentDir: getEnvValue('NEXT_PUBLIC_INTLAYER_CONTENT_DIR', 'string')!,\n excludedPath: getEnvValue<string>(\n process.env.NEXT_PUBLIC_INTLAYER_EXCLUDED_PATH,\n 'array'\n )!,\n resultDirName: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_RESULT_DIR_NAME,\n 'string'\n )!,\n resultDir: getEnvValue('NEXT_PUBLIC_INTLAYER_RESULT_DIR', 'string')!,\n moduleAugmentationDirName: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_MODULE_AUGMENTATION_DIR_NAME,\n 'string'\n )!,\n moduleAugmentationDir: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_MODULE_AUGMENTATION_DIR,\n 'string'\n )!,\n bundleDirName: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_BUNDLE_DIR_NAME,\n 'string'\n )!,\n bundleDir: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_BUNDLE_DIR,\n 'string'\n )!,\n bundleFileExtension: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_BUNDLE_FILE_EXTENSION,\n 'string'\n )!,\n dictionariesDirName: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_DICTIONARIES_DIR_NAME,\n 'string'\n )!,\n dictionariesDir: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_DICTIONARIES_DIR,\n 'string'\n )!,\n typeDirName: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_TYPES_DIR_NAME,\n 'string'\n )!,\n typesDir: getEnvValue(process.env.NEXT_PUBLIC_INTLAYER_TYPES_DIR, 'string')!,\n mainDirName: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_MAIN_DIR_NAME,\n 'string'\n )!,\n mainDir: getEnvValue(process.env.NEXT_PUBLIC_INTLAYER_MAIN_DIR, 'string')!,\n watchedFilesPattern: getEnvValue<string>(\n process.env.NEXT_PUBLIC_INTLAYER_WATCHED_FILES_PATTERN,\n 'array'\n )!,\n watchedFilesPatternWithPath: getEnvValue<string>(\n process.env.NEXT_PUBLIC_INTLAYER_WATCHED_FILES_PATTERN_WITH_PATH,\n 'array'\n )!,\n outputFilesPatternWithPath: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_OUTPUT_FILES_PATTERN,\n 'string'\n )!,\n};\n\nexport const intlayerConfiguration: IntlayerConfig = {\n internationalization: intlayerIntlConfiguration,\n middleware: intlayerMiddlewareConfiguration,\n content: intlayerContentConfiguration,\n};\n\nexport const getConfiguration = (): IntlayerConfig => intlayerConfiguration;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,mBAA4B;AAErB,MAAM,4BAAwD;AAAA,EACnE,aAAS;AAAA,IACP,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,mBAAe;AAAA,IACb,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AACF;AAEO,MAAM,kCAAoD;AAAA,EAC/D,gBAAY;AAAA,IACV,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,gBAAY;AAAA,IACV,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,mBAAe;AAAA,IACb,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,cAAU,0BAAY,QAAQ,IAAI,gCAAgC,QAAQ;AAAA,EAC1E,qBAAiB;AAAA,IACf,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,cAAU,0BAAY,QAAQ,IAAI,gCAAgC,SAAS;AAC7E;AAEO,MAAM,+BAA8C;AAAA,EACzD,oBAAgB;AAAA,IACd,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,aAAS,0BAAY,iCAAiC,QAAQ;AAAA,EAC9D,oBAAgB;AAAA,IACd,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,gBAAY,0BAAY,oCAAoC,QAAQ;AAAA,EACpE,kBAAc;AAAA,IACZ,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,mBAAe;AAAA,IACb,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,eAAW,0BAAY,mCAAmC,QAAQ;AAAA,EAClE,+BAA2B;AAAA,IACzB,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,2BAAuB;AAAA,IACrB,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,mBAAe;AAAA,IACb,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,eAAW;AAAA,IACT,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,yBAAqB;AAAA,IACnB,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,yBAAqB;AAAA,IACnB,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,qBAAiB;AAAA,IACf,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,iBAAa;AAAA,IACX,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,cAAU,0BAAY,QAAQ,IAAI,gCAAgC,QAAQ;AAAA,EAC1E,iBAAa;AAAA,IACX,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,aAAS,0BAAY,QAAQ,IAAI,+BAA+B,QAAQ;AAAA,EACxE,yBAAqB;AAAA,IACnB,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,iCAA6B;AAAA,IAC3B,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,gCAA4B;AAAA,IAC1B,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AACF;AAEO,MAAM,wBAAwC;AAAA,EACnD,sBAAsB;AAAA,EACtB,YAAY;AAAA,EACZ,SAAS;AACX;AAEO,MAAM,mBAAmB,MAAsB;","names":[]}
1
+ {"version":3,"sources":["../../../src/envVariables/getConfiguration.ts"],"sourcesContent":["import type {\n ContentConfig,\n InternationalizationConfig,\n IntlayerConfig,\n MiddlewareConfig,\n ServerSetCookieRule,\n} from '../types/config';\nimport type { Locales } from '../types/locales';\nimport { getEnvValue } from './utils';\n\nexport const intlayerIntlConfiguration: InternationalizationConfig = {\n locales: getEnvValue<Locales>(\n process.env.NEXT_PUBLIC_INTLAYER_LOCALES,\n 'array'\n )!,\n defaultLocale: getEnvValue<Locales>(\n process.env.NEXT_PUBLIC_INTLAYER_DEFAULT_LOCALE,\n 'string'\n )!,\n};\n\nexport const intlayerMiddlewareConfiguration: MiddlewareConfig = {\n headerName: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_HEADER_NAME,\n 'string'\n )!,\n cookieName: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_COOKIE_NAME,\n 'string'\n )!,\n prefixDefault: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_PREFIX_DEFAULT,\n 'boolean'\n )!,\n basePath: getEnvValue(process.env.NEXT_PUBLIC_INTLAYER_BASE_PATH, 'string')!,\n serverSetCookie: getEnvValue<ServerSetCookieRule>(\n process.env.NEXT_PUBLIC_INTLAYER_SERVER_SET_COOKIE,\n 'string'\n )!,\n noPrefix: getEnvValue(process.env.NEXT_PUBLIC_INTLAYER_NO_PREFIX, 'boolean')!,\n};\n\nexport const intlayerContentConfiguration: ContentConfig = {\n fileExtensions: getEnvValue<string>(\n process.env.NEXT_PUBLIC_INTLAYER_FILE_EXTENSIONS,\n 'array'\n )!,\n baseDir: getEnvValue('NEXT_PUBLIC_INTLAYER_BASE_DIR', 'string')!,\n contentDirName: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_CONTENT_DIR_NAME,\n 'string'\n )!,\n contentDir: getEnvValue('NEXT_PUBLIC_INTLAYER_CONTENT_DIR', 'string')!,\n excludedPath: getEnvValue<string>(\n process.env.NEXT_PUBLIC_INTLAYER_EXCLUDED_PATH,\n 'array'\n )!,\n resultDirName: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_RESULT_DIR_NAME,\n 'string'\n )!,\n resultDir: getEnvValue('NEXT_PUBLIC_INTLAYER_RESULT_DIR', 'string')!,\n moduleAugmentationDirName: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_MODULE_AUGMENTATION_DIR_NAME,\n 'string'\n )!,\n moduleAugmentationDir: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_MODULE_AUGMENTATION_DIR,\n 'string'\n )!,\n bundleDirName: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_BUNDLE_DIR_NAME,\n 'string'\n )!,\n bundleDir: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_BUNDLE_DIR,\n 'string'\n )!,\n bundleFileExtension: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_BUNDLE_FILE_EXTENSION,\n 'string'\n )!,\n dictionariesDirName: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_DICTIONARIES_DIR_NAME,\n 'string'\n )!,\n dictionariesDir: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_DICTIONARIES_DIR,\n 'string'\n )!,\n typeDirName: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_TYPES_DIR_NAME,\n 'string'\n )!,\n typesDir: getEnvValue(process.env.NEXT_PUBLIC_INTLAYER_TYPES_DIR, 'string')!,\n mainDirName: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_MAIN_DIR_NAME,\n 'string'\n )!,\n mainDir: getEnvValue(process.env.NEXT_PUBLIC_INTLAYER_MAIN_DIR, 'string')!,\n watchedFilesPattern: getEnvValue<string>(\n process.env.NEXT_PUBLIC_INTLAYER_WATCHED_FILES_PATTERN,\n 'array'\n )!,\n watchedFilesPatternWithPath: getEnvValue<string>(\n process.env.NEXT_PUBLIC_INTLAYER_WATCHED_FILES_PATTERN_WITH_PATH,\n 'array'\n )!,\n outputFilesPatternWithPath: getEnvValue(\n process.env.NEXT_PUBLIC_INTLAYER_OUTPUT_FILES_PATTERN,\n 'string'\n )!,\n};\n\nexport const intlayerConfiguration: IntlayerConfig = {\n internationalization: intlayerIntlConfiguration,\n middleware: intlayerMiddlewareConfiguration,\n content: intlayerContentConfiguration,\n};\n\nexport const getConfiguration = (): IntlayerConfig => intlayerConfiguration;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,mBAA4B;AAErB,MAAM,4BAAwD;AAAA,EACnE,aAAS;AAAA,IACP,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,mBAAe;AAAA,IACb,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AACF;AAEO,MAAM,kCAAoD;AAAA,EAC/D,gBAAY;AAAA,IACV,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,gBAAY;AAAA,IACV,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,mBAAe;AAAA,IACb,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,cAAU,0BAAY,QAAQ,IAAI,gCAAgC,QAAQ;AAAA,EAC1E,qBAAiB;AAAA,IACf,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,cAAU,0BAAY,QAAQ,IAAI,gCAAgC,SAAS;AAC7E;AAEO,MAAM,+BAA8C;AAAA,EACzD,oBAAgB;AAAA,IACd,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,aAAS,0BAAY,iCAAiC,QAAQ;AAAA,EAC9D,oBAAgB;AAAA,IACd,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,gBAAY,0BAAY,oCAAoC,QAAQ;AAAA,EACpE,kBAAc;AAAA,IACZ,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,mBAAe;AAAA,IACb,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,eAAW,0BAAY,mCAAmC,QAAQ;AAAA,EAClE,+BAA2B;AAAA,IACzB,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,2BAAuB;AAAA,IACrB,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,mBAAe;AAAA,IACb,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,eAAW;AAAA,IACT,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,yBAAqB;AAAA,IACnB,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,yBAAqB;AAAA,IACnB,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,qBAAiB;AAAA,IACf,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,iBAAa;AAAA,IACX,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,cAAU,0BAAY,QAAQ,IAAI,gCAAgC,QAAQ;AAAA,EAC1E,iBAAa;AAAA,IACX,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,aAAS,0BAAY,QAAQ,IAAI,+BAA+B,QAAQ;AAAA,EACxE,yBAAqB;AAAA,IACnB,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,iCAA6B;AAAA,IAC3B,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AAAA,EACA,gCAA4B;AAAA,IAC1B,QAAQ,IAAI;AAAA,IACZ;AAAA,EACF;AACF;AAEO,MAAM,wBAAwC;AAAA,EACnD,sBAAsB;AAAA,EACtB,YAAY;AAAA,EACZ,SAAS;AACX;AAEO,MAAM,mBAAmB,MAAsB;","names":[]}
@@ -1,10 +1,5 @@
1
- import {
2
- InternationalizationConfig,
3
- MiddlewareConfig,
4
- ContentConfig,
5
- IntlayerConfig,
6
- } from "../types/index.js";
7
- import "../defaultValues/locales.js";
1
+ import { InternationalizationConfig, MiddlewareConfig, ContentConfig, IntlayerConfig } from '../types/config.js';
2
+ import '../types/locales.js';
8
3
 
9
4
  declare const intlayerIntlConfiguration: InternationalizationConfig;
10
5
  declare const intlayerMiddlewareConfiguration: MiddlewareConfig;
@@ -12,10 +7,4 @@ declare const intlayerContentConfiguration: ContentConfig;
12
7
  declare const intlayerConfiguration: IntlayerConfig;
13
8
  declare const getConfiguration: () => IntlayerConfig;
14
9
 
15
- export {
16
- getConfiguration,
17
- intlayerConfiguration,
18
- intlayerContentConfiguration,
19
- intlayerIntlConfiguration,
20
- intlayerMiddlewareConfiguration,
21
- };
10
+ export { getConfiguration, intlayerConfiguration, intlayerContentConfiguration, intlayerIntlConfiguration, intlayerMiddlewareConfiguration };
@@ -8,41 +8,33 @@ var __export = (target, all) => {
8
8
  __defProp(target, name, { get: all[name], enumerable: true });
9
9
  };
10
10
  var __copyProps = (to, from, except, desc) => {
11
- if ((from && typeof from === "object") || typeof from === "function") {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
12
  for (let key of __getOwnPropNames(from))
13
13
  if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, {
15
- get: () => from[key],
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable,
17
- });
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
15
  }
19
16
  return to;
20
17
  };
21
- var __toCommonJS = (mod) =>
22
- __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
19
  var envVariables_exports = {};
24
20
  __export(envVariables_exports, {
25
21
  formatEnvVariable: () => import_formatEnvVariable.formatEnvVariable,
26
22
  getConfiguration: () => import_getConfiguration.getConfiguration,
27
23
  intlayerConfiguration: () => import_getConfiguration.intlayerConfiguration,
28
- intlayerContentConfiguration: () =>
29
- import_getConfiguration.intlayerContentConfiguration,
30
- intlayerIntlConfiguration: () =>
31
- import_getConfiguration.intlayerIntlConfiguration,
32
- intlayerMiddlewareConfiguration: () =>
33
- import_getConfiguration.intlayerMiddlewareConfiguration,
24
+ intlayerContentConfiguration: () => import_getConfiguration.intlayerContentConfiguration,
25
+ intlayerIntlConfiguration: () => import_getConfiguration.intlayerIntlConfiguration,
26
+ intlayerMiddlewareConfiguration: () => import_getConfiguration.intlayerMiddlewareConfiguration
34
27
  });
35
28
  module.exports = __toCommonJS(envVariables_exports);
36
- var import_getConfiguration = require("./getConfiguration.cjs");
37
- var import_formatEnvVariable = require("./formatEnvVariable.cjs");
29
+ var import_getConfiguration = require('./getConfiguration.cjs');
30
+ var import_formatEnvVariable = require('./formatEnvVariable.cjs');
38
31
  // Annotate the CommonJS export names for ESM import in node:
39
- 0 &&
40
- (module.exports = {
41
- formatEnvVariable,
42
- getConfiguration,
43
- intlayerConfiguration,
44
- intlayerContentConfiguration,
45
- intlayerIntlConfiguration,
46
- intlayerMiddlewareConfiguration,
47
- });
48
- //# sourceMappingURL=index.cjs.map
32
+ 0 && (module.exports = {
33
+ formatEnvVariable,
34
+ getConfiguration,
35
+ intlayerConfiguration,
36
+ intlayerContentConfiguration,
37
+ intlayerIntlConfiguration,
38
+ intlayerMiddlewareConfiguration
39
+ });
40
+ //# sourceMappingURL=index.cjs.map
@@ -1,10 +1,4 @@
1
- export {
2
- getConfiguration,
3
- intlayerConfiguration,
4
- intlayerContentConfiguration,
5
- intlayerIntlConfiguration,
6
- intlayerMiddlewareConfiguration,
7
- } from "./getConfiguration.js";
8
- export { formatEnvVariable } from "./formatEnvVariable.js";
9
- import "../types/index.js";
10
- import "../defaultValues/locales.js";
1
+ export { getConfiguration, intlayerConfiguration, intlayerContentConfiguration, intlayerIntlConfiguration, intlayerMiddlewareConfiguration } from './getConfiguration.js';
2
+ export { formatEnvVariable } from './formatEnvVariable.js';
3
+ import '../types/config.js';
4
+ import '../types/locales.js';
@@ -8,21 +8,17 @@ var __export = (target, all) => {
8
8
  __defProp(target, name, { get: all[name], enumerable: true });
9
9
  };
10
10
  var __copyProps = (to, from, except, desc) => {
11
- if ((from && typeof from === "object") || typeof from === "function") {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
12
  for (let key of __getOwnPropNames(from))
13
13
  if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, {
15
- get: () => from[key],
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable,
17
- });
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
15
  }
19
16
  return to;
20
17
  };
21
- var __toCommonJS = (mod) =>
22
- __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
19
  var utils_exports = {};
24
20
  __export(utils_exports, {
25
- getEnvValue: () => getEnvValue,
21
+ getEnvValue: () => getEnvValue
26
22
  });
27
23
  module.exports = __toCommonJS(utils_exports);
28
24
  function getEnvValue(value, type) {
@@ -49,8 +45,7 @@ function getEnvValue(value, type) {
49
45
  }
50
46
  }
51
47
  // Annotate the CommonJS export names for ESM import in node:
52
- 0 &&
53
- (module.exports = {
54
- getEnvValue,
55
- });
56
- //# sourceMappingURL=utils.cjs.map
48
+ 0 && (module.exports = {
49
+ getEnvValue
50
+ });
51
+ //# sourceMappingURL=utils.cjs.map