@intlayer/config 9.4.3 → 9.5.0
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/README.md +0 -2
- package/dist/cjs/callers/compat/lingui.cjs +18 -28
- package/dist/cjs/callers/compat/lingui.cjs.map +1 -1
- package/dist/cjs/callers/compat/reactI18next.cjs +1 -0
- package/dist/cjs/callers/compat/reactI18next.cjs.map +1 -1
- package/dist/cjs/callers/compat/reactIntl.cjs +26 -15
- package/dist/cjs/callers/compat/reactIntl.cjs.map +1 -1
- package/dist/cjs/callers/index.cjs +1 -0
- package/dist/cjs/callers/index.cjs.map +1 -1
- package/dist/cjs/callers/transform.cjs +16 -9
- package/dist/cjs/callers/transform.cjs.map +1 -1
- package/dist/esm/bundle/index.mjs +1 -1
- package/dist/esm/callers/compat/lingui.mjs +18 -28
- package/dist/esm/callers/compat/lingui.mjs.map +1 -1
- package/dist/esm/callers/compat/reactI18next.mjs +1 -0
- package/dist/esm/callers/compat/reactI18next.mjs.map +1 -1
- package/dist/esm/callers/compat/reactIntl.mjs +26 -15
- package/dist/esm/callers/compat/reactIntl.mjs.map +1 -1
- package/dist/esm/callers/index.mjs +2 -2
- package/dist/esm/callers/index.mjs.map +1 -1
- package/dist/esm/callers/transform.mjs +16 -10
- package/dist/esm/callers/transform.mjs.map +1 -1
- package/dist/types/built.d.ts +13 -14
- package/dist/types/built.d.ts.map +1 -1
- package/dist/types/bundle/index.d.ts +3 -4
- package/dist/types/bundle/index.d.ts.map +1 -1
- package/dist/types/bundle/logBundle.d.ts +1 -2
- package/dist/types/bundle/logBundle.d.ts.map +1 -1
- package/dist/types/callers/base.d.ts +1 -2
- package/dist/types/callers/base.d.ts.map +1 -1
- package/dist/types/callers/compat/i18next.d.ts +1 -2
- package/dist/types/callers/compat/i18next.d.ts.map +1 -1
- package/dist/types/callers/compat/lingui.d.ts +1 -2
- package/dist/types/callers/compat/lingui.d.ts.map +1 -1
- package/dist/types/callers/compat/nextIntl.d.ts +1 -2
- package/dist/types/callers/compat/nextIntl.d.ts.map +1 -1
- package/dist/types/callers/compat/reactI18next.d.ts +1 -2
- package/dist/types/callers/compat/reactI18next.d.ts.map +1 -1
- package/dist/types/callers/compat/reactIntl.d.ts +1 -2
- package/dist/types/callers/compat/reactIntl.d.ts.map +1 -1
- package/dist/types/callers/compat/useIntl.d.ts +1 -2
- package/dist/types/callers/compat/useIntl.d.ts.map +1 -1
- package/dist/types/callers/compat/vueI18n.d.ts +1 -2
- package/dist/types/callers/compat/vueI18n.d.ts.map +1 -1
- package/dist/types/callers/index.d.ts +7 -7
- package/dist/types/callers/index.d.ts.map +1 -1
- package/dist/types/callers/transform.d.ts +17 -12
- package/dist/types/callers/transform.d.ts.map +1 -1
- package/dist/types/callers/types.d.ts +9 -4
- package/dist/types/callers/types.d.ts.map +1 -1
- package/dist/types/colors.d.ts +15 -15
- package/dist/types/colors.d.ts.map +1 -1
- package/dist/types/configFile/buildBrowserConfiguration.d.ts +8 -9
- package/dist/types/configFile/buildBrowserConfiguration.d.ts.map +1 -1
- package/dist/types/configFile/buildConfigurationFields.d.ts +2 -2
- package/dist/types/configFile/buildConfigurationFields.d.ts.map +1 -1
- package/dist/types/configFile/configurationSchema.d.ts +18 -19
- package/dist/types/configFile/configurationSchema.d.ts.map +1 -1
- package/dist/types/configFile/getConfiguration.d.ts +4 -5
- package/dist/types/configFile/getConfiguration.d.ts.map +1 -1
- package/dist/types/configFile/loadConfigurationFile.d.ts +1 -2
- package/dist/types/configFile/loadConfigurationFile.d.ts.map +1 -1
- package/dist/types/configFile/searchConfigurationFile.d.ts +2 -3
- package/dist/types/configFile/searchConfigurationFile.d.ts.map +1 -1
- package/dist/types/defaultValues/analytics.d.ts +3 -4
- package/dist/types/defaultValues/analytics.d.ts.map +1 -1
- package/dist/types/defaultValues/build.d.ts +10 -11
- package/dist/types/defaultValues/build.d.ts.map +1 -1
- package/dist/types/defaultValues/compiler.d.ts +4 -5
- package/dist/types/defaultValues/compiler.d.ts.map +1 -1
- package/dist/types/defaultValues/content.d.ts +7 -8
- package/dist/types/defaultValues/content.d.ts.map +1 -1
- package/dist/types/defaultValues/dictionary.d.ts +8 -9
- package/dist/types/defaultValues/dictionary.d.ts.map +1 -1
- package/dist/types/defaultValues/editor.d.ts +9 -10
- package/dist/types/defaultValues/editor.d.ts.map +1 -1
- package/dist/types/defaultValues/internationalization.d.ts +4 -5
- package/dist/types/defaultValues/internationalization.d.ts.map +1 -1
- package/dist/types/defaultValues/log.d.ts +2 -3
- package/dist/types/defaultValues/log.d.ts.map +1 -1
- package/dist/types/defaultValues/routing.d.ts +8 -9
- package/dist/types/defaultValues/routing.d.ts.map +1 -1
- package/dist/types/defaultValues/system.d.ts +12 -13
- package/dist/types/defaultValues/system.d.ts.map +1 -1
- package/dist/types/dictionaryPreload.d.ts +7 -8
- package/dist/types/dictionaryPreload.d.ts.map +1 -1
- package/dist/types/envVars/envVars.d.ts +4 -5
- package/dist/types/envVars/envVars.d.ts.map +1 -1
- package/dist/types/extract/constants.d.ts +1 -2
- package/dist/types/extract/constants.d.ts.map +1 -1
- package/dist/types/extract/shouldExtract.d.ts +1 -2
- package/dist/types/extract/shouldExtract.d.ts.map +1 -1
- package/dist/types/loadEnvFile.d.ts +3 -4
- package/dist/types/loadEnvFile.d.ts.map +1 -1
- package/dist/types/loadExternalFile/bundleFile.d.ts +4 -5
- package/dist/types/loadExternalFile/bundleFile.d.ts.map +1 -1
- package/dist/types/loadExternalFile/bundleJSFile.d.ts +1 -2
- package/dist/types/loadExternalFile/bundleJSFile.d.ts.map +1 -1
- package/dist/types/loadExternalFile/loadExternalFile.d.ts +3 -4
- package/dist/types/loadExternalFile/loadExternalFile.d.ts.map +1 -1
- package/dist/types/loadExternalFile/parseFileContent.d.ts +3 -4
- package/dist/types/loadExternalFile/parseFileContent.d.ts.map +1 -1
- package/dist/types/loadExternalFile/transpileTSToCJS.d.ts +4 -5
- package/dist/types/loadExternalFile/transpileTSToCJS.d.ts.map +1 -1
- package/dist/types/logger.d.ts +19 -20
- package/dist/types/logger.d.ts.map +1 -1
- package/dist/types/secrets.browser.d.ts +1 -2
- package/dist/types/secrets.browser.d.ts.map +1 -1
- package/dist/types/secrets.d.ts +1 -2
- package/dist/types/secrets.d.ts.map +1 -1
- package/dist/types/utils/ESMxCJSHelpers.d.ts +3 -4
- package/dist/types/utils/ESMxCJSHelpers.d.ts.map +1 -1
- package/dist/types/utils/alias.d.ts +2 -3
- package/dist/types/utils/alias.d.ts.map +1 -1
- package/dist/types/utils/builtConfigKeys.d.ts +2 -3
- package/dist/types/utils/builtConfigKeys.d.ts.map +1 -1
- package/dist/types/utils/cacheDisk.d.ts +2 -3
- package/dist/types/utils/cacheDisk.d.ts.map +1 -1
- package/dist/types/utils/cacheMemory.d.ts +8 -9
- package/dist/types/utils/cacheMemory.d.ts.map +1 -1
- package/dist/types/utils/clearModuleCache.d.ts +1 -2
- package/dist/types/utils/clearModuleCache.d.ts.map +1 -1
- package/dist/types/utils/compareVersions.d.ts +1 -2
- package/dist/types/utils/compareVersions.d.ts.map +1 -1
- package/dist/types/utils/extractErrorMessage.d.ts +1 -2
- package/dist/types/utils/extractErrorMessage.d.ts.map +1 -1
- package/dist/types/utils/getDictionarySelectorUsage.d.ts +1 -2
- package/dist/types/utils/getDictionarySelectorUsage.d.ts.map +1 -1
- package/dist/types/utils/getExtension.d.ts +1 -2
- package/dist/types/utils/getExtension.d.ts.map +1 -1
- package/dist/types/utils/getPackageJsonPath.d.ts +1 -2
- package/dist/types/utils/getPackageJsonPath.d.ts.map +1 -1
- package/dist/types/utils/getStorageAttributes.d.ts +1 -2
- package/dist/types/utils/getStorageAttributes.d.ts.map +1 -1
- package/dist/types/utils/getUsedNodeTypes.d.ts +5 -6
- package/dist/types/utils/getUsedNodeTypes.d.ts.map +1 -1
- package/dist/types/utils/isPackageInstalled.d.ts +1 -2
- package/dist/types/utils/isPackageInstalled.d.ts.map +1 -1
- package/dist/types/utils/logStack.d.ts +1 -2
- package/dist/types/utils/logStack.d.ts.map +1 -1
- package/dist/types/utils/normalizePath.d.ts +1 -2
- package/dist/types/utils/normalizePath.d.ts.map +1 -1
- package/dist/types/utils/parseFilePathPattern.d.ts +2 -3
- package/dist/types/utils/parseFilePathPattern.d.ts.map +1 -1
- package/dist/types/utils/pathSecurity.d.ts +1 -2
- package/dist/types/utils/pathSecurity.d.ts.map +1 -1
- package/dist/types/utils/retryManager.d.ts +2 -3
- package/dist/types/utils/retryManager.d.ts.map +1 -1
- package/dist/types/utils/setIntlayerIdentifier.d.ts +2 -3
- package/dist/types/utils/setIntlayerIdentifier.d.ts.map +1 -1
- package/dist/types/utils/stringFormatter/camelCaseToKebabCase.d.ts +1 -2
- package/dist/types/utils/stringFormatter/camelCaseToKebabCase.d.ts.map +1 -1
- package/dist/types/utils/stringFormatter/camelCaseToSentence.d.ts +1 -2
- package/dist/types/utils/stringFormatter/camelCaseToSentence.d.ts.map +1 -1
- package/dist/types/utils/stringFormatter/kebabCaseToCamelCase.d.ts +1 -2
- package/dist/types/utils/stringFormatter/kebabCaseToCamelCase.d.ts.map +1 -1
- package/dist/types/utils/stringFormatter/toLowerCamelCase.d.ts +1 -2
- package/dist/types/utils/stringFormatter/toLowerCamelCase.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* (@intlayer/babel, @intlayer/vue-compiler, @intlayer/svelte-compiler, @intlayer/engine)
|
|
6
6
|
* and the `eslint-plugin-intlayer` `no-raw-text` rule.
|
|
7
7
|
*/
|
|
8
|
-
declare const ATTRIBUTES_TO_EXTRACT: readonly ['title', 'placeholder', 'alt', 'aria-label', 'label'];
|
|
8
|
+
export declare const ATTRIBUTES_TO_EXTRACT: readonly ['title', 'placeholder', 'alt', 'aria-label', 'label'];
|
|
9
9
|
//#endregion
|
|
10
|
-
export { ATTRIBUTES_TO_EXTRACT };
|
|
11
10
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","names":[],"sources":["../../../src/extract/constants.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","names":[],"sources":["../../../src/extract/constants.ts"],"mappings":";;;;;;;qBAMa"}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* - Uncapitalized strings of 2 words or fewer (likely technical terms)
|
|
10
10
|
* - Dynamic content patterns like Vue bindings (`v-`) or object patterns (`{`)
|
|
11
11
|
*/
|
|
12
|
-
declare const shouldExtract: (text: string) => boolean;
|
|
12
|
+
export declare const shouldExtract: (text: string) => boolean;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { shouldExtract };
|
|
15
14
|
//# sourceMappingURL=shouldExtract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shouldExtract.d.ts","names":[],"sources":["../../../src/extract/shouldExtract.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"shouldExtract.d.ts","names":[],"sources":["../../../src/extract/shouldExtract.ts"],"mappings":";;;;;;;;;;;qBAUa,gBAAa"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
//#region src/loadEnvFile.d.ts
|
|
2
|
-
type LoadEnvFileOptions = {
|
|
2
|
+
export type LoadEnvFileOptions = {
|
|
3
3
|
env?: string;
|
|
4
4
|
envFile?: string;
|
|
5
5
|
};
|
|
6
|
-
declare const getEnvFilePath: (env?: string, envFile?: string) => string | undefined;
|
|
7
|
-
declare const loadEnvFile: (options?: Partial<LoadEnvFileOptions>) => Record<string, string>;
|
|
6
|
+
export declare const getEnvFilePath: (env?: string, envFile?: string) => string | undefined;
|
|
7
|
+
export declare const loadEnvFile: (options?: Partial<LoadEnvFileOptions>) => Record<string, string>;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { LoadEnvFileOptions, getEnvFilePath, loadEnvFile };
|
|
10
9
|
//# sourceMappingURL=loadEnvFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadEnvFile.d.ts","names":[],"sources":["../../src/loadEnvFile.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"loadEnvFile.d.ts","names":[],"sources":["../../src/loadEnvFile.ts"],"mappings":";YAKY;EACV;EACA;;qBAGW,iBAAc,cACd;qBAwCA,cAAW,UACZ,QAAQ,wBACjB"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { BuildOptions, Loader, Plugin } from "esbuild";
|
|
2
2
|
//#region src/loadExternalFile/bundleFile.d.ts
|
|
3
|
-
type ESBuildPlugin = Plugin;
|
|
4
|
-
declare const getLoader: (extension: string) => Loader;
|
|
5
|
-
declare const bundleFileSync: (code: string, filePath: string, options?: BuildOptions) => string | undefined;
|
|
6
|
-
declare const bundleFile: (code: string, filePath: string, options?: BuildOptions) => Promise<string | undefined>;
|
|
3
|
+
export type ESBuildPlugin = Plugin;
|
|
4
|
+
export declare const getLoader: (extension: string) => Loader;
|
|
5
|
+
export declare const bundleFileSync: (code: string, filePath: string, options?: BuildOptions) => string | undefined;
|
|
6
|
+
export declare const bundleFile: (code: string, filePath: string, options?: BuildOptions) => Promise<string | undefined>;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { ESBuildPlugin, bundleFile, bundleFileSync, getLoader };
|
|
9
8
|
//# sourceMappingURL=bundleFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundleFile.d.ts","names":[],"sources":["../../../src/loadExternalFile/bundleFile.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"bundleFile.d.ts","names":[],"sources":["../../../src/loadExternalFile/bundleFile.ts"],"mappings":";;YAWY,gBAAgB;qBAEf,YAAS,sBAAwB;qBAiDjC,iBAAc,cACb,kBACI,UACN;qBAqBC,aAAU,cACT,kBACI,UACN,iBACT"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BuildOptions } from "esbuild";
|
|
2
2
|
//#region src/loadExternalFile/bundleJSFile.d.ts
|
|
3
|
-
declare const bundleJSFile: (buildOptions: BuildOptions) => Promise<import("esbuild").BuildResult<{
|
|
3
|
+
export declare const bundleJSFile: (buildOptions: BuildOptions) => Promise<import("esbuild").BuildResult<{
|
|
4
4
|
legalComments?: 'none' | 'inline' | 'eof' | 'linked' | 'external';
|
|
5
5
|
sourceRoot?: string;
|
|
6
6
|
sourcesContent?: boolean;
|
|
@@ -95,5 +95,4 @@ declare const bundleJSFile: (buildOptions: BuildOptions) => Promise<import("esbu
|
|
|
95
95
|
};
|
|
96
96
|
}>>;
|
|
97
97
|
//#endregion
|
|
98
|
-
export { bundleJSFile };
|
|
99
98
|
//# sourceMappingURL=bundleJSFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundleJSFile.d.ts","names":[],"sources":["../../../src/loadExternalFile/bundleJSFile.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"bundleJSFile.d.ts","names":[],"sources":["../../../src/loadExternalFile/bundleJSFile.ts"],"mappings":";;qBAyBa,eAAY,cAAwB,iBAAY,0BAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAZlD;aACC;aACA;aACD;aACC;aACA;aACC;aACF;aACC"}
|
|
@@ -2,7 +2,7 @@ import { SandBoxContextOptions } from "./parseFileContent.js";
|
|
|
2
2
|
import { TranspileOptions } from "./transpileTSToCJS.js";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
4
|
//#region src/loadExternalFile/loadExternalFile.d.ts
|
|
5
|
-
type LoadExternalFileOptions = {
|
|
5
|
+
export type LoadExternalFileOptions = {
|
|
6
6
|
configuration?: IntlayerConfig;
|
|
7
7
|
buildOptions?: TranspileOptions;
|
|
8
8
|
logError?: boolean;
|
|
@@ -20,13 +20,12 @@ type LoadExternalFileOptions = {
|
|
|
20
20
|
*
|
|
21
21
|
* Accepts JSON, JS, MJS and TS files as configuration
|
|
22
22
|
*/
|
|
23
|
-
declare const loadExternalFileSync: (filePath: string, options?: LoadExternalFileOptions) => any | undefined;
|
|
23
|
+
export declare const loadExternalFileSync: (filePath: string, options?: LoadExternalFileOptions) => any | undefined;
|
|
24
24
|
/**
|
|
25
25
|
* Load the content declaration from the given path
|
|
26
26
|
*
|
|
27
27
|
* Accepts JSON, JS, MJS and TS files as configuration
|
|
28
28
|
*/
|
|
29
|
-
declare const loadExternalFile: (filePath: string, options?: LoadExternalFileOptions) => Promise<any | undefined>;
|
|
29
|
+
export declare const loadExternalFile: (filePath: string, options?: LoadExternalFileOptions) => Promise<any | undefined>;
|
|
30
30
|
//#endregion
|
|
31
|
-
export { LoadExternalFileOptions, loadExternalFile, loadExternalFileSync };
|
|
32
31
|
//# sourceMappingURL=loadExternalFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadExternalFile.d.ts","names":[],"sources":["../../../src/loadExternalFile/loadExternalFile.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"loadExternalFile.d.ts","names":[],"sources":["../../../src/loadExternalFile/loadExternalFile.ts"],"mappings":";;;;YAmBY;EACV,gBAAgB;EAChB,eAAe;EACf;;;;;;;;EAQA,iBAAiB;IACf;;;;;;qBAOS,uBAAoB,kBACf,UACN;;;;;;qBA+FC,mBAAgB,kBACX,UACN,4BACT"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LoadEnvFileOptions } from "../loadEnvFile.js";
|
|
2
2
|
import { Context } from "node:vm";
|
|
3
3
|
//#region src/loadExternalFile/parseFileContent.d.ts
|
|
4
|
-
type SandBoxContextOptions = {
|
|
4
|
+
export type SandBoxContextOptions = {
|
|
5
5
|
envVarOptions?: LoadEnvFileOptions;
|
|
6
6
|
projectRequire?: NodeJS.Require;
|
|
7
7
|
additionalEnvVars?: Record<string, string>;
|
|
@@ -30,8 +30,7 @@ type SandBoxContextOptions = {
|
|
|
30
30
|
* full host privileges. Only ever run trusted, build-time project files
|
|
31
31
|
* (same trust model as `vite.config.ts`).
|
|
32
32
|
*/
|
|
33
|
-
declare const getSandBoxContext: (options?: SandBoxContextOptions) => Context;
|
|
34
|
-
declare const parseFileContent: <T>(fileContentString: string, options?: SandBoxContextOptions) => T | undefined;
|
|
33
|
+
export declare const getSandBoxContext: (options?: SandBoxContextOptions) => Context;
|
|
34
|
+
export declare const parseFileContent: <T>(fileContentString: string, options?: SandBoxContextOptions) => T | undefined;
|
|
35
35
|
//#endregion
|
|
36
|
-
export { SandBoxContextOptions, getSandBoxContext, parseFileContent };
|
|
37
36
|
//# sourceMappingURL=parseFileContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseFileContent.d.ts","names":[],"sources":["../../../src/loadExternalFile/parseFileContent.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"parseFileContent.d.ts","names":[],"sources":["../../../src/loadExternalFile/parseFileContent.ts"],"mappings":";;;YAKY;EACV,gBAAgB;EAChB,iBAAiB,OAAO;EACxB,oBAAoB;;;;;;;;EAQpB,QAAQ;;;;;;;EAOR,UAAU;;;;;;;;;;;qBA2FC,oBAAiB,UAAc,0BAAwB;qBAuEvD,mBAAoB,GAAC,2BACP,UACf,0BACT"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BuildOptions } from "esbuild";
|
|
2
2
|
//#region src/loadExternalFile/transpileTSToCJS.d.ts
|
|
3
|
-
type TranspileOptions = BuildOptions & {
|
|
3
|
+
export type TranspileOptions = BuildOptions & {
|
|
4
4
|
/**
|
|
5
5
|
* Optional custom esbuild instance to use for transpilation.
|
|
6
6
|
* Useful in environments (e.g. VS Code extensions) where the bundled
|
|
@@ -11,9 +11,8 @@ type TranspileOptions = BuildOptions & {
|
|
|
11
11
|
esbuildInstance?: typeof import('esbuild');
|
|
12
12
|
};
|
|
13
13
|
/** Clears the in-memory transpilation cache (mainly for tests). */
|
|
14
|
-
declare const clearTranspileCache: () => void;
|
|
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>;
|
|
14
|
+
export declare const clearTranspileCache: () => void;
|
|
15
|
+
export declare const transpileTSToCJSSync: (code: string, filePath: string, options?: TranspileOptions) => string | undefined;
|
|
16
|
+
export declare const transpileTSToCJS: (code: string, filePath: string, options?: TranspileOptions) => Promise<string | undefined>;
|
|
17
17
|
//#endregion
|
|
18
|
-
export { TranspileOptions, clearTranspileCache, transpileTSToCJS, transpileTSToCJSSync };
|
|
19
18
|
//# sourceMappingURL=transpileTSToCJS.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transpileTSToCJS.d.ts","names":[],"sources":["../../../src/loadExternalFile/transpileTSToCJS.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"transpileTSToCJS.d.ts","names":[],"sources":["../../../src/loadExternalFile/transpileTSToCJS.ts"],"mappings":";;YAeY,mBAAmB;;;;;;;;EAQ7B;;;qBA4KW;qBAKA,uBAAoB,cACnB,kBACI,UACN;qBAsFC,mBAAgB,cACf,kBACI,UACN,qBACT"}
|
package/dist/types/logger.d.ts
CHANGED
|
@@ -2,46 +2,45 @@ import { colors_d_exports } from "./colors.js";
|
|
|
2
2
|
import { CustomIntlayerConfig, IntlayerConfig } from "@intlayer/types/config";
|
|
3
3
|
import { Locale } from "@intlayer/types/allLocales";
|
|
4
4
|
//#region src/logger.d.ts
|
|
5
|
-
type ANSIColorsType = (typeof colors_d_exports)[keyof typeof colors_d_exports];
|
|
6
|
-
type Details = {
|
|
5
|
+
export type ANSIColorsType = (typeof colors_d_exports)[keyof typeof colors_d_exports];
|
|
6
|
+
export type Details = {
|
|
7
7
|
isVerbose?: boolean;
|
|
8
8
|
level?: 'info' | 'warn' | 'error' | 'debug';
|
|
9
9
|
config?: CustomIntlayerConfig['log'];
|
|
10
10
|
};
|
|
11
|
-
type Logger = (content: any, details?: Details) => void;
|
|
12
|
-
declare const setPrefix: (prefix: string | undefined) => void;
|
|
13
|
-
declare const getPrefix: (configPrefix?: string) => string | undefined;
|
|
14
|
-
declare const logger: Logger;
|
|
15
|
-
declare const spinnerFrames: string[];
|
|
11
|
+
export type Logger = (content: any, details?: Details) => void;
|
|
12
|
+
export declare const setPrefix: (prefix: string | undefined) => void;
|
|
13
|
+
export declare const getPrefix: (configPrefix?: string) => string | undefined;
|
|
14
|
+
export declare const logger: Logger;
|
|
15
|
+
export declare const spinnerFrames: string[];
|
|
16
16
|
/**
|
|
17
17
|
* The appLogger function takes the logger and merges it with the configuration from the intlayer config file.
|
|
18
18
|
* It allows overriding the default configuration by passing a config object in the details parameter.
|
|
19
19
|
* The configuration is merged with the default configuration from the intlayer config file.
|
|
20
20
|
*/
|
|
21
|
-
declare const getAppLogger: (configuration?: Pick<IntlayerConfig, 'log'>, globalDetails?: Details) => (content: any, details?: Details) => void;
|
|
22
|
-
declare const colorize: (string: string, color?: ANSIColorsType, reset?: boolean | ANSIColorsType) => string;
|
|
23
|
-
declare const colorizeLocales: (locales: Locale | Locale[], color?: ANSIColorsType, reset?: boolean | ANSIColorsType) => string;
|
|
24
|
-
declare const colorizeKey: (keyPath: string | string[], color?: ANSIColorsType, reset?: boolean | ANSIColorsType) => string;
|
|
25
|
-
declare const colorizePath: (path: string | string[], color?: ANSIColorsType, reset?: boolean | ANSIColorsType) => string;
|
|
26
|
-
declare const colorizeNumber: (number: number | string, options?: Partial<Record<Intl.LDMLPluralRule, ANSIColorsType>>) => string;
|
|
27
|
-
declare const colorizeObject: (obj: any, indentLevel?: number, indentSize?: number, key?: string) => string;
|
|
28
|
-
declare const removeColor: (text: string) => string;
|
|
21
|
+
export declare const getAppLogger: (configuration?: Pick<IntlayerConfig, 'log'>, globalDetails?: Details) => (content: any, details?: Details) => void;
|
|
22
|
+
export declare const colorize: (string: string, color?: ANSIColorsType, reset?: boolean | ANSIColorsType) => string;
|
|
23
|
+
export declare const colorizeLocales: (locales: Locale | Locale[], color?: ANSIColorsType, reset?: boolean | ANSIColorsType) => string;
|
|
24
|
+
export declare const colorizeKey: (keyPath: string | string[], color?: ANSIColorsType, reset?: boolean | ANSIColorsType) => string;
|
|
25
|
+
export declare const colorizePath: (path: string | string[], color?: ANSIColorsType, reset?: boolean | ANSIColorsType) => string;
|
|
26
|
+
export declare const colorizeNumber: (number: number | string, options?: Partial<Record<Intl.LDMLPluralRule, ANSIColorsType>>) => string;
|
|
27
|
+
export declare const colorizeObject: (obj: any, indentLevel?: number, indentSize?: number, key?: string) => string;
|
|
28
|
+
export declare const removeColor: (text: string) => string;
|
|
29
29
|
/**
|
|
30
30
|
* Create a string of spaces of a given length.
|
|
31
31
|
*
|
|
32
32
|
* @param colSize - The length of the string to create.
|
|
33
33
|
* @returns A string of spaces.
|
|
34
34
|
*/
|
|
35
|
-
declare const colon: (text: string | string[], options?: {
|
|
35
|
+
export declare const colon: (text: string | string[], options?: {
|
|
36
36
|
colSize?: number | number[] | string | string[];
|
|
37
37
|
minSize?: number;
|
|
38
38
|
maxSize?: number;
|
|
39
39
|
pad?: 'left' | 'right';
|
|
40
40
|
padChar?: string;
|
|
41
41
|
}) => string;
|
|
42
|
-
declare const x: string;
|
|
43
|
-
declare const v: string;
|
|
44
|
-
declare const clock: string;
|
|
42
|
+
export declare const x: string;
|
|
43
|
+
export declare const v: string;
|
|
44
|
+
export declare const clock: string;
|
|
45
45
|
//#endregion
|
|
46
|
-
export { ANSIColorsType, Details, Logger, clock, colon, colorize, colorizeKey, colorizeLocales, colorizeNumber, colorizeObject, colorizePath, getAppLogger, getPrefix, logger, removeColor, setPrefix, spinnerFrames, v, x };
|
|
47
46
|
//# 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":";;;;YAkBY,yBACF,+BAA8B;YAE5B;EACV;EACA;EACA,SAAS;;YAGC,UAAU,cAAc,UAAU;qBAIjC,YAAS;qBAIT,YAAS;qBAQT,QAAQ;qBAgBR;;;;;;qBAOA,eAAY,gBACN,KAAK,wBAAsB,gBAAkB,aAAO,cACxD,UAAY;qBAUd,WAAQ,gBACL,QACN,gBAAc,kBACJ;qBAMP,kBAAe,SACjB,SAAS,UAAQ,QACnB,gBAAc,kBACJ;qBAON,cAAW,4BACI,QACnB,gBAAc,kBACJ;qBAON,eAAY,yBACA,QAChB,gBAAc,kBACJ;qBAON,iBAAc,yBACF,UACd,QAAQ,OAAO,KAAK,gBAAgB;qBAqBlC,iBAAc,UACjB,sBAAA,qBAAA;qBAiFG,cAAW;;;;;;;qBAyCX,QAAK,yBACO;EAErB;EACA;EACA;EACA;EACA;;qBAyBS;qBACA;qBACA"}
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @returns `undefined`.
|
|
15
15
|
*/
|
|
16
|
-
declare const getEditorClientSecret: () => string | undefined;
|
|
16
|
+
export declare const getEditorClientSecret: () => string | undefined;
|
|
17
17
|
//#endregion
|
|
18
|
-
export { getEditorClientSecret };
|
|
19
18
|
//# sourceMappingURL=secrets.browser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.browser.d.ts","names":[],"sources":["../../src/secrets.browser.ts"],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"secrets.browser.d.ts","names":[],"sources":["../../src/secrets.browser.ts"],"mappings":";;;;;;;;;;;;;;;qBAea"}
|
package/dist/types/secrets.d.ts
CHANGED
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
*
|
|
40
40
|
* @returns The OAuth2 client secret, or `undefined`.
|
|
41
41
|
*/
|
|
42
|
-
declare const getEditorClientSecret: () => string | undefined;
|
|
42
|
+
export declare const getEditorClientSecret: () => string | undefined;
|
|
43
43
|
//#endregion
|
|
44
|
-
export { getEditorClientSecret };
|
|
45
44
|
//# sourceMappingURL=secrets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.d.ts","names":[],"sources":["../../src/secrets.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"secrets.d.ts","names":[],"sources":["../../src/secrets.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAyCa"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
//#region src/utils/ESMxCJSHelpers.d.ts
|
|
2
|
-
declare const isESModule: boolean;
|
|
2
|
+
export declare const isESModule: boolean;
|
|
3
3
|
/**
|
|
4
4
|
* Require relative to the user project
|
|
5
5
|
*
|
|
6
6
|
* Note: Can resolve package that are installed in the user project, ex `'intlayer'`
|
|
7
7
|
*/
|
|
8
|
-
declare const getProjectRequire: (startDir?: string) => NodeJS.Require;
|
|
8
|
+
export declare const getProjectRequire: (startDir?: string) => NodeJS.Require;
|
|
9
9
|
/**
|
|
10
10
|
* Require relative to the @intlayer/config package
|
|
11
11
|
*
|
|
12
12
|
* Note: Can resolve package that are installed in the config package, ex `'@intlayer/types'`
|
|
13
13
|
*/
|
|
14
|
-
declare const configESMxCJSRequire: NodeJS.Require;
|
|
14
|
+
export declare const configESMxCJSRequire: NodeJS.Require;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { configESMxCJSRequire, getProjectRequire, isESModule };
|
|
17
16
|
//# sourceMappingURL=ESMxCJSHelpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ESMxCJSHelpers.d.ts","names":[],"sources":["../../../src/utils/ESMxCJSHelpers.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"ESMxCJSHelpers.d.ts","names":[],"sources":["../../../src/utils/ESMxCJSHelpers.ts"],"mappings":";qBAGa;;;;;;qBAOA,oBAAiB,sBAAwB,OAAO;;;;;;qBAYhD,sBAAsB,OAAO"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
//#region src/utils/alias.d.ts
|
|
3
|
-
type GetAliasOptions = {
|
|
3
|
+
export type GetAliasOptions = {
|
|
4
4
|
configuration: IntlayerConfig;
|
|
5
5
|
format?: 'esm' | 'cjs';
|
|
6
6
|
formatter?: (value: string) => string;
|
|
7
7
|
};
|
|
8
|
-
declare const getAlias: ({ configuration, format, formatter }: GetAliasOptions) => {
|
|
8
|
+
export declare const getAlias: ({ configuration, format, formatter }: GetAliasOptions) => {
|
|
9
9
|
readonly '@intlayer/dictionaries-entry': string;
|
|
10
10
|
readonly '@intlayer/unmerged-dictionaries-entry': string;
|
|
11
11
|
readonly '@intlayer/remote-dictionaries-entry': string;
|
|
@@ -14,5 +14,4 @@ declare const getAlias: ({ configuration, format, formatter }: GetAliasOptions)
|
|
|
14
14
|
readonly '@intlayer/config/built': string;
|
|
15
15
|
};
|
|
16
16
|
//#endregion
|
|
17
|
-
export { GetAliasOptions, getAlias };
|
|
18
17
|
//# sourceMappingURL=alias.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias.d.ts","names":[],"sources":["../../../src/utils/alias.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"alias.d.ts","names":[],"sources":["../../../src/utils/alias.ts"],"mappings":";;YAKY;EACV,eAAe;EACf;EACA,aAAa;;qBAGF,aAAQ,eAAA,QAAA,aAIlB;WAwFC;WACA;WACA;WACA;WACA;WACA"}
|
|
@@ -15,11 +15,10 @@
|
|
|
15
15
|
* they can never drift: adding a section here is the only change required to
|
|
16
16
|
* expose it in every build target.
|
|
17
17
|
*/
|
|
18
|
-
declare const BUILT_CONFIG_KEYS: readonly ["internationalization", "dictionary", "routing", "content", "system", "editor", "analytics", "log", "ai", "build", "compiler", "schemas", "plugins"];
|
|
18
|
+
export declare const BUILT_CONFIG_KEYS: readonly ["internationalization", "dictionary", "routing", "content", "system", "editor", "analytics", "log", "ai", "build", "compiler", "schemas", "plugins"];
|
|
19
19
|
/**
|
|
20
20
|
* Union of the configuration section names exposed by `@intlayer/config/built`.
|
|
21
21
|
*/
|
|
22
|
-
type BuiltConfigKey = (typeof BUILT_CONFIG_KEYS)[number];
|
|
22
|
+
export type BuiltConfigKey = (typeof BUILT_CONFIG_KEYS)[number];
|
|
23
23
|
//#endregion
|
|
24
|
-
export { BUILT_CONFIG_KEYS, BuiltConfigKey };
|
|
25
24
|
//# sourceMappingURL=builtConfigKeys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtConfigKeys.d.ts","names":[],"sources":["../../../src/utils/builtConfigKeys.ts"],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"builtConfigKeys.d.ts","names":[],"sources":["../../../src/utils/builtConfigKeys.ts"],"mappings":";;;;;;;;;;;;;;;;;qBAkBa;;;;YAmBD,yBAAyB"}
|
|
@@ -14,8 +14,8 @@ type LocalCacheOptions = {
|
|
|
14
14
|
compress?: boolean;
|
|
15
15
|
};
|
|
16
16
|
/** Clears the in-memory portion of the disk cache without touching disk files. */
|
|
17
|
-
declare const clearDiskCacheMemory: () => void;
|
|
18
|
-
declare const cacheDisk: (intlayerConfig: IntlayerConfig, keys: CacheKey[], options?: LocalCacheOptions) => {
|
|
17
|
+
export declare const clearDiskCacheMemory: () => void;
|
|
18
|
+
export declare const cacheDisk: (intlayerConfig: IntlayerConfig, keys: CacheKey[], options?: LocalCacheOptions) => {
|
|
19
19
|
/** In-memory first, then disk (if enabled), otherwise undefined. */
|
|
20
20
|
get: <T>() => Promise<T | undefined>;
|
|
21
21
|
/** Sets in-memory (always) and persists to disk if enabled. */
|
|
@@ -32,5 +32,4 @@ declare const cacheDisk: (intlayerConfig: IntlayerConfig, keys: CacheKey[], opti
|
|
|
32
32
|
filePath: string;
|
|
33
33
|
};
|
|
34
34
|
//#endregion
|
|
35
|
-
export { cacheDisk, clearDiskCacheMemory };
|
|
36
35
|
//# sourceMappingURL=cacheDisk.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cacheDisk.d.ts","names":[],"sources":["../../../src/utils/cacheDisk.ts"],"mappings":";;;KA8BK;;EAEH;;EAEA;;EAEA;;EAEA;;EAEA;;;
|
|
1
|
+
{"version":3,"file":"cacheDisk.d.ts","names":[],"sources":["../../../src/utils/cacheDisk.ts"],"mappings":";;;KA8BK;;EAEH;;EAEA;;EAEA;;EAEA;;EAEA;;;qBAmDW;qBAIA,YAAS,gBACJ,gBAAc,MACxB,YAAU,UACN;;EAoHI,MAAA,QAAM,QAAQ;;EAWP,MAAA,mBAAU;;EAQZ,aAAA;;EAQG,gBAAA;;EAgBD,eAAA"}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
//#region src/utils/cacheMemory.d.ts
|
|
2
2
|
/** Public stringify kept for convenience / debugging (now faster & broader). */
|
|
3
|
-
declare const stableStringify: (value: unknown, _stack?: WeakSet<object>) => string;
|
|
3
|
+
export declare const stableStringify: (value: unknown, _stack?: WeakSet<object>) => string;
|
|
4
4
|
/** Compute a compact, stable id for arbitrary key tuples. */
|
|
5
|
-
declare const computeKeyId: (keyParts: unknown[]) => string;
|
|
5
|
+
export declare const computeKeyId: (keyParts: unknown[]) => string;
|
|
6
6
|
/** ------------------------- In-memory cache ------------------------- **/
|
|
7
|
-
type CacheKey = unknown;
|
|
8
|
-
declare const getCache: <T>(...key: CacheKey[]) => T | undefined;
|
|
7
|
+
export type CacheKey = unknown;
|
|
8
|
+
export declare const getCache: <T>(...key: CacheKey[]) => T | undefined;
|
|
9
9
|
type CacheSetArgs<T> = [...keys: CacheKey[], value: T];
|
|
10
|
-
declare const setCache: <T>(...args: CacheSetArgs<T>) => void;
|
|
11
|
-
declare const clearCache: (idOrKey: string) => void;
|
|
12
|
-
declare const clearAllCache: () => void;
|
|
13
|
-
declare const cacheMemory: {
|
|
10
|
+
export declare const setCache: <T>(...args: CacheSetArgs<T>) => void;
|
|
11
|
+
export declare const clearCache: (idOrKey: string) => void;
|
|
12
|
+
export declare const clearAllCache: () => void;
|
|
13
|
+
export declare const cacheMemory: {
|
|
14
14
|
get: typeof getCache;
|
|
15
15
|
set: typeof setCache;
|
|
16
16
|
clear: typeof clearCache;
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
19
|
-
export { CacheKey, cacheMemory, clearAllCache, clearCache, computeKeyId, getCache, setCache, stableStringify };
|
|
20
19
|
//# sourceMappingURL=cacheMemory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cacheMemory.d.ts","names":[],"sources":["../../../src/utils/cacheMemory.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"cacheMemory.d.ts","names":[],"sources":["../../../src/utils/cacheMemory.ts"],"mappings":";;qBAyRa,kBAAe,gBACZ,SAAA;;qBASH,eAAY;;YAab;qBAGC,WAAY,MAAC,KAAU,eAAa;KAI5C,aAAa,SAAS,MAAM,YAAY,OAAO;qBAEvC,WAAY,MAAC,MAAW,aAAa;qBAMrC,aAAU;qBAKV;qBAIA;EACX,YAAG;EACH,YAAG;EACH,cAAK"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Recursively clears the require cache for a module and all its dependencies
|
|
4
4
|
*/
|
|
5
|
-
declare const clearModuleCache: (modulePath: string, visited?: Set<string>) => void;
|
|
5
|
+
export declare const clearModuleCache: (modulePath: string, visited?: Set<string>) => void;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { clearModuleCache };
|
|
8
7
|
//# sourceMappingURL=clearModuleCache.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clearModuleCache.d.ts","names":[],"sources":["../../../src/utils/clearModuleCache.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"clearModuleCache.d.ts","names":[],"sources":["../../../src/utils/clearModuleCache.ts"],"mappings":";;;;qBAKa,mBAAgB,oBACT,UAAA"}
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* @param comparison - type of comparison: 'gt', 'lt', 'eq', 'gte', 'lte'
|
|
8
8
|
* @returns boolean indicating if version1 meets the specified comparison condition vs version2
|
|
9
9
|
*/
|
|
10
|
-
declare const compareVersions: (version1: string, comparison: '>' | '<' | '=' | '≥' | '≤', version2: string) => boolean;
|
|
10
|
+
export declare const compareVersions: (version1: string, comparison: '>' | '<' | '=' | '≥' | '≤', version2: string) => boolean;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { compareVersions };
|
|
13
12
|
//# sourceMappingURL=compareVersions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compareVersions.d.ts","names":[],"sources":["../../../src/utils/compareVersions.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"compareVersions.d.ts","names":[],"sources":["../../../src/utils/compareVersions.ts"],"mappings":";;;;;;;;;qBAQa,kBAAe,kBACV,yCACuB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region src/utils/extractErrorMessage.d.ts
|
|
2
|
-
declare const extractErrorMessage: (error: unknown) => string;
|
|
2
|
+
export declare const extractErrorMessage: (error: unknown) => string;
|
|
3
3
|
//#endregion
|
|
4
|
-
export { extractErrorMessage };
|
|
5
4
|
//# sourceMappingURL=extractErrorMessage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractErrorMessage.d.ts","names":[],"sources":["../../../src/utils/extractErrorMessage.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"extractErrorMessage.d.ts","names":[],"sources":["../../../src/utils/extractErrorMessage.ts"],"mappings":";qBAAa,sBAAmB"}
|
|
@@ -16,7 +16,6 @@ type DictionaryOrGroup = Dictionary | QualifiedDictionaryGroup;
|
|
|
16
16
|
* // true → at least one collection / variant / meta dictionary
|
|
17
17
|
* // false → only plain dictionaries (selector logic can be stripped)
|
|
18
18
|
*/
|
|
19
|
-
declare const getHasDictionarySelector: (dictionaries: Record<string, DictionaryOrGroup> | DictionaryOrGroup[]) => boolean;
|
|
19
|
+
export declare const getHasDictionarySelector: (dictionaries: Record<string, DictionaryOrGroup> | DictionaryOrGroup[]) => boolean;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { getHasDictionarySelector };
|
|
22
21
|
//# sourceMappingURL=getDictionarySelectorUsage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDictionarySelectorUsage.d.ts","names":[],"sources":["../../../src/utils/getDictionarySelectorUsage.ts"],"mappings":";;KAKK,oBAAoB,aAAa;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getDictionarySelectorUsage.d.ts","names":[],"sources":["../../../src/utils/getDictionarySelectorUsage.ts"],"mappings":";;KAKK,oBAAoB,aAAa;;;;;;;;;;;;;;;;qBAiBzB,2BAAwB,cACrB,eAAe,qBAAqB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
//#region src/utils/getExtension.d.ts
|
|
3
|
-
declare const getExtension: (configuration: IntlayerConfig, format?: 'esm' | 'cjs' | undefined) => "cjs" | "mjs";
|
|
3
|
+
export declare const getExtension: (configuration: IntlayerConfig, format?: 'esm' | 'cjs' | undefined) => "cjs" | "mjs";
|
|
4
4
|
//#endregion
|
|
5
|
-
export { getExtension };
|
|
6
5
|
//# sourceMappingURL=getExtension.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getExtension.d.ts","names":[],"sources":["../../../src/utils/getExtension.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"getExtension.d.ts","names":[],"sources":["../../../src/utils/getExtension.ts"],"mappings":";;qBAEa,eAAY,eACR,gBAAc"}
|
|
@@ -3,7 +3,6 @@ type PackageJsonPathCache = {
|
|
|
3
3
|
packageJsonPath: string;
|
|
4
4
|
baseDir: string;
|
|
5
5
|
};
|
|
6
|
-
declare const getPackageJsonPath: (startDir?: string) => PackageJsonPathCache;
|
|
6
|
+
export declare const getPackageJsonPath: (startDir?: string) => PackageJsonPathCache;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { getPackageJsonPath };
|
|
9
8
|
//# sourceMappingURL=getPackageJsonPath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPackageJsonPath.d.ts","names":[],"sources":["../../../src/utils/getPackageJsonPath.ts"],"mappings":";KAMK;EACH;EACA;;
|
|
1
|
+
{"version":3,"file":"getPackageJsonPath.d.ts","names":[],"sources":["../../../src/utils/getPackageJsonPath.ts"],"mappings":";KAMK;EACH;EACA;;qBAGW,qBAAkB,sBAE5B"}
|
|
@@ -7,7 +7,6 @@ import { ProcessedStorageAttributes, RoutingStorageInput } from "@intlayer/types
|
|
|
7
7
|
* @param options - The storage configuration from IntlayerConfig
|
|
8
8
|
* @returns An object containing arrays for cookies, localStorage, sessionStorage and headers
|
|
9
9
|
*/
|
|
10
|
-
declare const getStorageAttributes: (options: RoutingStorageInput) => ProcessedStorageAttributes;
|
|
10
|
+
export declare const getStorageAttributes: (options: RoutingStorageInput) => ProcessedStorageAttributes;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { getStorageAttributes };
|
|
13
12
|
//# sourceMappingURL=getStorageAttributes.d.ts.map
|
|
@@ -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":";;;;;;;;;qBA+Ma,uBAAoB,SACtB,wBACR"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
2
2
|
import { PLUGIN_NODE_TYPES } from "@intlayer/types/nodeType";
|
|
3
3
|
//#region src/utils/getUsedNodeTypes.d.ts
|
|
4
|
-
type PluginNodeType = (typeof PLUGIN_NODE_TYPES)[number];
|
|
4
|
+
export type PluginNodeType = (typeof PLUGIN_NODE_TYPES)[number];
|
|
5
5
|
/**
|
|
6
6
|
* Returns the set of NodeType strings actually used across the given
|
|
7
7
|
* built dictionaries.
|
|
@@ -10,10 +10,9 @@ type PluginNodeType = (typeof PLUGIN_NODE_TYPES)[number];
|
|
|
10
10
|
* const used = getUsedNodeTypes(getDictionaries(config));
|
|
11
11
|
* // Set { 'translation', 'enumeration' }
|
|
12
12
|
*/
|
|
13
|
-
declare const getUsedNodeTypes: (dictionaries: Record<string, Dictionary> | Dictionary[]) => PluginNodeType[];
|
|
14
|
-
declare const getUnusedNodeTypes: (dictionaries: Record<string, Dictionary> | Dictionary[]) => PluginNodeType[];
|
|
15
|
-
declare const getUsedNodeTypesAsync: (dictionaries: Record<string, Dictionary> | Dictionary[]) => Promise<PluginNodeType[]>;
|
|
16
|
-
declare const getUnusedNodeTypesAsync: (dictionaries: Record<string, Dictionary> | Dictionary[]) => Promise<PluginNodeType[]>;
|
|
13
|
+
export declare const getUsedNodeTypes: (dictionaries: Record<string, Dictionary> | Dictionary[]) => PluginNodeType[];
|
|
14
|
+
export declare const getUnusedNodeTypes: (dictionaries: Record<string, Dictionary> | Dictionary[]) => PluginNodeType[];
|
|
15
|
+
export declare const getUsedNodeTypesAsync: (dictionaries: Record<string, Dictionary> | Dictionary[]) => Promise<PluginNodeType[]>;
|
|
16
|
+
export declare const getUnusedNodeTypesAsync: (dictionaries: Record<string, Dictionary> | Dictionary[]) => Promise<PluginNodeType[]>;
|
|
17
17
|
//#endregion
|
|
18
|
-
export { PluginNodeType, getUnusedNodeTypes, getUnusedNodeTypesAsync, getUsedNodeTypes, getUsedNodeTypesAsync };
|
|
19
18
|
//# sourceMappingURL=getUsedNodeTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUsedNodeTypes.d.ts","names":[],"sources":["../../../src/utils/getUsedNodeTypes.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"getUsedNodeTypes.d.ts","names":[],"sources":["../../../src/utils/getUsedNodeTypes.ts"],"mappings":";;;YAQY,yBAAyB;;;;;;;;;qBAyDxB,mBAAgB,cACb,eAAe,cAAc,iBAC1C;qBAaU,qBAAkB,cACf,eAAe,cAAc,iBAC1C;qBAQU,wBAAqB,cAClB,eAAe,cAAc,iBAC1C,QAAQ;qBA0BE,0BAAuB,cACpB,eAAe,cAAc,iBAC1C,QAAQ"}
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
* @param baseDir - Directory the resolution starts from. Defaults to the current working directory.
|
|
18
18
|
* @returns `true` when the package is installed in the project, `false` otherwise.
|
|
19
19
|
*/
|
|
20
|
-
declare const isPackageInstalled: (packageName: string, baseDir?: string) => boolean;
|
|
20
|
+
export declare const isPackageInstalled: (packageName: string, baseDir?: string) => boolean;
|
|
21
21
|
//#endregion
|
|
22
|
-
export { isPackageInstalled };
|
|
23
22
|
//# sourceMappingURL=isPackageInstalled.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isPackageInstalled.d.ts","names":[],"sources":["../../../src/utils/isPackageInstalled.ts"],"mappings":";;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"isPackageInstalled.d.ts","names":[],"sources":["../../../src/utils/isPackageInstalled.ts"],"mappings":";;;;;;;;;;;;;;;;;;;qBAoBa,qBAAkB,qBACV"}
|
|
@@ -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":";qBAGa,WAAQ,iBACJ;EACJ"}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* @param path - The path to normalize
|
|
10
10
|
* @returns The normalized path
|
|
11
11
|
*/
|
|
12
|
-
declare const normalizePath: (path: string) => string;
|
|
12
|
+
export declare const normalizePath: (path: string) => string;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { normalizePath };
|
|
15
14
|
//# sourceMappingURL=normalizePath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizePath.d.ts","names":[],"sources":["../../../src/utils/normalizePath.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"normalizePath.d.ts","names":[],"sources":["../../../src/utils/normalizePath.ts"],"mappings":";;;;;;;;;;;qBAUa,gBAAa"}
|