@intlayer/config 5.4.1 → 5.5.0-canary.0

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 (66) hide show
  1. package/dist/cjs/configFile/buildConfigurationFields.cjs +85 -196
  2. package/dist/cjs/configFile/buildConfigurationFields.cjs.map +1 -1
  3. package/dist/cjs/defaultValues/content.cjs +27 -27
  4. package/dist/cjs/defaultValues/content.cjs.map +1 -1
  5. package/dist/cjs/defaultValues/editor.cjs +0 -9
  6. package/dist/cjs/defaultValues/editor.cjs.map +1 -1
  7. package/dist/cjs/envVariables/extractEnvVariable/next.cjs +14 -18
  8. package/dist/cjs/envVariables/extractEnvVariable/next.cjs.map +1 -1
  9. package/dist/cjs/envVariables/extractEnvVariable/react_app.cjs +12 -16
  10. package/dist/cjs/envVariables/extractEnvVariable/react_app.cjs.map +1 -1
  11. package/dist/cjs/envVariables/extractEnvVariable/types.cjs.map +1 -1
  12. package/dist/cjs/envVariables/extractEnvVariable/undefined_platform.cjs +12 -16
  13. package/dist/cjs/envVariables/extractEnvVariable/undefined_platform.cjs.map +1 -1
  14. package/dist/cjs/envVariables/extractEnvVariable/vite.cjs +12 -16
  15. package/dist/cjs/envVariables/extractEnvVariable/vite.cjs.map +1 -1
  16. package/dist/cjs/envVariables/getConfiguration.cjs +13 -30
  17. package/dist/cjs/envVariables/getConfiguration.cjs.map +1 -1
  18. package/dist/cjs/index.cjs +9 -6
  19. package/dist/cjs/index.cjs.map +1 -1
  20. package/dist/cjs/logger.cjs +6 -5
  21. package/dist/cjs/logger.cjs.map +1 -1
  22. package/dist/cjs/retryManager.cjs +52 -0
  23. package/dist/cjs/retryManager.cjs.map +1 -0
  24. package/dist/cjs/types/config.cjs.map +1 -1
  25. package/dist/esm/configFile/buildConfigurationFields.mjs +101 -215
  26. package/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -1
  27. package/dist/esm/defaultValues/content.mjs +18 -18
  28. package/dist/esm/defaultValues/content.mjs.map +1 -1
  29. package/dist/esm/defaultValues/editor.mjs +0 -6
  30. package/dist/esm/defaultValues/editor.mjs.map +1 -1
  31. package/dist/esm/envVariables/extractEnvVariable/next.mjs +14 -18
  32. package/dist/esm/envVariables/extractEnvVariable/next.mjs.map +1 -1
  33. package/dist/esm/envVariables/extractEnvVariable/react_app.mjs +12 -16
  34. package/dist/esm/envVariables/extractEnvVariable/react_app.mjs.map +1 -1
  35. package/dist/esm/envVariables/extractEnvVariable/undefined_platform.mjs +12 -16
  36. package/dist/esm/envVariables/extractEnvVariable/undefined_platform.mjs.map +1 -1
  37. package/dist/esm/envVariables/extractEnvVariable/vite.mjs +12 -16
  38. package/dist/esm/envVariables/extractEnvVariable/vite.mjs.map +1 -1
  39. package/dist/esm/envVariables/getConfiguration.mjs +13 -30
  40. package/dist/esm/envVariables/getConfiguration.mjs.map +1 -1
  41. package/dist/esm/index.mjs +9 -7
  42. package/dist/esm/index.mjs.map +1 -1
  43. package/dist/esm/logger.mjs +6 -5
  44. package/dist/esm/logger.mjs.map +1 -1
  45. package/dist/esm/retryManager.mjs +28 -0
  46. package/dist/esm/retryManager.mjs.map +1 -0
  47. package/dist/types/configFile/buildConfigurationFields.d.ts.map +1 -1
  48. package/dist/types/defaultValues/content.d.ts +9 -9
  49. package/dist/types/defaultValues/content.d.ts.map +1 -1
  50. package/dist/types/defaultValues/editor.d.ts +0 -3
  51. package/dist/types/defaultValues/editor.d.ts.map +1 -1
  52. package/dist/types/envVariables/extractEnvVariable/next.d.ts.map +1 -1
  53. package/dist/types/envVariables/extractEnvVariable/react_app.d.ts.map +1 -1
  54. package/dist/types/envVariables/extractEnvVariable/types.d.ts +1 -1
  55. package/dist/types/envVariables/extractEnvVariable/types.d.ts.map +1 -1
  56. package/dist/types/envVariables/extractEnvVariable/undefined_platform.d.ts.map +1 -1
  57. package/dist/types/envVariables/extractEnvVariable/vite.d.ts.map +1 -1
  58. package/dist/types/envVariables/getConfiguration.d.ts.map +1 -1
  59. package/dist/types/index.d.ts +8 -7
  60. package/dist/types/index.d.ts.map +1 -1
  61. package/dist/types/logger.d.ts.map +1 -1
  62. package/dist/types/retryManager.d.ts +17 -0
  63. package/dist/types/retryManager.d.ts.map +1 -0
  64. package/dist/types/types/config.d.ts +64 -106
  65. package/dist/types/types/config.d.ts.map +1 -1
  66. package/package.json +5 -5
@@ -7,19 +7,20 @@ const logger = (content, details = {
7
7
  const prefix = details.config?.prefix ?? "";
8
8
  if (mode === "disabled") return;
9
9
  if (details.isVerbose && mode !== "verbose") return;
10
+ const flatContent = [content].flat();
10
11
  if (details.level === "debug") {
11
- return console.debug(`${prefix}${content}`);
12
+ return console.debug(prefix, ...flatContent);
12
13
  }
13
14
  if (details.level === "info") {
14
- return console.info(`${prefix}${content}`);
15
+ return console.info(prefix, ...flatContent);
15
16
  }
16
17
  if (details.level === "warn") {
17
- return console.warn(`${prefix}${content}`);
18
+ return console.warn(prefix, ...flatContent);
18
19
  }
19
20
  if (details.level === "error") {
20
- return console.error(`${prefix}${content}`);
21
+ return console.error(prefix, ...flatContent);
21
22
  }
22
- console.log(`${prefix}${content}`);
23
+ console.log(prefix, ...flatContent);
23
24
  };
24
25
  export {
25
26
  logger
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/logger.ts"],"sourcesContent":["import type { IntlayerConfig } from './types/config';\n\nexport type Details = {\n isVerbose?: boolean;\n level?: 'info' | 'warn' | 'error' | 'debug';\n config?: Partial<IntlayerConfig['log']>;\n};\n\nexport type Logger = (content: any, details?: Details) => void;\n\nexport const logger: Logger = (\n content,\n details = {\n isVerbose: false,\n level: undefined,\n config: { mode: 'default', prefix: '' },\n }\n) => {\n const mode = details.config?.mode ?? 'default';\n const prefix = details.config?.prefix ?? '';\n\n if (mode === 'disabled') return;\n\n if (details.isVerbose && mode !== 'verbose') return;\n\n if (details.level === 'debug') {\n return console.debug(`${prefix}${content}`);\n }\n\n if (details.level === 'info') {\n return console.info(`${prefix}${content}`);\n }\n\n if (details.level === 'warn') {\n return console.warn(`${prefix}${content}`);\n }\n\n if (details.level === 'error') {\n return console.error(`${prefix}${content}`);\n }\n\n console.log(`${prefix}${content}`);\n};\n"],"mappings":"AAUO,MAAM,SAAiB,CAC5B,SACA,UAAU;AAAA,EACR,WAAW;AAAA,EACX,OAAO;AAAA,EACP,QAAQ,EAAE,MAAM,WAAW,QAAQ,GAAG;AACxC,MACG;AACH,QAAM,OAAO,QAAQ,QAAQ,QAAQ;AACrC,QAAM,SAAS,QAAQ,QAAQ,UAAU;AAEzC,MAAI,SAAS,WAAY;AAEzB,MAAI,QAAQ,aAAa,SAAS,UAAW;AAE7C,MAAI,QAAQ,UAAU,SAAS;AAC7B,WAAO,QAAQ,MAAM,GAAG,MAAM,GAAG,OAAO,EAAE;AAAA,EAC5C;AAEA,MAAI,QAAQ,UAAU,QAAQ;AAC5B,WAAO,QAAQ,KAAK,GAAG,MAAM,GAAG,OAAO,EAAE;AAAA,EAC3C;AAEA,MAAI,QAAQ,UAAU,QAAQ;AAC5B,WAAO,QAAQ,KAAK,GAAG,MAAM,GAAG,OAAO,EAAE;AAAA,EAC3C;AAEA,MAAI,QAAQ,UAAU,SAAS;AAC7B,WAAO,QAAQ,MAAM,GAAG,MAAM,GAAG,OAAO,EAAE;AAAA,EAC5C;AAEA,UAAQ,IAAI,GAAG,MAAM,GAAG,OAAO,EAAE;AACnC;","names":[]}
1
+ {"version":3,"sources":["../../src/logger.ts"],"sourcesContent":["import type { IntlayerConfig } from './types/config';\n\nexport type Details = {\n isVerbose?: boolean;\n level?: 'info' | 'warn' | 'error' | 'debug';\n config?: Partial<IntlayerConfig['log']>;\n};\n\nexport type Logger = (content: any, details?: Details) => void;\n\nexport const logger: Logger = (\n content,\n details = {\n isVerbose: false,\n level: undefined,\n config: { mode: 'default', prefix: '' },\n }\n) => {\n const mode = details.config?.mode ?? 'default';\n const prefix = details.config?.prefix ?? '';\n\n if (mode === 'disabled') return;\n\n if (details.isVerbose && mode !== 'verbose') return;\n\n const flatContent = [content].flat();\n\n if (details.level === 'debug') {\n return console.debug(prefix, ...flatContent);\n }\n\n if (details.level === 'info') {\n return console.info(prefix, ...flatContent);\n }\n\n if (details.level === 'warn') {\n return console.warn(prefix, ...flatContent);\n }\n\n if (details.level === 'error') {\n return console.error(prefix, ...flatContent);\n }\n\n console.log(prefix, ...flatContent);\n};\n"],"mappings":"AAUO,MAAM,SAAiB,CAC5B,SACA,UAAU;AAAA,EACR,WAAW;AAAA,EACX,OAAO;AAAA,EACP,QAAQ,EAAE,MAAM,WAAW,QAAQ,GAAG;AACxC,MACG;AACH,QAAM,OAAO,QAAQ,QAAQ,QAAQ;AACrC,QAAM,SAAS,QAAQ,QAAQ,UAAU;AAEzC,MAAI,SAAS,WAAY;AAEzB,MAAI,QAAQ,aAAa,SAAS,UAAW;AAE7C,QAAM,cAAc,CAAC,OAAO,EAAE,KAAK;AAEnC,MAAI,QAAQ,UAAU,SAAS;AAC7B,WAAO,QAAQ,MAAM,QAAQ,GAAG,WAAW;AAAA,EAC7C;AAEA,MAAI,QAAQ,UAAU,QAAQ;AAC5B,WAAO,QAAQ,KAAK,QAAQ,GAAG,WAAW;AAAA,EAC5C;AAEA,MAAI,QAAQ,UAAU,QAAQ;AAC5B,WAAO,QAAQ,KAAK,QAAQ,GAAG,WAAW;AAAA,EAC5C;AAEA,MAAI,QAAQ,UAAU,SAAS;AAC7B,WAAO,QAAQ,MAAM,QAAQ,GAAG,WAAW;AAAA,EAC7C;AAEA,UAAQ,IAAI,QAAQ,GAAG,WAAW;AACpC;","names":[]}
@@ -0,0 +1,28 @@
1
+ import { logger } from "./logger.mjs";
2
+ const DEFAULT_MAX_RETRY = 3;
3
+ const DEFAULT_DELAY = 6e4;
4
+ const retryManager = (fn, {
5
+ maxRetry = DEFAULT_MAX_RETRY,
6
+ delay = DEFAULT_DELAY,
7
+ onError
8
+ } = {}) => (
9
+ // ───────────────────────────────^ returned wrapper function
10
+ async (...args) => {
11
+ for (let attempt = 0; ; attempt++) {
12
+ try {
13
+ return await fn(...args);
14
+ } catch (err) {
15
+ onError?.(err);
16
+ logger(["Request failed", err], {
17
+ level: "error"
18
+ });
19
+ if (attempt >= maxRetry) throw err;
20
+ if (delay > 0) await new Promise((res) => setTimeout(res, delay));
21
+ }
22
+ }
23
+ }
24
+ );
25
+ export {
26
+ retryManager
27
+ };
28
+ //# sourceMappingURL=retryManager.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/retryManager.ts"],"sourcesContent":["import { logger } from './logger';\n\nexport type RetryManagerOptions = {\n /** maximum number of retries before giving up */\n maxRetry?: number;\n /** delay between attempts, in milliseconds */\n delay?: number;\n /** function to call when an error occurs */\n onError?: (err: Error) => void;\n};\n\nconst DEFAULT_MAX_RETRY = 3;\nconst DEFAULT_DELAY = 60_000; // 60 seconds\n\n/**\n * Wrap an async function `fn` so it’s retried on failure.\n *\n * @param fn The async function to wrap\n * @param options { maxRetry, delay }\n * @returns A new function with the same signature as `fn`\n */\nexport const retryManager =\n <Args extends any[], R>(\n fn: (...args: Args) => Promise<R>,\n {\n maxRetry = DEFAULT_MAX_RETRY,\n delay = DEFAULT_DELAY,\n onError,\n }: RetryManagerOptions = {}\n ): ((...args: Args) => Promise<R>) =>\n // ───────────────────────────────^ returned wrapper function\n async (...args: Args): Promise<R> => {\n for (let attempt = 0; ; attempt++) {\n try {\n return await fn(...args);\n } catch (err) {\n onError?.(err as Error);\n logger(['Request failed', err], {\n level: 'error',\n });\n if (attempt >= maxRetry) throw err; // out of retries\n if (delay > 0) await new Promise((res) => setTimeout(res, delay));\n }\n }\n };\n"],"mappings":"AAAA,SAAS,cAAc;AAWvB,MAAM,oBAAoB;AAC1B,MAAM,gBAAgB;AASf,MAAM,eACX,CACE,IACA;AAAA,EACE,WAAW;AAAA,EACX,QAAQ;AAAA,EACR;AACF,IAAyB,CAAC;AAAA;AAAA,EAG5B,UAAU,SAA2B;AACnC,aAAS,UAAU,KAAK,WAAW;AACjC,UAAI;AACF,eAAO,MAAM,GAAG,GAAG,IAAI;AAAA,MACzB,SAAS,KAAK;AACZ,kBAAU,GAAY;AACtB,eAAO,CAAC,kBAAkB,GAAG,GAAG;AAAA,UAC9B,OAAO;AAAA,QACT,CAAC;AACD,YAAI,WAAW,SAAU,OAAM;AAC/B,YAAI,QAAQ,EAAG,OAAM,IAAI,QAAQ,CAAC,QAAQ,WAAW,KAAK,KAAK,CAAC;AAAA,MAClE;AAAA,IACF;AAAA,EACF;AAAA;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"buildConfigurationFields.d.ts","sourceRoot":"","sources":["../../../src/configFile/buildConfigurationFields.ts"],"names":[],"mappings":"AA4CA,OAAO,KAAK,EAGV,oBAAoB,EAGpB,cAAc,EAMf,MAAM,iBAAiB,CAAC;AAuqBzB;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,sBAAsB,oBAAoB,EAC1C,UAAU,MAAM,KACf,cA2BF,CAAC"}
1
+ {"version":3,"file":"buildConfigurationFields.d.ts","sourceRoot":"","sources":["../../../src/configFile/buildConfigurationFields.ts"],"names":[],"mappings":"AAyCA,OAAO,KAAK,EAKV,oBAAoB,EAGpB,cAAc,EAKf,MAAM,iBAAiB,CAAC;AAkjBzB;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,sBAAsB,oBAAoB,EAC1C,UAAU,MAAM,KACf,cA8BF,CAAC"}
@@ -1,15 +1,15 @@
1
1
  import type { DictionaryOutput } from '../types/config';
2
2
  export declare const FILE_EXTENSIONS: string[];
3
3
  export declare const EXCLUDED_PATHS: string[];
4
- export declare const CONTENT_DIR_NAME = "src";
5
- export declare const RESULT_DIR_NAME = ".intlayer";
6
- export declare const MODULE_AUGMENTATION_DIR_NAME = ".intlayer/types";
4
+ export declare const CONTENT_DIR: string[];
5
+ export declare const MAIN_DIR = ".intlayer/main";
6
+ export declare const DICTIONARIES_DIR = ".intlayer/dictionary";
7
+ export declare const UNMERGED_DICTIONARIES_DIR = ".intlayer/unmerged_dictionary";
8
+ export declare const TYPES_DIR = ".intlayer/types";
9
+ export declare const MODULE_AUGMENTATION_DIR = ".intlayer/types";
7
10
  export declare const DICTIONARY_OUTPUT: DictionaryOutput[];
8
- export declare const DICTIONARIES_DIR_NAME = "dictionary";
9
- export declare const I18NEXT_DICTIONARIES_DIR_NAME = "i18next_resources";
10
- export declare const REACT_INTL_MESSAGES_DIR_NAME = "intl_messages";
11
- export declare const TYPES_DIR_NAME = "types";
12
- export declare const MAIN_DIR_NAME = "main";
13
- export declare const CONFIG_DIR_NAME = "config";
11
+ export declare const I18NEXT_DICTIONARIES_DIR = "i18next_resources";
12
+ export declare const REACT_INTL_MESSAGES_DIR = "intl_messages";
13
+ export declare const CONFIG_DIR = ".intlayer/config";
14
14
  export declare const WATCH: boolean;
15
15
  //# sourceMappingURL=content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/defaultValues/content.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,eAAO,MAAM,eAAe,UAU3B,CAAC;AACF,eAAO,MAAM,cAAc,UAAmB,CAAC;AAE/C,eAAO,MAAM,gBAAgB,QAAQ,CAAC;AAEtC,eAAO,MAAM,eAAe,cAAc,CAAC;AAE3C,eAAO,MAAM,4BAA4B,oBAAoB,CAAC;AAE9D,eAAO,MAAM,iBAAiB,EAAE,gBAAgB,EAAiB,CAAC;AAElE,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAElD,eAAO,MAAM,6BAA6B,sBAAsB,CAAC;AAEjE,eAAO,MAAM,4BAA4B,kBAAkB,CAAC;AAE5D,eAAO,MAAM,cAAc,UAAU,CAAC;AAEtC,eAAO,MAAM,aAAa,SAAS,CAAC;AAEpC,eAAO,MAAM,eAAe,WAAW,CAAC;AAExC,eAAO,MAAM,KAAK,SAAyC,CAAC"}
1
+ {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/defaultValues/content.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,eAAO,MAAM,eAAe,UAU3B,CAAC;AACF,eAAO,MAAM,cAAc,UAAmB,CAAC;AAE/C,eAAO,MAAM,WAAW,UAAU,CAAC;AAEnC,eAAO,MAAM,QAAQ,mBAAmB,CAAC;AAEzC,eAAO,MAAM,gBAAgB,yBAAyB,CAAC;AAEvD,eAAO,MAAM,yBAAyB,kCAAkC,CAAC;AAEzE,eAAO,MAAM,SAAS,oBAAoB,CAAC;AAE3C,eAAO,MAAM,uBAAuB,oBAAoB,CAAC;AAEzD,eAAO,MAAM,iBAAiB,EAAE,gBAAgB,EAAiB,CAAC;AAElE,eAAO,MAAM,wBAAwB,sBAAsB,CAAC;AAE5D,eAAO,MAAM,uBAAuB,kBAAkB,CAAC;AAEvD,eAAO,MAAM,UAAU,qBAAqB,CAAC;AAE7C,eAAO,MAAM,KAAK,SAAyC,CAAC"}
@@ -6,7 +6,4 @@ export declare const BACKEND_URL = "https://back.intlayer.org";
6
6
  export declare const IS_ENABLED = true;
7
7
  export declare const HOT_RELOAD = false;
8
8
  export declare const DICTIONARY_PRIORITY_STRATEGY = "local_first";
9
- export declare const OPEN_AI_API_KEY = "";
10
- export declare const OPEN_AI_API_MODEL = "gpt-4o-2024-11-20";
11
- export declare const OPEN_AI_API_TEMPERATURE = 0.1;
12
9
  //# sourceMappingURL=editor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../src/defaultValues/editor.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,UAAU,0BAA0B,CAAC;AAClD,eAAO,MAAM,OAAO,yBAAyB,CAAC;AAC9C,eAAO,MAAM,IAAI,OAAO,CAAC;AACzB,eAAO,MAAM,WAAW,8BAA8B,CAAC;AACvD,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,QAAQ,CAAC;AAChC,eAAO,MAAM,4BAA4B,gBAAgB,CAAC;AAC1D,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AACrD,eAAO,MAAM,uBAAuB,MAAM,CAAC"}
1
+ {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../src/defaultValues/editor.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,UAAU,0BAA0B,CAAC;AAClD,eAAO,MAAM,OAAO,yBAAyB,CAAC;AAC9C,eAAO,MAAM,IAAI,OAAO,CAAC;AACzB,eAAO,MAAM,WAAW,8BAA8B,CAAC;AACvD,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,eAAO,MAAM,UAAU,QAAQ,CAAC;AAChC,eAAO,MAAM,4BAA4B,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../../../src/envVariables/extractEnvVariable/next.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,yBAAyB,EAAgB,MAAM,SAAS,CAAC;AAEvE,eAAO,MAAM,sBAAsB,QAAO,yBAmFzC,CAAC"}
1
+ {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../../../src/envVariables/extractEnvVariable/next.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,yBAAyB,EAAgB,MAAM,SAAS,CAAC;AAEvE,eAAO,MAAM,sBAAsB,QAAO,yBA6EzC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"react_app.d.ts","sourceRoot":"","sources":["../../../../src/envVariables/extractEnvVariable/react_app.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,yBAAyB,EAAgB,MAAM,SAAS,CAAC;AAEvE,eAAO,MAAM,0BAA0B,QAAO,yBAmF7C,CAAC"}
1
+ {"version":3,"file":"react_app.d.ts","sourceRoot":"","sources":["../../../../src/envVariables/extractEnvVariable/react_app.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,yBAAyB,EAAgB,MAAM,SAAS,CAAC;AAEvE,eAAO,MAAM,0BAA0B,QAAO,yBA6E7C,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { IntlayerConfig } from '../../client';
2
2
  export type ReplaceValue<T> = {
3
- [K in keyof T]: string | undefined;
3
+ [K in keyof T]: string | number | boolean | undefined;
4
4
  };
5
5
  export type IntlayerConfigEnvVariable = {
6
6
  [K in keyof IntlayerConfig]: ReplaceValue<IntlayerConfig[K]>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/envVariables/extractEnvVariable/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGnD,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI;KAC3B,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,GAAG,SAAS;CACnC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;KACrC,CAAC,IAAI,MAAM,cAAc,GAAG,YAAY,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;CAC7D,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/envVariables/extractEnvVariable/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGnD,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI;KAC3B,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS;CACtD,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;KACrC,CAAC,IAAI,MAAM,cAAc,GAAG,YAAY,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;CAC7D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"undefined_platform.d.ts","sourceRoot":"","sources":["../../../../src/envVariables/extractEnvVariable/undefined_platform.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAgB,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEvE,eAAO,MAAM,uBAAuB,QAAO,yBA8E1C,CAAC"}
1
+ {"version":3,"file":"undefined_platform.d.ts","sourceRoot":"","sources":["../../../../src/envVariables/extractEnvVariable/undefined_platform.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,yBAAyB,EAAgB,MAAM,SAAS,CAAC;AAEvE,eAAO,MAAM,uBAAuB,QAAO,yBA0E1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../../src/envVariables/extractEnvVariable/vite.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,yBAAyB,EAAgB,MAAM,SAAS,CAAC;AAGvE,eAAO,MAAM,sBAAsB,QAAO,yBAyFzC,CAAC"}
1
+ {"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../../src/envVariables/extractEnvVariable/vite.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,yBAAyB,EAAgB,MAAM,SAAS,CAAC;AAGvE,eAAO,MAAM,sBAAsB,QAAO,yBAoFzC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getConfiguration.d.ts","sourceRoot":"","sources":["../../../src/envVariables/getConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,cAAc,EAKf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,4BAA4B,CAAC;AAGpC;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAC3B,UAAU,yBAAyB,KAClC,cAiIF,CAAC"}
1
+ {"version":3,"file":"getConfiguration.d.ts","sourceRoot":"","sources":["../../../src/envVariables/getConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAKV,cAAc,EAKf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,4BAA4B,CAAC;AAGpC;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAC3B,UAAU,yBAAyB,KAClC,cAiHF,CAAC"}
@@ -1,11 +1,12 @@
1
- export { getConfiguration, type GetConfigurationOptions, } from './configFile/getConfiguration';
2
- export type { InternationalizationConfig, ServerSetCookieRule, MiddlewareConfig, CustomIntlayerConfig, BaseContentConfig, BaseDerivedConfig, ResultDirDerivedConfig, PatternsContentConfig, ContentConfig, LogConfig, StrictMode, IntlayerConfig, } from './types/config';
3
- export type { LocalesValues } from './types/locales';
4
- export { Locales } from './types/locales';
5
- export { formatEnvVariable, getConfiguration as getClientConfiguration, getEnvFilePath, loadEnvFile, getPlatform, } from './envVariables/index';
6
- export { ESMxCJSRequire } from './utils/ESMxCJSRequire';
7
- export { logger } from './logger';
8
1
  export { appLogger } from './appLoggerServer';
2
+ export { getConfiguration, type GetConfigurationOptions, } from './configFile/getConfiguration';
3
+ export { formatEnvVariable, getConfiguration as getClientConfiguration, getEnvFilePath, getPlatform, loadEnvFile, } from './envVariables/index';
9
4
  export { getSandBoxContext } from './getSandboxContext';
10
5
  export { loadExternalFile } from './loadExternalFile';
6
+ export { logger } from './logger';
7
+ export { retryManager } from './retryManager';
8
+ export type { BaseContentConfig, BaseDerivedConfig, ContentConfig, CustomIntlayerConfig, InternationalizationConfig, IntlayerConfig, LogConfig, MiddlewareConfig, PatternsContentConfig, ResultDirDerivedConfig, ServerSetCookieRule, StrictMode, } from './types/config';
9
+ export { Locales } from './types/locales';
10
+ export type { LocalesValues } from './types/locales';
11
+ export { ESMxCJSRequire } from './utils/ESMxCJSRequire';
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,KAAK,uBAAuB,GAC7B,MAAM,+BAA+B,CAAC;AAEvC,YAAY,EACV,0BAA0B,EAC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BAA0B,EAC1B,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,UAAU,GACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,MAAM,OAAO,GAAG;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;AAE/D,eAAO,MAAM,MAAM,EAAE,MAgCpB,CAAC"}
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,MAAM,OAAO,GAAG;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;AAE/D,eAAO,MAAM,MAAM,EAAE,MAkCpB,CAAC"}
@@ -0,0 +1,17 @@
1
+ export type RetryManagerOptions = {
2
+ /** maximum number of retries before giving up */
3
+ maxRetry?: number;
4
+ /** delay between attempts, in milliseconds */
5
+ delay?: number;
6
+ /** function to call when an error occurs */
7
+ onError?: (err: Error) => void;
8
+ };
9
+ /**
10
+ * Wrap an async function `fn` so it’s retried on failure.
11
+ *
12
+ * @param fn The async function to wrap
13
+ * @param options { maxRetry, delay }
14
+ * @returns A new function with the same signature as `fn`
15
+ */
16
+ export declare const retryManager: <Args extends any[], R>(fn: (...args: Args) => Promise<R>, { maxRetry, delay, onError, }?: RetryManagerOptions) => ((...args: Args) => Promise<R>);
17
+ //# sourceMappingURL=retryManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retryManager.d.ts","sourceRoot":"","sources":["../../src/retryManager.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG;IAChC,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC;CAChC,CAAC;AAKF;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,GACtB,IAAI,SAAS,GAAG,EAAE,EAAE,CAAC,EACpB,IAAI,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,EACjC,gCAIG,mBAAwB,KAC1B,CAAC,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,CAehC,CAAC"}
@@ -200,35 +200,58 @@ export type EditorConfig = {
200
200
  * Default: false
201
201
  */
202
202
  hotReload: boolean;
203
+ };
204
+ export type AiConfig = {
203
205
  /**
204
- * OpenAI API key
206
+ * Provider
205
207
  *
206
- * Use your own OpenAI API key to use the AI features of Intlayer.
207
- * If you don't have an OpenAI API key, you can get one for free at https://openai.com/api/.
208
+ * The provider to use for the AI features of Intlayer.
208
209
  *
209
- * Default: ''
210
+ * Available providers:
211
+ * - 'openai'
212
+ * - 'anthropic'
213
+ * - 'mistral'
214
+ * - 'deepseek'
215
+ * - 'gemini'
216
+ *
217
+ * Default: 'openai'
210
218
  */
211
- openAiApiKey: string;
219
+ provider?: string;
212
220
  /**
213
- * OpenAI API model
221
+ * API model
214
222
  *
215
223
  * The model to use for the AI features of Intlayer.
216
224
  *
217
- * Default: 'gpt-4o-2024-11-20'
225
+ * Example: 'gpt-4o-2024-11-20'
218
226
  *
219
- * > Necessitate to define openAiApiKey to use this model
220
227
  */
221
- openAiApiModel: string;
228
+ model?: string;
222
229
  /**
223
- * OpenAI API temperature
230
+ * temperature
224
231
  *
225
232
  * The temperature to use for the AI features of Intlayer.
226
233
  * The temperature controls the randomness of the AI's responses.
227
234
  * A higher temperature will make the AI more creative and less predictable.
228
235
  *
229
- * Default: 0.1
236
+ * Example: 0.1
230
237
  */
231
- openAiApiTemperature: number;
238
+ temperature?: number;
239
+ /**
240
+ * API key
241
+ *
242
+ * Use your own OpenAI API key to use the AI features of Intlayer.
243
+ * If you don't have an OpenAI API key, you can get one for free at https://openai.com/api/.
244
+ *
245
+ */
246
+ apiKey?: string;
247
+ /**
248
+ * Application context
249
+ *
250
+ * The context of the application to use for the AI features of Intlayer.
251
+ *
252
+ * Example: 'This is a website for a company that sells products online.'
253
+ */
254
+ applicationContext?: string;
232
255
  };
233
256
  /**
234
257
  * Custom configuration that can be provided to override default settings
@@ -254,6 +277,10 @@ export type CustomIntlayerConfig = {
254
277
  * Custom middleware configuration
255
278
  */
256
279
  log?: Partial<LogConfig>;
280
+ /**
281
+ * Custom AI configuration
282
+ */
283
+ ai?: Partial<AiConfig>;
257
284
  };
258
285
  /**
259
286
  * Combined configuration for internationalization, middleware, and content
@@ -279,6 +306,10 @@ export type IntlayerConfig = {
279
306
  * Logger configuration
280
307
  */
281
308
  log: LogConfig;
309
+ /**
310
+ * AI configuration
311
+ */
312
+ ai?: Partial<AiConfig>;
282
313
  };
283
314
  /**
284
315
  * Base configuration for content handling
@@ -300,14 +331,6 @@ export type BaseContentConfig = {
300
331
  * The root directory of the project, typically used for resolving other paths.
301
332
  */
302
333
  baseDir: string;
303
- /**
304
- * Name of the directory where the content is stored
305
- *
306
- * Default: 'src'
307
- *
308
- * Specifies the directory where the primary content is stored.
309
- */
310
- contentDirName: string;
311
334
  /**
312
335
  * Directories to be excluded from content processing
313
336
  *
@@ -316,79 +339,6 @@ export type BaseContentConfig = {
316
339
  * A list of directories to exclude from content processing.
317
340
  */
318
341
  excludedPath: string[];
319
- /**
320
- * Name of the directory where results are stored
321
- *
322
- * Default: '.intlayer'
323
- *
324
- * The directory for storing intermediate or output results.
325
- */
326
- resultDirName: string;
327
- /**
328
- * Name of the directory for module augmentation
329
- *
330
- * Default: 'types'
331
- *
332
- * Defines the directory for additional module types.
333
- */
334
- moduleAugmentationDirName: string;
335
- /**
336
- * Name of the directory where dictionaries are stored
337
- *
338
- * Default: 'dictionary'
339
- *
340
- * The directory for storing localization dictionaries.
341
- *
342
- * Note:
343
- * - Ensure the dictionaries output includes intlayer to build the dictionaries for intlayer
344
- */
345
- dictionariesDirName: string;
346
- /**
347
- * Name of the directory where dictionaries are stored
348
- *
349
- * Default: 'i18next_dictionary'
350
- *
351
- * The directory for storing localization dictionaries.
352
- *
353
- * Note:
354
- * - Ensure the dictionaries output includes 'i18next' to build the dictionaries for i18next
355
- */
356
- i18nextResourcesDirName: string;
357
- /**
358
- * Name of the directory where dictionaries are stored
359
- *
360
- * Default: 'react-intl_dictionary'
361
- *
362
- * The directory for storing localization dictionaries.
363
- *
364
- * Note:
365
- * - Ensure the dictionaries output includes 'react-intl' to build the dictionaries for react-intl
366
- */
367
- reactIntlMessagesDirName: string;
368
- /**
369
- * Name of the directory where dictionary types are stored
370
- *
371
- * Default: 'types'
372
- *
373
- * The directory for storing dictionary type definitions.
374
- */
375
- typeDirName: string;
376
- /**
377
- * Name of the directory where the main files are stored
378
- *
379
- * Default: 'main'
380
- *
381
- * Specifies the directory for storing main application files.
382
- */
383
- mainDirName: string;
384
- /**
385
- * Name of the directory where the configuration files are stored
386
- *
387
- * Default: 'config'
388
- *
389
- * Specifies the directory for storing configuration files.
390
- */
391
- configDirName: string;
392
342
  /**
393
343
  * Indicates if Intlayer should watch for changes in the content declaration files in the app to rebuild the related dictionaries.
394
344
  *
@@ -404,23 +354,23 @@ export type BaseDerivedConfig = {
404
354
  /**
405
355
  * Directory where the content is stored, relative to the base directory
406
356
  *
407
- * Default: {{baseDir}} / {{contentDirName}}
357
+ * Default: ['src']
408
358
  *
409
359
  * Derived content directory based on the base configuration.
410
360
  */
411
- contentDir: string;
361
+ contentDir: string[];
412
362
  /**
413
363
  * Directory where the results are stored, relative to the base directory
414
364
  *
415
- * Default: {{baseDir}} / {{resultDirName}}
365
+ * Default: .intlayer/dictionary
416
366
  *
417
367
  * Derived results directory based on the base configuration.
418
368
  */
419
- resultDir: string;
369
+ dictionariesDir: string;
420
370
  /**
421
371
  * Directory for module augmentation, relative to the base directory
422
372
  *
423
- * Default: {{baseDir}} / {{moduleAugmentationDirName}}
373
+ * Default: .intlayer/types
424
374
  *
425
375
  * Defines the derived path for module augmentation.
426
376
  */
@@ -444,9 +394,17 @@ export type BaseDerivedConfig = {
444
394
  */
445
395
  export type ResultDirDerivedConfig = {
446
396
  /**
447
- * Directory where dictionaries are stored, relative to the result directory
397
+ * Directory where unmerged dictionaries are stored, relative to the result directory
398
+ *
399
+ * Default: .intlayer/unmerged_dictionary
400
+ *
401
+ * Specifies the derived path for unmerged dictionaries relative to the result directory.
402
+ */
403
+ unmergedDictionariesDir: string;
404
+ /**
405
+ * Directory where final dictionaries are stored, relative to the result directory
448
406
  *
449
- * Default: {{resultDir}} / {{dictionariesDirName}}
407
+ * Default: .intlayer/dictionary
450
408
  *
451
409
  * Specifies the derived path for dictionaries relative to the result directory.
452
410
  */
@@ -454,7 +412,7 @@ export type ResultDirDerivedConfig = {
454
412
  /**
455
413
  * Directory where dictionaries are stored, relative to the result directory
456
414
  *
457
- * Default: {{resultDir}} / {{i18nextResourcesDirName}}
415
+ * Default: i18next_resources
458
416
  *
459
417
  * Specifies the derived path for dictionaries relative to the result directory.
460
418
  *
@@ -465,7 +423,7 @@ export type ResultDirDerivedConfig = {
465
423
  /**
466
424
  * Directory where dictionaries are stored, relative to the result directory
467
425
  *
468
- * Default: {{resultDir}} / {{reactIntlMessagesDirName}}
426
+ * Default: intl_messages
469
427
  *
470
428
  * Specifies the derived path for dictionaries relative to the result directory.
471
429
  *
@@ -476,7 +434,7 @@ export type ResultDirDerivedConfig = {
476
434
  /**
477
435
  * Directory where dictionary types are stored, relative to the result directory
478
436
  *
479
- * Default: {{resultDir}} / {{typeDirName}}
437
+ * Default: .intlayer/types
480
438
  *
481
439
  * Specifies the derived path for dictionary types relative to the result directory.
482
440
  */
@@ -484,7 +442,7 @@ export type ResultDirDerivedConfig = {
484
442
  /**
485
443
  * Directory where the main files are stored, relative to the result directory
486
444
  *
487
- * Default: {{resultDir}} / {{mainDirName}}
445
+ * Default: .intlayer/main
488
446
  *
489
447
  * Specifies the derived path for the main files relative to the result directory.
490
448
  */
@@ -492,7 +450,7 @@ export type ResultDirDerivedConfig = {
492
450
  /**
493
451
  * Directory where the configuration files are stored, relative to the result directory
494
452
  *
495
- * Default: {{resultDir}} / {{configDirName}}
453
+ * Default: .intlayer/config
496
454
  *
497
455
  * Specifies the derived path for the configuration files relative to the result directory.
498
456
  */
@@ -513,7 +471,7 @@ export type PatternsContentConfig = {
513
471
  /**
514
472
  * Patterns of files to watch for changes including the relative path
515
473
  *
516
- * Default: ['{{contentDir}}/**\/*.content.ts', '{{contentDir}}/**\/*.content.js', '{{contentDir}}/**\/*.content.json', '{{contentDir}}/**\/*.content.cjs', '{{contentDir}}/**\/*.content.mjs', '{{contentDir}}/**\/*.content.tsx', '{{contentDir}}/**\/*.content.jsx']
474
+ * Default: ['src/**\/*.content.ts', 'src/**\/*.content.js', 'src/**\/*.content.json', 'src/**\/*.content.cjs', 'src/**\/*.content.mjs', 'src/**\/*.content.tsx', 'src/**\/*.content.jsx']
517
475
  *
518
476
  * Specifies the file patterns for content to watch, including relative paths.
519
477
  */
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/types/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,WAAW,GAAG,OAAO,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;;;;OAMG;IACH,OAAO,EAAE,OAAO,EAAE,CAAC;IAEnB;;;;;;;;OAQG;IACH,eAAe,EAAE,OAAO,EAAE,CAAC;IAE3B;;;;;;;OAOG;IACH,UAAU,EAAE,UAAU,CAAC;IAEvB;;;;;;OAMG;IACH,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;;;OAWG;IACH,aAAa,EAAE,OAAO,CAAC;IAEvB;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,eAAe,EAAE,mBAAmB,CAAC;IAErC;;;;;;OAMG;IACH,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;;;;OAMG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;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B;;;;;;OAMG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;;;;OAMG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;;;;;;;;;;OAWG;IACH,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;CACtC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;;;OAMG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAEhC;;;;;;OAMG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;;;;;;;OASG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;;;;;;;;OASG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;;;;OAMG;IACH,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAE9B;;;;;;OAMG;IACH,2BAA2B,EAAE,MAAM,EAAE,CAAC;IAEtC;;;;;;OAMG;IACH,0BAA0B,EAAE,MAAM,CAAC;CACpC,CAAC;AAGF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAC3C,iBAAiB,GACjB,sBAAsB,GACtB,qBAAqB,CAAC;AAExB,MAAM,MAAM,SAAS,GAAG;IACtB;;;;;;;;OAQG;IACH,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;IAEzC;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/config",
3
- "version": "5.4.1",
3
+ "version": "5.5.0-canary.0",
4
4
  "private": false,
5
5
  "description": "Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.",
6
6
  "keywords": [
@@ -82,13 +82,13 @@
82
82
  "tsc-alias": "^1.8.11",
83
83
  "tsup": "^8.4.0",
84
84
  "typescript": "^5.8.2",
85
- "@utils/eslint-config": "1.0.4",
86
- "@utils/ts-config": "1.0.4",
87
85
  "@utils/ts-config-types": "1.0.4",
88
- "@utils/tsup-config": "1.0.4"
86
+ "@utils/tsup-config": "1.0.4",
87
+ "@utils/eslint-config": "1.0.4",
88
+ "@utils/ts-config": "1.0.4"
89
89
  },
90
90
  "peerDependencies": {
91
- "intlayer": "5.4.1"
91
+ "intlayer": "5.5.0-canary.0"
92
92
  },
93
93
  "engines": {
94
94
  "node": ">=14.18"