@intlayer/config 6.1.6 → 7.0.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 (236) hide show
  1. package/dist/cjs/_virtual/rolldown_runtime.cjs +34 -0
  2. package/dist/cjs/alias.cjs +27 -100
  3. package/dist/cjs/alias.cjs.map +1 -1
  4. package/dist/cjs/built.cjs +7 -25
  5. package/dist/cjs/built.cjs.map +1 -1
  6. package/dist/cjs/bundleJSFile.cjs +30 -51
  7. package/dist/cjs/bundleJSFile.cjs.map +1 -1
  8. package/dist/cjs/client.cjs +19 -52
  9. package/dist/cjs/configFile/buildConfigurationFields.cjs +100 -657
  10. package/dist/cjs/configFile/buildConfigurationFields.cjs.map +1 -1
  11. package/dist/cjs/configFile/getConfiguration.cjs +60 -114
  12. package/dist/cjs/configFile/getConfiguration.cjs.map +1 -1
  13. package/dist/cjs/configFile/index.cjs +8 -25
  14. package/dist/cjs/configFile/loadConfigurationFile.cjs +22 -47
  15. package/dist/cjs/configFile/loadConfigurationFile.cjs.map +1 -1
  16. package/dist/cjs/configFile/searchConfigurationFile.cjs +49 -55
  17. package/dist/cjs/configFile/searchConfigurationFile.cjs.map +1 -1
  18. package/dist/cjs/defaultValues/build.cjs +23 -35
  19. package/dist/cjs/defaultValues/build.cjs.map +1 -1
  20. package/dist/cjs/defaultValues/content.cjs +68 -70
  21. package/dist/cjs/defaultValues/content.cjs.map +1 -1
  22. package/dist/cjs/defaultValues/editor.cjs +29 -41
  23. package/dist/cjs/defaultValues/editor.cjs.map +1 -1
  24. package/dist/cjs/defaultValues/index.cjs +62 -0
  25. package/dist/cjs/defaultValues/index.cjs.map +1 -0
  26. package/dist/cjs/defaultValues/internationalization.cjs +23 -34
  27. package/dist/cjs/defaultValues/internationalization.cjs.map +1 -1
  28. package/dist/cjs/defaultValues/log.cjs +17 -29
  29. package/dist/cjs/defaultValues/log.cjs.map +1 -1
  30. package/dist/cjs/defaultValues/routing.cjs +38 -0
  31. package/dist/cjs/defaultValues/routing.cjs.map +1 -0
  32. package/dist/cjs/extractErrorMessage.cjs +95 -0
  33. package/dist/cjs/extractErrorMessage.cjs.map +1 -0
  34. package/dist/cjs/index.cjs +67 -98
  35. package/dist/cjs/loadEnvFile.cjs +30 -51
  36. package/dist/cjs/loadEnvFile.cjs.map +1 -1
  37. package/dist/cjs/loadExternalFile/bundleFile.cjs +74 -0
  38. package/dist/cjs/loadExternalFile/bundleFile.cjs.map +1 -0
  39. package/dist/cjs/loadExternalFile/loadExternalFile.cjs +86 -0
  40. package/dist/cjs/loadExternalFile/loadExternalFile.cjs.map +1 -0
  41. package/dist/cjs/loadExternalFile/parseFileContent.cjs +67 -0
  42. package/dist/cjs/loadExternalFile/parseFileContent.cjs.map +1 -0
  43. package/dist/cjs/loadExternalFile/transpileTSToMJS.cjs +60 -0
  44. package/dist/cjs/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
  45. package/dist/cjs/logger.cjs +124 -152
  46. package/dist/cjs/logger.cjs.map +1 -1
  47. package/dist/cjs/package.cjs +12 -0
  48. package/dist/cjs/package.cjs.map +1 -0
  49. package/dist/cjs/retryManager.cjs +42 -49
  50. package/dist/cjs/retryManager.cjs.map +1 -1
  51. package/dist/cjs/utils/ESMxCJSHelpers.cjs +24 -33
  52. package/dist/cjs/utils/ESMxCJSHelpers.cjs.map +1 -1
  53. package/dist/cjs/utils/cache.cjs +426 -0
  54. package/dist/cjs/utils/cache.cjs.map +1 -0
  55. package/dist/cjs/utils/clearModuleCache.cjs +23 -46
  56. package/dist/cjs/utils/clearModuleCache.cjs.map +1 -1
  57. package/dist/cjs/utils/extractErrorMessage.cjs +95 -0
  58. package/dist/cjs/utils/extractErrorMessage.cjs.map +1 -0
  59. package/dist/cjs/utils/getExtension.cjs +12 -35
  60. package/dist/cjs/utils/getExtension.cjs.map +1 -1
  61. package/dist/cjs/utils/getPackageJsonPath.cjs +37 -0
  62. package/dist/cjs/utils/getPackageJsonPath.cjs.map +1 -0
  63. package/dist/cjs/utils/logStack.cjs +16 -0
  64. package/dist/cjs/utils/logStack.cjs.map +1 -0
  65. package/dist/cjs/utils/normalizePath.cjs +15 -27
  66. package/dist/cjs/utils/normalizePath.cjs.map +1 -1
  67. package/dist/esm/_virtual/rolldown_runtime.mjs +17 -0
  68. package/dist/esm/alias.mjs +23 -74
  69. package/dist/esm/alias.mjs.map +1 -1
  70. package/dist/esm/built.mjs +5 -3
  71. package/dist/esm/built.mjs.map +1 -1
  72. package/dist/esm/bundleJSFile.mjs +26 -25
  73. package/dist/esm/bundleJSFile.mjs.map +1 -1
  74. package/dist/esm/client.mjs +4 -31
  75. package/dist/esm/configFile/buildConfigurationFields.mjs +97 -674
  76. package/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -1
  77. package/dist/esm/configFile/getConfiguration.mjs +52 -75
  78. package/dist/esm/configFile/getConfiguration.mjs.map +1 -1
  79. package/dist/esm/configFile/index.mjs +5 -3
  80. package/dist/esm/configFile/loadConfigurationFile.mjs +22 -23
  81. package/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -1
  82. package/dist/esm/configFile/searchConfigurationFile.mjs +45 -30
  83. package/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -1
  84. package/dist/esm/defaultValues/build.mjs +16 -11
  85. package/dist/esm/defaultValues/build.mjs.map +1 -1
  86. package/dist/esm/defaultValues/content.mjs +48 -34
  87. package/dist/esm/defaultValues/content.mjs.map +1 -1
  88. package/dist/esm/defaultValues/editor.mjs +17 -11
  89. package/dist/esm/defaultValues/editor.mjs.map +1 -1
  90. package/dist/esm/defaultValues/index.mjs +21 -0
  91. package/dist/esm/defaultValues/index.mjs.map +1 -0
  92. package/dist/esm/defaultValues/internationalization.mjs +13 -7
  93. package/dist/esm/defaultValues/internationalization.mjs.map +1 -1
  94. package/dist/esm/defaultValues/log.mjs +10 -4
  95. package/dist/esm/defaultValues/log.mjs.map +1 -1
  96. package/dist/esm/defaultValues/routing.mjs +25 -0
  97. package/dist/esm/defaultValues/routing.mjs.map +1 -0
  98. package/dist/esm/extractErrorMessage.mjs +94 -0
  99. package/dist/esm/extractErrorMessage.mjs.map +1 -0
  100. package/dist/esm/index.mjs +18 -61
  101. package/dist/esm/loadEnvFile.mjs +27 -17
  102. package/dist/esm/loadEnvFile.mjs.map +1 -1
  103. package/dist/esm/loadExternalFile/bundleFile.mjs +68 -0
  104. package/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
  105. package/dist/esm/loadExternalFile/loadExternalFile.mjs +81 -0
  106. package/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
  107. package/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
  108. package/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
  109. package/dist/esm/loadExternalFile/transpileTSToMJS.mjs +55 -0
  110. package/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
  111. package/dist/esm/logger.mjs +110 -115
  112. package/dist/esm/logger.mjs.map +1 -1
  113. package/dist/esm/package.mjs +6 -0
  114. package/dist/esm/package.mjs.map +1 -0
  115. package/dist/esm/retryManager.mjs +40 -23
  116. package/dist/esm/retryManager.mjs.map +1 -1
  117. package/dist/esm/utils/ESMxCJSHelpers.mjs +20 -6
  118. package/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -1
  119. package/dist/esm/utils/cache.mjs +414 -0
  120. package/dist/esm/utils/cache.mjs.map +1 -0
  121. package/dist/esm/utils/clearModuleCache.mjs +22 -21
  122. package/dist/esm/utils/clearModuleCache.mjs.map +1 -1
  123. package/dist/esm/utils/extractErrorMessage.mjs +94 -0
  124. package/dist/esm/utils/extractErrorMessage.mjs.map +1 -0
  125. package/dist/esm/utils/getExtension.mjs +11 -11
  126. package/dist/esm/utils/getExtension.mjs.map +1 -1
  127. package/dist/esm/utils/getPackageJsonPath.mjs +33 -0
  128. package/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
  129. package/dist/esm/utils/logStack.mjs +16 -0
  130. package/dist/esm/utils/logStack.mjs.map +1 -0
  131. package/dist/esm/utils/normalizePath.mjs +14 -3
  132. package/dist/esm/utils/normalizePath.mjs.map +1 -1
  133. package/dist/types/alias.d.ts +20 -12
  134. package/dist/types/alias.d.ts.map +1 -1
  135. package/dist/types/built.d.ts +7 -6
  136. package/dist/types/built.d.ts.map +1 -1
  137. package/dist/types/bundleJSFile.d.ts +97 -93
  138. package/dist/types/bundleJSFile.d.ts.map +1 -1
  139. package/dist/types/client.d.ts +3 -5
  140. package/dist/types/configFile/buildConfigurationFields.d.ts +7 -2
  141. package/dist/types/configFile/buildConfigurationFields.d.ts.map +1 -1
  142. package/dist/types/configFile/getConfiguration.d.ts +19 -15
  143. package/dist/types/configFile/getConfiguration.d.ts.map +1 -1
  144. package/dist/types/configFile/index.d.ts +4 -3
  145. package/dist/types/configFile/loadConfigurationFile.d.ts +8 -3
  146. package/dist/types/configFile/loadConfigurationFile.d.ts.map +1 -1
  147. package/dist/types/configFile/searchConfigurationFile.d.ts +6 -4
  148. package/dist/types/configFile/searchConfigurationFile.d.ts.map +1 -1
  149. package/dist/types/defaultValues/build.d.ts +10 -4
  150. package/dist/types/defaultValues/build.d.ts.map +1 -1
  151. package/dist/types/defaultValues/content.d.ts +23 -16
  152. package/dist/types/defaultValues/content.d.ts.map +1 -1
  153. package/dist/types/defaultValues/editor.d.ts +14 -9
  154. package/dist/types/defaultValues/editor.d.ts.map +1 -1
  155. package/dist/types/defaultValues/index.d.ts +14 -0
  156. package/dist/types/defaultValues/index.d.ts.map +1 -0
  157. package/dist/types/defaultValues/internationalization.d.ts +12 -6
  158. package/dist/types/defaultValues/internationalization.d.ts.map +1 -1
  159. package/dist/types/defaultValues/log.d.ts +7 -2
  160. package/dist/types/defaultValues/log.d.ts.map +1 -1
  161. package/dist/types/defaultValues/routing.d.ts +14 -0
  162. package/dist/types/defaultValues/routing.d.ts.map +1 -0
  163. package/dist/types/extractErrorMessage.d.ts +5 -0
  164. package/dist/types/extractErrorMessage.d.ts.map +1 -0
  165. package/dist/types/index.d.ts +21 -17
  166. package/dist/types/loadEnvFile.d.ts +8 -5
  167. package/dist/types/loadEnvFile.d.ts.map +1 -1
  168. package/dist/types/loadExternalFile/bundleFile.d.ts +10 -0
  169. package/dist/types/loadExternalFile/bundleFile.d.ts.map +1 -0
  170. package/dist/types/loadExternalFile/loadExternalFile.d.ts +25 -0
  171. package/dist/types/loadExternalFile/loadExternalFile.d.ts.map +1 -0
  172. package/dist/types/loadExternalFile/parseFileContent.d.ts +29 -0
  173. package/dist/types/loadExternalFile/parseFileContent.d.ts.map +1 -0
  174. package/dist/types/loadExternalFile/transpileTSToMJS.d.ts +9 -0
  175. package/dist/types/loadExternalFile/transpileTSToMJS.d.ts.map +1 -0
  176. package/dist/types/logger.d.ts +41 -37
  177. package/dist/types/logger.d.ts.map +1 -1
  178. package/dist/types/retryManager.d.ts +26 -8
  179. package/dist/types/retryManager.d.ts.map +1 -1
  180. package/dist/types/utils/ESMxCJSHelpers.d.ts +16 -2
  181. package/dist/types/utils/ESMxCJSHelpers.d.ts.map +1 -1
  182. package/dist/types/utils/cache.d.ts +50 -0
  183. package/dist/types/utils/cache.d.ts.map +1 -0
  184. package/dist/types/utils/clearModuleCache.d.ts +4 -1
  185. package/dist/types/utils/clearModuleCache.d.ts.map +1 -1
  186. package/dist/types/utils/extractErrorMessage.d.ts +5 -0
  187. package/dist/types/utils/extractErrorMessage.d.ts.map +1 -0
  188. package/dist/types/utils/getExtension.d.ts +6 -2
  189. package/dist/types/utils/getExtension.d.ts.map +1 -1
  190. package/dist/types/utils/getPackageJsonPath.d.ts +10 -0
  191. package/dist/types/utils/getPackageJsonPath.d.ts.map +1 -0
  192. package/dist/types/utils/logStack.d.ts +7 -0
  193. package/dist/types/utils/logStack.d.ts.map +1 -0
  194. package/dist/types/utils/normalizePath.d.ts +4 -1
  195. package/dist/types/utils/normalizePath.d.ts.map +1 -1
  196. package/package.json +40 -35
  197. package/LICENSE +0 -202
  198. package/dist/cjs/client.cjs.map +0 -1
  199. package/dist/cjs/configFile/index.cjs.map +0 -1
  200. package/dist/cjs/defaultValues/middleware.cjs +0 -47
  201. package/dist/cjs/defaultValues/middleware.cjs.map +0 -1
  202. package/dist/cjs/getSandboxContext.cjs +0 -64
  203. package/dist/cjs/getSandboxContext.cjs.map +0 -1
  204. package/dist/cjs/index.cjs.map +0 -1
  205. package/dist/cjs/loadExternalFile.cjs +0 -105
  206. package/dist/cjs/loadExternalFile.cjs.map +0 -1
  207. package/dist/cjs/types/config.cjs +0 -17
  208. package/dist/cjs/types/config.cjs.map +0 -1
  209. package/dist/cjs/types/locales.cjs +0 -310
  210. package/dist/cjs/types/locales.cjs.map +0 -1
  211. package/dist/esm/client.mjs.map +0 -1
  212. package/dist/esm/configFile/index.mjs.map +0 -1
  213. package/dist/esm/defaultValues/middleware.mjs +0 -17
  214. package/dist/esm/defaultValues/middleware.mjs.map +0 -1
  215. package/dist/esm/getSandboxContext.mjs +0 -40
  216. package/dist/esm/getSandboxContext.mjs.map +0 -1
  217. package/dist/esm/index.mjs.map +0 -1
  218. package/dist/esm/loadExternalFile.mjs +0 -81
  219. package/dist/esm/loadExternalFile.mjs.map +0 -1
  220. package/dist/esm/types/config.mjs +0 -1
  221. package/dist/esm/types/config.mjs.map +0 -1
  222. package/dist/esm/types/locales.mjs +0 -286
  223. package/dist/esm/types/locales.mjs.map +0 -1
  224. package/dist/types/client.d.ts.map +0 -1
  225. package/dist/types/configFile/index.d.ts.map +0 -1
  226. package/dist/types/defaultValues/middleware.d.ts +0 -8
  227. package/dist/types/defaultValues/middleware.d.ts.map +0 -1
  228. package/dist/types/getSandboxContext.d.ts +0 -4
  229. package/dist/types/getSandboxContext.d.ts.map +0 -1
  230. package/dist/types/index.d.ts.map +0 -1
  231. package/dist/types/loadExternalFile.d.ts +0 -8
  232. package/dist/types/loadExternalFile.d.ts.map +0 -1
  233. package/dist/types/types/config.d.ts +0 -659
  234. package/dist/types/types/config.d.ts.map +0 -1
  235. package/dist/types/types/locales.d.ts +0 -564
  236. package/dist/types/types/locales.d.ts.map +0 -1
@@ -1,21 +1,48 @@
1
+ import { __export } from "../_virtual/rolldown_runtime.mjs";
2
+
3
+ //#region src/defaultValues/content.ts
4
+ var content_exports = /* @__PURE__ */ __export({
5
+ CACHE_DIR: () => CACHE_DIR,
6
+ CONFIG_DIR: () => CONFIG_DIR,
7
+ CONTENT_DIR: () => CONTENT_DIR,
8
+ DICTIONARIES_DIR: () => DICTIONARIES_DIR,
9
+ DYNAMIC_DICTIONARIES_DIR: () => DYNAMIC_DICTIONARIES_DIR,
10
+ EXCLUDED_PATHS: () => EXCLUDED_PATHS,
11
+ FETCH_DICTIONARIES_DIR: () => FETCH_DICTIONARIES_DIR,
12
+ FILE_EXTENSIONS: () => FILE_EXTENSIONS,
13
+ FILL: () => FILL,
14
+ I18NEXT_DICTIONARIES_DIR: () => I18NEXT_DICTIONARIES_DIR,
15
+ MAIN_DIR: () => MAIN_DIR,
16
+ MASKS_DIR: () => MASKS_DIR,
17
+ MODULE_AUGMENTATION_DIR: () => MODULE_AUGMENTATION_DIR,
18
+ REACT_INTL_MESSAGES_DIR: () => REACT_INTL_MESSAGES_DIR,
19
+ REMOTE_DICTIONARIES_DIR: () => REMOTE_DICTIONARIES_DIR,
20
+ TYPES_DIR: () => TYPES_DIR,
21
+ UNMERGED_DICTIONARIES_DIR: () => UNMERGED_DICTIONARIES_DIR,
22
+ WATCH: () => WATCH
23
+ });
1
24
  const FILE_EXTENSIONS = [
2
- ".content.ts",
3
- ".content.js",
4
- ".content.cjs",
5
- ".content.cjx",
6
- ".content.mjs",
7
- ".content.mjx",
8
- ".content.json",
9
- ".content.tsx",
10
- ".content.jsx"
25
+ ".content.ts",
26
+ ".content.js",
27
+ ".content.cjs",
28
+ ".content.cjx",
29
+ ".content.mjs",
30
+ ".content.mjx",
31
+ ".content.json",
32
+ ".content.tsx",
33
+ ".content.jsx"
11
34
  ];
12
35
  const EXCLUDED_PATHS = [
13
- "node_modules",
14
- ".intlayer",
15
- ".next",
16
- ".nuxt",
17
- ".expo",
18
- "dist"
36
+ "**/node_modules/**",
37
+ "**/dist/**",
38
+ "**/build/**",
39
+ "**/.intlayer/**",
40
+ "**/.next/**",
41
+ "**/.nuxt/**",
42
+ "**/.expo/**",
43
+ "**/.vercel/**",
44
+ "**/.turbo/**",
45
+ "**/.tanstack/**"
19
46
  ];
20
47
  const CONTENT_DIR = ["."];
21
48
  const MAIN_DIR = ".intlayer/main";
@@ -30,23 +57,10 @@ const MODULE_AUGMENTATION_DIR = ".intlayer/types";
30
57
  const I18NEXT_DICTIONARIES_DIR = "i18next_resources";
31
58
  const REACT_INTL_MESSAGES_DIR = "intl_messages";
32
59
  const CONFIG_DIR = ".intlayer/config";
33
- const WATCH = process.env.NODE_ENV === "development";
34
- export {
35
- CONFIG_DIR,
36
- CONTENT_DIR,
37
- DICTIONARIES_DIR,
38
- DYNAMIC_DICTIONARIES_DIR,
39
- EXCLUDED_PATHS,
40
- FETCH_DICTIONARIES_DIR,
41
- FILE_EXTENSIONS,
42
- I18NEXT_DICTIONARIES_DIR,
43
- MAIN_DIR,
44
- MASKS_DIR,
45
- MODULE_AUGMENTATION_DIR,
46
- REACT_INTL_MESSAGES_DIR,
47
- REMOTE_DICTIONARIES_DIR,
48
- TYPES_DIR,
49
- UNMERGED_DICTIONARIES_DIR,
50
- WATCH
51
- };
60
+ const CACHE_DIR = ".intlayer/cache";
61
+ const WATCH = true;
62
+ const FILL = true;
63
+
64
+ //#endregion
65
+ export { CACHE_DIR, CONFIG_DIR, CONTENT_DIR, DICTIONARIES_DIR, DYNAMIC_DICTIONARIES_DIR, EXCLUDED_PATHS, FETCH_DICTIONARIES_DIR, FILE_EXTENSIONS, FILL, I18NEXT_DICTIONARIES_DIR, MAIN_DIR, MASKS_DIR, MODULE_AUGMENTATION_DIR, REACT_INTL_MESSAGES_DIR, REMOTE_DICTIONARIES_DIR, TYPES_DIR, UNMERGED_DICTIONARIES_DIR, WATCH, content_exports };
52
66
  //# sourceMappingURL=content.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/defaultValues/content.ts"],"sourcesContent":["export const FILE_EXTENSIONS = [\n '.content.ts',\n '.content.js',\n '.content.cjs',\n '.content.cjx',\n '.content.mjs',\n '.content.mjx',\n '.content.json',\n '.content.tsx',\n '.content.jsx',\n];\nexport const EXCLUDED_PATHS = [\n 'node_modules',\n '.intlayer',\n '.next',\n '.nuxt',\n '.expo',\n 'dist',\n];\n\nexport const CONTENT_DIR = ['.'];\n\nexport const MAIN_DIR = '.intlayer/main';\n\nexport const DICTIONARIES_DIR = '.intlayer/dictionary';\n\nexport const MASKS_DIR = '.intlayer/mask';\n\nexport const REMOTE_DICTIONARIES_DIR = '.intlayer/remote_dictionary';\n\nexport const UNMERGED_DICTIONARIES_DIR = '.intlayer/unmerged_dictionary';\n\nexport const DYNAMIC_DICTIONARIES_DIR = '.intlayer/dynamic_dictionary';\n\nexport const FETCH_DICTIONARIES_DIR = '.intlayer/fetch_dictionary';\n\nexport const TYPES_DIR = '.intlayer/types';\n\nexport const MODULE_AUGMENTATION_DIR = '.intlayer/types';\n\nexport const I18NEXT_DICTIONARIES_DIR = 'i18next_resources';\n\nexport const REACT_INTL_MESSAGES_DIR = 'intl_messages';\n\nexport const CONFIG_DIR = '.intlayer/config';\n\nexport const WATCH = process.env.NODE_ENV === 'development';\n"],"mappings":"AAAO,MAAM,kBAAkB;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AACO,MAAM,iBAAiB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,MAAM,cAAc,CAAC,GAAG;AAExB,MAAM,WAAW;AAEjB,MAAM,mBAAmB;AAEzB,MAAM,YAAY;AAElB,MAAM,0BAA0B;AAEhC,MAAM,4BAA4B;AAElC,MAAM,2BAA2B;AAEjC,MAAM,yBAAyB;AAE/B,MAAM,YAAY;AAElB,MAAM,0BAA0B;AAEhC,MAAM,2BAA2B;AAEjC,MAAM,0BAA0B;AAEhC,MAAM,aAAa;AAEnB,MAAM,QAAQ,QAAQ,IAAI,aAAa;","names":[]}
1
+ {"version":3,"file":"content.mjs","names":[],"sources":["../../../src/defaultValues/content.ts"],"sourcesContent":["export const FILE_EXTENSIONS = [\n '.content.ts',\n '.content.js',\n '.content.cjs',\n '.content.cjx',\n '.content.mjs',\n '.content.mjx',\n '.content.json',\n '.content.tsx',\n '.content.jsx',\n];\nexport const EXCLUDED_PATHS = [\n '**/node_modules/**',\n '**/dist/**',\n '**/build/**',\n '**/.intlayer/**',\n '**/.next/**',\n '**/.nuxt/**',\n '**/.expo/**',\n '**/.vercel/**',\n '**/.turbo/**',\n '**/.tanstack/**',\n];\n\nexport const CONTENT_DIR = ['.'];\n\nexport const MAIN_DIR = '.intlayer/main';\n\nexport const DICTIONARIES_DIR = '.intlayer/dictionary';\n\nexport const MASKS_DIR = '.intlayer/mask';\n\nexport const REMOTE_DICTIONARIES_DIR = '.intlayer/remote_dictionary';\n\nexport const UNMERGED_DICTIONARIES_DIR = '.intlayer/unmerged_dictionary';\n\nexport const DYNAMIC_DICTIONARIES_DIR = '.intlayer/dynamic_dictionary';\n\nexport const FETCH_DICTIONARIES_DIR = '.intlayer/fetch_dictionary';\n\nexport const TYPES_DIR = '.intlayer/types';\n\nexport const MODULE_AUGMENTATION_DIR = '.intlayer/types';\n\nexport const I18NEXT_DICTIONARIES_DIR = 'i18next_resources';\n\nexport const REACT_INTL_MESSAGES_DIR = 'intl_messages';\n\nexport const CONFIG_DIR = '.intlayer/config';\n\nexport const CACHE_DIR = '.intlayer/cache';\n\nexport const WATCH = process.env.NODE_ENV === 'development';\n\nexport const FILL = true;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAa,kBAAkB;CAC7B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AACD,MAAa,iBAAiB;CAC5B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,cAAc,CAAC,IAAI;AAEhC,MAAa,WAAW;AAExB,MAAa,mBAAmB;AAEhC,MAAa,YAAY;AAEzB,MAAa,0BAA0B;AAEvC,MAAa,4BAA4B;AAEzC,MAAa,2BAA2B;AAExC,MAAa,yBAAyB;AAEtC,MAAa,YAAY;AAEzB,MAAa,0BAA0B;AAEvC,MAAa,2BAA2B;AAExC,MAAa,0BAA0B;AAEvC,MAAa,aAAa;AAE1B,MAAa,YAAY;AAEzB,MAAa,QAAQ;AAErB,MAAa,OAAO"}
@@ -1,3 +1,17 @@
1
+ import { __export } from "../_virtual/rolldown_runtime.mjs";
2
+
3
+ //#region src/defaultValues/editor.ts
4
+ var editor_exports = /* @__PURE__ */ __export({
5
+ APPLICATION_URL: () => APPLICATION_URL,
6
+ BACKEND_URL: () => BACKEND_URL,
7
+ CMS_URL: () => CMS_URL,
8
+ DICTIONARY_PRIORITY_STRATEGY: () => DICTIONARY_PRIORITY_STRATEGY,
9
+ EDITOR_URL: () => EDITOR_URL,
10
+ IS_ENABLED: () => IS_ENABLED,
11
+ LIVE_SYNC: () => LIVE_SYNC,
12
+ LIVE_SYNC_PORT: () => LIVE_SYNC_PORT,
13
+ PORT: () => PORT
14
+ });
1
15
  const APPLICATION_URL = "";
2
16
  const EDITOR_URL = "http://localhost:8000";
3
17
  const CMS_URL = "https://intlayer.org";
@@ -7,15 +21,7 @@ const IS_ENABLED = true;
7
21
  const LIVE_SYNC = true;
8
22
  const DICTIONARY_PRIORITY_STRATEGY = "local_first";
9
23
  const LIVE_SYNC_PORT = 4e3;
10
- export {
11
- APPLICATION_URL,
12
- BACKEND_URL,
13
- CMS_URL,
14
- DICTIONARY_PRIORITY_STRATEGY,
15
- EDITOR_URL,
16
- IS_ENABLED,
17
- LIVE_SYNC,
18
- LIVE_SYNC_PORT,
19
- PORT
20
- };
24
+
25
+ //#endregion
26
+ export { APPLICATION_URL, BACKEND_URL, CMS_URL, DICTIONARY_PRIORITY_STRATEGY, EDITOR_URL, IS_ENABLED, LIVE_SYNC, LIVE_SYNC_PORT, PORT, editor_exports };
21
27
  //# sourceMappingURL=editor.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/defaultValues/editor.ts"],"sourcesContent":["export const APPLICATION_URL = '';\nexport const EDITOR_URL = 'http://localhost:8000';\nexport const CMS_URL = 'https://intlayer.org';\nexport const PORT = 8000;\nexport const BACKEND_URL = 'https://back.intlayer.org';\nexport const IS_ENABLED = true;\nexport const LIVE_SYNC = true;\nexport const DICTIONARY_PRIORITY_STRATEGY = 'local_first';\nexport const LIVE_SYNC_PORT = 4000;\n"],"mappings":"AAAO,MAAM,kBAAkB;AACxB,MAAM,aAAa;AACnB,MAAM,UAAU;AAChB,MAAM,OAAO;AACb,MAAM,cAAc;AACpB,MAAM,aAAa;AACnB,MAAM,YAAY;AAClB,MAAM,+BAA+B;AACrC,MAAM,iBAAiB;","names":[]}
1
+ {"version":3,"file":"editor.mjs","names":[],"sources":["../../../src/defaultValues/editor.ts"],"sourcesContent":["export const APPLICATION_URL = '';\nexport const EDITOR_URL = 'http://localhost:8000';\nexport const CMS_URL = 'https://intlayer.org';\nexport const PORT = 8000;\nexport const BACKEND_URL = 'https://back.intlayer.org';\nexport const IS_ENABLED = true;\nexport const LIVE_SYNC = true;\nexport const DICTIONARY_PRIORITY_STRATEGY = 'local_first';\nexport const LIVE_SYNC_PORT = 4000;\n"],"mappings":";;;;;;;;;;;;;;AAAA,MAAa,kBAAkB;AAC/B,MAAa,aAAa;AAC1B,MAAa,UAAU;AACvB,MAAa,OAAO;AACpB,MAAa,cAAc;AAC3B,MAAa,aAAa;AAC1B,MAAa,YAAY;AACzB,MAAa,+BAA+B;AAC5C,MAAa,iBAAiB"}
@@ -0,0 +1,21 @@
1
+ import { __export } from "../_virtual/rolldown_runtime.mjs";
2
+ import { build_exports } from "./build.mjs";
3
+ import { content_exports } from "./content.mjs";
4
+ import { editor_exports } from "./editor.mjs";
5
+ import { internationalization_exports } from "./internationalization.mjs";
6
+ import { log_exports } from "./log.mjs";
7
+ import { routing_exports } from "./routing.mjs";
8
+
9
+ //#region src/defaultValues/index.ts
10
+ var defaultValues_exports = /* @__PURE__ */ __export({
11
+ Build: () => build_exports,
12
+ Content: () => content_exports,
13
+ Editor: () => editor_exports,
14
+ Internationalization: () => internationalization_exports,
15
+ Log: () => log_exports,
16
+ Routing: () => routing_exports
17
+ });
18
+
19
+ //#endregion
20
+ export { build_exports as Build, content_exports as Content, editor_exports as Editor, internationalization_exports as Internationalization, log_exports as Log, routing_exports as Routing, defaultValues_exports };
21
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../src/defaultValues/index.ts"],"sourcesContent":["export * as Build from './build';\nexport * as Content from './content';\nexport * as Editor from './editor';\nexport * as Internationalization from './internationalization';\nexport * as Log from './log';\nexport * as Routing from './routing';\n"],"mappings":""}
@@ -1,12 +1,18 @@
1
- import { Locales } from "../types/locales.mjs";
1
+ import { __export } from "../_virtual/rolldown_runtime.mjs";
2
+ import { Locales } from "@intlayer/types";
3
+
4
+ //#region src/defaultValues/internationalization.ts
5
+ var internationalization_exports = /* @__PURE__ */ __export({
6
+ DEFAULT_LOCALE: () => DEFAULT_LOCALE,
7
+ LOCALES: () => LOCALES,
8
+ REQUIRED_LOCALES: () => REQUIRED_LOCALES,
9
+ STRICT_MODE: () => STRICT_MODE
10
+ });
2
11
  const LOCALES = [Locales.ENGLISH];
3
12
  const REQUIRED_LOCALES = [];
4
13
  const DEFAULT_LOCALE = Locales.ENGLISH;
5
14
  const STRICT_MODE = "inclusive";
6
- export {
7
- DEFAULT_LOCALE,
8
- LOCALES,
9
- REQUIRED_LOCALES,
10
- STRICT_MODE
11
- };
15
+
16
+ //#endregion
17
+ export { DEFAULT_LOCALE, LOCALES, REQUIRED_LOCALES, STRICT_MODE, internationalization_exports };
12
18
  //# sourceMappingURL=internationalization.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/defaultValues/internationalization.ts"],"sourcesContent":["import type { StrictMode } from '../types/config';\nimport { Locales } from '../types/locales';\n\nexport const LOCALES: Locales[] = [Locales.ENGLISH];\n\nexport const REQUIRED_LOCALES: Locales[] = [];\n\nexport const DEFAULT_LOCALE: Locales = Locales.ENGLISH;\n\nexport const STRICT_MODE: StrictMode = 'inclusive';\n"],"mappings":"AACA,SAAS,eAAe;AAEjB,MAAM,UAAqB,CAAC,QAAQ,OAAO;AAE3C,MAAM,mBAA8B,CAAC;AAErC,MAAM,iBAA0B,QAAQ;AAExC,MAAM,cAA0B;","names":[]}
1
+ {"version":3,"file":"internationalization.mjs","names":["LOCALES: Locale[]","REQUIRED_LOCALES: Locale[]","DEFAULT_LOCALE: Locale","STRICT_MODE: StrictMode"],"sources":["../../../src/defaultValues/internationalization.ts"],"sourcesContent":["import { type Locale, Locales, type StrictMode } from '@intlayer/types';\n\nexport const LOCALES: Locale[] = [Locales.ENGLISH];\n\nexport const REQUIRED_LOCALES: Locale[] = [];\n\nexport const DEFAULT_LOCALE: Locale = Locales.ENGLISH;\n\nexport const STRICT_MODE: StrictMode = 'inclusive';\n"],"mappings":";;;;;;;;;;AAEA,MAAaA,UAAoB,CAAC,QAAQ,QAAQ;AAElD,MAAaC,mBAA6B,EAAE;AAE5C,MAAaC,iBAAyB,QAAQ;AAE9C,MAAaC,cAA0B"}
@@ -1,8 +1,14 @@
1
+ import { __export } from "../_virtual/rolldown_runtime.mjs";
1
2
  import { ANSIColors } from "../logger.mjs";
3
+
4
+ //#region src/defaultValues/log.ts
5
+ var log_exports = /* @__PURE__ */ __export({
6
+ MODE: () => MODE,
7
+ PREFIX: () => PREFIX
8
+ });
2
9
  const MODE = "default";
3
10
  const PREFIX = `${ANSIColors.GREY_DARK}[intlayer] ${ANSIColors.RESET}`;
4
- export {
5
- MODE,
6
- PREFIX
7
- };
11
+
12
+ //#endregion
13
+ export { MODE, PREFIX, log_exports };
8
14
  //# sourceMappingURL=log.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/defaultValues/log.ts"],"sourcesContent":["import { ANSIColors } from '../logger';\n\nexport const MODE = 'default';\n\nexport const PREFIX = `${ANSIColors.GREY_DARK}[intlayer] ${ANSIColors.RESET}`;\n"],"mappings":"AAAA,SAAS,kBAAkB;AAEpB,MAAM,OAAO;AAEb,MAAM,SAAS,GAAG,WAAW,SAAS,cAAc,WAAW,KAAK;","names":[]}
1
+ {"version":3,"file":"log.mjs","names":[],"sources":["../../../src/defaultValues/log.ts"],"sourcesContent":["import { ANSIColors } from '../logger';\n\nexport const MODE = 'default';\n\nexport const PREFIX = `${ANSIColors.GREY_DARK}[intlayer] ${ANSIColors.RESET}`;\n"],"mappings":";;;;;;;;AAEA,MAAa,OAAO;AAEpB,MAAa,SAAS,GAAG,WAAW,UAAU,aAAa,WAAW"}
@@ -0,0 +1,25 @@
1
+ import { __export } from "../_virtual/rolldown_runtime.mjs";
2
+
3
+ //#region src/defaultValues/routing.ts
4
+ var routing_exports = /* @__PURE__ */ __export({
5
+ BASE_PATH: () => BASE_PATH,
6
+ COOKIE_NAME: () => COOKIE_NAME,
7
+ DETECT_LOCALE_ON_PREFETCH_NO_PREFIX: () => DETECT_LOCALE_ON_PREFETCH_NO_PREFIX,
8
+ HEADER_NAME: () => HEADER_NAME,
9
+ LOCALE_STORAGE_NAME: () => LOCALE_STORAGE_NAME,
10
+ ROUTING_MODE: () => ROUTING_MODE,
11
+ SERVER_SET_COOKIE: () => SERVER_SET_COOKIE,
12
+ STORAGE: () => STORAGE
13
+ });
14
+ const HEADER_NAME = "x-intlayer-locale";
15
+ const COOKIE_NAME = "INTLAYER_LOCALE";
16
+ const LOCALE_STORAGE_NAME = "INTLAYER_LOCALE";
17
+ const BASE_PATH = "";
18
+ const SERVER_SET_COOKIE = "always";
19
+ const ROUTING_MODE = "prefix-no-default";
20
+ const DETECT_LOCALE_ON_PREFETCH_NO_PREFIX = false;
21
+ const STORAGE = "cookie";
22
+
23
+ //#endregion
24
+ export { BASE_PATH, COOKIE_NAME, DETECT_LOCALE_ON_PREFETCH_NO_PREFIX, HEADER_NAME, LOCALE_STORAGE_NAME, ROUTING_MODE, SERVER_SET_COOKIE, STORAGE, routing_exports };
25
+ //# sourceMappingURL=routing.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routing.mjs","names":[],"sources":["../../../src/defaultValues/routing.ts"],"sourcesContent":["export const HEADER_NAME = 'x-intlayer-locale';\n\nexport const COOKIE_NAME = 'INTLAYER_LOCALE';\nexport const LOCALE_STORAGE_NAME = 'INTLAYER_LOCALE';\n\nexport const BASE_PATH = '';\n\nexport const SERVER_SET_COOKIE = 'always';\n\nexport const ROUTING_MODE = 'prefix-no-default';\n\nexport const DETECT_LOCALE_ON_PREFETCH_NO_PREFIX = false;\n\nexport const STORAGE = 'cookie';\n"],"mappings":";;;;;;;;;;;;;AAAA,MAAa,cAAc;AAE3B,MAAa,cAAc;AAC3B,MAAa,sBAAsB;AAEnC,MAAa,YAAY;AAEzB,MAAa,oBAAoB;AAEjC,MAAa,eAAe;AAE5B,MAAa,sCAAsC;AAEnD,MAAa,UAAU"}
@@ -0,0 +1,94 @@
1
+ //#region src/extractErrorMessage.ts
2
+ const extractErrorMessage = (error) => {
3
+ const trimToSingleLine = (text) => text.split(/\r?\n/).map((s) => s.trim()).filter(Boolean)[0] ?? text.trim();
4
+ const looksLikeJson = (value) => {
5
+ const s = value.trim();
6
+ if (!s) return false;
7
+ const first = s[0];
8
+ return first === "{" || first === "[" || first === "\"";
9
+ };
10
+ const sanitizeUnexpectedTokenMessage = (text) => {
11
+ const t = text.trim();
12
+ if (/Unexpected token/i.test(t) && /not valid JSON/i.test(t)) {
13
+ const quoted = t.match(/"([^"]+)"/);
14
+ if (quoted?.[1]) return quoted[1];
15
+ const afterColon = t.split(":").slice(1).join(":").trim();
16
+ if (afterColon) return afterColon;
17
+ }
18
+ return t;
19
+ };
20
+ const pickFieldsFromObject = (value, seen) => {
21
+ if (!value || typeof value !== "object") return void 0;
22
+ if (seen.has(value)) return void 0;
23
+ seen.add(value);
24
+ const obj = value;
25
+ if (typeof obj.message === "string" && obj.message.trim()) return obj.message;
26
+ if (typeof obj.error_description === "string" && obj.error_description.trim()) return obj.error_description;
27
+ if (typeof obj.error === "string" && obj.error.trim()) return obj.error;
28
+ const title = typeof obj.title === "string" ? obj.title.trim() : "";
29
+ const code = typeof obj.code === "string" ? obj.code.trim() : "";
30
+ if (title && code) return `${title} (${code})`;
31
+ if (title) return title;
32
+ if (code) return code;
33
+ if (typeof obj.statusText === "string" && obj.statusText.trim()) return obj.statusText;
34
+ const response = obj.response;
35
+ if (response && typeof response === "object") {
36
+ const data$1 = response.data;
37
+ const fromData$1 = pickFieldsFromObject(data$1, seen);
38
+ if (fromData$1) return fromData$1;
39
+ }
40
+ const data = obj.data;
41
+ const fromData = pickFieldsFromObject(data, seen);
42
+ if (fromData) return fromData;
43
+ const cause = obj.cause;
44
+ const fromCause = pickFieldsFromObject(cause, seen) ?? (typeof cause?.message === "string" ? cause.message : void 0);
45
+ if (fromCause) return fromCause;
46
+ const errors = obj.errors;
47
+ if (Array.isArray(errors)) for (const item of errors) {
48
+ const fromItem = pickFieldsFromObject(item, seen);
49
+ if (fromItem) return fromItem;
50
+ if (typeof item?.message === "string") return item.message;
51
+ }
52
+ };
53
+ const tryParseJsonString = (maybeJson) => {
54
+ if (!looksLikeJson(maybeJson)) return void 0;
55
+ try {
56
+ const parsed = JSON.parse(maybeJson);
57
+ const picked = pickFieldsFromObject(parsed, /* @__PURE__ */ new Set());
58
+ if (picked) return picked;
59
+ if (typeof parsed === "string") return parsed;
60
+ return;
61
+ } catch {
62
+ return;
63
+ }
64
+ };
65
+ if (typeof error === "string") {
66
+ const cleaned = sanitizeUnexpectedTokenMessage(error);
67
+ return tryParseJsonString(cleaned) ?? trimToSingleLine(cleaned);
68
+ }
69
+ if (error && typeof error === "object") {
70
+ if (error instanceof Error) {
71
+ const cleaned = sanitizeUnexpectedTokenMessage(error.message);
72
+ const fromMessage = tryParseJsonString(cleaned);
73
+ if (fromMessage) return trimToSingleLine(fromMessage);
74
+ const fromCause = extractErrorMessage(error.cause);
75
+ if (fromCause && fromCause !== "An unknown error occurred") return trimToSingleLine(fromCause);
76
+ return trimToSingleLine(cleaned);
77
+ }
78
+ const fromObject = pickFieldsFromObject(error, /* @__PURE__ */ new Set());
79
+ if (fromObject) {
80
+ const cleaned = sanitizeUnexpectedTokenMessage(fromObject);
81
+ return tryParseJsonString(cleaned) ?? trimToSingleLine(cleaned);
82
+ }
83
+ try {
84
+ return trimToSingleLine(JSON.stringify(error));
85
+ } catch {
86
+ return trimToSingleLine(String(error));
87
+ }
88
+ }
89
+ return "An unknown error occurred";
90
+ };
91
+
92
+ //#endregion
93
+ export { extractErrorMessage };
94
+ //# sourceMappingURL=extractErrorMessage.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extractErrorMessage.mjs","names":["data","fromData"],"sources":["../../src/extractErrorMessage.ts"],"sourcesContent":["export const extractErrorMessage = (error: unknown): string => {\n const trimToSingleLine = (text: string): string =>\n text\n .split(/\\r?\\n/)\n .map((s) => s.trim())\n .filter(Boolean)[0] ?? text.trim();\n\n const looksLikeJson = (value: string): boolean => {\n const s = value.trim();\n if (!s) return false;\n const first = s[0];\n return first === '{' || first === '[' || first === '\"';\n };\n\n const sanitizeUnexpectedTokenMessage = (text: string): string => {\n // If the text mentions an invalid JSON parse, try to extract the meaningful part\n const t = text.trim();\n if (/Unexpected token/i.test(t) && /not valid JSON/i.test(t)) {\n const quoted = t.match(/\"([^\"]+)\"/);\n if (quoted?.[1]) return quoted[1];\n // Fallback: drop the leading parser error description\n const afterColon = t.split(':').slice(1).join(':').trim();\n if (afterColon) return afterColon;\n }\n return t;\n };\n\n const pickFieldsFromObject = (\n value: unknown,\n seen: Set<unknown>\n ): string | undefined => {\n if (!value || typeof value !== 'object') return undefined;\n if (seen.has(value)) return undefined;\n seen.add(value);\n\n const obj = value as Record<string, unknown>;\n\n // Check for message first (highest priority)\n if (typeof obj.message === 'string' && obj.message.trim()) {\n return obj.message;\n }\n\n // Check for error_description\n if (\n typeof obj.error_description === 'string' &&\n obj.error_description.trim()\n ) {\n return obj.error_description;\n }\n\n // Check for error\n if (typeof obj.error === 'string' && obj.error.trim()) {\n return obj.error;\n }\n\n // Handle title and code combination\n const title = typeof obj.title === 'string' ? obj.title.trim() : '';\n const code = typeof obj.code === 'string' ? obj.code.trim() : '';\n\n if (title && code) {\n return `${title} (${code})`;\n }\n\n if (title) {\n return title;\n }\n\n if (code) {\n return code;\n }\n\n // Check for statusText\n if (typeof obj.statusText === 'string' && obj.statusText.trim()) {\n return obj.statusText;\n }\n\n // Common nested structures (Axios/Fetch-like)\n const response = obj.response as Record<string, unknown> | undefined;\n if (response && typeof response === 'object') {\n const data = response.data as unknown;\n const fromData = pickFieldsFromObject(data, seen);\n if (fromData) return fromData;\n }\n\n const data = obj.data as unknown;\n const fromData = pickFieldsFromObject(data, seen);\n if (fromData) return fromData;\n\n // Nested cause chain\n const cause = (obj as { cause?: unknown }).cause;\n const fromCause =\n pickFieldsFromObject(cause, seen) ??\n (typeof (cause as any)?.message === 'string'\n ? (cause as any).message\n : undefined);\n if (fromCause) return fromCause;\n\n // Arrays of errors\n const errors = obj.errors as unknown;\n if (Array.isArray(errors)) {\n for (const item of errors) {\n const fromItem = pickFieldsFromObject(item, seen);\n if (fromItem) return fromItem;\n if (typeof (item as any)?.message === 'string')\n return (item as any).message;\n }\n }\n\n return undefined;\n };\n\n const tryParseJsonString = (maybeJson: string): string | undefined => {\n if (!looksLikeJson(maybeJson)) return undefined;\n try {\n const parsed = JSON.parse(maybeJson);\n const picked = pickFieldsFromObject(parsed, new Set());\n if (picked) return picked;\n if (typeof parsed === 'string') return parsed;\n return undefined;\n } catch {\n return undefined;\n }\n };\n\n if (typeof error === 'string') {\n const cleaned = sanitizeUnexpectedTokenMessage(error);\n return tryParseJsonString(cleaned) ?? trimToSingleLine(cleaned);\n }\n\n if (error && typeof error === 'object') {\n // Native Error instance\n if (error instanceof Error) {\n const cleaned = sanitizeUnexpectedTokenMessage(error.message);\n const fromMessage = tryParseJsonString(cleaned);\n if (fromMessage) return trimToSingleLine(fromMessage);\n // Dive into cause when present\n const fromCause = extractErrorMessage(error.cause as unknown);\n if (fromCause && fromCause !== 'An unknown error occurred')\n return trimToSingleLine(fromCause);\n return trimToSingleLine(cleaned);\n }\n\n // Generic object\n const seen = new Set<unknown>();\n const fromObject = pickFieldsFromObject(error, seen);\n if (fromObject) {\n const cleaned = sanitizeUnexpectedTokenMessage(fromObject);\n return tryParseJsonString(cleaned) ?? trimToSingleLine(cleaned);\n }\n\n try {\n const serialized = JSON.stringify(error);\n return trimToSingleLine(serialized);\n } catch {\n return trimToSingleLine(String(error));\n }\n }\n\n return 'An unknown error occurred';\n};\n"],"mappings":"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"}
@@ -1,65 +1,22 @@
1
+ import { getExtension } from "./utils/getExtension.mjs";
2
+ import { normalizePath } from "./utils/normalizePath.mjs";
1
3
  import { getAlias } from "./alias.mjs";
2
- import { bundleJSFile } from "./bundleJSFile.mjs";
3
- import {
4
- getConfiguration,
5
- getConfigurationAndFilePath
6
- } from "./configFile/getConfiguration.mjs";
7
- import { searchConfigurationFile } from "./configFile/searchConfigurationFile.mjs";
8
- import { getSandBoxContext } from "./getSandboxContext.mjs";
4
+ import { ANSIColors, clock, colon, colorize, colorizeKey, colorizeLocales, colorizeNumber, colorizePath, getAppLogger, logger, removeColor, spinnerFrames, v, x } from "./logger.mjs";
5
+ import { cache, clearCache, getCache, localCache, setCache } from "./utils/cache.mjs";
6
+ import { getPackageJsonPath } from "./utils/getPackageJsonPath.mjs";
7
+ import { ESMxCJSRequire, configESMxCJSRequire, isESModule } from "./utils/ESMxCJSHelpers.mjs";
8
+ import { buildConfigurationFields } from "./configFile/buildConfigurationFields.mjs";
9
9
  import { getEnvFilePath, loadEnvFile } from "./loadEnvFile.mjs";
10
- import { loadExternalFile } from "./loadExternalFile.mjs";
11
- import {
12
- ANSIColors,
13
- clock,
14
- colon,
15
- colorize,
16
- colorizeKey,
17
- colorizeLocales,
18
- colorizeNumber,
19
- colorizePath,
20
- getAppLogger,
21
- logger,
22
- removeColor,
23
- spinnerFrames,
24
- v,
25
- x
26
- } from "./logger.mjs";
10
+ import { parseFileContent } from "./loadExternalFile/parseFileContent.mjs";
11
+ import { bundleFile, bundleFileSync } from "./loadExternalFile/bundleFile.mjs";
12
+ import { loadExternalFile, loadExternalFileSync } from "./loadExternalFile/loadExternalFile.mjs";
13
+ import { searchConfigurationFile } from "./configFile/searchConfigurationFile.mjs";
14
+ import { getConfiguration, getConfigurationAndFilePath } from "./configFile/getConfiguration.mjs";
15
+ import { bundleJSFile } from "./bundleJSFile.mjs";
16
+ import { defaultValues_exports } from "./defaultValues/index.mjs";
17
+ import { extractErrorMessage } from "./utils/extractErrorMessage.mjs";
27
18
  import { retryManager } from "./retryManager.mjs";
28
- import { Locales } from "./types/locales.mjs";
29
19
  import { clearModuleCache } from "./utils/clearModuleCache.mjs";
30
- import { ESMxCJSRequire, isESModule } from "./utils/ESMxCJSHelpers.mjs";
31
- import { getExtension } from "./utils/getExtension.mjs";
32
- import { normalizePath } from "./utils/normalizePath.mjs";
33
- export {
34
- ANSIColors,
35
- ESMxCJSRequire,
36
- Locales,
37
- bundleJSFile,
38
- clearModuleCache,
39
- clock,
40
- colon,
41
- colorize,
42
- colorizeKey,
43
- colorizeLocales,
44
- colorizeNumber,
45
- colorizePath,
46
- getAlias,
47
- getAppLogger,
48
- getConfiguration,
49
- getConfigurationAndFilePath,
50
- getEnvFilePath,
51
- getExtension,
52
- getSandBoxContext,
53
- isESModule,
54
- loadEnvFile,
55
- loadExternalFile,
56
- logger,
57
- normalizePath,
58
- removeColor,
59
- retryManager,
60
- searchConfigurationFile,
61
- spinnerFrames,
62
- v,
63
- x
64
- };
65
- //# sourceMappingURL=index.mjs.map
20
+ import { logStack } from "./utils/logStack.mjs";
21
+
22
+ export { ANSIColors, defaultValues_exports as DefaultValues, ESMxCJSRequire, buildConfigurationFields, bundleFile, bundleFileSync, bundleJSFile, cache, clearCache, clearModuleCache, clock, colon, colorize, colorizeKey, colorizeLocales, colorizeNumber, colorizePath, configESMxCJSRequire, extractErrorMessage, getAlias, getAppLogger, getCache, getConfiguration, getConfigurationAndFilePath, getEnvFilePath, getExtension, getPackageJsonPath, isESModule, loadEnvFile, loadExternalFile, loadExternalFileSync, localCache, logStack, logger, normalizePath, parseFileContent, removeColor, retryManager, searchConfigurationFile, setCache, spinnerFrames, v, x };
@@ -1,22 +1,32 @@
1
+ import { existsSync } from "node:fs";
1
2
  import dotenv from "dotenv";
2
- import { existsSync } from "fs";
3
- const DEFAULT_ENV = process.env.NODE_ENV ?? "development";
4
- const getEnvFilePath = (env = process.env.NODE_ENV ?? "development", envFile) => {
5
- const envFiles = envFile ? [envFile] : [`.env.${env}.local`, `.env.${env}`, ".env.local", ".env"];
6
- return envFiles.find(existsSync);
3
+
4
+ //#region src/loadEnvFile.ts
5
+ const DEFAULT_ENV = "development";
6
+ const getEnvFilePath = (env = "development", envFile) => {
7
+ return (envFile ? [envFile] : [
8
+ `.env.${env}.local`,
9
+ `.env.${env}`,
10
+ ".env.local",
11
+ ".env"
12
+ ]).find(existsSync);
7
13
  };
8
14
  const loadEnvFile = (options) => {
9
- const env = options?.env ?? DEFAULT_ENV;
10
- const envFiles = options?.envFile ? [options.envFile] : [`.env.${env}.local`, `.env.${env}`, ".env.local", ".env"];
11
- const result = {};
12
- dotenv.config({
13
- path: envFiles,
14
- processEnv: result
15
- });
16
- return result;
17
- };
18
- export {
19
- getEnvFilePath,
20
- loadEnvFile
15
+ const env = options?.env ?? DEFAULT_ENV;
16
+ const envFiles = options?.envFile ? [options.envFile] : [
17
+ `.env.${env}.local`,
18
+ `.env.${env}`,
19
+ ".env.local",
20
+ ".env"
21
+ ];
22
+ const result = {};
23
+ dotenv.config({
24
+ path: envFiles,
25
+ processEnv: result
26
+ });
27
+ return result;
21
28
  };
29
+
30
+ //#endregion
31
+ export { getEnvFilePath, loadEnvFile };
22
32
  //# sourceMappingURL=loadEnvFile.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/loadEnvFile.ts"],"sourcesContent":["import dotenv from 'dotenv';\nimport { existsSync } from 'fs';\n\nconst DEFAULT_ENV = process.env.NODE_ENV ?? 'development';\n\nexport type LoadEnvFileOptions = {\n env?: string;\n envFile?: string;\n};\n\nexport const getEnvFilePath = (\n env: string = process.env.NODE_ENV ?? 'development',\n envFile?: string\n): string | undefined => {\n const envFiles = envFile\n ? [envFile]\n : [`.env.${env}.local`, `.env.${env}`, '.env.local', '.env'];\n\n return envFiles.find(existsSync); // Returns the first existing env file\n};\n\nexport const loadEnvFile = (options?: Partial<LoadEnvFileOptions>) => {\n const env = options?.env ?? DEFAULT_ENV;\n\n const envFiles = options?.envFile\n ? [options.envFile]\n : [`.env.${env}.local`, `.env.${env}`, '.env.local', '.env'];\n\n const result = {};\n\n dotenv.config({\n path: envFiles,\n processEnv: result,\n });\n\n return result; // Return the parsed env object\n};\n"],"mappings":"AAAA,OAAO,YAAY;AACnB,SAAS,kBAAkB;AAE3B,MAAM,cAAc,QAAQ,IAAI,YAAY;AAOrC,MAAM,iBAAiB,CAC5B,MAAc,QAAQ,IAAI,YAAY,eACtC,YACuB;AACvB,QAAM,WAAW,UACb,CAAC,OAAO,IACR,CAAC,QAAQ,GAAG,UAAU,QAAQ,GAAG,IAAI,cAAc,MAAM;AAE7D,SAAO,SAAS,KAAK,UAAU;AACjC;AAEO,MAAM,cAAc,CAAC,YAA0C;AACpE,QAAM,MAAM,SAAS,OAAO;AAE5B,QAAM,WAAW,SAAS,UACtB,CAAC,QAAQ,OAAO,IAChB,CAAC,QAAQ,GAAG,UAAU,QAAQ,GAAG,IAAI,cAAc,MAAM;AAE7D,QAAM,SAAS,CAAC;AAEhB,SAAO,OAAO;AAAA,IACZ,MAAM;AAAA,IACN,YAAY;AAAA,EACd,CAAC;AAED,SAAO;AACT;","names":[]}
1
+ {"version":3,"file":"loadEnvFile.mjs","names":[],"sources":["../../src/loadEnvFile.ts"],"sourcesContent":["import { existsSync } from 'node:fs';\nimport dotenv from 'dotenv';\n\nconst DEFAULT_ENV = process.env.NODE_ENV ?? 'development';\n\nexport type LoadEnvFileOptions = {\n env?: string;\n envFile?: string;\n};\n\nexport const getEnvFilePath = (\n env: string = process.env.NODE_ENV ?? 'development',\n envFile?: string\n): string | undefined => {\n const envFiles = envFile\n ? [envFile]\n : [`.env.${env}.local`, `.env.${env}`, '.env.local', '.env'];\n\n return envFiles.find(existsSync); // Returns the first existing env file\n};\n\nexport const loadEnvFile = (options?: Partial<LoadEnvFileOptions>) => {\n const env = options?.env ?? DEFAULT_ENV;\n\n const envFiles = options?.envFile\n ? [options.envFile]\n : [`.env.${env}.local`, `.env.${env}`, '.env.local', '.env'];\n\n const result = {};\n\n dotenv.config({\n path: envFiles,\n processEnv: result,\n });\n\n return result; // Return the parsed env object\n};\n"],"mappings":";;;;AAGA,MAAM;AAON,MAAa,kBACX,qBACA,YACuB;AAKvB,SAJiB,UACb,CAAC,QAAQ,GACT;EAAC,QAAQ,IAAI;EAAS,QAAQ;EAAO;EAAc;EAAO,EAE9C,KAAK,WAAW;;AAGlC,MAAa,eAAe,YAA0C;CACpE,MAAM,MAAM,SAAS,OAAO;CAE5B,MAAM,WAAW,SAAS,UACtB,CAAC,QAAQ,QAAQ,GACjB;EAAC,QAAQ,IAAI;EAAS,QAAQ;EAAO;EAAc;EAAO;CAE9D,MAAM,SAAS,EAAE;AAEjB,QAAO,OAAO;EACZ,MAAM;EACN,YAAY;EACb,CAAC;AAEF,QAAO"}
@@ -0,0 +1,68 @@
1
+ import { dirname, extname } from "node:path";
2
+ import { build, buildSync } from "esbuild";
3
+ import { pathToFileURL } from "node:url";
4
+
5
+ //#region src/loadExternalFile/bundleFile.ts
6
+ const getLoader = (extension) => {
7
+ switch (extension) {
8
+ case ".js": return "js";
9
+ case ".jsx": return "jsx";
10
+ case ".mjs": return "js";
11
+ case ".ts": return "ts";
12
+ case ".tsx": return "tsx";
13
+ case ".cjs": return "js";
14
+ case ".json": return "json";
15
+ case ".md": return "text";
16
+ case ".mdx": return "text";
17
+ default: return "js";
18
+ }
19
+ };
20
+ const getTransformationOptions = (filePath) => ({
21
+ loader: {
22
+ ".js": "js",
23
+ ".jsx": "jsx",
24
+ ".mjs": "js",
25
+ ".ts": "ts",
26
+ ".tsx": "tsx",
27
+ ".cjs": "js",
28
+ ".json": "json",
29
+ ".md": "text",
30
+ ".mdx": "text"
31
+ },
32
+ format: "cjs",
33
+ target: "node16",
34
+ platform: "neutral",
35
+ write: false,
36
+ packages: "bundle",
37
+ external: ["esbuild"],
38
+ bundle: true,
39
+ define: { "import.meta.url": JSON.stringify(pathToFileURL(filePath).href) }
40
+ });
41
+ const bundleFileSync = (code, filePath, options) => {
42
+ return buildSync({
43
+ stdin: {
44
+ contents: code,
45
+ loader: getLoader(extname(filePath)),
46
+ resolveDir: dirname(filePath),
47
+ sourcefile: filePath
48
+ },
49
+ ...getTransformationOptions(filePath),
50
+ ...options
51
+ }).outputFiles?.[0].text;
52
+ };
53
+ const bundleFile = async (code, filePath, options) => {
54
+ return (await build({
55
+ stdin: {
56
+ contents: code,
57
+ loader: getLoader(extname(filePath)),
58
+ resolveDir: dirname(filePath),
59
+ sourcefile: filePath
60
+ },
61
+ ...getTransformationOptions(filePath),
62
+ ...options
63
+ })).outputFiles?.[0].text;
64
+ };
65
+
66
+ //#endregion
67
+ export { bundleFile, bundleFileSync, getLoader };
68
+ //# sourceMappingURL=bundleFile.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundleFile.mjs","names":[],"sources":["../../../src/loadExternalFile/bundleFile.ts"],"sourcesContent":["import { dirname, extname } from 'node:path';\nimport { pathToFileURL } from 'node:url';\nimport {\n type BuildOptions,\n type BuildResult,\n build,\n buildSync,\n type Loader,\n type Plugin,\n} from 'esbuild';\n\nexport type ESBuildPlugin = Plugin;\n\nexport const getLoader = (extension: string): Loader => {\n switch (extension) {\n case '.js':\n return 'js';\n case '.jsx':\n return 'jsx';\n case '.mjs':\n return 'js';\n case '.ts':\n return 'ts';\n case '.tsx':\n return 'tsx';\n case '.cjs':\n return 'js';\n case '.json':\n return 'json';\n case '.md':\n return 'text';\n case '.mdx':\n return 'text';\n default:\n return 'js';\n }\n};\n\nconst getTransformationOptions = (filePath: string): BuildOptions => ({\n loader: {\n '.js': 'js',\n '.jsx': 'jsx',\n '.mjs': 'js',\n '.ts': 'ts',\n '.tsx': 'tsx',\n '.cjs': 'js',\n '.json': 'json',\n '.md': 'text',\n '.mdx': 'text',\n },\n format: 'cjs',\n target: 'node16',\n platform: 'neutral',\n write: false,\n packages: 'bundle',\n external: ['esbuild'],\n bundle: true,\n define: {\n 'import.meta.url': JSON.stringify(pathToFileURL(filePath).href),\n },\n});\n\nexport const bundleFileSync = (\n code: string,\n filePath: string,\n options?: BuildOptions\n): string | undefined => {\n const extension = extname(filePath);\n const loader = getLoader(extension);\n\n const moduleResult: BuildResult = buildSync({\n stdin: {\n contents: code,\n loader,\n resolveDir: dirname(filePath), // Add resolveDir to resolve imports relative to the file's location\n sourcefile: filePath, // Add sourcefile for better error messages\n },\n ...getTransformationOptions(filePath),\n ...options,\n });\n\n const moduleResultString = moduleResult.outputFiles?.[0].text;\n\n return moduleResultString;\n};\n\nexport const bundleFile = async (\n code: string,\n filePath: string,\n options?: BuildOptions\n): Promise<string | undefined> => {\n const extension = extname(filePath);\n const loader = getLoader(extension);\n\n const moduleResult: BuildResult = await build({\n stdin: {\n contents: code,\n loader,\n resolveDir: dirname(filePath), // Add resolveDir to resolve imports relative to the file's location\n sourcefile: filePath, // Add sourcefile for better error messages\n },\n ...getTransformationOptions(filePath),\n ...options,\n });\n\n const moduleResultString = moduleResult.outputFiles?.[0].text;\n\n return moduleResultString;\n};\n"],"mappings":";;;;;AAaA,MAAa,aAAa,cAA8B;AACtD,SAAQ,WAAR;EACE,KAAK,MACH,QAAO;EACT,KAAK,OACH,QAAO;EACT,KAAK,OACH,QAAO;EACT,KAAK,MACH,QAAO;EACT,KAAK,OACH,QAAO;EACT,KAAK,OACH,QAAO;EACT,KAAK,QACH,QAAO;EACT,KAAK,MACH,QAAO;EACT,KAAK,OACH,QAAO;EACT,QACE,QAAO;;;AAIb,MAAM,4BAA4B,cAAoC;CACpE,QAAQ;EACN,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,OAAO;EACP,QAAQ;EACT;CACD,QAAQ;CACR,QAAQ;CACR,UAAU;CACV,OAAO;CACP,UAAU;CACV,UAAU,CAAC,UAAU;CACrB,QAAQ;CACR,QAAQ,EACN,mBAAmB,KAAK,UAAU,cAAc,SAAS,CAAC,KAAK,EAChE;CACF;AAED,MAAa,kBACX,MACA,UACA,YACuB;AAiBvB,QAbkC,UAAU;EAC1C,OAAO;GACL,UAAU;GACV,QALW,UADG,QAAQ,SAAS,CACA;GAM/B,YAAY,QAAQ,SAAS;GAC7B,YAAY;GACb;EACD,GAAG,yBAAyB,SAAS;EACrC,GAAG;EACJ,CAAC,CAEsC,cAAc,GAAG;;AAK3D,MAAa,aAAa,OACxB,MACA,UACA,YACgC;AAiBhC,SAbkC,MAAM,MAAM;EAC5C,OAAO;GACL,UAAU;GACV,QALW,UADG,QAAQ,SAAS,CACA;GAM/B,YAAY,QAAQ,SAAS;GAC7B,YAAY;GACb;EACD,GAAG,yBAAyB,SAAS;EACrC,GAAG;EACJ,CAAC,EAEsC,cAAc,GAAG"}