@intlayer/config 6.1.6 → 7.0.0-canary.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 (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 +1 @@
1
- {"version":3,"sources":["../../../src/configFile/searchConfigurationFile.ts"],"sourcesContent":["import { existsSync } from 'fs';\nimport { resolve } from 'path';\nimport { logger } from '../logger';\n\nconst EXTENSION = ['ts', 'js', 'json', 'cjs', 'mjs', ''];\nconst CONFIGURATION_FILE_NAME_1 = 'intlayer.config';\nconst CONFIGURATION_FILE_NAME_2 = '.intlayerrc';\n\nconst intLayerConfigFiles = EXTENSION.filter(\n (extension) => extension !== ''\n).map((ext) => `${CONFIGURATION_FILE_NAME_1}.${ext}`);\n\nconst configurationFiles = [...intLayerConfigFiles, CONFIGURATION_FILE_NAME_2];\n\ntype SearchConfigurationFileResult = {\n configurationFilePath?: string;\n numCustomConfiguration: number;\n};\n\n/**\n * Search for the configuration file in the given path\n *\n * List of detected configuration files:\n * - intlayer.config.ts\n * - intlayer.config.js\n * - intlayer.config.json\n * - intlayer.config.cjs\n * - intlayer.config.mjs\n * - .intlayerrc\n */\nexport const searchConfigurationFile = (\n configFilePath: string = process.cwd()\n): SearchConfigurationFileResult => {\n let configurationFilePath: string | undefined = undefined;\n let numCustomConfiguration = 0;\n\n for (const fileName of configurationFiles) {\n try {\n const filePath = resolve(configFilePath, fileName);\n\n // Check if the file exists\n if (!existsSync(filePath)) {\n continue;\n } else {\n numCustomConfiguration += 1;\n\n if (!configurationFilePath) {\n configurationFilePath = filePath;\n }\n }\n } catch (error) {\n // Return \"Cannot use import statement outside a module\"\n logger(`${fileName}: ${error as string}`, { level: 'error' });\n\n continue;\n }\n }\n\n return { configurationFilePath, numCustomConfiguration };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAA2B;AAC3B,kBAAwB;AACxB,oBAAuB;AAEvB,MAAM,YAAY,CAAC,MAAM,MAAM,QAAQ,OAAO,OAAO,EAAE;AACvD,MAAM,4BAA4B;AAClC,MAAM,4BAA4B;AAElC,MAAM,sBAAsB,UAAU;AAAA,EACpC,CAAC,cAAc,cAAc;AAC/B,EAAE,IAAI,CAAC,QAAQ,GAAG,yBAAyB,IAAI,GAAG,EAAE;AAEpD,MAAM,qBAAqB,CAAC,GAAG,qBAAqB,yBAAyB;AAkBtE,MAAM,0BAA0B,CACrC,iBAAyB,QAAQ,IAAI,MACH;AAClC,MAAI,wBAA4C;AAChD,MAAI,yBAAyB;AAE7B,aAAW,YAAY,oBAAoB;AACzC,QAAI;AACF,YAAM,eAAW,qBAAQ,gBAAgB,QAAQ;AAGjD,UAAI,KAAC,sBAAW,QAAQ,GAAG;AACzB;AAAA,MACF,OAAO;AACL,kCAA0B;AAE1B,YAAI,CAAC,uBAAuB;AAC1B,kCAAwB;AAAA,QAC1B;AAAA,MACF;AAAA,IACF,SAAS,OAAO;AAEd,gCAAO,GAAG,QAAQ,KAAK,KAAe,IAAI,EAAE,OAAO,QAAQ,CAAC;AAE5D;AAAA,IACF;AAAA,EACF;AAEA,SAAO,EAAE,uBAAuB,uBAAuB;AACzD;","names":[]}
1
+ {"version":3,"file":"searchConfigurationFile.cjs","names":["configurationFilePath: string | undefined","getPackageJsonPath"],"sources":["../../../src/configFile/searchConfigurationFile.ts"],"sourcesContent":["import { existsSync } from 'node:fs';\nimport { resolve } from 'node:path';\nimport { logger } from '../logger';\nimport { getPackageJsonPath } from '../utils/getPackageJsonPath';\n\nconst EXTENSION = ['ts', 'js', 'json', 'cjs', 'mjs', ''];\nconst CONFIGURATION_FILE_NAME_1 = 'intlayer.config';\nconst CONFIGURATION_FILE_NAME_2 = '.intlayerrc';\n\nconst intLayerConfigFiles = EXTENSION.filter(\n (extension) => extension !== ''\n).map((ext) => `${CONFIGURATION_FILE_NAME_1}.${ext}`);\n\nconst configurationFiles = [...intLayerConfigFiles, CONFIGURATION_FILE_NAME_2];\n\ntype SearchConfigurationFileResult = {\n configurationFilePath?: string;\n numCustomConfiguration: number;\n};\n\n/**\n * Search for the configuration file in the given path\n *\n * List of detected configuration files:\n * - intlayer.config.ts\n * - intlayer.config.js\n * - intlayer.config.json\n * - intlayer.config.cjs\n * - intlayer.config.mjs\n * - .intlayerrc\n */\nexport const searchConfigurationFile = (\n startDir: string\n): SearchConfigurationFileResult => {\n let configurationFilePath: string | undefined;\n let numCustomConfiguration = 0;\n\n const { baseDir } = getPackageJsonPath(startDir);\n\n for (const fileName of configurationFiles) {\n try {\n const filePath = resolve(baseDir, fileName);\n\n // Check if the file exists\n if (!existsSync(filePath)) {\n } else {\n numCustomConfiguration += 1;\n\n if (!configurationFilePath) {\n configurationFilePath = filePath;\n }\n }\n } catch (error) {\n // Return \"Cannot use import statement outside a module\"\n logger(`${fileName}: ${error as string}`, { level: 'error' });\n }\n }\n\n return { configurationFilePath, numCustomConfiguration };\n};\n"],"mappings":";;;;;;;;;AAKA,MAAM,YAAY;CAAC;CAAM;CAAM;CAAQ;CAAO;CAAO;CAAG;AACxD,MAAM,4BAA4B;AAClC,MAAM,4BAA4B;AAMlC,MAAM,qBAAqB,CAAC,GAJA,UAAU,QACnC,cAAc,cAAc,GAC9B,CAAC,KAAK,QAAQ,GAAG,0BAA0B,GAAG,MAAM,EAED,0BAA0B;;;;;;;;;;;;AAkB9E,MAAa,2BACX,aACkC;CAClC,IAAIA;CACJ,IAAI,yBAAyB;CAE7B,MAAM,EAAE,YAAYC,oDAAmB,SAAS;AAEhD,MAAK,MAAM,YAAY,mBACrB,KAAI;EACF,MAAM,kCAAmB,SAAS,SAAS;AAG3C,MAAI,yBAAY,SAAS,EAAE,QACpB;AACL,6BAA0B;AAE1B,OAAI,CAAC,sBACH,yBAAwB;;UAGrB,OAAO;AAEd,wBAAO,GAAG,SAAS,IAAI,SAAmB,EAAE,OAAO,SAAS,CAAC;;AAIjE,QAAO;EAAE;EAAuB;EAAwB"}
@@ -1,41 +1,29 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var build_exports = {};
20
- __export(build_exports, {
21
- IMPORT_MODE: () => IMPORT_MODE,
22
- OPTIMIZE: () => OPTIMIZE,
23
- OUTPUT_FORMAT: () => OUTPUT_FORMAT,
24
- TRAVERSE_PATTERN: () => TRAVERSE_PATTERN
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+
3
+ //#region src/defaultValues/build.ts
4
+ var build_exports = /* @__PURE__ */ require_rolldown_runtime.__export({
5
+ CACHE: () => CACHE,
6
+ IMPORT_MODE: () => IMPORT_MODE,
7
+ OPTIMIZE: () => OPTIMIZE,
8
+ OUTPUT_FORMAT: () => OUTPUT_FORMAT,
9
+ TRAVERSE_PATTERN: () => TRAVERSE_PATTERN
25
10
  });
26
- module.exports = __toCommonJS(build_exports);
27
11
  const OPTIMIZE = process.env.NODE_ENV === "production";
28
12
  const IMPORT_MODE = "static";
29
- const TRAVERSE_PATTERN = [
30
- "**/*.{js,ts,mjs,cjs,jsx,tsx,mjx,cjx,vue,svelte,svte}",
31
- "!**/node_modules/**"
32
- ];
13
+ const TRAVERSE_PATTERN = ["**/*.{js,ts,mjs,cjs,jsx,tsx,mjx,cjx,vue,svelte,svte}", "!**/node_modules/**"];
33
14
  const OUTPUT_FORMAT = ["cjs", "esm"];
34
- // Annotate the CommonJS export names for ESM import in node:
35
- 0 && (module.exports = {
36
- IMPORT_MODE,
37
- OPTIMIZE,
38
- OUTPUT_FORMAT,
39
- TRAVERSE_PATTERN
15
+ const CACHE = true;
16
+
17
+ //#endregion
18
+ exports.CACHE = CACHE;
19
+ exports.IMPORT_MODE = IMPORT_MODE;
20
+ exports.OPTIMIZE = OPTIMIZE;
21
+ exports.OUTPUT_FORMAT = OUTPUT_FORMAT;
22
+ exports.TRAVERSE_PATTERN = TRAVERSE_PATTERN;
23
+ Object.defineProperty(exports, 'build_exports', {
24
+ enumerable: true,
25
+ get: function () {
26
+ return build_exports;
27
+ }
40
28
  });
41
29
  //# sourceMappingURL=build.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/defaultValues/build.ts"],"sourcesContent":["export const OPTIMIZE = process.env.NODE_ENV === 'production';\n\nexport const IMPORT_MODE = 'static';\n\nexport const TRAVERSE_PATTERN = [\n '**/*.{js,ts,mjs,cjs,jsx,tsx,mjx,cjx,vue,svelte,svte}',\n '!**/node_modules/**',\n];\n\nexport const OUTPUT_FORMAT: ('cjs' | 'esm')[] = ['cjs', 'esm'];\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,WAAW,QAAQ,IAAI,aAAa;AAE1C,MAAM,cAAc;AAEpB,MAAM,mBAAmB;AAAA,EAC9B;AAAA,EACA;AACF;AAEO,MAAM,gBAAmC,CAAC,OAAO,KAAK;","names":[]}
1
+ {"version":3,"file":"build.cjs","names":["OUTPUT_FORMAT: ('cjs' | 'esm')[]"],"sources":["../../../src/defaultValues/build.ts"],"sourcesContent":["export const OPTIMIZE = process.env.NODE_ENV === 'production';\n\nexport const IMPORT_MODE = 'static';\n\nexport const TRAVERSE_PATTERN = [\n '**/*.{js,ts,mjs,cjs,jsx,tsx,mjx,cjx,vue,svelte,svte}',\n '!**/node_modules/**',\n];\n\nexport const OUTPUT_FORMAT: ('cjs' | 'esm')[] = ['cjs', 'esm'];\n\nexport const CACHE = true;\n"],"mappings":";;;;;;;;;;AAAA,MAAa,WAAW,QAAQ,IAAI,aAAa;AAEjD,MAAa,cAAc;AAE3B,MAAa,mBAAmB,CAC9B,wDACA,sBACD;AAED,MAAaA,gBAAmC,CAAC,OAAO,MAAM;AAE9D,MAAa,QAAQ"}
@@ -1,59 +1,48 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var content_exports = {};
20
- __export(content_exports, {
21
- CONFIG_DIR: () => CONFIG_DIR,
22
- CONTENT_DIR: () => CONTENT_DIR,
23
- DICTIONARIES_DIR: () => DICTIONARIES_DIR,
24
- DYNAMIC_DICTIONARIES_DIR: () => DYNAMIC_DICTIONARIES_DIR,
25
- EXCLUDED_PATHS: () => EXCLUDED_PATHS,
26
- FETCH_DICTIONARIES_DIR: () => FETCH_DICTIONARIES_DIR,
27
- FILE_EXTENSIONS: () => FILE_EXTENSIONS,
28
- I18NEXT_DICTIONARIES_DIR: () => I18NEXT_DICTIONARIES_DIR,
29
- MAIN_DIR: () => MAIN_DIR,
30
- MASKS_DIR: () => MASKS_DIR,
31
- MODULE_AUGMENTATION_DIR: () => MODULE_AUGMENTATION_DIR,
32
- REACT_INTL_MESSAGES_DIR: () => REACT_INTL_MESSAGES_DIR,
33
- REMOTE_DICTIONARIES_DIR: () => REMOTE_DICTIONARIES_DIR,
34
- TYPES_DIR: () => TYPES_DIR,
35
- UNMERGED_DICTIONARIES_DIR: () => UNMERGED_DICTIONARIES_DIR,
36
- WATCH: () => WATCH
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+
3
+ //#region src/defaultValues/content.ts
4
+ var content_exports = /* @__PURE__ */ require_rolldown_runtime.__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
37
23
  });
38
- module.exports = __toCommonJS(content_exports);
39
24
  const FILE_EXTENSIONS = [
40
- ".content.ts",
41
- ".content.js",
42
- ".content.cjs",
43
- ".content.cjx",
44
- ".content.mjs",
45
- ".content.mjx",
46
- ".content.json",
47
- ".content.tsx",
48
- ".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"
49
34
  ];
50
35
  const EXCLUDED_PATHS = [
51
- "node_modules",
52
- ".intlayer",
53
- ".next",
54
- ".nuxt",
55
- ".expo",
56
- "dist"
36
+ "**/node_modules/**",
37
+ "**/dist/**",
38
+ "**/build/**",
39
+ "**/.intlayer/**",
40
+ "**/.next/**",
41
+ "**/.nuxt/**",
42
+ "**/.expo/**",
43
+ "**/.vercel/**",
44
+ "**/.turbo/**",
45
+ "**/.tanstack/**"
57
46
  ];
58
47
  const CONTENT_DIR = ["."];
59
48
  const MAIN_DIR = ".intlayer/main";
@@ -68,24 +57,33 @@ const MODULE_AUGMENTATION_DIR = ".intlayer/types";
68
57
  const I18NEXT_DICTIONARIES_DIR = "i18next_resources";
69
58
  const REACT_INTL_MESSAGES_DIR = "intl_messages";
70
59
  const CONFIG_DIR = ".intlayer/config";
60
+ const CACHE_DIR = ".intlayer/cache";
71
61
  const WATCH = process.env.NODE_ENV === "development";
72
- // Annotate the CommonJS export names for ESM import in node:
73
- 0 && (module.exports = {
74
- CONFIG_DIR,
75
- CONTENT_DIR,
76
- DICTIONARIES_DIR,
77
- DYNAMIC_DICTIONARIES_DIR,
78
- EXCLUDED_PATHS,
79
- FETCH_DICTIONARIES_DIR,
80
- FILE_EXTENSIONS,
81
- I18NEXT_DICTIONARIES_DIR,
82
- MAIN_DIR,
83
- MASKS_DIR,
84
- MODULE_AUGMENTATION_DIR,
85
- REACT_INTL_MESSAGES_DIR,
86
- REMOTE_DICTIONARIES_DIR,
87
- TYPES_DIR,
88
- UNMERGED_DICTIONARIES_DIR,
89
- WATCH
62
+ const FILL = true;
63
+
64
+ //#endregion
65
+ exports.CACHE_DIR = CACHE_DIR;
66
+ exports.CONFIG_DIR = CONFIG_DIR;
67
+ exports.CONTENT_DIR = CONTENT_DIR;
68
+ exports.DICTIONARIES_DIR = DICTIONARIES_DIR;
69
+ exports.DYNAMIC_DICTIONARIES_DIR = DYNAMIC_DICTIONARIES_DIR;
70
+ exports.EXCLUDED_PATHS = EXCLUDED_PATHS;
71
+ exports.FETCH_DICTIONARIES_DIR = FETCH_DICTIONARIES_DIR;
72
+ exports.FILE_EXTENSIONS = FILE_EXTENSIONS;
73
+ exports.FILL = FILL;
74
+ exports.I18NEXT_DICTIONARIES_DIR = I18NEXT_DICTIONARIES_DIR;
75
+ exports.MAIN_DIR = MAIN_DIR;
76
+ exports.MASKS_DIR = MASKS_DIR;
77
+ exports.MODULE_AUGMENTATION_DIR = MODULE_AUGMENTATION_DIR;
78
+ exports.REACT_INTL_MESSAGES_DIR = REACT_INTL_MESSAGES_DIR;
79
+ exports.REMOTE_DICTIONARIES_DIR = REMOTE_DICTIONARIES_DIR;
80
+ exports.TYPES_DIR = TYPES_DIR;
81
+ exports.UNMERGED_DICTIONARIES_DIR = UNMERGED_DICTIONARIES_DIR;
82
+ exports.WATCH = WATCH;
83
+ Object.defineProperty(exports, 'content_exports', {
84
+ enumerable: true,
85
+ get: function () {
86
+ return content_exports;
87
+ }
90
88
  });
91
89
  //# sourceMappingURL=content.cjs.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":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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.cjs","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,QAAQ,IAAI,aAAa;AAE9C,MAAa,OAAO"}
@@ -1,34 +1,17 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var editor_exports = {};
20
- __export(editor_exports, {
21
- APPLICATION_URL: () => APPLICATION_URL,
22
- BACKEND_URL: () => BACKEND_URL,
23
- CMS_URL: () => CMS_URL,
24
- DICTIONARY_PRIORITY_STRATEGY: () => DICTIONARY_PRIORITY_STRATEGY,
25
- EDITOR_URL: () => EDITOR_URL,
26
- IS_ENABLED: () => IS_ENABLED,
27
- LIVE_SYNC: () => LIVE_SYNC,
28
- LIVE_SYNC_PORT: () => LIVE_SYNC_PORT,
29
- PORT: () => PORT
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+
3
+ //#region src/defaultValues/editor.ts
4
+ var editor_exports = /* @__PURE__ */ require_rolldown_runtime.__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
30
14
  });
31
- module.exports = __toCommonJS(editor_exports);
32
15
  const APPLICATION_URL = "";
33
16
  const EDITOR_URL = "http://localhost:8000";
34
17
  const CMS_URL = "https://intlayer.org";
@@ -38,16 +21,21 @@ const IS_ENABLED = true;
38
21
  const LIVE_SYNC = true;
39
22
  const DICTIONARY_PRIORITY_STRATEGY = "local_first";
40
23
  const LIVE_SYNC_PORT = 4e3;
41
- // Annotate the CommonJS export names for ESM import in node:
42
- 0 && (module.exports = {
43
- APPLICATION_URL,
44
- BACKEND_URL,
45
- CMS_URL,
46
- DICTIONARY_PRIORITY_STRATEGY,
47
- EDITOR_URL,
48
- IS_ENABLED,
49
- LIVE_SYNC,
50
- LIVE_SYNC_PORT,
51
- PORT
24
+
25
+ //#endregion
26
+ exports.APPLICATION_URL = APPLICATION_URL;
27
+ exports.BACKEND_URL = BACKEND_URL;
28
+ exports.CMS_URL = CMS_URL;
29
+ exports.DICTIONARY_PRIORITY_STRATEGY = DICTIONARY_PRIORITY_STRATEGY;
30
+ exports.EDITOR_URL = EDITOR_URL;
31
+ exports.IS_ENABLED = IS_ENABLED;
32
+ exports.LIVE_SYNC = LIVE_SYNC;
33
+ exports.LIVE_SYNC_PORT = LIVE_SYNC_PORT;
34
+ exports.PORT = PORT;
35
+ Object.defineProperty(exports, 'editor_exports', {
36
+ enumerable: true,
37
+ get: function () {
38
+ return editor_exports;
39
+ }
52
40
  });
53
41
  //# sourceMappingURL=editor.cjs.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":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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.cjs","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,62 @@
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ const require_defaultValues_build = require('./build.cjs');
3
+ const require_defaultValues_content = require('./content.cjs');
4
+ const require_defaultValues_editor = require('./editor.cjs');
5
+ const require_defaultValues_internationalization = require('./internationalization.cjs');
6
+ const require_defaultValues_log = require('./log.cjs');
7
+ const require_defaultValues_routing = require('./routing.cjs');
8
+
9
+ //#region src/defaultValues/index.ts
10
+ var defaultValues_exports = /* @__PURE__ */ require_rolldown_runtime.__export({
11
+ Build: () => require_defaultValues_build.build_exports,
12
+ Content: () => require_defaultValues_content.content_exports,
13
+ Editor: () => require_defaultValues_editor.editor_exports,
14
+ Internationalization: () => require_defaultValues_internationalization.internationalization_exports,
15
+ Log: () => require_defaultValues_log.log_exports,
16
+ Routing: () => require_defaultValues_routing.routing_exports
17
+ });
18
+
19
+ //#endregion
20
+ Object.defineProperty(exports, 'Build', {
21
+ enumerable: true,
22
+ get: function () {
23
+ return require_defaultValues_build.build_exports;
24
+ }
25
+ });
26
+ Object.defineProperty(exports, 'Content', {
27
+ enumerable: true,
28
+ get: function () {
29
+ return require_defaultValues_content.content_exports;
30
+ }
31
+ });
32
+ Object.defineProperty(exports, 'Editor', {
33
+ enumerable: true,
34
+ get: function () {
35
+ return require_defaultValues_editor.editor_exports;
36
+ }
37
+ });
38
+ Object.defineProperty(exports, 'Internationalization', {
39
+ enumerable: true,
40
+ get: function () {
41
+ return require_defaultValues_internationalization.internationalization_exports;
42
+ }
43
+ });
44
+ Object.defineProperty(exports, 'Log', {
45
+ enumerable: true,
46
+ get: function () {
47
+ return require_defaultValues_log.log_exports;
48
+ }
49
+ });
50
+ Object.defineProperty(exports, 'Routing', {
51
+ enumerable: true,
52
+ get: function () {
53
+ return require_defaultValues_routing.routing_exports;
54
+ }
55
+ });
56
+ Object.defineProperty(exports, 'defaultValues_exports', {
57
+ enumerable: true,
58
+ get: function () {
59
+ return defaultValues_exports;
60
+ }
61
+ });
62
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","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,39 +1,28 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var internationalization_exports = {};
20
- __export(internationalization_exports, {
21
- DEFAULT_LOCALE: () => DEFAULT_LOCALE,
22
- LOCALES: () => LOCALES,
23
- REQUIRED_LOCALES: () => REQUIRED_LOCALES,
24
- STRICT_MODE: () => STRICT_MODE
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ let __intlayer_types = require("@intlayer/types");
3
+ __intlayer_types = require_rolldown_runtime.__toESM(__intlayer_types);
4
+
5
+ //#region src/defaultValues/internationalization.ts
6
+ var internationalization_exports = /* @__PURE__ */ require_rolldown_runtime.__export({
7
+ DEFAULT_LOCALE: () => DEFAULT_LOCALE,
8
+ LOCALES: () => LOCALES,
9
+ REQUIRED_LOCALES: () => REQUIRED_LOCALES,
10
+ STRICT_MODE: () => STRICT_MODE
25
11
  });
26
- module.exports = __toCommonJS(internationalization_exports);
27
- var import_locales = require('../types/locales.cjs');
28
- const LOCALES = [import_locales.Locales.ENGLISH];
12
+ const LOCALES = [__intlayer_types.Locales.ENGLISH];
29
13
  const REQUIRED_LOCALES = [];
30
- const DEFAULT_LOCALE = import_locales.Locales.ENGLISH;
14
+ const DEFAULT_LOCALE = __intlayer_types.Locales.ENGLISH;
31
15
  const STRICT_MODE = "inclusive";
32
- // Annotate the CommonJS export names for ESM import in node:
33
- 0 && (module.exports = {
34
- DEFAULT_LOCALE,
35
- LOCALES,
36
- REQUIRED_LOCALES,
37
- STRICT_MODE
16
+
17
+ //#endregion
18
+ exports.DEFAULT_LOCALE = DEFAULT_LOCALE;
19
+ exports.LOCALES = LOCALES;
20
+ exports.REQUIRED_LOCALES = REQUIRED_LOCALES;
21
+ exports.STRICT_MODE = STRICT_MODE;
22
+ Object.defineProperty(exports, 'internationalization_exports', {
23
+ enumerable: true,
24
+ get: function () {
25
+ return internationalization_exports;
26
+ }
38
27
  });
39
28
  //# sourceMappingURL=internationalization.cjs.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":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,qBAAwB;AAEjB,MAAM,UAAqB,CAAC,uBAAQ,OAAO;AAE3C,MAAM,mBAA8B,CAAC;AAErC,MAAM,iBAA0B,uBAAQ;AAExC,MAAM,cAA0B;","names":[]}
1
+ {"version":3,"file":"internationalization.cjs","names":["LOCALES: Locale[]","Locales","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,CAACC,yBAAQ,QAAQ;AAElD,MAAaC,mBAA6B,EAAE;AAE5C,MAAaC,iBAAyBF,yBAAQ;AAE9C,MAAaG,cAA0B"}
@@ -1,33 +1,21 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var log_exports = {};
20
- __export(log_exports, {
21
- MODE: () => MODE,
22
- PREFIX: () => PREFIX
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ const require_logger = require('../logger.cjs');
3
+
4
+ //#region src/defaultValues/log.ts
5
+ var log_exports = /* @__PURE__ */ require_rolldown_runtime.__export({
6
+ MODE: () => MODE,
7
+ PREFIX: () => PREFIX
23
8
  });
24
- module.exports = __toCommonJS(log_exports);
25
- var import_logger = require('../logger.cjs');
26
9
  const MODE = "default";
27
- const PREFIX = `${import_logger.ANSIColors.GREY_DARK}[intlayer] ${import_logger.ANSIColors.RESET}`;
28
- // Annotate the CommonJS export names for ESM import in node:
29
- 0 && (module.exports = {
30
- MODE,
31
- PREFIX
10
+ const PREFIX = `${require_logger.ANSIColors.GREY_DARK}[intlayer] ${require_logger.ANSIColors.RESET}`;
11
+
12
+ //#endregion
13
+ exports.MODE = MODE;
14
+ exports.PREFIX = PREFIX;
15
+ Object.defineProperty(exports, 'log_exports', {
16
+ enumerable: true,
17
+ get: function () {
18
+ return log_exports;
19
+ }
32
20
  });
33
21
  //# sourceMappingURL=log.cjs.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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA2B;AAEpB,MAAM,OAAO;AAEb,MAAM,SAAS,GAAG,yBAAW,SAAS,cAAc,yBAAW,KAAK;","names":[]}
1
+ {"version":3,"file":"log.cjs","names":["ANSIColors"],"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,GAAGA,0BAAW,UAAU,aAAaA,0BAAW"}
@@ -0,0 +1,38 @@
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+
3
+ //#region src/defaultValues/routing.ts
4
+ var routing_exports = /* @__PURE__ */ require_rolldown_runtime.__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
+ exports.BASE_PATH = BASE_PATH;
25
+ exports.COOKIE_NAME = COOKIE_NAME;
26
+ exports.DETECT_LOCALE_ON_PREFETCH_NO_PREFIX = DETECT_LOCALE_ON_PREFETCH_NO_PREFIX;
27
+ exports.HEADER_NAME = HEADER_NAME;
28
+ exports.LOCALE_STORAGE_NAME = LOCALE_STORAGE_NAME;
29
+ exports.ROUTING_MODE = ROUTING_MODE;
30
+ exports.SERVER_SET_COOKIE = SERVER_SET_COOKIE;
31
+ exports.STORAGE = STORAGE;
32
+ Object.defineProperty(exports, 'routing_exports', {
33
+ enumerable: true,
34
+ get: function () {
35
+ return routing_exports;
36
+ }
37
+ });
38
+ //# sourceMappingURL=routing.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routing.cjs","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"}