@intlayer/config 8.4.1 → 8.4.3
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/buildConfigurationFields.cjs.map +1 -1
- package/dist/cjs/configFile/configurationSchema.cjs +1 -1
- package/dist/cjs/configFile/configurationSchema.cjs.map +1 -1
- package/dist/cjs/configFile/getConfiguration.cjs +1 -1
- package/dist/cjs/configFile/getConfiguration.cjs.map +1 -1
- package/dist/cjs/configFile/searchConfigurationFile.cjs +1 -1
- package/dist/cjs/configFile/searchConfigurationFile.cjs.map +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/loadExternalFile/transpileTSToCJS.cjs.map +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/configurationSchema.mjs +1 -1
- package/dist/esm/configFile/configurationSchema.mjs.map +1 -1
- package/dist/esm/configFile/getConfiguration.mjs +1 -1
- package/dist/esm/configFile/getConfiguration.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/configFile/searchConfigurationFile.mjs.map +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/loadExternalFile/transpileTSToCJS.mjs +1 -1
- package/dist/esm/loadExternalFile/transpileTSToCJS.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/buildConfigurationFields.d.ts.map +1 -1
- package/dist/types/configFile/configurationSchema.d.ts +0 -6
- package/dist/types/configFile/configurationSchema.d.ts.map +1 -1
- package/dist/types/configFile/getConfiguration.d.ts +3 -1
- package/dist/types/configFile/getConfiguration.d.ts.map +1 -1
- package/dist/types/configFile/loadConfigurationFile.d.ts +1 -1
- package/dist/types/configFile/loadConfigurationFile.d.ts.map +1 -1
- package/dist/types/configFile/searchConfigurationFile.d.ts.map +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 +4 -4
- package/dist/types/loadExternalFile/loadExternalFile.d.ts +2 -25
- package/dist/types/loadExternalFile/parseFileContent.d.ts +1 -1
- package/dist/types/loadExternalFile/transpileTSToCJS.d.ts +2 -8
- package/dist/types/loadExternalFile-DmM_TGcA.d.ts +25 -0
- package/dist/types/loadExternalFile-DmM_TGcA.d.ts.map +1 -0
- 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-OifpV3zk.d.ts +19 -0
- package/dist/types/transpileTSToCJS-OifpV3zk.d.ts.map +1 -0
- 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/loadExternalFile/loadExternalFile.d.ts.map +0 -1
- package/dist/types/loadExternalFile/transpileTSToCJS.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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildConfigurationFields.d.ts","names":[],"sources":["../../../src/configFile/buildConfigurationFields.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"buildConfigurationFields.d.ts","names":[],"sources":["../../../src/configFile/buildConfigurationFields.ts"],"mappings":";;;;;AAy4BA;cAAa,wBAAA,GACX,mBAAA,GAAsB,oBAAA,EACtB,OAAA,WACA,YAAA,GAAe,YAAA,KACd,cAAA"}
|
|
@@ -208,7 +208,6 @@ declare const systemSchema: z.ZodObject<{
|
|
|
208
208
|
configDir: z.ZodOptional<z.ZodString>;
|
|
209
209
|
cacheDir: z.ZodOptional<z.ZodString>;
|
|
210
210
|
tempDir: z.ZodOptional<z.ZodString>;
|
|
211
|
-
outputFilesPatternWithPath: z.ZodOptional<z.ZodString>;
|
|
212
211
|
}, z.core.$strip>;
|
|
213
212
|
declare const contentSchema: z.ZodObject<{
|
|
214
213
|
fileExtensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -217,8 +216,6 @@ declare const contentSchema: z.ZodObject<{
|
|
|
217
216
|
excludedPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
218
217
|
watch: z.ZodOptional<z.ZodBoolean>;
|
|
219
218
|
formatCommand: z.ZodOptional<z.ZodString>;
|
|
220
|
-
watchedFilesPattern: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
221
|
-
watchedFilesPatternWithPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
222
219
|
}, z.core.$strip>;
|
|
223
220
|
declare const editorSchema: z.ZodObject<{
|
|
224
221
|
applicationURL: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
@@ -399,8 +396,6 @@ declare const intlayerConfigSchema: z.ZodObject<{
|
|
|
399
396
|
excludedPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
400
397
|
watch: z.ZodOptional<z.ZodBoolean>;
|
|
401
398
|
formatCommand: z.ZodOptional<z.ZodString>;
|
|
402
|
-
watchedFilesPattern: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
403
|
-
watchedFilesPatternWithPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
404
399
|
}, z.core.$strip>>;
|
|
405
400
|
system: z.ZodOptional<z.ZodObject<{
|
|
406
401
|
baseDir: z.ZodOptional<z.ZodString>;
|
|
@@ -415,7 +410,6 @@ declare const intlayerConfigSchema: z.ZodObject<{
|
|
|
415
410
|
configDir: z.ZodOptional<z.ZodString>;
|
|
416
411
|
cacheDir: z.ZodOptional<z.ZodString>;
|
|
417
412
|
tempDir: z.ZodOptional<z.ZodString>;
|
|
418
|
-
outputFilesPatternWithPath: z.ZodOptional<z.ZodString>;
|
|
419
413
|
}, z.core.$strip>>;
|
|
420
414
|
editor: z.ZodOptional<z.ZodObject<{
|
|
421
415
|
applicationURL: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurationSchema.d.ts","names":[],"sources":["../../../src/configFile/configurationSchema.ts"],"mappings":";;;;cAGa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;cAO1B,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAWvB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;cAKvB,aAAA,EAAa,CAAA,CAAA,QAAA,WAAA,CAAA,CAAA,UAAA,SAAA,CAAA,CAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAcb,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;cAKjB,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;cAIlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAMnB,aAAA,EAAa,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAcb,YAAA,EAAY,CAAA,CAAA,SAAA
|
|
1
|
+
{"version":3,"file":"configurationSchema.d.ts","names":[],"sources":["../../../src/configFile/configurationSchema.ts"],"mappings":";;;;cAGa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;cAO1B,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAWvB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;cAKvB,aAAA,EAAa,CAAA,CAAA,QAAA,WAAA,CAAA,CAAA,UAAA,SAAA,CAAA,CAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAcb,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;cAKjB,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;cAIlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAMnB,aAAA,EAAa,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAcb,YAAA,EAAY,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAeZ,aAAA,EAAa,CAAA,CAAA,SAAA;;;;;;;;cASb,YAAA,EAAY,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiBZ,SAAA,EAAS,CAAA,CAAA,SAAA;;;;;;;;;;;;cAST,QAAA,EAAQ,CAAA,CAAA,SAAA;;;;;;;;;;;;cAUR,WAAA,EAAW,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAWX,cAAA,EAAc,CAAA,CAAA,SAAA;;;;;;;;;cAUd,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;;;;;;;;;cAiBhB,oBAAA,EAAoB,CAAA,CAAA,SAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { t as SandBoxContextOptions } from "../parseFileContent
|
|
1
|
+
import { t as SandBoxContextOptions } from "../parseFileContent--o_QlW5j.js";
|
|
2
|
+
import { t as LoadExternalFileOptions } from "../loadExternalFile-DmM_TGcA.js";
|
|
2
3
|
import { CustomIntlayerConfig, IntlayerConfig, LogFunctions } from "@intlayer/types/config";
|
|
3
4
|
|
|
4
5
|
//#region src/configFile/getConfiguration.d.ts
|
|
@@ -10,6 +11,7 @@ type GetConfigurationOptions = {
|
|
|
10
11
|
logFunctions?: LogFunctions;
|
|
11
12
|
require?: NodeJS.Require;
|
|
12
13
|
cache?: boolean;
|
|
14
|
+
buildOptions?: LoadExternalFileOptions['buildOptions'];
|
|
13
15
|
} & Omit<SandBoxContextOptions, 'projectRequire'>;
|
|
14
16
|
type GetConfigurationAndFilePathResult = {
|
|
15
17
|
configuration: IntlayerConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getConfiguration.d.ts","names":[],"sources":["../../../src/configFile/getConfiguration.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getConfiguration.d.ts","names":[],"sources":["../../../src/configFile/getConfiguration.ts"],"mappings":";;;;;KAcY,uBAAA;EACV,OAAA;EACA,QAAA,GAAW,oBAAA;EAEX,GAAA;EACA,OAAA;EAEA,YAAA,GAAe,YAAA;EAEf,OAAA,GAAU,MAAA,CAAO,OAAA;EAEjB,KAAA;EAEA,YAAA,GAAe,uBAAA;AAAA,IACb,IAAA,CAAK,qBAAA;AAAA,KAEG,iCAAA;EACV,aAAA,EAAe,cAAA;EACf,mBAAA,EAAqB,oBAAA;EACrB,sBAAA;EACA,qBAAA;AAAA;;;;cAMW,2BAAA,GACX,OAAA,GAAU,uBAAA,KACT,iCAAA;;;;cAqGU,gBAAA,GACX,OAAA,GAAU,uBAAA,KACT,cAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadConfigurationFile.d.ts","names":[],"sources":["../../../src/configFile/loadConfigurationFile.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"loadConfigurationFile.d.ts","names":[],"sources":["../../../src/configFile/loadConfigurationFile.ts"],"mappings":";;;;;;;;AA4BA;;cAAa,qBAAA,GACX,cAAA,UACA,OAAA,GAAU,IAAA,CAAK,uBAAA,uBACd,oBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchConfigurationFile.d.ts","names":[],"sources":["../../../src/configFile/searchConfigurationFile.ts"],"mappings":";cAKa,4BAAA;AAAA,KAWR,6BAAA;EACH,qBAAA;EACA,sBAAA;AAAA;;AAJS;;;;;
|
|
1
|
+
{"version":3,"file":"searchConfigurationFile.d.ts","names":[],"sources":["../../../src/configFile/searchConfigurationFile.ts"],"mappings":";cAKa,4BAAA;AAAA,KAWR,6BAAA;EACH,qBAAA;EACA,sBAAA;AAAA;;AAJS;;;;;AAqBX;;;;;cAAa,uBAAA,GACX,QAAA,aACC,6BAAA"}
|
|
@@ -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 {
|
|
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";
|
|
3
4
|
import { ESBuildPlugin, bundleFile, bundleFileSync, getLoader } from "./bundleFile.js";
|
|
4
5
|
import { bundleJSFile } from "./bundleJSFile.js";
|
|
5
|
-
|
|
6
|
-
export { ESBuildPlugin, LoadExternalFileOptions, SandBoxContextOptions, bundleFile, bundleFileSync, bundleJSFile, getLoader, getSandBoxContext, loadExternalFile, loadExternalFileSync, parseFileContent, transpileTSToCJS, transpileTSToCJSSync };
|
|
6
|
+
export { ESBuildPlugin, LoadExternalFileOptions, SandBoxContextOptions, TranspileOptions, bundleFile, bundleFileSync, bundleJSFile, getLoader, getSandBoxContext, loadExternalFile, loadExternalFileSync, parseFileContent, transpileTSToCJS, transpileTSToCJSSync };
|
|
@@ -1,25 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
|
|
3
|
-
import { BuildOptions } from "esbuild";
|
|
4
|
-
|
|
5
|
-
//#region src/loadExternalFile/loadExternalFile.d.ts
|
|
6
|
-
type LoadExternalFileOptions = {
|
|
7
|
-
configuration?: IntlayerConfig;
|
|
8
|
-
buildOptions?: BuildOptions;
|
|
9
|
-
logError?: boolean;
|
|
10
|
-
} & SandBoxContextOptions;
|
|
11
|
-
/**
|
|
12
|
-
* Load the content declaration from the given path
|
|
13
|
-
*
|
|
14
|
-
* Accepts JSON, JS, MJS and TS files as configuration
|
|
15
|
-
*/
|
|
16
|
-
declare const loadExternalFileSync: (filePath: string, options?: LoadExternalFileOptions) => any | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* Load the content declaration from the given path
|
|
19
|
-
*
|
|
20
|
-
* Accepts JSON, JS, MJS and TS files as configuration
|
|
21
|
-
*/
|
|
22
|
-
declare const loadExternalFile: (filePath: string, options?: LoadExternalFileOptions) => Promise<any | undefined>;
|
|
23
|
-
//#endregion
|
|
24
|
-
export { LoadExternalFileOptions, loadExternalFile, loadExternalFileSync };
|
|
25
|
-
//# sourceMappingURL=loadExternalFile.d.ts.map
|
|
1
|
+
import { n as loadExternalFile, r as loadExternalFileSync, t as LoadExternalFileOptions } from "../loadExternalFile-DmM_TGcA.js";
|
|
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,8 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/loadExternalFile/transpileTSToCJS.d.ts
|
|
4
|
-
declare const transpileTSToCJSSync: (code: string, filePath: string, options?: BuildOptions) => string | undefined;
|
|
5
|
-
declare const transpileTSToCJS: (code: string, filePath: string, options?: BuildOptions) => Promise<string | undefined>;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { transpileTSToCJS, transpileTSToCJSSync };
|
|
8
|
-
//# sourceMappingURL=transpileTSToCJS.d.ts.map
|
|
1
|
+
import { n as transpileTSToCJS, r as transpileTSToCJSSync, t as TranspileOptions } from "../transpileTSToCJS-OifpV3zk.js";
|
|
2
|
+
export { TranspileOptions, transpileTSToCJS, transpileTSToCJSSync };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { t as SandBoxContextOptions } from "./parseFileContent--o_QlW5j.js";
|
|
2
|
+
import { t as TranspileOptions } from "./transpileTSToCJS-OifpV3zk.js";
|
|
3
|
+
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
+
|
|
5
|
+
//#region src/loadExternalFile/loadExternalFile.d.ts
|
|
6
|
+
type LoadExternalFileOptions = {
|
|
7
|
+
configuration?: IntlayerConfig;
|
|
8
|
+
buildOptions?: TranspileOptions;
|
|
9
|
+
logError?: boolean;
|
|
10
|
+
} & SandBoxContextOptions;
|
|
11
|
+
/**
|
|
12
|
+
* Load the content declaration from the given path
|
|
13
|
+
*
|
|
14
|
+
* Accepts JSON, JS, MJS and TS files as configuration
|
|
15
|
+
*/
|
|
16
|
+
declare const loadExternalFileSync: (filePath: string, options?: LoadExternalFileOptions) => any | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Load the content declaration from the given path
|
|
19
|
+
*
|
|
20
|
+
* Accepts JSON, JS, MJS and TS files as configuration
|
|
21
|
+
*/
|
|
22
|
+
declare const loadExternalFile: (filePath: string, options?: LoadExternalFileOptions) => Promise<any | undefined>;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { loadExternalFile as n, loadExternalFileSync as r, LoadExternalFileOptions as t };
|
|
25
|
+
//# sourceMappingURL=loadExternalFile-DmM_TGcA.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as esbuild from "esbuild";
|
|
2
|
+
import { BuildOptions } from "esbuild";
|
|
3
|
+
|
|
4
|
+
//#region src/loadExternalFile/transpileTSToCJS.d.ts
|
|
5
|
+
type TranspileOptions = BuildOptions & {
|
|
6
|
+
/**
|
|
7
|
+
* Optional custom esbuild instance to use for transpilation.
|
|
8
|
+
* Useful in environments (e.g. VS Code extensions) where the bundled
|
|
9
|
+
* esbuild binary may not match the host platform.
|
|
10
|
+
* When provided, its `buildSync`/`build` methods are used instead of
|
|
11
|
+
* the ones imported from the `esbuild` package.
|
|
12
|
+
*/
|
|
13
|
+
esbuildInstance?: typeof esbuild;
|
|
14
|
+
};
|
|
15
|
+
declare const transpileTSToCJSSync: (code: string, filePath: string, options?: TranspileOptions) => string | undefined;
|
|
16
|
+
declare const transpileTSToCJS: (code: string, filePath: string, options?: TranspileOptions) => Promise<string | undefined>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { transpileTSToCJS as n, transpileTSToCJSSync as r, TranspileOptions as t };
|
|
19
|
+
//# sourceMappingURL=transpileTSToCJS-OifpV3zk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as camelCaseToKebabCase } from "../../camelCaseToKebabCase-
|
|
2
|
-
import { t as camelCaseToSentence } from "../../camelCaseToSentence-
|
|
3
|
-
import { t as kebabCaseToCamelCase } from "../../kebabCaseToCamelCase-
|
|
4
|
-
import { t as toLowerCamelCase } from "../../toLowerCamelCase-
|
|
1
|
+
import { t as camelCaseToKebabCase } from "../../camelCaseToKebabCase-BV_lLJHR.js";
|
|
2
|
+
import { t as camelCaseToSentence } from "../../camelCaseToSentence-DAbbkwe6.js";
|
|
3
|
+
import { t as kebabCaseToCamelCase } from "../../kebabCaseToCamelCase-h9PkNVuO.js";
|
|
4
|
+
import { t as toLowerCamelCase } from "../../toLowerCamelCase-DUdT00I1.js";
|
|
5
5
|
export { camelCaseToKebabCase, camelCaseToSentence, kebabCaseToCamelCase, toLowerCamelCase };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as kebabCaseToCamelCase } from "../../kebabCaseToCamelCase-
|
|
1
|
+
import { t as kebabCaseToCamelCase } from "../../kebabCaseToCamelCase-h9PkNVuO.js";
|
|
2
2
|
export { kebabCaseToCamelCase };
|