@intlayer/config 8.6.3 → 8.6.5
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/built.browser.cjs +26 -1
- package/dist/cjs/built.browser.cjs.map +1 -1
- package/dist/cjs/built.cjs +26 -1
- package/dist/cjs/built.cjs.map +1 -1
- package/dist/cjs/bundle/index.cjs +130 -0
- package/dist/cjs/bundle/index.cjs.map +1 -0
- package/dist/cjs/bundle/logBundle.cjs +79 -0
- package/dist/cjs/bundle/logBundle.cjs.map +1 -0
- package/dist/cjs/client.cjs +2 -0
- package/dist/cjs/configFile/buildBrowserConfiguration.cjs +1 -10
- package/dist/cjs/configFile/buildBrowserConfiguration.cjs.map +1 -1
- package/dist/cjs/configFile/buildConfigurationFields.cjs +0 -1
- package/dist/cjs/configFile/buildConfigurationFields.cjs.map +1 -1
- package/dist/cjs/envVars/envVars.cjs +10 -11
- package/dist/cjs/envVars/envVars.cjs.map +1 -1
- package/dist/cjs/logger.cjs.map +1 -1
- package/dist/cjs/utils/getStorageAttributes.cjs +13 -8
- package/dist/cjs/utils/getStorageAttributes.cjs.map +1 -1
- package/dist/cjs/utils/index.cjs +2 -0
- package/dist/cjs/utils/setIntlayerIdentifier.cjs +14 -0
- package/dist/cjs/utils/setIntlayerIdentifier.cjs.map +1 -0
- package/dist/esm/built.browser.mjs +13 -1
- package/dist/esm/built.browser.mjs.map +1 -1
- package/dist/esm/built.mjs +13 -1
- package/dist/esm/built.mjs.map +1 -1
- package/dist/esm/bundle/index.mjs +126 -0
- package/dist/esm/bundle/index.mjs.map +1 -0
- package/dist/esm/bundle/logBundle.mjs +78 -0
- package/dist/esm/bundle/logBundle.mjs.map +1 -0
- package/dist/esm/client.mjs +2 -1
- package/dist/esm/configFile/buildBrowserConfiguration.mjs +1 -8
- package/dist/esm/configFile/buildBrowserConfiguration.mjs.map +1 -1
- package/dist/esm/configFile/buildConfigurationFields.mjs +0 -1
- package/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -1
- package/dist/esm/envVars/envVars.mjs +10 -11
- package/dist/esm/envVars/envVars.mjs.map +1 -1
- package/dist/esm/logger.mjs.map +1 -1
- package/dist/esm/utils/cacheDisk.mjs +4 -4
- package/dist/esm/utils/cacheDisk.mjs.map +1 -1
- package/dist/esm/utils/getStorageAttributes.mjs +13 -8
- package/dist/esm/utils/getStorageAttributes.mjs.map +1 -1
- package/dist/esm/utils/index.mjs +2 -1
- package/dist/esm/utils/setIntlayerIdentifier.mjs +12 -0
- package/dist/esm/utils/setIntlayerIdentifier.mjs.map +1 -0
- package/dist/types/built.browser.d.ts +15 -1
- package/dist/types/built.browser.d.ts.map +1 -1
- package/dist/types/built.d.ts +15 -1
- package/dist/types/built.d.ts.map +1 -1
- package/dist/types/bundle/index.d.ts +23 -0
- package/dist/types/bundle/index.d.ts.map +1 -0
- package/dist/types/bundle/logBundle.d.ts +23 -0
- package/dist/types/bundle/logBundle.d.ts.map +1 -0
- package/dist/types/client.d.ts +2 -1
- package/dist/types/configFile/buildBrowserConfiguration.d.ts +0 -1
- package/dist/types/configFile/buildBrowserConfiguration.d.ts.map +1 -1
- package/dist/types/configFile/configurationSchema.d.ts +7 -7
- package/dist/types/configFile/index.d.ts +1 -1
- package/dist/types/envVars/envVars.d.ts +2 -2
- package/dist/types/envVars/envVars.d.ts.map +1 -1
- package/dist/types/logger.d.ts +1 -1
- package/dist/types/logger.d.ts.map +1 -1
- package/dist/types/node.d.ts +1 -1
- package/dist/types/utils/getStorageAttributes.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +2 -1
- package/dist/types/utils/setIntlayerIdentifier.d.ts +15 -0
- package/dist/types/utils/setIntlayerIdentifier.d.ts.map +1 -0
- package/package.json +10 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"built.browser.d.ts","names":[],"sources":["../../src/built.browser.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"built.browser.d.ts","names":[],"sources":["../../src/built.browser.ts"],"mappings":";;;;;AAsCA;;;;;AACA;AADA,cAdM,aAAA,EAAa,cAAA;AAAA,cAaN,oBAAA,EAAyD,yBAAA,CAArC,0BAAA;AAAA,cACpB,UAAA,EAAU,OAAA,CAA2B,yBAAA,CAA3B,gBAAA;AAAA,cACV,OAAA,EAA+B,yBAAA,CAAxB,aAAA;AAAA,cACP,OAAA,EAA+B,yBAAA,CAAxB,aAAA;AAAA,cACP,MAAA,EAA6B,yBAAA,CAAvB,YAAA;AAAA,cACN,MAAA,EAA6B,yBAAA,CAAvB,YAAA;AAAA,cACN,GAAA,EAAuB,yBAAA,CAApB,SAAA;AAAA,cACH,EAAA,EAAE,OAAA,CAAmB,yBAAA,CAAnB,QAAA;AAAA,cACF,KAAA,EAA2B,yBAAA,CAAtB,WAAA;AAAA,cACL,QAAA,EAAiC,yBAAA,CAAzB,cAAA;AAAA,cACR,OAAA,EAAO,MAAA,SAAwB,yBAAA,CAAxB,MAAA;AAAA,cACP,OAAA,EAA+B,yBAAA,CAAxB,MAAA"}
|
package/dist/types/built.d.ts
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
|
+
import * as _$_intlayer_types_config0 from "@intlayer/types/config";
|
|
1
2
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
|
+
import * as _$_intlayer_types_plugin0 from "@intlayer/types/plugin";
|
|
2
4
|
|
|
3
5
|
//#region src/built.d.ts
|
|
4
6
|
declare const configuration: IntlayerConfig;
|
|
7
|
+
declare const internationalization: _$_intlayer_types_config0.InternationalizationConfig;
|
|
8
|
+
declare const dictionary: Partial<_$_intlayer_types_config0.DictionaryConfig>;
|
|
9
|
+
declare const routing: _$_intlayer_types_config0.RoutingConfig;
|
|
10
|
+
declare const content: _$_intlayer_types_config0.ContentConfig;
|
|
11
|
+
declare const system: _$_intlayer_types_config0.SystemConfig;
|
|
12
|
+
declare const editor: _$_intlayer_types_config0.EditorConfig;
|
|
13
|
+
declare const log: _$_intlayer_types_config0.LogConfig;
|
|
14
|
+
declare const ai: Partial<_$_intlayer_types_config0.AiConfig>;
|
|
15
|
+
declare const build: _$_intlayer_types_config0.BuildConfig;
|
|
16
|
+
declare const compiler: _$_intlayer_types_config0.CompilerConfig;
|
|
17
|
+
declare const schemas: Record<string, _$_intlayer_types_config0.Schema>;
|
|
18
|
+
declare const plugins: _$_intlayer_types_plugin0.Plugin[];
|
|
5
19
|
//#endregion
|
|
6
|
-
export { configuration as default };
|
|
20
|
+
export { ai, build, compiler, content, configuration as default, dictionary, editor, internationalization, log, plugins, routing, schemas, system };
|
|
7
21
|
//# sourceMappingURL=built.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"built.d.ts","names":[],"sources":["../../src/built.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"built.d.ts","names":[],"sources":["../../src/built.ts"],"mappings":";;;;;cAQM,aAAA,EAAe,cAAA;AAAA,cAER,oBAAA,EAAyD,yBAAA,CAArC,0BAAA;AAAA,cACpB,UAAA,EAAU,OAAA,CAA2B,yBAAA,CAA3B,gBAAA;AAAA,cACV,OAAA,EAA+B,yBAAA,CAAxB,aAAA;AAAA,cACP,OAAA,EAA+B,yBAAA,CAAxB,aAAA;AAAA,cACP,MAAA,EAA6B,yBAAA,CAAvB,YAAA;AAAA,cACN,MAAA,EAA6B,yBAAA,CAAvB,YAAA;AAAA,cACN,GAAA,EAAuB,yBAAA,CAApB,SAAA;AAAA,cACH,EAAA,EAAE,OAAA,CAAmB,yBAAA,CAAnB,QAAA;AAAA,cACF,KAAA,EAA2B,yBAAA,CAAtB,WAAA;AAAA,cACL,QAAA,EAAiC,yBAAA,CAAzB,cAAA;AAAA,cACR,OAAA,EAAO,MAAA,SAAwB,yBAAA,CAAxB,MAAA;AAAA,cACP,OAAA,EAA+B,yBAAA,CAAxB,MAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { GetConfigurationOptions } from "../configFile/getConfiguration.js";
|
|
2
|
+
import * as _$esbuild from "esbuild";
|
|
3
|
+
import { BuildOptions } from "esbuild";
|
|
4
|
+
|
|
5
|
+
//#region src/bundle/index.d.ts
|
|
6
|
+
declare const packageList: readonly ["next-intlayer", "react-intlayer", "vue-intlayer", "svelte-intlayer", "preact-intlayer", "solid-intlayer", "angular-intlayer", "lit-intlayer", "express-intlayer", "hono-intlayer", "fastify-intlayer", "adonis-intlayer", "vanilla-intlayer", "intlayer"];
|
|
7
|
+
type BundleIntlayerOptions = {
|
|
8
|
+
outfile?: string;
|
|
9
|
+
configOptions?: GetConfigurationOptions;
|
|
10
|
+
bundlePackages?: string[];
|
|
11
|
+
version?: string;
|
|
12
|
+
} & BuildOptions;
|
|
13
|
+
/**
|
|
14
|
+
* Bundle the application content using esbuild.
|
|
15
|
+
* It uses the Intlayer configuration to set up aliases and other esbuild options.
|
|
16
|
+
*
|
|
17
|
+
* @param options - Bundle options including entryPoint, outfile, and esbuild options.
|
|
18
|
+
* @returns The build result.
|
|
19
|
+
*/
|
|
20
|
+
declare const bundleIntlayer: (options: BundleIntlayerOptions) => Promise<_$esbuild.BuildResult<BuildOptions>>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { BundleIntlayerOptions, bundleIntlayer, packageList };
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/bundle/index.ts"],"mappings":";;;;;cAgBa,WAAA;AAAA,KAmBD,qBAAA;EACV,OAAA;EACA,aAAA,GAAgB,uBAAA;EAChB,cAAA;EACA,OAAA;AAAA,IACE,YAAA;;AALJ;;;;;;cAca,cAAA,GAAwB,OAAA,EAAS,qBAAA,KAAqB,OAAA,CAAA,SAAA,CAAA,WAAA,CAAA,YAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
|
+
|
|
3
|
+
//#region src/bundle/logBundle.d.ts
|
|
4
|
+
declare class BundleLogger {
|
|
5
|
+
private status;
|
|
6
|
+
private spinnerTimer;
|
|
7
|
+
private spinnerIndex;
|
|
8
|
+
private renderedLines;
|
|
9
|
+
private isFinished;
|
|
10
|
+
private readonly prefix;
|
|
11
|
+
private lastRenderedState;
|
|
12
|
+
private error;
|
|
13
|
+
constructor(configuration?: IntlayerConfig);
|
|
14
|
+
setStatus(status: 'installing' | 'bundling' | 'success'): void;
|
|
15
|
+
setError(error?: unknown): void;
|
|
16
|
+
private startSpinner;
|
|
17
|
+
private stopSpinner;
|
|
18
|
+
private finish;
|
|
19
|
+
private render;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { BundleLogger };
|
|
23
|
+
//# sourceMappingURL=logBundle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logBundle.d.ts","names":[],"sources":["../../../src/bundle/logBundle.ts"],"mappings":";;;cAKa,YAAA;EAAA,QACH,MAAA;EAAA,QAEA,YAAA;EAAA,QACA,YAAA;EAAA,QACA,aAAA;EAAA,QACA,UAAA;EAAA,iBACS,MAAA;EAAA,QACT,iBAAA;EAAA,QACA,KAAA;cAEI,aAAA,GAAgB,cAAA;EAI5B,SAAA,CAAU,MAAA;EAWV,QAAA,CAAS,KAAA;EAAA,QAOD,YAAA;EAAA,QAQA,WAAA;EAAA,QAMA,MAAA;EAAA,QAMA,MAAA;AAAA"}
|
package/dist/types/client.d.ts
CHANGED
|
@@ -2,8 +2,9 @@ import { BrowserIntlayerConfig, buildBrowserConfiguration, buildEditorFields, bu
|
|
|
2
2
|
import { extractErrorMessage } from "./utils/extractErrorMessage.js";
|
|
3
3
|
import { logStack } from "./utils/logStack.js";
|
|
4
4
|
import { normalizePath } from "./utils/normalizePath.js";
|
|
5
|
+
import { WindowsWithIntlayer, setIntlayerIdentifier } from "./utils/setIntlayerIdentifier.js";
|
|
5
6
|
import { camelCaseToKebabCase } from "./utils/stringFormatter/camelCaseToKebabCase.js";
|
|
6
7
|
import { camelCaseToSentence } from "./utils/stringFormatter/camelCaseToSentence.js";
|
|
7
8
|
import { kebabCaseToCamelCase } from "./utils/stringFormatter/kebabCaseToCamelCase.js";
|
|
8
9
|
import { toLowerCamelCase } from "./utils/stringFormatter/toLowerCamelCase.js";
|
|
9
|
-
export { BrowserIntlayerConfig, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, camelCaseToKebabCase, camelCaseToSentence, extractBrowserConfiguration, extractErrorMessage, kebabCaseToCamelCase, logStack, normalizePath, toLowerCamelCase };
|
|
10
|
+
export { BrowserIntlayerConfig, WindowsWithIntlayer, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, camelCaseToKebabCase, camelCaseToSentence, extractBrowserConfiguration, extractErrorMessage, kebabCaseToCamelCase, logStack, normalizePath, setIntlayerIdentifier, toLowerCamelCase };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildBrowserConfiguration.d.ts","names":[],"sources":["../../../src/configFile/buildBrowserConfiguration.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"buildBrowserConfiguration.d.ts","names":[],"sources":["../../../src/configFile/buildBrowserConfiguration.ts"],"mappings":";;;;;AA0CA;;;;;KAAY,qBAAA;EACV,oBAAA,EAAsB,IAAA,CACpB,0BAAA;EAGF,OAAA,EAAS,aAAA;EACT,MAAA,EAAQ,IAAA,CAAK,YAAA;EACb,GAAA,EAAK,IAAA,CAAK,SAAA;AAAA;AAAA,QAGJ,MAAA;EAAA,UACI,MAAA;IAVY;IAYpB,eAAA,GAAkB,qBAAA;EAAA;AAAA;;;;;;;cAiBT,+BAAA,GACX,mBAAA,GAAsB,OAAA,CAAQ,0BAAA,MAC7B,0BAAA;;AAxBD;;;;;cAuEW,kBAAA,GACX,mBAAA,GAAsB,OAAA,CAAQ,mBAAA,MAC7B,aAAA;;;;;;AAnDH;;;;;cAgJa,iBAAA,GACX,mBAAA,GAAsB,OAAA,CAAQ,YAAA,MAC7B,YAAA;;;;;;;;cAmIU,cAAA,GACX,mBAAA,GAAsB,OAAA,CAAQ,SAAA,GAC9B,YAAA,GAAe,YAAA,KACd,SAAA;AAvOH;;;;;;;;;;;;;;AA+FA;;;;;;;;AA/FA,cA+Ra,yBAAA,GACX,YAAA,GAAe,oBAAA,KACd,qBAAA;;;;;;AA7DH;;;;;;cA4Fa,2BAAA,GACX,MAAA,EAAQ,cAAA,KACP,qBAAA"}
|
|
@@ -21,8 +21,8 @@ declare const cookiesAttributesSchema: z.ZodObject<{
|
|
|
21
21
|
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
22
22
|
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
23
23
|
strict: "strict";
|
|
24
|
-
lax: "lax";
|
|
25
24
|
none: "none";
|
|
25
|
+
lax: "lax";
|
|
26
26
|
}>>;
|
|
27
27
|
expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>>;
|
|
28
28
|
}, z.core.$strip>;
|
|
@@ -48,8 +48,8 @@ declare const storageSchema: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodEnum
|
|
|
48
48
|
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
49
49
|
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
50
50
|
strict: "strict";
|
|
51
|
-
lax: "lax";
|
|
52
51
|
none: "none";
|
|
52
|
+
lax: "lax";
|
|
53
53
|
}>>;
|
|
54
54
|
expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>>;
|
|
55
55
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -73,8 +73,8 @@ declare const storageSchema: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodEnum
|
|
|
73
73
|
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
74
74
|
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
75
75
|
strict: "strict";
|
|
76
|
-
lax: "lax";
|
|
77
76
|
none: "none";
|
|
77
|
+
lax: "lax";
|
|
78
78
|
}>>;
|
|
79
79
|
expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>>;
|
|
80
80
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -156,8 +156,8 @@ declare const routingSchema: z.ZodObject<{
|
|
|
156
156
|
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
157
157
|
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
158
158
|
strict: "strict";
|
|
159
|
-
lax: "lax";
|
|
160
159
|
none: "none";
|
|
160
|
+
lax: "lax";
|
|
161
161
|
}>>;
|
|
162
162
|
expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>>;
|
|
163
163
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -181,8 +181,8 @@ declare const routingSchema: z.ZodObject<{
|
|
|
181
181
|
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
182
182
|
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
183
183
|
strict: "strict";
|
|
184
|
-
lax: "lax";
|
|
185
184
|
none: "none";
|
|
185
|
+
lax: "lax";
|
|
186
186
|
}>>;
|
|
187
187
|
expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>>;
|
|
188
188
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -350,8 +350,8 @@ declare const intlayerConfigSchema: z.ZodObject<{
|
|
|
350
350
|
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
351
351
|
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
352
352
|
strict: "strict";
|
|
353
|
-
lax: "lax";
|
|
354
353
|
none: "none";
|
|
354
|
+
lax: "lax";
|
|
355
355
|
}>>;
|
|
356
356
|
expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>>;
|
|
357
357
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -375,8 +375,8 @@ declare const intlayerConfigSchema: z.ZodObject<{
|
|
|
375
375
|
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
376
376
|
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
377
377
|
strict: "strict";
|
|
378
|
-
lax: "lax";
|
|
379
378
|
none: "none";
|
|
379
|
+
lax: "lax";
|
|
380
380
|
}>>;
|
|
381
381
|
expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>>;
|
|
382
382
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { GetConfigurationAndFilePathResult, GetConfigurationOptions, getConfiguration, getConfigurationAndFilePath } from "./getConfiguration.js";
|
|
1
2
|
import { BrowserIntlayerConfig, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration } from "./buildBrowserConfiguration.js";
|
|
2
3
|
import { buildConfigurationFields } from "./buildConfigurationFields.js";
|
|
3
4
|
import { aiSchema, buildSchema, compilerSchema, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, internationalizationSchema, intlayerConfigSchema, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, storageAttributesSchema, storageSchema, systemSchema } from "./configurationSchema.js";
|
|
4
|
-
import { GetConfigurationAndFilePathResult, GetConfigurationOptions, getConfiguration, getConfigurationAndFilePath } from "./getConfiguration.js";
|
|
5
5
|
import { configurationFilesCandidates, searchConfigurationFile } from "./searchConfigurationFile.js";
|
|
6
6
|
export { BrowserIntlayerConfig, GetConfigurationAndFilePathResult, GetConfigurationOptions, aiSchema, buildBrowserConfiguration, buildConfigurationFields, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, buildSchema, compilerSchema, configurationFilesCandidates, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, extractBrowserConfiguration, getConfiguration, getConfigurationAndFilePath, internationalizationSchema, intlayerConfigSchema, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, searchConfigurationFile, storageAttributesSchema, storageSchema, systemSchema };
|
|
@@ -12,7 +12,7 @@ import { IntlayerConfig } from "@intlayer/types/config";
|
|
|
12
12
|
* formatNodeTypeToEnvVar(['enumeration'], true)
|
|
13
13
|
* // { 'process.env.INTLAYER_NODE_TYPE_ENUMERATION': '"false"' }
|
|
14
14
|
*/
|
|
15
|
-
declare const formatNodeTypeToEnvVar: (nodeTypes: string[],
|
|
15
|
+
declare const formatNodeTypeToEnvVar: (nodeTypes: string[], wrapKey?: (key: string) => string, wrapValue?: (value: string) => string) => Record<string, string>;
|
|
16
16
|
/**
|
|
17
17
|
* Returns env-var definitions for the full Intlayer config to be injected at
|
|
18
18
|
* build time. Allows bundlers to dead-code-eliminate unused routing modes,
|
|
@@ -25,7 +25,7 @@ declare const formatNodeTypeToEnvVar: (nodeTypes: string[], addProcessEnv?: bool
|
|
|
25
25
|
* getConfigEnvVars(config, true)
|
|
26
26
|
* // { 'process.env.INTLAYER_ROUTING_MODE': '"prefix-no-default"', ... }
|
|
27
27
|
*/
|
|
28
|
-
declare const getConfigEnvVars: (config: IntlayerConfig,
|
|
28
|
+
declare const getConfigEnvVars: (config: IntlayerConfig, wrapKey?: (key: string) => string, wrapValue?: (value: string) => string) => Record<string, string>;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { formatNodeTypeToEnvVar, getConfigEnvVars };
|
|
31
31
|
//# sourceMappingURL=envVars.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envVars.d.ts","names":[],"sources":["../../../src/envVars/envVars.ts"],"mappings":";;;;;AAaA;;;;;;;;;cAAa,sBAAA,GACX,SAAA,YACA,
|
|
1
|
+
{"version":3,"file":"envVars.d.ts","names":[],"sources":["../../../src/envVars/envVars.ts"],"mappings":";;;;;AAaA;;;;;;;;;cAAa,sBAAA,GACX,SAAA,YACA,OAAA,IAAW,GAAA,qBACX,SAAA,IAAa,KAAA,wBACZ,MAAA;;;AAsBH;;;;;;;;;;cAAa,gBAAA,GACX,MAAA,EAAQ,cAAA,EACR,OAAA,IAAW,GAAA,qBACX,SAAA,IAAa,KAAA,wBACZ,MAAA"}
|
package/dist/types/logger.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ declare const spinnerFrames: string[];
|
|
|
19
19
|
* It allows overriding the default configuration by passing a config object in the details parameter.
|
|
20
20
|
* The configuration is merged with the default configuration from the intlayer config file.
|
|
21
21
|
*/
|
|
22
|
-
declare const getAppLogger: (configuration?: IntlayerConfig, globalDetails?: Details) => (content: any, details?: Details) => void;
|
|
22
|
+
declare const getAppLogger: (configuration?: Pick<IntlayerConfig, "log">, globalDetails?: Details) => (content: any, details?: Details) => void;
|
|
23
23
|
declare const colorize: (string: string, color?: ANSIColorsType, reset?: boolean | ANSIColorsType) => string;
|
|
24
24
|
declare const colorizeLocales: (locales: Locale | Locale[], color?: ANSIColorsType, reset?: boolean | ANSIColorsType) => string;
|
|
25
25
|
declare const colorizeKey: (keyPath: string | string[], color?: ANSIColorsType, reset?: boolean | ANSIColorsType) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","names":[],"sources":["../../src/logger.ts"],"mappings":";;;;;KAQY,cAAA,WACF,gBAAA,eAA8B,gBAAA;AAAA,KAE5B,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,cAgBR,aAAA;;;;;;cAOA,YAAA,GACV,aAAA,GAAgB,cAAA,
|
|
1
|
+
{"version":3,"file":"logger.d.ts","names":[],"sources":["../../src/logger.ts"],"mappings":";;;;;KAQY,cAAA,WACF,gBAAA,eAA8B,gBAAA;AAAA,KAE5B,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,cAgBR,aAAA;;;;;;cAOA,YAAA,GACV,aAAA,GAAgB,IAAA,CAAK,cAAA,UAAwB,aAAA,GAAgB,OAAA,MAC7D,OAAA,OAAc,OAAA,GAAU,OAAA;AAAA,cAUd,QAAA,GACX,MAAA,UACA,KAAA,GAAQ,cAAA,EACR,KAAA,aAAkB,cAAA;AAAA,cAMP,eAAA,GACX,OAAA,EAAS,MAAA,GAAS,MAAA,IAClB,KAAA,GAAO,cAAA,EACP,KAAA,aAAiB,cAAA;AAAA,cAON,WAAA,GACX,OAAA,qBACA,KAAA,GAAO,cAAA,EACP,KAAA,aAAiB,cAAA;AAAA,cAON,YAAA,GACX,IAAA,qBACA,KAAA,GAAO,cAAA,EACP,KAAA,aAAiB,cAAA;AAAA,cAON,cAAA,GACX,MAAA,mBACA,OAAA,GAAS,OAAA,CAAQ,MAAA,CAAO,IAAA,CAAK,cAAA,EAAgB,cAAA;AAAA,cAqBlC,WAAA,GAAe,IAAA;;;;AA7G5B;;;cAsJa,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,6 @@
|
|
|
1
|
+
import { GetConfigurationAndFilePathResult, GetConfigurationOptions, getConfiguration, getConfigurationAndFilePath } from "./configFile/getConfiguration.js";
|
|
1
2
|
import { BrowserIntlayerConfig, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration } from "./configFile/buildBrowserConfiguration.js";
|
|
2
3
|
import { buildConfigurationFields } from "./configFile/buildConfigurationFields.js";
|
|
3
4
|
import { aiSchema, buildSchema, compilerSchema, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, internationalizationSchema, intlayerConfigSchema, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, storageAttributesSchema, storageSchema, systemSchema } from "./configFile/configurationSchema.js";
|
|
4
|
-
import { GetConfigurationAndFilePathResult, GetConfigurationOptions, getConfiguration, getConfigurationAndFilePath } from "./configFile/getConfiguration.js";
|
|
5
5
|
import { configurationFilesCandidates, searchConfigurationFile } from "./configFile/searchConfigurationFile.js";
|
|
6
6
|
export { BrowserIntlayerConfig, GetConfigurationAndFilePathResult, GetConfigurationOptions, aiSchema, buildBrowserConfiguration, buildConfigurationFields, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, buildSchema, compilerSchema, configurationFilesCandidates, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, extractBrowserConfiguration, getConfiguration, getConfigurationAndFilePath, internationalizationSchema, intlayerConfigSchema, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, searchConfigurationFile, storageAttributesSchema, storageSchema, systemSchema };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getStorageAttributes.d.ts","names":[],"sources":["../../../src/utils/getStorageAttributes.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"getStorageAttributes.d.ts","names":[],"sources":["../../../src/utils/getStorageAttributes.ts"],"mappings":";;;;;AA6JA;;;;;cAAa,oBAAA,GACX,OAAA,EAAS,mBAAA,KACR,0BAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { extractErrorMessage } from "./extractErrorMessage.js";
|
|
2
2
|
import { logStack } from "./logStack.js";
|
|
3
3
|
import { normalizePath } from "./normalizePath.js";
|
|
4
|
+
import { WindowsWithIntlayer, setIntlayerIdentifier } from "./setIntlayerIdentifier.js";
|
|
4
5
|
import { camelCaseToKebabCase } from "./stringFormatter/camelCaseToKebabCase.js";
|
|
5
6
|
import { camelCaseToSentence } from "./stringFormatter/camelCaseToSentence.js";
|
|
6
7
|
import { kebabCaseToCamelCase } from "./stringFormatter/kebabCaseToCamelCase.js";
|
|
@@ -17,4 +18,4 @@ import { getStorageAttributes } from "./getStorageAttributes.js";
|
|
|
17
18
|
import { PluginNodeType, getUnusedNodeTypes, getUnusedNodeTypesAsync, getUsedNodeTypes, getUsedNodeTypesAsync } from "./getUsedNodeTypes.js";
|
|
18
19
|
import { parseFilePathPattern, parseStringPattern } from "./parseFilePathPattern.js";
|
|
19
20
|
import { RetryManagerOptions, retryManager } from "./retryManager.js";
|
|
20
|
-
export { CacheKey, GetAliasOptions, PluginNodeType, RetryManagerOptions, cacheDisk, cacheMemory, camelCaseToKebabCase, camelCaseToSentence, clearAllCache, clearCache, clearDiskCacheMemory, clearModuleCache, compareVersions, computeKeyId, configESMxCJSRequire, extractErrorMessage, getAlias, getCache, getExtension, getPackageJsonPath, getProjectRequire, getStorageAttributes, getUnusedNodeTypes, getUnusedNodeTypesAsync, getUsedNodeTypes, getUsedNodeTypesAsync, isESModule, kebabCaseToCamelCase, logStack, normalizePath, parseFilePathPattern, parseStringPattern, retryManager, setCache, stableStringify, toLowerCamelCase };
|
|
21
|
+
export { CacheKey, GetAliasOptions, PluginNodeType, RetryManagerOptions, WindowsWithIntlayer, cacheDisk, cacheMemory, camelCaseToKebabCase, camelCaseToSentence, clearAllCache, clearCache, clearDiskCacheMemory, clearModuleCache, compareVersions, computeKeyId, configESMxCJSRequire, extractErrorMessage, getAlias, getCache, getExtension, getPackageJsonPath, getProjectRequire, getStorageAttributes, getUnusedNodeTypes, getUnusedNodeTypesAsync, getUsedNodeTypes, getUsedNodeTypesAsync, isESModule, kebabCaseToCamelCase, logStack, normalizePath, parseFilePathPattern, parseStringPattern, retryManager, setCache, setIntlayerIdentifier, stableStringify, toLowerCamelCase };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/utils/setIntlayerIdentifier.d.ts
|
|
2
|
+
type Meta = {
|
|
3
|
+
enabled: true;
|
|
4
|
+
};
|
|
5
|
+
type WindowsWithIntlayer = typeof window & {
|
|
6
|
+
intlayer?: Meta;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Sets the version of Intlayer in the window object.
|
|
10
|
+
* This is used for Intlayer detection in the browser.
|
|
11
|
+
*/
|
|
12
|
+
declare const setIntlayerIdentifier: () => void;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { WindowsWithIntlayer, setIntlayerIdentifier };
|
|
15
|
+
//# sourceMappingURL=setIntlayerIdentifier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setIntlayerIdentifier.d.ts","names":[],"sources":["../../../src/utils/setIntlayerIdentifier.ts"],"mappings":";KAAK,IAAA;EACH,OAAA;AAAA;AAAA,KAGU,mBAAA,UAA6B,MAAA;EACvC,QAAA,GAAW,IAAA;AAAA;AADb;;;;AAAA,cAQa,qBAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/config",
|
|
3
|
-
"version": "8.6.
|
|
3
|
+
"version": "8.6.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.",
|
|
6
6
|
"keywords": [
|
|
@@ -88,6 +88,11 @@
|
|
|
88
88
|
"require": "./dist/cjs/defaultValues/index.cjs",
|
|
89
89
|
"import": "./dist/esm/defaultValues/index.mjs"
|
|
90
90
|
},
|
|
91
|
+
"./bundle": {
|
|
92
|
+
"types": "./dist/types/bundle/index.d.ts",
|
|
93
|
+
"require": "./dist/cjs/bundle/index.cjs",
|
|
94
|
+
"import": "./dist/esm/bundle/index.mjs"
|
|
95
|
+
},
|
|
91
96
|
"./package.json": "./package.json"
|
|
92
97
|
},
|
|
93
98
|
"main": "dist/cjs/index.cjs",
|
|
@@ -125,6 +130,9 @@
|
|
|
125
130
|
"defaultValues": [
|
|
126
131
|
"./dist/types/defaultValues/index.d.ts"
|
|
127
132
|
],
|
|
133
|
+
"bundle": [
|
|
134
|
+
"./dist/types/bundle/index.d.ts"
|
|
135
|
+
],
|
|
128
136
|
"package.json": [
|
|
129
137
|
"./package.json"
|
|
130
138
|
]
|
|
@@ -152,7 +160,7 @@
|
|
|
152
160
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
153
161
|
},
|
|
154
162
|
"dependencies": {
|
|
155
|
-
"@intlayer/types": "8.6.
|
|
163
|
+
"@intlayer/types": "8.6.5",
|
|
156
164
|
"defu": "6.1.4",
|
|
157
165
|
"dotenv": "17.3.1",
|
|
158
166
|
"esbuild": "0.27.4",
|