@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.
- package/dist/cjs/_virtual/rolldown_runtime.cjs +34 -0
- package/dist/cjs/alias.cjs +27 -100
- package/dist/cjs/alias.cjs.map +1 -1
- package/dist/cjs/built.cjs +7 -25
- package/dist/cjs/built.cjs.map +1 -1
- package/dist/cjs/bundleJSFile.cjs +30 -51
- package/dist/cjs/bundleJSFile.cjs.map +1 -1
- package/dist/cjs/client.cjs +19 -52
- package/dist/cjs/configFile/buildConfigurationFields.cjs +100 -657
- package/dist/cjs/configFile/buildConfigurationFields.cjs.map +1 -1
- package/dist/cjs/configFile/getConfiguration.cjs +60 -114
- package/dist/cjs/configFile/getConfiguration.cjs.map +1 -1
- package/dist/cjs/configFile/index.cjs +8 -25
- package/dist/cjs/configFile/loadConfigurationFile.cjs +22 -47
- package/dist/cjs/configFile/loadConfigurationFile.cjs.map +1 -1
- package/dist/cjs/configFile/searchConfigurationFile.cjs +49 -55
- package/dist/cjs/configFile/searchConfigurationFile.cjs.map +1 -1
- package/dist/cjs/defaultValues/build.cjs +23 -35
- package/dist/cjs/defaultValues/build.cjs.map +1 -1
- package/dist/cjs/defaultValues/content.cjs +68 -70
- package/dist/cjs/defaultValues/content.cjs.map +1 -1
- package/dist/cjs/defaultValues/editor.cjs +29 -41
- package/dist/cjs/defaultValues/editor.cjs.map +1 -1
- package/dist/cjs/defaultValues/index.cjs +62 -0
- package/dist/cjs/defaultValues/index.cjs.map +1 -0
- package/dist/cjs/defaultValues/internationalization.cjs +23 -34
- package/dist/cjs/defaultValues/internationalization.cjs.map +1 -1
- package/dist/cjs/defaultValues/log.cjs +17 -29
- package/dist/cjs/defaultValues/log.cjs.map +1 -1
- package/dist/cjs/defaultValues/routing.cjs +38 -0
- package/dist/cjs/defaultValues/routing.cjs.map +1 -0
- package/dist/cjs/extractErrorMessage.cjs +95 -0
- package/dist/cjs/extractErrorMessage.cjs.map +1 -0
- package/dist/cjs/index.cjs +67 -98
- package/dist/cjs/loadEnvFile.cjs +30 -51
- package/dist/cjs/loadEnvFile.cjs.map +1 -1
- package/dist/cjs/loadExternalFile/bundleFile.cjs +74 -0
- package/dist/cjs/loadExternalFile/bundleFile.cjs.map +1 -0
- package/dist/cjs/loadExternalFile/loadExternalFile.cjs +86 -0
- package/dist/cjs/loadExternalFile/loadExternalFile.cjs.map +1 -0
- package/dist/cjs/loadExternalFile/parseFileContent.cjs +67 -0
- package/dist/cjs/loadExternalFile/parseFileContent.cjs.map +1 -0
- package/dist/cjs/loadExternalFile/transpileTSToMJS.cjs +60 -0
- package/dist/cjs/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
- package/dist/cjs/logger.cjs +124 -152
- package/dist/cjs/logger.cjs.map +1 -1
- package/dist/cjs/package.cjs +12 -0
- package/dist/cjs/package.cjs.map +1 -0
- package/dist/cjs/retryManager.cjs +42 -49
- package/dist/cjs/retryManager.cjs.map +1 -1
- package/dist/cjs/utils/ESMxCJSHelpers.cjs +24 -33
- package/dist/cjs/utils/ESMxCJSHelpers.cjs.map +1 -1
- package/dist/cjs/utils/cache.cjs +426 -0
- package/dist/cjs/utils/cache.cjs.map +1 -0
- package/dist/cjs/utils/clearModuleCache.cjs +23 -46
- package/dist/cjs/utils/clearModuleCache.cjs.map +1 -1
- package/dist/cjs/utils/extractErrorMessage.cjs +95 -0
- package/dist/cjs/utils/extractErrorMessage.cjs.map +1 -0
- package/dist/cjs/utils/getExtension.cjs +12 -35
- package/dist/cjs/utils/getExtension.cjs.map +1 -1
- package/dist/cjs/utils/getPackageJsonPath.cjs +37 -0
- package/dist/cjs/utils/getPackageJsonPath.cjs.map +1 -0
- package/dist/cjs/utils/logStack.cjs +16 -0
- package/dist/cjs/utils/logStack.cjs.map +1 -0
- package/dist/cjs/utils/normalizePath.cjs +15 -27
- package/dist/cjs/utils/normalizePath.cjs.map +1 -1
- package/dist/esm/_virtual/rolldown_runtime.mjs +17 -0
- package/dist/esm/alias.mjs +23 -74
- package/dist/esm/alias.mjs.map +1 -1
- package/dist/esm/built.mjs +5 -3
- package/dist/esm/built.mjs.map +1 -1
- package/dist/esm/bundleJSFile.mjs +26 -25
- package/dist/esm/bundleJSFile.mjs.map +1 -1
- package/dist/esm/client.mjs +4 -31
- package/dist/esm/configFile/buildConfigurationFields.mjs +97 -674
- package/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -1
- package/dist/esm/configFile/getConfiguration.mjs +52 -75
- package/dist/esm/configFile/getConfiguration.mjs.map +1 -1
- package/dist/esm/configFile/index.mjs +5 -3
- package/dist/esm/configFile/loadConfigurationFile.mjs +22 -23
- package/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -1
- package/dist/esm/configFile/searchConfigurationFile.mjs +45 -30
- package/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -1
- package/dist/esm/defaultValues/build.mjs +16 -11
- package/dist/esm/defaultValues/build.mjs.map +1 -1
- package/dist/esm/defaultValues/content.mjs +48 -34
- package/dist/esm/defaultValues/content.mjs.map +1 -1
- package/dist/esm/defaultValues/editor.mjs +17 -11
- package/dist/esm/defaultValues/editor.mjs.map +1 -1
- package/dist/esm/defaultValues/index.mjs +21 -0
- package/dist/esm/defaultValues/index.mjs.map +1 -0
- package/dist/esm/defaultValues/internationalization.mjs +13 -7
- package/dist/esm/defaultValues/internationalization.mjs.map +1 -1
- package/dist/esm/defaultValues/log.mjs +10 -4
- package/dist/esm/defaultValues/log.mjs.map +1 -1
- package/dist/esm/defaultValues/routing.mjs +25 -0
- package/dist/esm/defaultValues/routing.mjs.map +1 -0
- package/dist/esm/extractErrorMessage.mjs +94 -0
- package/dist/esm/extractErrorMessage.mjs.map +1 -0
- package/dist/esm/index.mjs +18 -61
- package/dist/esm/loadEnvFile.mjs +27 -17
- package/dist/esm/loadEnvFile.mjs.map +1 -1
- package/dist/esm/loadExternalFile/bundleFile.mjs +68 -0
- package/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
- package/dist/esm/loadExternalFile/loadExternalFile.mjs +81 -0
- package/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
- package/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
- package/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
- package/dist/esm/loadExternalFile/transpileTSToMJS.mjs +55 -0
- package/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
- package/dist/esm/logger.mjs +110 -115
- package/dist/esm/logger.mjs.map +1 -1
- package/dist/esm/package.mjs +6 -0
- package/dist/esm/package.mjs.map +1 -0
- package/dist/esm/retryManager.mjs +40 -23
- package/dist/esm/retryManager.mjs.map +1 -1
- package/dist/esm/utils/ESMxCJSHelpers.mjs +20 -6
- package/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -1
- package/dist/esm/utils/cache.mjs +414 -0
- package/dist/esm/utils/cache.mjs.map +1 -0
- package/dist/esm/utils/clearModuleCache.mjs +22 -21
- package/dist/esm/utils/clearModuleCache.mjs.map +1 -1
- package/dist/esm/utils/extractErrorMessage.mjs +94 -0
- package/dist/esm/utils/extractErrorMessage.mjs.map +1 -0
- package/dist/esm/utils/getExtension.mjs +11 -11
- package/dist/esm/utils/getExtension.mjs.map +1 -1
- package/dist/esm/utils/getPackageJsonPath.mjs +33 -0
- package/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
- package/dist/esm/utils/logStack.mjs +16 -0
- package/dist/esm/utils/logStack.mjs.map +1 -0
- package/dist/esm/utils/normalizePath.mjs +14 -3
- package/dist/esm/utils/normalizePath.mjs.map +1 -1
- package/dist/types/alias.d.ts +20 -12
- package/dist/types/alias.d.ts.map +1 -1
- package/dist/types/built.d.ts +7 -6
- package/dist/types/built.d.ts.map +1 -1
- package/dist/types/bundleJSFile.d.ts +97 -93
- package/dist/types/bundleJSFile.d.ts.map +1 -1
- package/dist/types/client.d.ts +3 -5
- package/dist/types/configFile/buildConfigurationFields.d.ts +7 -2
- package/dist/types/configFile/buildConfigurationFields.d.ts.map +1 -1
- package/dist/types/configFile/getConfiguration.d.ts +19 -15
- package/dist/types/configFile/getConfiguration.d.ts.map +1 -1
- package/dist/types/configFile/index.d.ts +4 -3
- package/dist/types/configFile/loadConfigurationFile.d.ts +8 -3
- package/dist/types/configFile/loadConfigurationFile.d.ts.map +1 -1
- package/dist/types/configFile/searchConfigurationFile.d.ts +6 -4
- package/dist/types/configFile/searchConfigurationFile.d.ts.map +1 -1
- package/dist/types/defaultValues/build.d.ts +10 -4
- package/dist/types/defaultValues/build.d.ts.map +1 -1
- package/dist/types/defaultValues/content.d.ts +23 -16
- package/dist/types/defaultValues/content.d.ts.map +1 -1
- package/dist/types/defaultValues/editor.d.ts +14 -9
- package/dist/types/defaultValues/editor.d.ts.map +1 -1
- package/dist/types/defaultValues/index.d.ts +14 -0
- package/dist/types/defaultValues/index.d.ts.map +1 -0
- package/dist/types/defaultValues/internationalization.d.ts +12 -6
- package/dist/types/defaultValues/internationalization.d.ts.map +1 -1
- package/dist/types/defaultValues/log.d.ts +7 -2
- package/dist/types/defaultValues/log.d.ts.map +1 -1
- package/dist/types/defaultValues/routing.d.ts +14 -0
- package/dist/types/defaultValues/routing.d.ts.map +1 -0
- package/dist/types/extractErrorMessage.d.ts +5 -0
- package/dist/types/extractErrorMessage.d.ts.map +1 -0
- package/dist/types/index.d.ts +21 -17
- package/dist/types/loadEnvFile.d.ts +8 -5
- package/dist/types/loadEnvFile.d.ts.map +1 -1
- package/dist/types/loadExternalFile/bundleFile.d.ts +10 -0
- package/dist/types/loadExternalFile/bundleFile.d.ts.map +1 -0
- package/dist/types/loadExternalFile/loadExternalFile.d.ts +25 -0
- package/dist/types/loadExternalFile/loadExternalFile.d.ts.map +1 -0
- package/dist/types/loadExternalFile/parseFileContent.d.ts +29 -0
- package/dist/types/loadExternalFile/parseFileContent.d.ts.map +1 -0
- package/dist/types/loadExternalFile/transpileTSToMJS.d.ts +9 -0
- package/dist/types/loadExternalFile/transpileTSToMJS.d.ts.map +1 -0
- package/dist/types/logger.d.ts +41 -37
- package/dist/types/logger.d.ts.map +1 -1
- package/dist/types/retryManager.d.ts +26 -8
- package/dist/types/retryManager.d.ts.map +1 -1
- package/dist/types/utils/ESMxCJSHelpers.d.ts +16 -2
- package/dist/types/utils/ESMxCJSHelpers.d.ts.map +1 -1
- package/dist/types/utils/cache.d.ts +50 -0
- package/dist/types/utils/cache.d.ts.map +1 -0
- package/dist/types/utils/clearModuleCache.d.ts +4 -1
- package/dist/types/utils/clearModuleCache.d.ts.map +1 -1
- package/dist/types/utils/extractErrorMessage.d.ts +5 -0
- package/dist/types/utils/extractErrorMessage.d.ts.map +1 -0
- package/dist/types/utils/getExtension.d.ts +6 -2
- package/dist/types/utils/getExtension.d.ts.map +1 -1
- package/dist/types/utils/getPackageJsonPath.d.ts +10 -0
- package/dist/types/utils/getPackageJsonPath.d.ts.map +1 -0
- package/dist/types/utils/logStack.d.ts +7 -0
- package/dist/types/utils/logStack.d.ts.map +1 -0
- package/dist/types/utils/normalizePath.d.ts +4 -1
- package/dist/types/utils/normalizePath.d.ts.map +1 -1
- package/package.json +40 -35
- package/LICENSE +0 -202
- package/dist/cjs/client.cjs.map +0 -1
- package/dist/cjs/configFile/index.cjs.map +0 -1
- package/dist/cjs/defaultValues/middleware.cjs +0 -47
- package/dist/cjs/defaultValues/middleware.cjs.map +0 -1
- package/dist/cjs/getSandboxContext.cjs +0 -64
- package/dist/cjs/getSandboxContext.cjs.map +0 -1
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/cjs/loadExternalFile.cjs +0 -105
- package/dist/cjs/loadExternalFile.cjs.map +0 -1
- package/dist/cjs/types/config.cjs +0 -17
- package/dist/cjs/types/config.cjs.map +0 -1
- package/dist/cjs/types/locales.cjs +0 -310
- package/dist/cjs/types/locales.cjs.map +0 -1
- package/dist/esm/client.mjs.map +0 -1
- package/dist/esm/configFile/index.mjs.map +0 -1
- package/dist/esm/defaultValues/middleware.mjs +0 -17
- package/dist/esm/defaultValues/middleware.mjs.map +0 -1
- package/dist/esm/getSandboxContext.mjs +0 -40
- package/dist/esm/getSandboxContext.mjs.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/loadExternalFile.mjs +0 -81
- package/dist/esm/loadExternalFile.mjs.map +0 -1
- package/dist/esm/types/config.mjs +0 -1
- package/dist/esm/types/config.mjs.map +0 -1
- package/dist/esm/types/locales.mjs +0 -286
- package/dist/esm/types/locales.mjs.map +0 -1
- package/dist/types/client.d.ts.map +0 -1
- package/dist/types/configFile/index.d.ts.map +0 -1
- package/dist/types/defaultValues/middleware.d.ts +0 -8
- package/dist/types/defaultValues/middleware.d.ts.map +0 -1
- package/dist/types/getSandboxContext.d.ts +0 -4
- package/dist/types/getSandboxContext.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/loadExternalFile.d.ts +0 -8
- package/dist/types/loadExternalFile.d.ts.map +0 -1
- package/dist/types/types/config.d.ts +0 -659
- package/dist/types/types/config.d.ts.map +0 -1
- package/dist/types/types/locales.d.ts +0 -564
- 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
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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":"
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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 '
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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":"
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
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 =
|
|
14
|
+
const DEFAULT_LOCALE = __intlayer_types.Locales.ENGLISH;
|
|
31
15
|
const STRICT_MODE = "inclusive";
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
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 = `${
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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":"
|
|
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"}
|