@intlayer/config 8.4.2 → 8.4.4
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/chunk-Bmb41Sf3.cjs +1 -0
- package/dist/cjs/client.cjs +1 -1
- package/dist/cjs/colors.cjs +2 -0
- package/dist/cjs/colors.cjs.map +1 -0
- package/dist/cjs/configFile/buildConfigurationFields.cjs +1 -1
- package/dist/cjs/configFile/configurationSchema.cjs +1 -1
- package/dist/cjs/configFile/getConfiguration.cjs +1 -1
- package/dist/cjs/configFile/searchConfigurationFile.cjs +1 -1
- package/dist/cjs/defaultValues/build.cjs +1 -1
- package/dist/cjs/defaultValues/build.cjs.map +1 -1
- package/dist/cjs/defaultValues/compiler.cjs +1 -1
- package/dist/cjs/defaultValues/content.cjs +1 -1
- package/dist/cjs/defaultValues/content.cjs.map +1 -1
- package/dist/cjs/defaultValues/dictionary.cjs +1 -1
- package/dist/cjs/defaultValues/dictionary.cjs.map +1 -1
- package/dist/cjs/defaultValues/editor.cjs +1 -1
- package/dist/cjs/defaultValues/editor.cjs.map +1 -1
- package/dist/cjs/defaultValues/index.cjs +1 -2
- package/dist/cjs/defaultValues/internationalization.cjs +1 -1
- package/dist/cjs/defaultValues/internationalization.cjs.map +1 -1
- package/dist/cjs/defaultValues/log.cjs +1 -1
- package/dist/cjs/defaultValues/log.cjs.map +1 -1
- package/dist/cjs/defaultValues/routing.cjs +1 -1
- package/dist/cjs/defaultValues/routing.cjs.map +1 -1
- package/dist/cjs/defaultValues/system.cjs +1 -1
- package/dist/cjs/defaultValues/system.cjs.map +1 -1
- package/dist/cjs/loadEnvFile.cjs +1 -1
- package/dist/cjs/loadExternalFile/bundleFile.cjs +1 -1
- package/dist/cjs/loadExternalFile/bundleJSFile.cjs +1 -1
- package/dist/cjs/loadExternalFile/loadExternalFile.cjs +1 -1
- package/dist/cjs/loadExternalFile/loadExternalFile.cjs.map +1 -1
- package/dist/cjs/loadExternalFile/parseFileContent.cjs +1 -1
- package/dist/cjs/loadExternalFile/transpileTSToCJS.cjs +1 -1
- package/dist/cjs/logger.cjs +1 -1
- package/dist/cjs/logger.cjs.map +1 -1
- package/dist/cjs/node.cjs +1 -1
- package/dist/cjs/utils/ESMxCJSHelpers.cjs +1 -1
- package/dist/cjs/utils/alias.cjs +1 -1
- package/dist/cjs/utils/cacheDisk.cjs +1 -1
- package/dist/cjs/utils/cacheMemory.cjs +1 -1
- package/dist/cjs/utils/getPackageJsonPath.cjs +1 -1
- package/dist/cjs/utils/logStack.cjs +1 -1
- package/dist/cjs/utils/logStack.cjs.map +1 -1
- package/dist/cjs/utils/retryManager.cjs +1 -1
- package/dist/esm/ESMxCJSHelpers-BAuqwNXV.mjs +2 -0
- package/dist/esm/ESMxCJSHelpers-BAuqwNXV.mjs.map +1 -0
- package/dist/esm/client.mjs +1 -1
- package/dist/esm/colors.mjs +2 -0
- package/dist/esm/colors.mjs.map +1 -0
- package/dist/esm/configFile/buildConfigurationFields.mjs +1 -1
- package/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -1
- package/dist/esm/configFile/loadConfigurationFile.mjs +1 -1
- package/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -1
- package/dist/esm/configFile/searchConfigurationFile.mjs +1 -1
- package/dist/esm/defaultValues/build.mjs +1 -1
- package/dist/esm/defaultValues/build.mjs.map +1 -1
- package/dist/esm/defaultValues/compiler.mjs +1 -1
- package/dist/esm/defaultValues/compiler.mjs.map +1 -1
- package/dist/esm/defaultValues/content.mjs +1 -1
- package/dist/esm/defaultValues/content.mjs.map +1 -1
- package/dist/esm/defaultValues/dictionary.mjs +1 -1
- package/dist/esm/defaultValues/dictionary.mjs.map +1 -1
- package/dist/esm/defaultValues/editor.mjs +1 -1
- package/dist/esm/defaultValues/editor.mjs.map +1 -1
- package/dist/esm/defaultValues/index.mjs +1 -2
- package/dist/esm/defaultValues/internationalization.mjs +1 -1
- package/dist/esm/defaultValues/internationalization.mjs.map +1 -1
- package/dist/esm/defaultValues/log.mjs +1 -1
- package/dist/esm/defaultValues/log.mjs.map +1 -1
- package/dist/esm/defaultValues/routing.mjs +1 -1
- package/dist/esm/defaultValues/routing.mjs.map +1 -1
- package/dist/esm/defaultValues/system.mjs +1 -1
- package/dist/esm/defaultValues/system.mjs.map +1 -1
- package/dist/esm/loadExternalFile/loadExternalFile.mjs +1 -1
- package/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -1
- package/dist/esm/loadExternalFile/parseFileContent.mjs +1 -1
- package/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -1
- package/dist/esm/logger.mjs +1 -1
- package/dist/esm/logger.mjs.map +1 -1
- package/dist/esm/node.mjs +1 -1
- package/dist/esm/utils/ESMxCJSHelpers.mjs +1 -2
- package/dist/esm/utils/clearModuleCache.mjs +1 -1
- package/dist/esm/utils/clearModuleCache.mjs.map +1 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/logStack.mjs +1 -1
- package/dist/esm/utils/logStack.mjs.map +1 -1
- package/dist/esm/utils/retryManager.mjs +1 -1
- package/dist/types/{camelCaseToKebabCase-91HKVxf2.d.ts → camelCaseToKebabCase-BV_lLJHR.d.ts} +1 -1
- package/dist/types/camelCaseToKebabCase-BV_lLJHR.d.ts.map +1 -0
- package/dist/types/{camelCaseToSentence-LKuKkD3M.d.ts → camelCaseToSentence-DAbbkwe6.d.ts} +1 -1
- package/dist/types/camelCaseToSentence-DAbbkwe6.d.ts.map +1 -0
- package/dist/types/client.d.ts +5 -6
- package/dist/types/colors-BbZeGWYU.d.ts +20 -0
- package/dist/types/colors-BbZeGWYU.d.ts.map +1 -0
- package/dist/types/colors.d.ts +2 -0
- package/dist/types/configFile/configurationSchema.d.ts +2 -2
- package/dist/types/configFile/getConfiguration.d.ts +2 -2
- package/dist/types/configFile/loadConfigurationFile.d.ts +1 -1
- package/dist/types/defaultValues/build.d.ts +10 -2
- package/dist/types/defaultValues/build.d.ts.map +1 -0
- package/dist/types/defaultValues/compiler.d.ts +8 -2
- package/dist/types/defaultValues/compiler.d.ts.map +1 -0
- package/dist/types/defaultValues/content.d.ts +11 -2
- package/dist/types/defaultValues/content.d.ts.map +1 -0
- package/dist/types/defaultValues/dictionary.d.ts +10 -2
- package/dist/types/defaultValues/dictionary.d.ts.map +1 -0
- package/dist/types/defaultValues/editor.d.ts +13 -2
- package/dist/types/defaultValues/editor.d.ts.map +1 -0
- package/dist/types/defaultValues/index.d.ts +10 -17
- package/dist/types/defaultValues/internationalization.d.ts +11 -2
- package/dist/types/defaultValues/internationalization.d.ts.map +1 -0
- package/dist/types/defaultValues/log.d.ts +6 -2
- package/dist/types/defaultValues/log.d.ts.map +1 -0
- package/dist/types/defaultValues/routing.d.ts +13 -2
- package/dist/types/defaultValues/routing.d.ts.map +1 -0
- package/dist/types/defaultValues/system.d.ts +16 -2
- package/dist/types/defaultValues/system.d.ts.map +1 -0
- package/dist/types/{kebabCaseToCamelCase-BR4yfbUC.d.ts → kebabCaseToCamelCase-h9PkNVuO.d.ts} +1 -1
- package/dist/types/kebabCaseToCamelCase-h9PkNVuO.d.ts.map +1 -0
- package/dist/types/{loadEnvFile-Dk80Swa9.d.ts → loadEnvFile-BiTBX4fe.d.ts} +1 -1
- package/dist/types/{loadEnvFile-Dk80Swa9.d.ts.map → loadEnvFile-BiTBX4fe.d.ts.map} +1 -1
- package/dist/types/loadEnvFile.d.ts +1 -1
- package/dist/types/loadExternalFile/index.d.ts +3 -3
- package/dist/types/loadExternalFile/loadExternalFile.d.ts +1 -1
- package/dist/types/loadExternalFile/parseFileContent.d.ts +1 -1
- package/dist/types/loadExternalFile/transpileTSToCJS.d.ts +1 -1
- package/dist/types/{loadExternalFile-CJIPA_rP.d.ts → loadExternalFile-DmM_TGcA.d.ts} +3 -3
- package/dist/types/{loadExternalFile-CJIPA_rP.d.ts.map → loadExternalFile-DmM_TGcA.d.ts.map} +1 -1
- package/dist/types/logger.d.ts +8 -22
- package/dist/types/logger.d.ts.map +1 -1
- package/dist/types/node.d.ts +1 -2
- package/dist/types/{parseFileContent-CriV5Luv.d.ts → parseFileContent--o_QlW5j.d.ts} +2 -2
- package/dist/types/{parseFileContent-CriV5Luv.d.ts.map → parseFileContent--o_QlW5j.d.ts.map} +1 -1
- package/dist/types/{toLowerCamelCase-CfYCuChC.d.ts → toLowerCamelCase-DUdT00I1.d.ts} +1 -1
- package/dist/types/toLowerCamelCase-DUdT00I1.d.ts.map +1 -0
- package/dist/types/{transpileTSToCJS-DxeK5fRY.d.ts → transpileTSToCJS-OifpV3zk.d.ts} +1 -1
- package/dist/types/{transpileTSToCJS-DxeK5fRY.d.ts.map → transpileTSToCJS-OifpV3zk.d.ts.map} +1 -1
- package/dist/types/utils/index.d.ts +4 -4
- package/dist/types/utils/logStack.d.ts.map +1 -1
- package/dist/types/utils/stringFormatter/camelCaseToKebabCase.d.ts +1 -1
- package/dist/types/utils/stringFormatter/camelCaseToSentence.d.ts +1 -1
- package/dist/types/utils/stringFormatter/index.d.ts +4 -4
- package/dist/types/utils/stringFormatter/kebabCaseToCamelCase.d.ts +1 -1
- package/dist/types/utils/stringFormatter/toLowerCamelCase.d.ts +1 -1
- package/package.json +18 -2
- package/dist/cjs/chunk-D-qHiVGv.cjs +0 -1
- package/dist/cjs/defaultValues/index.cjs.map +0 -1
- package/dist/esm/chunk-DXQkyQJp.mjs +0 -1
- package/dist/esm/defaultValues/index.mjs.map +0 -1
- package/dist/esm/utils/ESMxCJSHelpers.mjs.map +0 -1
- package/dist/types/build-BGWWxAP2.d.ts +0 -12
- package/dist/types/build-BGWWxAP2.d.ts.map +0 -1
- package/dist/types/camelCaseToKebabCase-91HKVxf2.d.ts.map +0 -1
- package/dist/types/camelCaseToSentence-LKuKkD3M.d.ts.map +0 -1
- package/dist/types/compiler-BKn6YjPf.d.ts +0 -10
- package/dist/types/compiler-BKn6YjPf.d.ts.map +0 -1
- package/dist/types/content-CEqOvNcs.d.ts +0 -13
- package/dist/types/content-CEqOvNcs.d.ts.map +0 -1
- package/dist/types/defaultValues/index.d.ts.map +0 -1
- package/dist/types/dictionary-n4jBpRU_.d.ts +0 -13
- package/dist/types/dictionary-n4jBpRU_.d.ts.map +0 -1
- package/dist/types/editor-Bhh3J_sb.d.ts +0 -15
- package/dist/types/editor-Bhh3J_sb.d.ts.map +0 -1
- package/dist/types/internationalization-0cqNGQ-O.d.ts +0 -14
- package/dist/types/internationalization-0cqNGQ-O.d.ts.map +0 -1
- package/dist/types/kebabCaseToCamelCase-BR4yfbUC.d.ts.map +0 -1
- package/dist/types/log-C5gSYuVB.d.ts +0 -8
- package/dist/types/log-C5gSYuVB.d.ts.map +0 -1
- package/dist/types/routing-DlVdUHPZ.d.ts +0 -16
- package/dist/types/routing-DlVdUHPZ.d.ts.map +0 -1
- package/dist/types/system-BFYob741.d.ts +0 -18
- package/dist/types/system-BFYob741.d.ts.map +0 -1
- package/dist/types/toLowerCamelCase-CfYCuChC.d.ts.map +0 -1
package/dist/esm/utils/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{n as e,r as t,t as n}from"../ESMxCJSHelpers-BAuqwNXV.mjs";import{getExtension as r}from"./getExtension.mjs";import{normalizePath as i}from"./normalizePath.mjs";import{getAlias as a}from"./alias.mjs";import{cacheMemory as o,clearAllCache as s,clearCache as c,computeKeyId as l,getCache as u,setCache as d,stableStringify as f}from"./cacheMemory.mjs";import{cacheDisk as p}from"./cacheDisk.mjs";import{getPackageJsonPath as m}from"./getPackageJsonPath.mjs";import{clearModuleCache as h}from"./clearModuleCache.mjs";import{compareVersions as g}from"./compareVersions.mjs";import{extractErrorMessage as _}from"./extractErrorMessage.mjs";import{logStack as v}from"./logStack.mjs";import{parseFilePathPattern as y,parseStringPattern as b}from"./parseFilePathPattern.mjs";import{retryManager as x}from"./retryManager.mjs";import{camelCaseToKebabCase as S}from"./stringFormatter/camelCaseToKebabCase.mjs";import{camelCaseToSentence as C}from"./stringFormatter/camelCaseToSentence.mjs";import{kebabCaseToCamelCase as w}from"./stringFormatter/kebabCaseToCamelCase.mjs";import{toLowerCamelCase as T}from"./stringFormatter/toLowerCamelCase.mjs";export{p as cacheDisk,o as cacheMemory,S as camelCaseToKebabCase,C as camelCaseToSentence,s as clearAllCache,c as clearCache,h as clearModuleCache,g as compareVersions,l as computeKeyId,n as configESMxCJSRequire,_ as extractErrorMessage,a as getAlias,u as getCache,r as getExtension,m as getPackageJsonPath,e as getProjectRequire,t as isESModule,w as kebabCaseToCamelCase,v as logStack,i as normalizePath,y as parseFilePathPattern,b as parseStringPattern,x as retryManager,d as setCache,f as stableStringify,T as toLowerCamelCase};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{BLUE as e,YELLOW as t}from"../colors.mjs";import{colorize as n}from"../logger.mjs";const r=(r,i={limit:50})=>{Error.stackTraceLimit=i.limit;try{throw Error(`test`)}catch(i){console.log(n(r,t)),console.log(n(i.stack??``,e))}};export{r as logStack};
|
|
2
2
|
//# sourceMappingURL=logStack.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logStack.mjs","names":[],"sources":["../../../src/utils/logStack.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"logStack.mjs","names":["ANSIColors.YELLOW","ANSIColors.BLUE"],"sources":["../../../src/utils/logStack.ts"],"sourcesContent":["import * as ANSIColors from '../colors';\nimport { colorize } from '../logger';\n\nexport const logStack = (\n message: string,\n options: { limit: number } = { limit: 50 }\n) => {\n Error.stackTraceLimit = options.limit;\n\n try {\n throw new Error('test');\n } catch (error) {\n console.log(colorize(message, ANSIColors.YELLOW));\n console.log(colorize((error as Error).stack ?? '', ANSIColors.BLUE));\n }\n};\n"],"mappings":"0FAGA,MAAa,GACX,EACA,EAA6B,CAAE,MAAO,GAAI,GACvC,CACH,MAAM,gBAAkB,EAAQ,MAEhC,GAAI,CACF,MAAU,MAAM,OAAO,OAChB,EAAO,CACd,QAAQ,IAAI,EAAS,EAASA,EAAkB,CAAC,CACjD,QAAQ,IAAI,EAAU,EAAgB,OAAS,GAAIC,EAAgB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{extractErrorMessage as e}from"./extractErrorMessage.mjs";import{logger as t}from"../logger.mjs";const n=(n,{maxRetry:r=3,delay:i=0,onError:a,onMaxTryReached:o}={})=>async(...s)=>{let c;for(let l=0;l<=r;l++)try{return await n(...s)}catch(n){c=n;let s=e(n);if(l>=r){if(o)return o?.({error:s,attempt:l,maxRetry:r}),null;throw n}a?a?.({error:s,attempt:l,maxRetry:r}):t(s,{level:`error`}),i>0&&await new Promise(e=>setTimeout(e,i))}throw c??Error(`Unexpected: retry loop completed without result`)};export{n as retryManager};
|
|
2
2
|
//# sourceMappingURL=retryManager.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"camelCaseToKebabCase-BV_lLJHR.d.ts","names":[],"sources":["../../src/utils/stringFormatter/camelCaseToKebabCase.ts"],"mappings":";;AAIA;;;cAAa,oBAAA,GAAwB,GAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"camelCaseToSentence-DAbbkwe6.d.ts","names":[],"sources":["../../src/utils/stringFormatter/camelCaseToSentence.ts"],"mappings":";;AAIA;;;cAAa,mBAAA,GAAuB,KAAA"}
|
package/dist/types/client.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { t as index_d_exports } from "./defaultValues/index.js";
|
|
2
1
|
import { extractErrorMessage } from "./utils/extractErrorMessage.js";
|
|
3
2
|
import { logStack } from "./utils/logStack.js";
|
|
4
3
|
import { normalizePath } from "./utils/normalizePath.js";
|
|
5
|
-
import { t as camelCaseToKebabCase } from "./camelCaseToKebabCase-
|
|
6
|
-
import { t as camelCaseToSentence } from "./camelCaseToSentence-
|
|
7
|
-
import { t as kebabCaseToCamelCase } from "./kebabCaseToCamelCase-
|
|
8
|
-
import { t as toLowerCamelCase } from "./toLowerCamelCase-
|
|
9
|
-
export {
|
|
4
|
+
import { t as camelCaseToKebabCase } from "./camelCaseToKebabCase-BV_lLJHR.js";
|
|
5
|
+
import { t as camelCaseToSentence } from "./camelCaseToSentence-DAbbkwe6.js";
|
|
6
|
+
import { t as kebabCaseToCamelCase } from "./kebabCaseToCamelCase-h9PkNVuO.js";
|
|
7
|
+
import { t as toLowerCamelCase } from "./toLowerCamelCase-DUdT00I1.js";
|
|
8
|
+
export { camelCaseToKebabCase, camelCaseToSentence, extractErrorMessage, kebabCaseToCamelCase, logStack, normalizePath, toLowerCamelCase };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare namespace colors_d_exports {
|
|
2
|
+
export { BEIGE, BLUE, BOLD, CYAN, GREEN, GREY, GREY_DARK, GREY_LIGHT, MAGENTA, ORANGE, RED, RESET, WHITE, YELLOW };
|
|
3
|
+
}
|
|
4
|
+
declare const RESET: "\u001B[0m";
|
|
5
|
+
declare const GREY: "\u001B[90m";
|
|
6
|
+
declare const GREY_DARK: "\u001B[38;5;239m";
|
|
7
|
+
declare const GREY_LIGHT: "\u001B[38;5;252m";
|
|
8
|
+
declare const BLUE: "\u001B[34m";
|
|
9
|
+
declare const RED: "\u001B[31m";
|
|
10
|
+
declare const GREEN: "\u001B[32m";
|
|
11
|
+
declare const YELLOW: "\u001B[38;5;226m";
|
|
12
|
+
declare const MAGENTA: "\u001B[35m";
|
|
13
|
+
declare const BEIGE: "\u001B[38;5;3m";
|
|
14
|
+
declare const ORANGE: "\u001B[38;5;208m";
|
|
15
|
+
declare const CYAN: "\u001B[36m";
|
|
16
|
+
declare const WHITE: "\u001B[37m";
|
|
17
|
+
declare const BOLD: "\u001B[1m";
|
|
18
|
+
//#endregion
|
|
19
|
+
export { GREEN as a, GREY_LIGHT as c, RED as d, RESET as f, colors_d_exports as h, CYAN as i, MAGENTA as l, YELLOW as m, BLUE as n, GREY as o, WHITE as p, BOLD as r, GREY_DARK as s, BEIGE as t, ORANGE as u };
|
|
20
|
+
//# sourceMappingURL=colors-BbZeGWYU.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors-BbZeGWYU.d.ts","names":[],"sources":["../../src/colors.ts"],"mappings":";;;cAAa,KAAA;AAAA,cACA,IAAA;AAAA,cACA,SAAA;AAAA,cACA,UAAA;AAAA,cACA,IAAA;AAAA,cACA,GAAA;AAAA,cACA,KAAA;AAAA,cACA,MAAA;AAAA,cACA,OAAA;AAAA,cACA,KAAA;AAAA,cACA,MAAA;AAAA,cACA,IAAA;AAAA,cACA,KAAA;AAAA,cACA,IAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as GREEN, c as GREY_LIGHT, d as RED, f as RESET, i as CYAN, l as MAGENTA, m as YELLOW, n as BLUE, o as GREY, p as WHITE, r as BOLD, s as GREY_DARK, t as BEIGE, u as ORANGE } from "./colors-BbZeGWYU.js";
|
|
2
|
+
export { BEIGE, BLUE, BOLD, CYAN, GREEN, GREY, GREY_DARK, GREY_LIGHT, MAGENTA, ORANGE, RED, RESET, WHITE, YELLOW };
|
|
@@ -271,8 +271,8 @@ declare const buildSchema: z.ZodObject<{
|
|
|
271
271
|
}>>;
|
|
272
272
|
traversePattern: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
273
273
|
outputFormat: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
274
|
-
esm: "esm";
|
|
275
274
|
cjs: "cjs";
|
|
275
|
+
esm: "esm";
|
|
276
276
|
}>>>;
|
|
277
277
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
278
278
|
require: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -465,8 +465,8 @@ declare const intlayerConfigSchema: z.ZodObject<{
|
|
|
465
465
|
}>>;
|
|
466
466
|
traversePattern: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
467
467
|
outputFormat: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
468
|
-
esm: "esm";
|
|
469
468
|
cjs: "cjs";
|
|
469
|
+
esm: "esm";
|
|
470
470
|
}>>>;
|
|
471
471
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
472
472
|
require: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as SandBoxContextOptions } from "../parseFileContent
|
|
2
|
-
import { t as LoadExternalFileOptions } from "../loadExternalFile-
|
|
1
|
+
import { t as SandBoxContextOptions } from "../parseFileContent--o_QlW5j.js";
|
|
2
|
+
import { t as LoadExternalFileOptions } from "../loadExternalFile-DmM_TGcA.js";
|
|
3
3
|
import { CustomIntlayerConfig, IntlayerConfig, LogFunctions } from "@intlayer/types/config";
|
|
4
4
|
|
|
5
5
|
//#region src/configFile/getConfiguration.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as LoadExternalFileOptions } from "../loadExternalFile-
|
|
1
|
+
import { t as LoadExternalFileOptions } from "../loadExternalFile-DmM_TGcA.js";
|
|
2
2
|
import { CustomIntlayerConfig } from "@intlayer/types/config";
|
|
3
3
|
|
|
4
4
|
//#region src/configFile/loadConfigurationFile.d.ts
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region src/defaultValues/build.d.ts
|
|
2
|
+
declare const BUILD_MODE = "auto";
|
|
3
|
+
declare const OPTIMIZE: any;
|
|
4
|
+
declare const TRAVERSE_PATTERN: string[];
|
|
5
|
+
declare const OUTPUT_FORMAT: ('cjs' | 'esm')[];
|
|
6
|
+
declare const CACHE = true;
|
|
7
|
+
declare const TYPE_CHECKING = false;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { BUILD_MODE, CACHE, OPTIMIZE, OUTPUT_FORMAT, TRAVERSE_PATTERN, TYPE_CHECKING };
|
|
10
|
+
//# sourceMappingURL=build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.ts","names":[],"sources":["../../../src/defaultValues/build.ts"],"mappings":";cAAa,UAAA;AAAA,cAEA,QAAA;AAAA,cAEA,gBAAA;AAAA,cAsBA,aAAA;AAAA,cAEA,KAAA;AAAA,cAEA,aAAA"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region src/defaultValues/compiler.d.ts
|
|
2
|
+
declare const COMPILER_ENABLED = true;
|
|
3
|
+
declare const COMPILER_DICTIONARY_KEY_PREFIX = "";
|
|
4
|
+
declare const COMPILER_NO_METADATA = false;
|
|
5
|
+
declare const COMPILER_SAVE_COMPONENTS = false;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { COMPILER_DICTIONARY_KEY_PREFIX, COMPILER_ENABLED, COMPILER_NO_METADATA, COMPILER_SAVE_COMPONENTS };
|
|
8
|
+
//# sourceMappingURL=compiler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compiler.d.ts","names":[],"sources":["../../../src/defaultValues/compiler.ts"],"mappings":";cAAa,gBAAA;AAAA,cAEA,8BAAA;AAAA,cAEA,oBAAA;AAAA,cAEA,wBAAA"}
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region src/defaultValues/content.d.ts
|
|
2
|
+
declare const FILE_EXTENSIONS: string[];
|
|
3
|
+
declare const EXCLUDED_PATHS: string[];
|
|
4
|
+
declare const CONTENT_DIR: string[];
|
|
5
|
+
declare const CODE_DIR: string[];
|
|
6
|
+
declare const I18NEXT_DICTIONARIES_DIR = "i18next_resources";
|
|
7
|
+
declare const REACT_INTL_MESSAGES_DIR = "intl_messages";
|
|
8
|
+
declare const WATCH = true;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { CODE_DIR, CONTENT_DIR, EXCLUDED_PATHS, FILE_EXTENSIONS, I18NEXT_DICTIONARIES_DIR, REACT_INTL_MESSAGES_DIR, WATCH };
|
|
11
|
+
//# sourceMappingURL=content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.d.ts","names":[],"sources":["../../../src/defaultValues/content.ts"],"mappings":";cAAa,eAAA;AAAA,cAYA,cAAA;AAAA,cAaA,WAAA;AAAA,cAEA,QAAA;AAAA,cAEA,wBAAA;AAAA,cAEA,uBAAA;AAAA,cAEA,KAAA"}
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { DictionaryLocation } from "@intlayer/types/dictionary";
|
|
2
|
+
|
|
3
|
+
//#region src/defaultValues/dictionary.d.ts
|
|
4
|
+
declare const FILL = true;
|
|
5
|
+
declare const LOCATION: DictionaryLocation;
|
|
6
|
+
declare const CONTENT_AUTO_TRANSFORMATION = false;
|
|
7
|
+
declare const IMPORT_MODE = "static";
|
|
8
|
+
//#endregion
|
|
9
|
+
export { CONTENT_AUTO_TRANSFORMATION, FILL, IMPORT_MODE, LOCATION };
|
|
10
|
+
//# sourceMappingURL=dictionary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dictionary.d.ts","names":[],"sources":["../../../src/defaultValues/dictionary.ts"],"mappings":";;;cAEa,IAAA;AAAA,cACA,QAAA,EAAU,kBAAA;AAAA,cACV,2BAAA;AAAA,cACA,WAAA"}
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region src/defaultValues/editor.d.ts
|
|
2
|
+
declare const APPLICATION_URL: any;
|
|
3
|
+
declare const EDITOR_URL = "http://localhost:8000";
|
|
4
|
+
declare const CMS_URL = "https://app.intlayer.org";
|
|
5
|
+
declare const BACKEND_URL = "https://back.intlayer.org";
|
|
6
|
+
declare const PORT = 8000;
|
|
7
|
+
declare const IS_ENABLED = false;
|
|
8
|
+
declare const LIVE_SYNC = true;
|
|
9
|
+
declare const DICTIONARY_PRIORITY_STRATEGY = "local_first";
|
|
10
|
+
declare const LIVE_SYNC_PORT = 4000;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { APPLICATION_URL, BACKEND_URL, CMS_URL, DICTIONARY_PRIORITY_STRATEGY, EDITOR_URL, IS_ENABLED, LIVE_SYNC, LIVE_SYNC_PORT, PORT };
|
|
13
|
+
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.d.ts","names":[],"sources":["../../../src/defaultValues/editor.ts"],"mappings":";cAAa,eAAA;AAAA,cACA,UAAA;AAAA,cACA,OAAA;AAAA,cACA,WAAA;AAAA,cACA,IAAA;AAAA,cACA,UAAA;AAAA,cACA,SAAA;AAAA,cACA,4BAAA;AAAA,cACA,cAAA"}
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
//#region src/defaultValues/index.d.ts
|
|
12
|
-
declare namespace index_d_exports {
|
|
13
|
-
export { build_d_exports as Build, compiler_d_exports as Compiler, content_d_exports as Content, dictionary_d_exports as Dictionary, editor_d_exports as Editor, internationalization_d_exports as Internationalization, log_d_exports as Log, routing_d_exports as Routing, system_d_exports as System };
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { build_d_exports as Build, compiler_d_exports as Compiler, content_d_exports as Content, dictionary_d_exports as Dictionary, editor_d_exports as Editor, internationalization_d_exports as Internationalization, log_d_exports as Log, routing_d_exports as Routing, system_d_exports as System, index_d_exports as t };
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
import { BUILD_MODE, CACHE, OPTIMIZE, OUTPUT_FORMAT, TRAVERSE_PATTERN, TYPE_CHECKING } from "./build.js";
|
|
2
|
+
import { COMPILER_DICTIONARY_KEY_PREFIX, COMPILER_ENABLED, COMPILER_NO_METADATA, COMPILER_SAVE_COMPONENTS } from "./compiler.js";
|
|
3
|
+
import { CODE_DIR, CONTENT_DIR, EXCLUDED_PATHS, FILE_EXTENSIONS, I18NEXT_DICTIONARIES_DIR, REACT_INTL_MESSAGES_DIR, WATCH } from "./content.js";
|
|
4
|
+
import { CONTENT_AUTO_TRANSFORMATION, FILL, IMPORT_MODE, LOCATION } from "./dictionary.js";
|
|
5
|
+
import { APPLICATION_URL, BACKEND_URL, CMS_URL, DICTIONARY_PRIORITY_STRATEGY, EDITOR_URL, IS_ENABLED, LIVE_SYNC, LIVE_SYNC_PORT, PORT } from "./editor.js";
|
|
6
|
+
import { DEFAULT_LOCALE, LOCALES, REQUIRED_LOCALES, STRICT_MODE } from "./internationalization.js";
|
|
7
|
+
import { MODE, PREFIX } from "./log.js";
|
|
8
|
+
import { BASE_PATH, COOKIE_NAME, HEADER_NAME, LOCALE_STORAGE_NAME, ROUTING_MODE, SERVER_SET_COOKIE, STORAGE } from "./routing.js";
|
|
9
|
+
import { CACHE_DIR, CONFIG_DIR, DICTIONARIES_DIR, DYNAMIC_DICTIONARIES_DIR, FETCH_DICTIONARIES_DIR, MAIN_DIR, MASKS_DIR, MODULE_AUGMENTATION_DIR, REMOTE_DICTIONARIES_DIR, TEMP_DIR, TYPES_DIR, UNMERGED_DICTIONARIES_DIR } from "./system.js";
|
|
10
|
+
export { APPLICATION_URL, BACKEND_URL, BASE_PATH, BUILD_MODE, CACHE, CACHE_DIR, CMS_URL, CODE_DIR, COMPILER_DICTIONARY_KEY_PREFIX, COMPILER_ENABLED, COMPILER_NO_METADATA, COMPILER_SAVE_COMPONENTS, CONFIG_DIR, CONTENT_AUTO_TRANSFORMATION, CONTENT_DIR, COOKIE_NAME, DEFAULT_LOCALE, DICTIONARIES_DIR, DICTIONARY_PRIORITY_STRATEGY, DYNAMIC_DICTIONARIES_DIR, EDITOR_URL, EXCLUDED_PATHS, FETCH_DICTIONARIES_DIR, FILE_EXTENSIONS, FILL, HEADER_NAME, I18NEXT_DICTIONARIES_DIR, IMPORT_MODE, IS_ENABLED, LIVE_SYNC, LIVE_SYNC_PORT, LOCALES, LOCALE_STORAGE_NAME, LOCATION, MAIN_DIR, MASKS_DIR, MODE, MODULE_AUGMENTATION_DIR, OPTIMIZE, OUTPUT_FORMAT, PORT, PREFIX, REACT_INTL_MESSAGES_DIR, REMOTE_DICTIONARIES_DIR, REQUIRED_LOCALES, ROUTING_MODE, SERVER_SET_COOKIE, STORAGE, STRICT_MODE, TEMP_DIR, TRAVERSE_PATTERN, TYPES_DIR, TYPE_CHECKING, UNMERGED_DICTIONARIES_DIR, WATCH };
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { StrictMode } from "@intlayer/types/config";
|
|
2
|
+
import { Locale } from "@intlayer/types/allLocales";
|
|
3
|
+
|
|
4
|
+
//#region src/defaultValues/internationalization.d.ts
|
|
5
|
+
declare const LOCALES: Locale[];
|
|
6
|
+
declare const REQUIRED_LOCALES: Locale[];
|
|
7
|
+
declare const DEFAULT_LOCALE: Locale;
|
|
8
|
+
declare const STRICT_MODE: StrictMode;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { DEFAULT_LOCALE, LOCALES, REQUIRED_LOCALES, STRICT_MODE };
|
|
11
|
+
//# sourceMappingURL=internationalization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internationalization.d.ts","names":[],"sources":["../../../src/defaultValues/internationalization.ts"],"mappings":";;;;cAIa,OAAA,EAAS,MAAA;AAAA,cAET,gBAAA,EAAkB,MAAA;AAAA,cAElB,cAAA,EAAgB,MAAA;AAAA,cAEhB,WAAA,EAAa,UAAA"}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region src/defaultValues/log.d.ts
|
|
2
|
+
declare const MODE = "default";
|
|
3
|
+
declare const PREFIX: string;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { MODE, PREFIX };
|
|
6
|
+
//# sourceMappingURL=log.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.d.ts","names":[],"sources":["../../../src/defaultValues/log.ts"],"mappings":";cAEa,IAAA;AAAA,cAEA,MAAA"}
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { RoutingConfig } from "@intlayer/types/config";
|
|
2
|
+
|
|
3
|
+
//#region src/defaultValues/routing.d.ts
|
|
4
|
+
declare const HEADER_NAME = "x-intlayer-locale";
|
|
5
|
+
declare const COOKIE_NAME = "INTLAYER_LOCALE";
|
|
6
|
+
declare const LOCALE_STORAGE_NAME = "INTLAYER_LOCALE";
|
|
7
|
+
declare const BASE_PATH = "";
|
|
8
|
+
declare const SERVER_SET_COOKIE = "always";
|
|
9
|
+
declare const ROUTING_MODE = "prefix-no-default";
|
|
10
|
+
declare const STORAGE: RoutingConfig['storage'];
|
|
11
|
+
//#endregion
|
|
12
|
+
export { BASE_PATH, COOKIE_NAME, HEADER_NAME, LOCALE_STORAGE_NAME, ROUTING_MODE, SERVER_SET_COOKIE, STORAGE };
|
|
13
|
+
//# sourceMappingURL=routing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routing.d.ts","names":[],"sources":["../../../src/defaultValues/routing.ts"],"mappings":";;;cAEa,WAAA;AAAA,cAEA,WAAA;AAAA,cACA,mBAAA;AAAA,cAEA,SAAA;AAAA,cAEA,iBAAA;AAAA,cAEA,YAAA;AAAA,cAEA,OAAA,EAAS,aAAA"}
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region src/defaultValues/system.d.ts
|
|
2
|
+
declare const MAIN_DIR = ".intlayer/main";
|
|
3
|
+
declare const DICTIONARIES_DIR = ".intlayer/dictionary";
|
|
4
|
+
declare const MASKS_DIR = ".intlayer/mask";
|
|
5
|
+
declare const REMOTE_DICTIONARIES_DIR = ".intlayer/remote_dictionary";
|
|
6
|
+
declare const UNMERGED_DICTIONARIES_DIR = ".intlayer/unmerged_dictionary";
|
|
7
|
+
declare const DYNAMIC_DICTIONARIES_DIR = ".intlayer/dynamic_dictionary";
|
|
8
|
+
declare const FETCH_DICTIONARIES_DIR = ".intlayer/fetch_dictionary";
|
|
9
|
+
declare const TYPES_DIR = ".intlayer/types";
|
|
10
|
+
declare const MODULE_AUGMENTATION_DIR = ".intlayer/types";
|
|
11
|
+
declare const CONFIG_DIR = ".intlayer/config";
|
|
12
|
+
declare const CACHE_DIR = ".intlayer/cache";
|
|
13
|
+
declare const TEMP_DIR = ".intlayer/tmp";
|
|
14
|
+
//#endregion
|
|
15
|
+
export { CACHE_DIR, CONFIG_DIR, DICTIONARIES_DIR, DYNAMIC_DICTIONARIES_DIR, FETCH_DICTIONARIES_DIR, MAIN_DIR, MASKS_DIR, MODULE_AUGMENTATION_DIR, REMOTE_DICTIONARIES_DIR, TEMP_DIR, TYPES_DIR, UNMERGED_DICTIONARIES_DIR };
|
|
16
|
+
//# sourceMappingURL=system.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.d.ts","names":[],"sources":["../../../src/defaultValues/system.ts"],"mappings":";cAAa,QAAA;AAAA,cAEA,gBAAA;AAAA,cAEA,SAAA;AAAA,cAEA,uBAAA;AAAA,cAEA,yBAAA;AAAA,cAEA,wBAAA;AAAA,cAEA,sBAAA;AAAA,cAEA,SAAA;AAAA,cAEA,uBAAA;AAAA,cAEA,UAAA;AAAA,cAEA,SAAA;AAAA,cAEA,QAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kebabCaseToCamelCase-h9PkNVuO.d.ts","names":[],"sources":["../../src/utils/stringFormatter/kebabCaseToCamelCase.ts"],"mappings":";cAAa,oBAAA,GAAwB,IAAA"}
|
|
@@ -7,4 +7,4 @@ declare const getEnvFilePath: (env?: string, envFile?: string) => string | undef
|
|
|
7
7
|
declare const loadEnvFile: (options?: Partial<LoadEnvFileOptions>) => {};
|
|
8
8
|
//#endregion
|
|
9
9
|
export { getEnvFilePath as n, loadEnvFile as r, LoadEnvFileOptions as t };
|
|
10
|
-
//# sourceMappingURL=loadEnvFile-
|
|
10
|
+
//# sourceMappingURL=loadEnvFile-BiTBX4fe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadEnvFile-
|
|
1
|
+
{"version":3,"file":"loadEnvFile-BiTBX4fe.d.ts","names":[],"sources":["../../src/loadEnvFile.ts"],"mappings":";KAKY,kBAAA;EACV,GAAA;EACA,OAAA;AAAA;AAAA,cAGW,cAAA,GACX,GAAA,WACA,OAAA;AAAA,cASW,WAAA,GAAe,OAAA,GAAU,OAAA,CAAQ,kBAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as getEnvFilePath, r as loadEnvFile, t as LoadEnvFileOptions } from "./loadEnvFile-
|
|
1
|
+
import { n as getEnvFilePath, r as loadEnvFile, t as LoadEnvFileOptions } from "./loadEnvFile-BiTBX4fe.js";
|
|
2
2
|
export { LoadEnvFileOptions, getEnvFilePath, loadEnvFile };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as getSandBoxContext, r as parseFileContent, t as SandBoxContextOptions } from "../parseFileContent
|
|
2
|
-
import { n as transpileTSToCJS, r as transpileTSToCJSSync, t as TranspileOptions } from "../transpileTSToCJS-
|
|
3
|
-
import { n as loadExternalFile, r as loadExternalFileSync, t as LoadExternalFileOptions } from "../loadExternalFile-
|
|
1
|
+
import { n as getSandBoxContext, r as parseFileContent, t as SandBoxContextOptions } from "../parseFileContent--o_QlW5j.js";
|
|
2
|
+
import { n as transpileTSToCJS, r as transpileTSToCJSSync, t as TranspileOptions } from "../transpileTSToCJS-OifpV3zk.js";
|
|
3
|
+
import { n as loadExternalFile, r as loadExternalFileSync, t as LoadExternalFileOptions } from "../loadExternalFile-DmM_TGcA.js";
|
|
4
4
|
import { ESBuildPlugin, bundleFile, bundleFileSync, getLoader } from "./bundleFile.js";
|
|
5
5
|
import { bundleJSFile } from "./bundleJSFile.js";
|
|
6
6
|
export { ESBuildPlugin, LoadExternalFileOptions, SandBoxContextOptions, TranspileOptions, bundleFile, bundleFileSync, bundleJSFile, getLoader, getSandBoxContext, loadExternalFile, loadExternalFileSync, parseFileContent, transpileTSToCJS, transpileTSToCJSSync };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as loadExternalFile, r as loadExternalFileSync, t as LoadExternalFileOptions } from "../loadExternalFile-
|
|
1
|
+
import { n as loadExternalFile, r as loadExternalFileSync, t as LoadExternalFileOptions } from "../loadExternalFile-DmM_TGcA.js";
|
|
2
2
|
export { LoadExternalFileOptions, loadExternalFile, loadExternalFileSync };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as getSandBoxContext, r as parseFileContent, t as SandBoxContextOptions } from "../parseFileContent
|
|
1
|
+
import { n as getSandBoxContext, r as parseFileContent, t as SandBoxContextOptions } from "../parseFileContent--o_QlW5j.js";
|
|
2
2
|
export { SandBoxContextOptions, getSandBoxContext, parseFileContent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as transpileTSToCJS, r as transpileTSToCJSSync, t as TranspileOptions } from "../transpileTSToCJS-
|
|
1
|
+
import { n as transpileTSToCJS, r as transpileTSToCJSSync, t as TranspileOptions } from "../transpileTSToCJS-OifpV3zk.js";
|
|
2
2
|
export { TranspileOptions, transpileTSToCJS, transpileTSToCJSSync };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as SandBoxContextOptions } from "./parseFileContent
|
|
2
|
-
import { t as TranspileOptions } from "./transpileTSToCJS-
|
|
1
|
+
import { t as SandBoxContextOptions } from "./parseFileContent--o_QlW5j.js";
|
|
2
|
+
import { t as TranspileOptions } from "./transpileTSToCJS-OifpV3zk.js";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
4
|
|
|
5
5
|
//#region src/loadExternalFile/loadExternalFile.d.ts
|
|
@@ -22,4 +22,4 @@ declare const loadExternalFileSync: (filePath: string, options?: LoadExternalFil
|
|
|
22
22
|
declare const loadExternalFile: (filePath: string, options?: LoadExternalFileOptions) => Promise<any | undefined>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { loadExternalFile as n, loadExternalFileSync as r, LoadExternalFileOptions as t };
|
|
25
|
-
//# sourceMappingURL=loadExternalFile-
|
|
25
|
+
//# sourceMappingURL=loadExternalFile-DmM_TGcA.d.ts.map
|
package/dist/types/{loadExternalFile-CJIPA_rP.d.ts.map → loadExternalFile-DmM_TGcA.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadExternalFile-
|
|
1
|
+
{"version":3,"file":"loadExternalFile-DmM_TGcA.d.ts","names":[],"sources":["../../src/loadExternalFile/loadExternalFile.ts"],"mappings":";;;;;KAmBY,uBAAA;EACV,aAAA,GAAgB,cAAA;EAChB,YAAA,GAAe,gBAAA;EACf,QAAA;AAAA,IACE,qBAAA;;;;;;cAOS,oBAAA,GACX,QAAA,UACA,OAAA,GAAU,uBAAA;;;;;;cA4DC,gBAAA,GACX,QAAA,UACA,OAAA,GAAU,uBAAA,KACT,OAAA"}
|
package/dist/types/logger.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { h as colors_d_exports } from "./colors-BbZeGWYU.js";
|
|
1
2
|
import { CustomIntlayerConfig } from "@intlayer/types/config";
|
|
2
3
|
import { Locale } from "@intlayer/types/allLocales";
|
|
3
4
|
|
|
4
5
|
//#region src/logger.d.ts
|
|
6
|
+
type ANSIColorsType = (typeof colors_d_exports)[keyof typeof colors_d_exports];
|
|
5
7
|
type Details = {
|
|
6
8
|
isVerbose?: boolean;
|
|
7
9
|
level?: 'info' | 'warn' | 'error' | 'debug';
|
|
@@ -11,22 +13,6 @@ type Logger = (content: any, details?: Details) => void;
|
|
|
11
13
|
declare const setPrefix: (prefix: string | undefined) => void;
|
|
12
14
|
declare const getPrefix: (configPrefix?: string) => string | undefined;
|
|
13
15
|
declare const logger: Logger;
|
|
14
|
-
declare enum ANSIColors {
|
|
15
|
-
RESET = "\u001B[0m",
|
|
16
|
-
GREY = "\u001B[90m",
|
|
17
|
-
GREY_DARK = "\u001B[38;5;239m",
|
|
18
|
-
GREY_LIGHT = "\u001B[38;5;252m",
|
|
19
|
-
BLUE = "\u001B[34m",
|
|
20
|
-
RED = "\u001B[31m",
|
|
21
|
-
GREEN = "\u001B[32m",
|
|
22
|
-
YELLOW = "\u001B[38;5;226m",
|
|
23
|
-
MAGENTA = "\u001B[35m",
|
|
24
|
-
BEIGE = "\u001B[38;5;3m",
|
|
25
|
-
ORANGE = "\u001B[38;5;208m",
|
|
26
|
-
CYAN = "\u001B[36m",
|
|
27
|
-
WHITE = "\u001B[37m",
|
|
28
|
-
BOLD = "\u001B[1m"
|
|
29
|
-
}
|
|
30
16
|
declare const spinnerFrames: string[];
|
|
31
17
|
/**
|
|
32
18
|
* The appLogger function takes the logger and merges it with the configuration from the intlayer config file.
|
|
@@ -34,17 +20,17 @@ declare const spinnerFrames: string[];
|
|
|
34
20
|
* The configuration is merged with the default configuration from the intlayer config file.
|
|
35
21
|
*/
|
|
36
22
|
declare const getAppLogger: (configuration?: CustomIntlayerConfig, globalDetails?: Details) => (content: any, details?: Details) => void;
|
|
37
|
-
declare const colorize: (s: string, color?:
|
|
38
|
-
declare const colorizeLocales: (locales: Locale | Locale[], color?:
|
|
39
|
-
declare const colorizeKey: (keyPath: string | string[], color?:
|
|
40
|
-
declare const colorizePath: (path: string | string[], color?:
|
|
23
|
+
declare const colorize: (s: string, color?: ANSIColorsType, reset?: boolean | ANSIColorsType) => string;
|
|
24
|
+
declare const colorizeLocales: (locales: Locale | Locale[], color?: "\u001B[32m", reset?: boolean | ANSIColorsType) => string;
|
|
25
|
+
declare const colorizeKey: (keyPath: string | string[], color?: "\u001B[38;5;3m", reset?: boolean | ANSIColorsType) => string;
|
|
26
|
+
declare const colorizePath: (path: string | string[], color?: "\u001B[90m", reset?: boolean | ANSIColorsType) => string;
|
|
41
27
|
/**
|
|
42
28
|
* Colorize numeric value using Intl.NumberFormat and optional ANSI colors.
|
|
43
29
|
*
|
|
44
30
|
* Examples:
|
|
45
31
|
* colorizeNumber(2, [{ pluralRule: 'one' , color: ANSIColors.GREEN}, { pluralRule: 'other' , color: ANSIColors.RED}]) // "'\x1b[31m2\x1b[0m"
|
|
46
32
|
*/
|
|
47
|
-
declare const colorizeNumber: (number: number | string, options?: Partial<Record<Intl.LDMLPluralRule,
|
|
33
|
+
declare const colorizeNumber: (number: number | string, options?: Partial<Record<Intl.LDMLPluralRule, ANSIColorsType>>) => string;
|
|
48
34
|
declare const removeColor: (text: string) => string;
|
|
49
35
|
/**
|
|
50
36
|
* Create a string of spaces of a given length.
|
|
@@ -63,5 +49,5 @@ declare const x: string;
|
|
|
63
49
|
declare const v: string;
|
|
64
50
|
declare const clock: string;
|
|
65
51
|
//#endregion
|
|
66
|
-
export {
|
|
52
|
+
export { ANSIColorsType, Details, Logger, clock, colon, colorize, colorizeKey, colorizeLocales, colorizeNumber, colorizePath, getAppLogger, getPrefix, logger, removeColor, setPrefix, spinnerFrames, v, x };
|
|
67
53
|
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","names":[],"sources":["../../src/logger.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"logger.d.ts","names":[],"sources":["../../src/logger.ts"],"mappings":";;;;;KAIY,cAAA,WAAyB,gBAAA,eAAyB,gBAAA;AAAA,KAElD,OAAA;EACV,SAAA;EACA,KAAA;EACA,MAAA,GAAS,oBAAA;AAAA;AAAA,KAGC,MAAA,IAAU,OAAA,OAAc,OAAA,GAAU,OAAA;AAAA,cAIjC,SAAA,GAAa,MAAA;AAAA,cAIb,SAAA,GAAa,YAAA;AAAA,cAQb,MAAA,EAAQ,MAAA;AAAA,cAoCR,aAAA;;;;;;cAOA,YAAA,GACV,aAAA,GAAgB,oBAAA,EAAsB,aAAA,GAAgB,OAAA,MACtD,OAAA,OAAc,OAAA,GAAU,OAAA;AAAA,cAUd,QAAA,GACX,CAAA,UACA,KAAA,GAAQ,cAAA,EACR,KAAA,aAAkB,cAAA;AAAA,cAMP,eAAA,GACX,OAAA,EAAS,MAAA,GAAS,MAAA,IAClB,KAAA,iBACA,KAAA,aAAiB,cAAA;AAAA,cAON,WAAA,GACX,OAAA,qBACA,KAAA,qBACA,KAAA,aAAiB,cAAA;AAAA,cAON,YAAA,GACX,IAAA,qBACA,KAAA,iBACA,KAAA,aAAiB,cAAA;;;;;;AAnGnB;cAgHa,cAAA,GACX,MAAA,mBACA,OAAA,GAAS,OAAA,CAAQ,MAAA,CAAO,IAAA,CAAK,cAAA,EAAgB,cAAA;AAAA,cAmBlC,WAAA,GAAe,IAAA;;;AAjI5B;;;;cAoKa,KAAA,GACX,IAAA,qBACA,OAAA;EACE,OAAA;EACA,OAAA;EACA,OAAA;EACA,GAAA;EACA,OAAA;AAAA;AAAA,cAyBS,CAAA;AAAA,cACA,CAAA;AAAA,cACA,KAAA"}
|
package/dist/types/node.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as index_d_exports } from "./defaultValues/index.js";
|
|
2
1
|
import { buildConfigurationFields } from "./configFile/buildConfigurationFields.js";
|
|
3
2
|
import { aiSchema, buildSchema, compilerSchema, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, internationalizationSchema, intlayerConfigSchema, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, storageAttributesSchema, storageSchema, systemSchema } from "./configFile/configurationSchema.js";
|
|
4
3
|
import { GetConfigurationAndFilePathResult, GetConfigurationOptions, getConfiguration, getConfigurationAndFilePath } from "./configFile/getConfiguration.js";
|
|
5
4
|
import { configurationFilesCandidates, searchConfigurationFile } from "./configFile/searchConfigurationFile.js";
|
|
6
|
-
export {
|
|
5
|
+
export { GetConfigurationAndFilePathResult, GetConfigurationOptions, aiSchema, buildConfigurationFields, buildSchema, compilerSchema, configurationFilesCandidates, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, getConfiguration, getConfigurationAndFilePath, internationalizationSchema, intlayerConfigSchema, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, searchConfigurationFile, storageAttributesSchema, storageSchema, systemSchema };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as LoadEnvFileOptions } from "./loadEnvFile-
|
|
1
|
+
import { t as LoadEnvFileOptions } from "./loadEnvFile-BiTBX4fe.js";
|
|
2
2
|
import { Context } from "node:vm";
|
|
3
3
|
|
|
4
4
|
//#region src/loadExternalFile/parseFileContent.d.ts
|
|
@@ -26,4 +26,4 @@ declare const getSandBoxContext: (options?: SandBoxContextOptions) => Context;
|
|
|
26
26
|
declare const parseFileContent: <T>(fileContentString: string, options?: SandBoxContextOptions) => T | undefined;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { getSandBoxContext as n, parseFileContent as r, SandBoxContextOptions as t };
|
|
29
|
-
//# sourceMappingURL=parseFileContent
|
|
29
|
+
//# sourceMappingURL=parseFileContent--o_QlW5j.d.ts.map
|
package/dist/types/{parseFileContent-CriV5Luv.d.ts.map → parseFileContent--o_QlW5j.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseFileContent
|
|
1
|
+
{"version":3,"file":"parseFileContent--o_QlW5j.d.ts","names":[],"sources":["../../src/loadExternalFile/parseFileContent.ts"],"mappings":";;;;KAKY,qBAAA;EACV,aAAA,GAAgB,kBAAA;EAChB,cAAA,GAAiB,MAAA,CAAO,OAAA;EACxB,iBAAA,GAAoB,MAAA;;;;;;;;EAQpB,KAAA,GAAQ,MAAA;EAVR;;;;;;EAiBA,OAAA,GAAU,MAAA;AAAA;AAAA,cAGC,iBAAA,GAAqB,OAAA,GAAU,qBAAA,KAAwB,OAAA;AAAA,cAgGvD,gBAAA,MACX,iBAAA,UACA,OAAA,GAAU,qBAAA,KACT,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toLowerCamelCase-DUdT00I1.d.ts","names":[],"sources":["../../src/utils/stringFormatter/toLowerCamelCase.ts"],"mappings":";;AAKA;;;;cAAa,gBAAA,GAAoB,GAAA"}
|
|
@@ -16,4 +16,4 @@ declare const transpileTSToCJSSync: (code: string, filePath: string, options?: T
|
|
|
16
16
|
declare const transpileTSToCJS: (code: string, filePath: string, options?: TranspileOptions) => Promise<string | undefined>;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { transpileTSToCJS as n, transpileTSToCJSSync as r, TranspileOptions as t };
|
|
19
|
-
//# sourceMappingURL=transpileTSToCJS-
|
|
19
|
+
//# sourceMappingURL=transpileTSToCJS-OifpV3zk.d.ts.map
|
package/dist/types/{transpileTSToCJS-DxeK5fRY.d.ts.map → transpileTSToCJS-OifpV3zk.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transpileTSToCJS-
|
|
1
|
+
{"version":3,"file":"transpileTSToCJS-OifpV3zk.d.ts","names":[],"sources":["../../src/loadExternalFile/transpileTSToCJS.ts"],"mappings":";;;;KAOY,gBAAA,GAAmB,YAAA;;;AAA/B;;;;;EAQE,eAAA,UARyC,OAAA;AAAA;AAAA,cA6C9B,oBAAA,GACX,IAAA,UACA,QAAA,UACA,OAAA,GAAU,gBAAA;AAAA,cAwBC,gBAAA,GACX,IAAA,UACA,QAAA,UACA,OAAA,GAAU,gBAAA,KACT,OAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { extractErrorMessage } from "./extractErrorMessage.js";
|
|
2
2
|
import { logStack } from "./logStack.js";
|
|
3
3
|
import { normalizePath } from "./normalizePath.js";
|
|
4
|
-
import { t as camelCaseToKebabCase } from "../camelCaseToKebabCase-
|
|
5
|
-
import { t as camelCaseToSentence } from "../camelCaseToSentence-
|
|
6
|
-
import { t as kebabCaseToCamelCase } from "../kebabCaseToCamelCase-
|
|
7
|
-
import { t as toLowerCamelCase } from "../toLowerCamelCase-
|
|
4
|
+
import { t as camelCaseToKebabCase } from "../camelCaseToKebabCase-BV_lLJHR.js";
|
|
5
|
+
import { t as camelCaseToSentence } from "../camelCaseToSentence-DAbbkwe6.js";
|
|
6
|
+
import { t as kebabCaseToCamelCase } from "../kebabCaseToCamelCase-h9PkNVuO.js";
|
|
7
|
+
import { t as toLowerCamelCase } from "../toLowerCamelCase-DUdT00I1.js";
|
|
8
8
|
import { configESMxCJSRequire, getProjectRequire, isESModule } from "./ESMxCJSHelpers.js";
|
|
9
9
|
import { GetAliasOptions, getAlias } from "./alias.js";
|
|
10
10
|
import { CacheKey, cacheMemory, clearAllCache, clearCache, computeKeyId, getCache, setCache, stableStringify } from "./cacheMemory.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logStack.d.ts","names":[],"sources":["../../../src/utils/logStack.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"logStack.d.ts","names":[],"sources":["../../../src/utils/logStack.ts"],"mappings":";cAGa,QAAA,GACX,OAAA,UACA,OAAA;EAAW,KAAA;AAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as camelCaseToKebabCase } from "../../camelCaseToKebabCase-
|
|
1
|
+
import { t as camelCaseToKebabCase } from "../../camelCaseToKebabCase-BV_lLJHR.js";
|
|
2
2
|
export { camelCaseToKebabCase };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as camelCaseToSentence } from "../../camelCaseToSentence-
|
|
1
|
+
import { t as camelCaseToSentence } from "../../camelCaseToSentence-DAbbkwe6.js";
|
|
2
2
|
export { camelCaseToSentence };
|