@intlayer/config 9.7.0 → 9.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/cjs/built.cjs +2 -3
- package/dist/cjs/bundle/index.cjs +6 -7
- package/dist/cjs/bundle/logBundle.cjs +4 -5
- package/dist/cjs/callers/base.cjs +1 -2
- package/dist/cjs/callers/compat/i18next.cjs +1 -2
- package/dist/cjs/callers/compat/lingui.cjs +1 -2
- package/dist/cjs/callers/compat/nextIntl.cjs +1 -2
- package/dist/cjs/callers/compat/ngxTranslate.cjs +1 -2
- package/dist/cjs/callers/compat/nuxtjsI18n.cjs +1 -2
- package/dist/cjs/callers/compat/reactI18next.cjs +1 -2
- package/dist/cjs/callers/compat/reactIntl.cjs +1 -2
- package/dist/cjs/callers/compat/svelteI18n.cjs +1 -2
- package/dist/cjs/callers/compat/useIntl.cjs +1 -2
- package/dist/cjs/callers/compat/vueI18n.cjs +1 -2
- package/dist/cjs/callers/index.cjs +13 -14
- package/dist/cjs/callers/transform.cjs +1 -2
- package/dist/cjs/client.cjs +15 -9
- package/dist/cjs/colors.cjs +1 -2
- package/dist/cjs/configFile/buildBrowserConfiguration.cjs +7 -8
- package/dist/cjs/configFile/buildConfigurationFields.cjs +10 -11
- package/dist/cjs/configFile/configurationSchema.cjs +2 -3
- package/dist/cjs/configFile/editorServerOverride.cjs +1 -2
- package/dist/cjs/configFile/getConfiguration.cjs +7 -8
- package/dist/cjs/configFile/index.cjs +6 -6
- package/dist/cjs/configFile/loadConfigurationFile.cjs +3 -4
- package/dist/cjs/configFile/searchConfigurationFile.cjs +3 -4
- package/dist/cjs/defaultValues/analytics.cjs +1 -2
- package/dist/cjs/defaultValues/build.cjs +1 -2
- package/dist/cjs/defaultValues/compiler.cjs +1 -2
- package/dist/cjs/defaultValues/content.cjs +1 -2
- package/dist/cjs/defaultValues/dictionary.cjs +1 -2
- package/dist/cjs/defaultValues/editor.cjs +1 -2
- package/dist/cjs/defaultValues/index.cjs +10 -10
- package/dist/cjs/defaultValues/internationalization.cjs +1 -2
- package/dist/cjs/defaultValues/log.cjs +2 -3
- package/dist/cjs/defaultValues/routing.cjs +1 -2
- package/dist/cjs/defaultValues/system.cjs +1 -2
- package/dist/cjs/dictionaryPreload.cjs +2 -3
- package/dist/cjs/envVars/envVars.cjs +1 -2
- package/dist/cjs/envVars/index.cjs +1 -1
- package/dist/cjs/extract/constants.cjs +1 -2
- package/dist/cjs/extract/index.cjs +2 -2
- package/dist/cjs/extract/shouldExtract.cjs +1 -2
- package/dist/cjs/loadEnvFile.cjs +2 -3
- package/dist/cjs/loadExternalFile/bundleFile.cjs +1 -2
- package/dist/cjs/loadExternalFile/bundleJSFile.cjs +1 -2
- package/dist/cjs/loadExternalFile/index.cjs +5 -5
- package/dist/cjs/loadExternalFile/loadExternalFile.cjs +5 -6
- package/dist/cjs/loadExternalFile/parseFileContent.cjs +4 -5
- package/dist/cjs/loadExternalFile/transpileTSToCJS.cjs +4 -5
- package/dist/cjs/loadExternalFile/transpileTSToCJS.cjs.map +1 -1
- package/dist/cjs/logger.cjs +2 -3
- package/dist/cjs/logger.cjs.map +1 -1
- package/dist/cjs/node.cjs +6 -6
- package/dist/cjs/secrets.browser.cjs +1 -2
- package/dist/cjs/secrets.cjs +1 -2
- package/dist/cjs/utils/ESMxCJSHelpers.cjs +2 -3
- package/dist/cjs/utils/alias.cjs +3 -4
- package/dist/cjs/utils/alias.cjs.map +1 -1
- package/dist/cjs/utils/builtConfigKeys.cjs +1 -2
- package/dist/cjs/utils/cacheDisk.cjs +3 -4
- package/dist/cjs/utils/cacheDisk.cjs.map +1 -1
- package/dist/cjs/utils/cacheMemory.cjs +1 -2
- package/dist/cjs/utils/chunkArray.cjs +22 -0
- package/dist/cjs/utils/chunkArray.cjs.map +1 -0
- package/dist/cjs/utils/clearModuleCache.cjs +2 -3
- package/dist/cjs/utils/compareVersions.cjs +1 -2
- package/dist/cjs/utils/extractErrorMessage.cjs +1 -2
- package/dist/cjs/utils/getDictionarySelectorUsage.cjs +1 -2
- package/dist/cjs/utils/getExtension.cjs +1 -2
- package/dist/cjs/utils/getPackageJsonPath.cjs +2 -3
- package/dist/cjs/utils/getStorageAttributes.cjs +2 -3
- package/dist/cjs/utils/getUsedNodeTypes.cjs +1 -2
- package/dist/cjs/utils/index.cjs +31 -24
- package/dist/cjs/utils/isPackageInstalled.cjs +2 -3
- package/dist/cjs/utils/logStack.cjs +3 -4
- package/dist/cjs/utils/normalizePath.cjs +1 -2
- package/dist/cjs/utils/pLimit.cjs +132 -0
- package/dist/cjs/utils/pLimit.cjs.map +1 -0
- package/dist/cjs/utils/parallelize.cjs +11 -0
- package/dist/cjs/utils/parallelize.cjs.map +1 -0
- package/dist/cjs/utils/parseFilePathPattern.cjs +1 -2
- package/dist/cjs/utils/pathSecurity.cjs +1 -2
- package/dist/cjs/utils/retryManager.cjs +3 -4
- package/dist/cjs/utils/setIntlayerIdentifier.cjs +1 -2
- package/dist/cjs/utils/stringFormatter/camelCaseToKebabCase.cjs +1 -2
- package/dist/cjs/utils/stringFormatter/camelCaseToSentence.cjs +1 -2
- package/dist/cjs/utils/stringFormatter/index.cjs +4 -4
- package/dist/cjs/utils/stringFormatter/kebabCaseToCamelCase.cjs +1 -2
- package/dist/cjs/utils/stringFormatter/toLowerCamelCase.cjs +1 -2
- package/dist/esm/_virtual/_rolldown/runtime.mjs +1 -2
- package/dist/esm/built.mjs +1 -2
- package/dist/esm/bundle/index.mjs +2 -3
- package/dist/esm/bundle/logBundle.mjs +2 -3
- package/dist/esm/callers/base.mjs +1 -2
- package/dist/esm/callers/compat/i18next.mjs +1 -2
- package/dist/esm/callers/compat/lingui.mjs +1 -2
- package/dist/esm/callers/compat/nextIntl.mjs +1 -2
- package/dist/esm/callers/compat/ngxTranslate.mjs +1 -2
- package/dist/esm/callers/compat/nuxtjsI18n.mjs +1 -2
- package/dist/esm/callers/compat/reactI18next.mjs +1 -2
- package/dist/esm/callers/compat/reactIntl.mjs +1 -2
- package/dist/esm/callers/compat/svelteI18n.mjs +1 -2
- package/dist/esm/callers/compat/useIntl.mjs +1 -2
- package/dist/esm/callers/compat/vueI18n.mjs +1 -2
- package/dist/esm/callers/index.mjs +1 -2
- package/dist/esm/callers/transform.mjs +1 -2
- package/dist/esm/client.mjs +4 -1
- package/dist/esm/colors.mjs +1 -2
- package/dist/esm/configFile/buildBrowserConfiguration.mjs +1 -2
- package/dist/esm/configFile/buildConfigurationFields.mjs +2 -3
- package/dist/esm/configFile/configurationSchema.mjs +1 -2
- package/dist/esm/configFile/editorServerOverride.mjs +1 -2
- package/dist/esm/configFile/getConfiguration.mjs +1 -2
- package/dist/esm/configFile/index.mjs +2 -2
- package/dist/esm/configFile/loadConfigurationFile.mjs +2 -3
- package/dist/esm/configFile/searchConfigurationFile.mjs +1 -2
- package/dist/esm/defaultValues/analytics.mjs +1 -2
- package/dist/esm/defaultValues/build.mjs +1 -2
- package/dist/esm/defaultValues/compiler.mjs +1 -2
- package/dist/esm/defaultValues/content.mjs +1 -2
- package/dist/esm/defaultValues/dictionary.mjs +1 -2
- package/dist/esm/defaultValues/editor.mjs +1 -2
- package/dist/esm/defaultValues/index.mjs +4 -4
- package/dist/esm/defaultValues/internationalization.mjs +1 -2
- package/dist/esm/defaultValues/log.mjs +1 -2
- package/dist/esm/defaultValues/routing.mjs +1 -2
- package/dist/esm/defaultValues/system.mjs +1 -2
- package/dist/esm/dictionaryPreload.mjs +1 -2
- package/dist/esm/envVars/envVars.mjs +1 -2
- package/dist/esm/extract/constants.mjs +1 -2
- package/dist/esm/extract/shouldExtract.mjs +1 -2
- package/dist/esm/loadEnvFile.mjs +1 -2
- package/dist/esm/loadExternalFile/bundleFile.mjs +1 -2
- package/dist/esm/loadExternalFile/bundleJSFile.mjs +1 -2
- package/dist/esm/loadExternalFile/index.mjs +3 -3
- package/dist/esm/loadExternalFile/loadExternalFile.mjs +1 -2
- package/dist/esm/loadExternalFile/parseFileContent.mjs +1 -2
- package/dist/esm/loadExternalFile/transpileTSToCJS.mjs +1 -2
- package/dist/esm/loadExternalFile/transpileTSToCJS.mjs.map +1 -1
- package/dist/esm/logger.mjs +1 -2
- package/dist/esm/logger.mjs.map +1 -1
- package/dist/esm/node.mjs +2 -2
- package/dist/esm/secrets.browser.mjs +1 -2
- package/dist/esm/secrets.mjs +1 -2
- package/dist/esm/utils/ESMxCJSHelpers.mjs +1 -2
- package/dist/esm/utils/alias.mjs +2 -3
- package/dist/esm/utils/alias.mjs.map +1 -1
- package/dist/esm/utils/builtConfigKeys.mjs +1 -2
- package/dist/esm/utils/cacheDisk.mjs +1 -2
- package/dist/esm/utils/cacheDisk.mjs.map +1 -1
- package/dist/esm/utils/cacheMemory.mjs +1 -2
- package/dist/esm/utils/chunkArray.mjs +21 -0
- package/dist/esm/utils/chunkArray.mjs.map +1 -0
- package/dist/esm/utils/clearModuleCache.mjs +1 -2
- package/dist/esm/utils/compareVersions.mjs +1 -2
- package/dist/esm/utils/extractErrorMessage.mjs +1 -2
- package/dist/esm/utils/getDictionarySelectorUsage.mjs +1 -2
- package/dist/esm/utils/getExtension.mjs +1 -2
- package/dist/esm/utils/getPackageJsonPath.mjs +1 -2
- package/dist/esm/utils/getStorageAttributes.mjs +1 -2
- package/dist/esm/utils/getUsedNodeTypes.mjs +1 -2
- package/dist/esm/utils/index.mjs +17 -14
- package/dist/esm/utils/isPackageInstalled.mjs +1 -2
- package/dist/esm/utils/logStack.mjs +1 -2
- package/dist/esm/utils/normalizePath.mjs +1 -2
- package/dist/esm/utils/pLimit.mjs +130 -0
- package/dist/esm/utils/pLimit.mjs.map +1 -0
- package/dist/esm/utils/parallelize.mjs +10 -0
- package/dist/esm/utils/parallelize.mjs.map +1 -0
- package/dist/esm/utils/parseFilePathPattern.mjs +1 -2
- package/dist/esm/utils/pathSecurity.mjs +1 -2
- package/dist/esm/utils/retryManager.mjs +2 -3
- package/dist/esm/utils/setIntlayerIdentifier.mjs +1 -2
- package/dist/esm/utils/stringFormatter/camelCaseToKebabCase.mjs +1 -2
- package/dist/esm/utils/stringFormatter/camelCaseToSentence.mjs +1 -2
- package/dist/esm/utils/stringFormatter/kebabCaseToCamelCase.mjs +1 -2
- package/dist/esm/utils/stringFormatter/toLowerCamelCase.mjs +1 -2
- package/dist/types/built.d.ts +0 -2
- package/dist/types/built.d.ts.map +1 -1
- package/dist/types/bundle/index.d.ts +0 -2
- package/dist/types/bundle/index.d.ts.map +1 -1
- package/dist/types/bundle/logBundle.d.ts +0 -2
- package/dist/types/bundle/logBundle.d.ts.map +1 -1
- package/dist/types/callers/base.d.ts +0 -2
- package/dist/types/callers/base.d.ts.map +1 -1
- package/dist/types/callers/compat/i18next.d.ts +0 -2
- package/dist/types/callers/compat/i18next.d.ts.map +1 -1
- package/dist/types/callers/compat/lingui.d.ts +0 -2
- package/dist/types/callers/compat/lingui.d.ts.map +1 -1
- package/dist/types/callers/compat/nextIntl.d.ts +0 -2
- package/dist/types/callers/compat/nextIntl.d.ts.map +1 -1
- package/dist/types/callers/compat/ngxTranslate.d.ts +0 -2
- package/dist/types/callers/compat/ngxTranslate.d.ts.map +1 -1
- package/dist/types/callers/compat/nuxtjsI18n.d.ts +0 -2
- package/dist/types/callers/compat/nuxtjsI18n.d.ts.map +1 -1
- package/dist/types/callers/compat/reactI18next.d.ts +0 -2
- package/dist/types/callers/compat/reactI18next.d.ts.map +1 -1
- package/dist/types/callers/compat/reactIntl.d.ts +0 -2
- package/dist/types/callers/compat/reactIntl.d.ts.map +1 -1
- package/dist/types/callers/compat/svelteI18n.d.ts +0 -2
- package/dist/types/callers/compat/svelteI18n.d.ts.map +1 -1
- package/dist/types/callers/compat/useIntl.d.ts +0 -2
- package/dist/types/callers/compat/useIntl.d.ts.map +1 -1
- package/dist/types/callers/compat/vueI18n.d.ts +0 -2
- package/dist/types/callers/compat/vueI18n.d.ts.map +1 -1
- package/dist/types/callers/index.d.ts +0 -2
- package/dist/types/callers/index.d.ts.map +1 -1
- package/dist/types/callers/transform.d.ts +0 -2
- package/dist/types/callers/transform.d.ts.map +1 -1
- package/dist/types/callers/types.d.ts +0 -2
- package/dist/types/callers/types.d.ts.map +1 -1
- package/dist/types/client.d.ts +5 -1
- package/dist/types/colors.d.ts +0 -1
- package/dist/types/configFile/buildBrowserConfiguration.d.ts +0 -2
- package/dist/types/configFile/buildBrowserConfiguration.d.ts.map +1 -1
- package/dist/types/configFile/buildConfigurationFields.d.ts +0 -2
- package/dist/types/configFile/buildConfigurationFields.d.ts.map +1 -1
- package/dist/types/configFile/configurationSchema.d.ts +0 -2
- package/dist/types/configFile/configurationSchema.d.ts.map +1 -1
- package/dist/types/configFile/editorServerOverride.d.ts +0 -2
- package/dist/types/configFile/editorServerOverride.d.ts.map +1 -1
- package/dist/types/configFile/getConfiguration.d.ts +1 -3
- package/dist/types/configFile/getConfiguration.d.ts.map +1 -1
- package/dist/types/configFile/index.d.ts +1 -1
- package/dist/types/configFile/loadConfigurationFile.d.ts +0 -2
- package/dist/types/configFile/loadConfigurationFile.d.ts.map +1 -1
- package/dist/types/configFile/searchConfigurationFile.d.ts +1 -2
- package/dist/types/configFile/searchConfigurationFile.d.ts.map +1 -1
- package/dist/types/defaultValues/analytics.d.ts +0 -2
- package/dist/types/defaultValues/analytics.d.ts.map +1 -1
- package/dist/types/defaultValues/build.d.ts +0 -2
- package/dist/types/defaultValues/build.d.ts.map +1 -1
- package/dist/types/defaultValues/compiler.d.ts +0 -2
- package/dist/types/defaultValues/compiler.d.ts.map +1 -1
- package/dist/types/defaultValues/content.d.ts +0 -2
- package/dist/types/defaultValues/content.d.ts.map +1 -1
- package/dist/types/defaultValues/dictionary.d.ts +0 -2
- package/dist/types/defaultValues/dictionary.d.ts.map +1 -1
- package/dist/types/defaultValues/editor.d.ts +0 -2
- package/dist/types/defaultValues/editor.d.ts.map +1 -1
- package/dist/types/defaultValues/internationalization.d.ts +1 -3
- package/dist/types/defaultValues/internationalization.d.ts.map +1 -1
- package/dist/types/defaultValues/log.d.ts +0 -2
- package/dist/types/defaultValues/log.d.ts.map +1 -1
- package/dist/types/defaultValues/routing.d.ts +0 -2
- package/dist/types/defaultValues/routing.d.ts.map +1 -1
- package/dist/types/defaultValues/system.d.ts +0 -2
- package/dist/types/defaultValues/system.d.ts.map +1 -1
- package/dist/types/dictionaryPreload.d.ts +0 -2
- package/dist/types/dictionaryPreload.d.ts.map +1 -1
- package/dist/types/envVars/envVars.d.ts +0 -2
- package/dist/types/envVars/envVars.d.ts.map +1 -1
- package/dist/types/extract/constants.d.ts +0 -2
- package/dist/types/extract/constants.d.ts.map +1 -1
- package/dist/types/extract/index.d.ts +11 -0
- package/dist/types/extract/shouldExtract.d.ts +0 -2
- package/dist/types/extract/shouldExtract.d.ts.map +1 -1
- package/dist/types/loadEnvFile.d.ts +0 -2
- package/dist/types/loadEnvFile.d.ts.map +1 -1
- package/dist/types/loadExternalFile/bundleFile.d.ts +0 -2
- package/dist/types/loadExternalFile/bundleFile.d.ts.map +1 -1
- package/dist/types/loadExternalFile/bundleJSFile.d.ts +0 -2
- package/dist/types/loadExternalFile/bundleJSFile.d.ts.map +1 -1
- package/dist/types/loadExternalFile/index.d.ts +3 -3
- package/dist/types/loadExternalFile/loadExternalFile.d.ts +0 -2
- package/dist/types/loadExternalFile/loadExternalFile.d.ts.map +1 -1
- package/dist/types/loadExternalFile/parseFileContent.d.ts +0 -2
- package/dist/types/loadExternalFile/parseFileContent.d.ts.map +1 -1
- package/dist/types/loadExternalFile/transpileTSToCJS.d.ts +0 -2
- package/dist/types/loadExternalFile/transpileTSToCJS.d.ts.map +1 -1
- package/dist/types/logger.d.ts +1 -3
- package/dist/types/logger.d.ts.map +1 -1
- package/dist/types/node.d.ts +1 -1
- package/dist/types/secrets.browser.d.ts +0 -2
- package/dist/types/secrets.browser.d.ts.map +1 -1
- package/dist/types/secrets.d.ts +0 -2
- package/dist/types/secrets.d.ts.map +1 -1
- package/dist/types/utils/ESMxCJSHelpers.d.ts +0 -2
- package/dist/types/utils/ESMxCJSHelpers.d.ts.map +1 -1
- package/dist/types/utils/alias.d.ts +0 -2
- package/dist/types/utils/alias.d.ts.map +1 -1
- package/dist/types/utils/builtConfigKeys.d.ts +0 -2
- package/dist/types/utils/builtConfigKeys.d.ts.map +1 -1
- package/dist/types/utils/cacheDisk.d.ts +1 -2
- package/dist/types/utils/cacheDisk.d.ts.map +1 -1
- package/dist/types/utils/cacheMemory.d.ts +1 -2
- package/dist/types/utils/cacheMemory.d.ts.map +1 -1
- package/dist/types/utils/chunkArray.d.ts +13 -0
- package/dist/types/utils/chunkArray.d.ts.map +1 -0
- package/dist/types/utils/clearModuleCache.d.ts +0 -2
- package/dist/types/utils/clearModuleCache.d.ts.map +1 -1
- package/dist/types/utils/compareVersions.d.ts +0 -2
- package/dist/types/utils/compareVersions.d.ts.map +1 -1
- package/dist/types/utils/extractErrorMessage.d.ts +0 -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 +0 -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 +0 -2
- package/dist/types/utils/getStorageAttributes.d.ts.map +1 -1
- package/dist/types/utils/getUsedNodeTypes.d.ts +0 -2
- package/dist/types/utils/getUsedNodeTypes.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +15 -11
- package/dist/types/utils/isPackageInstalled.d.ts +0 -2
- package/dist/types/utils/isPackageInstalled.d.ts.map +1 -1
- package/dist/types/utils/logStack.d.ts +0 -2
- package/dist/types/utils/logStack.d.ts.map +1 -1
- package/dist/types/utils/normalizePath.d.ts +0 -2
- package/dist/types/utils/normalizePath.d.ts.map +1 -1
- package/dist/types/utils/pLimit.d.ts +13 -0
- package/dist/types/utils/pLimit.d.ts.map +1 -0
- package/dist/types/utils/parallelize.d.ts +2 -0
- package/dist/types/utils/parallelize.d.ts.map +1 -0
- package/dist/types/utils/parseFilePathPattern.d.ts +0 -2
- package/dist/types/utils/parseFilePathPattern.d.ts.map +1 -1
- package/dist/types/utils/pathSecurity.d.ts +0 -2
- package/dist/types/utils/pathSecurity.d.ts.map +1 -1
- package/dist/types/utils/retryManager.d.ts +0 -2
- package/dist/types/utils/retryManager.d.ts.map +1 -1
- package/dist/types/utils/setIntlayerIdentifier.d.ts +1 -2
- package/dist/types/utils/setIntlayerIdentifier.d.ts.map +1 -1
- package/dist/types/utils/stringFormatter/camelCaseToKebabCase.d.ts +0 -2
- package/dist/types/utils/stringFormatter/camelCaseToKebabCase.d.ts.map +1 -1
- package/dist/types/utils/stringFormatter/camelCaseToSentence.d.ts +0 -2
- package/dist/types/utils/stringFormatter/camelCaseToSentence.d.ts.map +1 -1
- package/dist/types/utils/stringFormatter/kebabCaseToCamelCase.d.ts +0 -2
- package/dist/types/utils/stringFormatter/kebabCaseToCamelCase.d.ts.map +1 -1
- package/dist/types/utils/stringFormatter/toLowerCamelCase.d.ts +0 -2
- package/dist/types/utils/stringFormatter/toLowerCamelCase.d.ts.map +1 -1
- package/package.json +73 -73
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
let node_path = require("node:path");
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/utils/pathSecurity.ts
|
|
5
5
|
/**
|
|
6
6
|
* Throws if `resolvedPath` escapes `baseDir`.
|
|
7
7
|
* Use this before any file operation whose path is derived from user-controlled
|
|
@@ -14,6 +14,5 @@ const assertPathWithin = (resolvedPath, baseDir) => {
|
|
|
14
14
|
if (normalizedPath !== normalizedBase && !normalizedPath.startsWith(normalizedBase + node_path.sep)) throw new Error(`Path traversal detected: "${resolvedPath}" escapes the base directory "${baseDir}"`);
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
//#endregion
|
|
18
17
|
exports.assertPathWithin = assertPathWithin;
|
|
19
18
|
//# sourceMappingURL=pathSecurity.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
2
|
+
const require_logger = require("../logger.cjs");
|
|
3
|
+
const require_utils_extractErrorMessage = require("./extractErrorMessage.cjs");
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/utils/retryManager.ts
|
|
6
6
|
const DEFAULT_MAX_RETRY = 3;
|
|
7
7
|
const DEFAULT_DELAY = 0;
|
|
8
8
|
/**
|
|
@@ -52,6 +52,5 @@ const retryManager = (fn, { maxRetry = DEFAULT_MAX_RETRY, delay = DEFAULT_DELAY,
|
|
|
52
52
|
throw lastError ?? /* @__PURE__ */ new Error("Unexpected: retry loop completed without result");
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
//#endregion
|
|
56
55
|
exports.retryManager = retryManager;
|
|
57
56
|
//# sourceMappingURL=retryManager.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
2
|
+
// src/utils/setIntlayerIdentifier.ts
|
|
3
3
|
/**
|
|
4
4
|
* Sets the version of Intlayer in the window object.
|
|
5
5
|
* This is used for Intlayer detection in the browser.
|
|
@@ -8,6 +8,5 @@ const setIntlayerIdentifier = () => {
|
|
|
8
8
|
if (typeof window !== "undefined") window.intlayer = { enabled: true };
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
//#endregion
|
|
12
11
|
exports.setIntlayerIdentifier = setIntlayerIdentifier;
|
|
13
12
|
//# sourceMappingURL=setIntlayerIdentifier.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
2
|
+
// src/utils/stringFormatter/camelCaseToKebabCase.ts
|
|
3
3
|
/**
|
|
4
4
|
* Convert a string to kebab-case
|
|
5
5
|
* e.g. "MyNewComponent" => "my-new-component"
|
|
@@ -8,6 +8,5 @@ const camelCaseToKebabCase = (str) => {
|
|
|
8
8
|
return str.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([A-Z])([A-Z][a-z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
//#endregion
|
|
12
11
|
exports.camelCaseToKebabCase = camelCaseToKebabCase;
|
|
13
12
|
//# sourceMappingURL=camelCaseToKebabCase.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
2
|
+
// src/utils/stringFormatter/camelCaseToSentence.ts
|
|
3
3
|
/**
|
|
4
4
|
* Convert a string to sentence case
|
|
5
5
|
* e.g. 'my-new-component' → 'My new component'
|
|
@@ -11,6 +11,5 @@ const camelCaseToSentence = (value) => {
|
|
|
11
11
|
return withSpaces.charAt(0).toUpperCase() + withSpaces.slice(1).toLowerCase();
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
//#endregion
|
|
15
14
|
exports.camelCaseToSentence = camelCaseToSentence;
|
|
16
15
|
//# sourceMappingURL=camelCaseToSentence.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_utils_stringFormatter_camelCaseToKebabCase = require(
|
|
3
|
-
const require_utils_stringFormatter_camelCaseToSentence = require(
|
|
4
|
-
const require_utils_stringFormatter_kebabCaseToCamelCase = require(
|
|
5
|
-
const require_utils_stringFormatter_toLowerCamelCase = require(
|
|
2
|
+
const require_utils_stringFormatter_camelCaseToKebabCase = require("./camelCaseToKebabCase.cjs");
|
|
3
|
+
const require_utils_stringFormatter_camelCaseToSentence = require("./camelCaseToSentence.cjs");
|
|
4
|
+
const require_utils_stringFormatter_kebabCaseToCamelCase = require("./kebabCaseToCamelCase.cjs");
|
|
5
|
+
const require_utils_stringFormatter_toLowerCamelCase = require("./toLowerCamelCase.cjs");
|
|
6
6
|
|
|
7
7
|
exports.camelCaseToKebabCase = require_utils_stringFormatter_camelCaseToKebabCase.camelCaseToKebabCase;
|
|
8
8
|
exports.camelCaseToSentence = require_utils_stringFormatter_camelCaseToSentence.camelCaseToSentence;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
2
|
+
// src/utils/stringFormatter/kebabCaseToCamelCase.ts
|
|
3
3
|
const kebabCaseToCamelCase = (name) => {
|
|
4
4
|
return name.split(/[^a-zA-Z0-9]+/).filter(Boolean).map((word) => {
|
|
5
5
|
const lowerWord = word.toLowerCase();
|
|
@@ -9,6 +9,5 @@ const kebabCaseToCamelCase = (name) => {
|
|
|
9
9
|
}).join("");
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
exports.kebabCaseToCamelCase = kebabCaseToCamelCase;
|
|
14
13
|
//# sourceMappingURL=kebabCaseToCamelCase.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
2
|
+
// src/utils/stringFormatter/toLowerCamelCase.ts
|
|
3
3
|
/**
|
|
4
4
|
* Convert a string to lowerCamelCase
|
|
5
5
|
* e.g. "MyComponent" => "myComponent"
|
|
@@ -14,6 +14,5 @@ const toLowerCamelCase = (str) => {
|
|
|
14
14
|
return str.charAt(0).toLowerCase() + str.slice(1);
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
//#endregion
|
|
18
17
|
exports.toLowerCamelCase = toLowerCamelCase;
|
|
19
18
|
//# sourceMappingURL=toLowerCamelCase.cjs.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
3
3
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
4
4
|
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
//#endregion
|
|
8
7
|
export { __require };
|
package/dist/esm/built.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getConfiguration } from "./configFile/getConfiguration.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/built.ts
|
|
4
4
|
const configuration = getConfiguration();
|
|
5
5
|
const parsedJSONConfig = JSON.parse(JSON.stringify(configuration));
|
|
6
6
|
const internationalization = parsedJSONConfig.internationalization;
|
|
@@ -17,6 +17,5 @@ const compiler = parsedJSONConfig.compiler;
|
|
|
17
17
|
const schemas = parsedJSONConfig.schemas;
|
|
18
18
|
const plugins = parsedJSONConfig.plugins;
|
|
19
19
|
|
|
20
|
-
//#endregion
|
|
21
20
|
export { ai, analytics, build, compiler, content, dictionary, editor, internationalization, log, plugins, routing, schemas, system };
|
|
22
21
|
//# sourceMappingURL=built.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getAlias } from "../utils/alias.mjs";
|
|
2
1
|
import { getConfiguration } from "../configFile/getConfiguration.mjs";
|
|
3
2
|
import { getConfigEnvVars } from "../envVars/envVars.mjs";
|
|
3
|
+
import { getAlias } from "../utils/alias.mjs";
|
|
4
4
|
import { BundleLogger } from "./logBundle.mjs";
|
|
5
5
|
import { isAbsolute, join, resolve } from "node:path";
|
|
6
6
|
import { mkdir, rm, writeFile } from "node:fs/promises";
|
|
@@ -9,7 +9,7 @@ import { build } from "esbuild";
|
|
|
9
9
|
import { exec } from "node:child_process";
|
|
10
10
|
import { promisify } from "node:util";
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
// src/bundle/index.ts
|
|
13
13
|
const execAsync = promisify(exec);
|
|
14
14
|
const packageList = [
|
|
15
15
|
"next-intlayer",
|
|
@@ -121,6 +121,5 @@ const bundleIntlayer = async (options) => {
|
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
-
//#endregion
|
|
125
124
|
export { bundleIntlayer, packageList };
|
|
126
125
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BLUE, RED } from "../colors.mjs";
|
|
2
|
-
import { extractErrorMessage } from "../utils/extractErrorMessage.mjs";
|
|
3
2
|
import { colorize, getPrefix, spinnerFrames, v, x } from "../logger.mjs";
|
|
3
|
+
import { extractErrorMessage } from "../utils/extractErrorMessage.mjs";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/bundle/logBundle.ts
|
|
6
6
|
var BundleLogger = class {
|
|
7
7
|
status = "pending";
|
|
8
8
|
spinnerTimer = null;
|
|
@@ -73,6 +73,5 @@ var BundleLogger = class {
|
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
//#endregion
|
|
77
76
|
export { BundleLogger };
|
|
78
77
|
//# sourceMappingURL=logBundle.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/callers/base.ts
|
|
2
2
|
/**
|
|
3
3
|
* Base intlayer getters — always active, independent of any compat library.
|
|
4
4
|
*
|
|
@@ -48,6 +48,5 @@ const BASE_CALLERS = [
|
|
|
48
48
|
}
|
|
49
49
|
];
|
|
50
50
|
|
|
51
|
-
//#endregion
|
|
52
51
|
export { BASE_CALLERS };
|
|
53
52
|
//# sourceMappingURL=base.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/callers/compat/i18next.ts
|
|
2
2
|
/**
|
|
3
3
|
* i18next — `@intlayer/i18next` compat adapter.
|
|
4
4
|
*
|
|
@@ -20,6 +20,5 @@ const I18NEXT_CALLERS = [{
|
|
|
20
20
|
translationFunction: "return-value"
|
|
21
21
|
}];
|
|
22
22
|
|
|
23
|
-
//#endregion
|
|
24
23
|
export { I18NEXT_CALLERS };
|
|
25
24
|
//# sourceMappingURL=i18next.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/callers/compat/lingui.ts
|
|
2
2
|
/**
|
|
3
3
|
* Lingui — `@intlayer/lingui` compat adapter.
|
|
4
4
|
*
|
|
@@ -80,6 +80,5 @@ const LINGUI_CALLERS = [
|
|
|
80
80
|
}
|
|
81
81
|
];
|
|
82
82
|
|
|
83
|
-
//#endregion
|
|
84
83
|
export { LINGUI_CALLERS };
|
|
85
84
|
//# sourceMappingURL=lingui.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/callers/compat/nextIntl.ts
|
|
2
2
|
/**
|
|
3
3
|
* next-intl — `@intlayer/next-intl` compat adapter.
|
|
4
4
|
*
|
|
@@ -37,6 +37,5 @@ const NEXT_INTL_CALLERS = [{
|
|
|
37
37
|
dynamicReplacement: "getDictionaryDynamic"
|
|
38
38
|
}];
|
|
39
39
|
|
|
40
|
-
//#endregion
|
|
41
40
|
export { NEXT_INTL_CALLERS };
|
|
42
41
|
//# sourceMappingURL=nextIntl.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/callers/compat/ngxTranslate.ts
|
|
2
2
|
/**
|
|
3
3
|
* @ngx-translate/core — `@intlayer/ngx-translate` compat adapter.
|
|
4
4
|
*
|
|
@@ -37,6 +37,5 @@ const NGX_TRANSLATE_CALLERS = [
|
|
|
37
37
|
createKeyCaller("stream", true)
|
|
38
38
|
];
|
|
39
39
|
|
|
40
|
-
//#endregion
|
|
41
40
|
export { NGX_TRANSLATE_CALLERS };
|
|
42
41
|
//# sourceMappingURL=ngxTranslate.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/callers/compat/nuxtjsI18n.ts
|
|
2
2
|
/**
|
|
3
3
|
* @nuxtjs/i18n — `@intlayer/nuxtjs-i18n` compat adapter.
|
|
4
4
|
*
|
|
@@ -27,6 +27,5 @@ const NUXTJS_I18N_CALLERS = [{
|
|
|
27
27
|
dynamicReplacement: "useDictionaryDynamic"
|
|
28
28
|
}];
|
|
29
29
|
|
|
30
|
-
//#endregion
|
|
31
30
|
export { NUXTJS_I18N_CALLERS };
|
|
32
31
|
//# sourceMappingURL=nuxtjsI18n.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/callers/compat/reactI18next.ts
|
|
2
2
|
/**
|
|
3
3
|
* react-i18next / next-i18next — `@intlayer/react-i18next` and
|
|
4
4
|
* `@intlayer/next-i18next` compat adapters (next-i18next re-exports the
|
|
@@ -44,6 +44,5 @@ const REACT_I18NEXT_CALLERS = [{
|
|
|
44
44
|
translationFunction: "self"
|
|
45
45
|
}];
|
|
46
46
|
|
|
47
|
-
//#endregion
|
|
48
47
|
export { REACT_I18NEXT_CALLERS };
|
|
49
48
|
//# sourceMappingURL=reactI18next.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/callers/compat/reactIntl.ts
|
|
2
2
|
/**
|
|
3
3
|
* react-intl (FormatJS) — `@intlayer/react-intl` compat adapter.
|
|
4
4
|
*
|
|
@@ -35,6 +35,5 @@ const REACT_INTL_CALLERS = [
|
|
|
35
35
|
}
|
|
36
36
|
];
|
|
37
37
|
|
|
38
|
-
//#endregion
|
|
39
38
|
export { REACT_INTL_CALLERS };
|
|
40
39
|
//# sourceMappingURL=reactIntl.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/callers/compat/svelteI18n.ts
|
|
2
2
|
/**
|
|
3
3
|
* svelte-i18n — `@intlayer/svelte-i18n` compat adapter.
|
|
4
4
|
*
|
|
@@ -36,6 +36,5 @@ const SVELTE_I18N_CALLERS = [
|
|
|
36
36
|
}
|
|
37
37
|
];
|
|
38
38
|
|
|
39
|
-
//#endregion
|
|
40
39
|
export { SVELTE_I18N_CALLERS };
|
|
41
40
|
//# sourceMappingURL=svelteI18n.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/callers/compat/useIntl.ts
|
|
2
2
|
/**
|
|
3
3
|
* use-intl — `@intlayer/use-intl` compat adapter.
|
|
4
4
|
*
|
|
@@ -39,6 +39,5 @@ const USE_INTL_CALLERS = [{
|
|
|
39
39
|
allowRootScope: true
|
|
40
40
|
}];
|
|
41
41
|
|
|
42
|
-
//#endregion
|
|
43
42
|
export { USE_INTL_CALLERS };
|
|
44
43
|
//# sourceMappingURL=useIntl.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/callers/compat/vueI18n.ts
|
|
2
2
|
/**
|
|
3
3
|
* vue-i18n — `@intlayer/vue-i18n` compat adapter.
|
|
4
4
|
*
|
|
@@ -19,6 +19,5 @@ const VUE_I18N_CALLERS = [{
|
|
|
19
19
|
dynamicReplacement: "useDictionaryDynamic"
|
|
20
20
|
}];
|
|
21
21
|
|
|
22
|
-
//#endregion
|
|
23
22
|
export { VUE_I18N_CALLERS };
|
|
24
23
|
//# sourceMappingURL=vueI18n.mjs.map
|
|
@@ -11,7 +11,7 @@ import { USE_INTL_CALLERS } from "./compat/useIntl.mjs";
|
|
|
11
11
|
import { VUE_I18N_CALLERS } from "./compat/vueI18n.mjs";
|
|
12
12
|
import { getRewritableCallers, isRewritableCaller, requiresDictionaryRegistry, toSwcExtraCallers } from "./transform.mjs";
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
// src/callers/index.ts
|
|
15
15
|
/**
|
|
16
16
|
* Compat-adapter callers, grouped in one list. Each compat package's bundler
|
|
17
17
|
* plugin injects its own slice (e.g. `REACT_I18NEXT_CALLERS`) into the build
|
|
@@ -73,6 +73,5 @@ const isCallerActive = (descriptor, fileImportSources) => {
|
|
|
73
73
|
return descriptor.importSources.some((source) => fileImportSources.has(source));
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
//#endregion
|
|
77
76
|
export { ALL_CALLERS, BASE_CALLERS, CALLERS_BY_NAME, COMPAT_CALLERS, I18NEXT_CALLERS, LINGUI_CALLERS, NEXT_INTL_CALLERS, NGX_TRANSLATE_CALLERS, NUXTJS_I18N_CALLERS, REACT_I18NEXT_CALLERS, REACT_INTL_CALLERS, SVELTE_I18N_CALLERS, USE_INTL_CALLERS, VUE_I18N_CALLERS, getPositionalKeyCallerNames, getRewritableCallers, isCallerActive, isRewritableCaller, requiresDictionaryRegistry, toSwcExtraCallers };
|
|
78
77
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/callers/transform.ts
|
|
2
2
|
/**
|
|
3
3
|
* Whether the optimize pass can rewrite this caller's call sites at build time.
|
|
4
4
|
*
|
|
@@ -57,6 +57,5 @@ const toSwcExtraCallers = (descriptors) => getRewritableCallers(descriptors).fla
|
|
|
57
57
|
}];
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
//#endregion
|
|
61
60
|
export { getRewritableCallers, isRewritableCaller, requiresDictionaryRegistry, toSwcExtraCallers };
|
|
62
61
|
//# sourceMappingURL=transform.mjs.map
|
package/dist/esm/client.mjs
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { bindLogFunction, buildAnalyticsFields, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration } from "./configFile/buildBrowserConfiguration.mjs";
|
|
2
|
+
import { chunkArray } from "./utils/chunkArray.mjs";
|
|
2
3
|
import { extractErrorMessage } from "./utils/extractErrorMessage.mjs";
|
|
3
4
|
import { logStack } from "./utils/logStack.mjs";
|
|
4
5
|
import { normalizePath } from "./utils/normalizePath.mjs";
|
|
6
|
+
import { parallelize } from "./utils/parallelize.mjs";
|
|
7
|
+
import { pLimit } from "./utils/pLimit.mjs";
|
|
5
8
|
import { setIntlayerIdentifier } from "./utils/setIntlayerIdentifier.mjs";
|
|
6
9
|
import { camelCaseToKebabCase } from "./utils/stringFormatter/camelCaseToKebabCase.mjs";
|
|
7
10
|
import { camelCaseToSentence } from "./utils/stringFormatter/camelCaseToSentence.mjs";
|
|
8
11
|
import { kebabCaseToCamelCase } from "./utils/stringFormatter/kebabCaseToCamelCase.mjs";
|
|
9
12
|
import { toLowerCamelCase } from "./utils/stringFormatter/toLowerCamelCase.mjs";
|
|
10
13
|
|
|
11
|
-
export { bindLogFunction, buildAnalyticsFields, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, camelCaseToKebabCase, camelCaseToSentence, extractBrowserConfiguration, extractErrorMessage, kebabCaseToCamelCase, logStack, normalizePath, setIntlayerIdentifier, toLowerCamelCase };
|
|
14
|
+
export { bindLogFunction, buildAnalyticsFields, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, camelCaseToKebabCase, camelCaseToSentence, chunkArray, extractBrowserConfiguration, extractErrorMessage, kebabCaseToCamelCase, logStack, normalizePath, pLimit, parallelize, setIntlayerIdentifier, toLowerCamelCase };
|
package/dist/esm/colors.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/colors.ts
|
|
2
2
|
const RESET = "\x1B[0m";
|
|
3
3
|
const GREY = "\x1B[90m";
|
|
4
4
|
const GREY_DARK = "\x1B[38;5;239m";
|
|
@@ -14,6 +14,5 @@ const CYAN = "\x1B[36m";
|
|
|
14
14
|
const WHITE = "\x1B[37m";
|
|
15
15
|
const BOLD = "\x1B[1m";
|
|
16
16
|
|
|
17
|
-
//#endregion
|
|
18
17
|
export { BEIGE, BLUE, BOLD, CYAN, GREEN, GREY, GREY_DARK, GREY_LIGHT, MAGENTA, ORANGE, RED, RESET, WHITE, YELLOW };
|
|
19
18
|
//# sourceMappingURL=colors.mjs.map
|
|
@@ -5,7 +5,7 @@ import { MODE, PREFIX } from "../defaultValues/log.mjs";
|
|
|
5
5
|
import { BASE_PATH, ENABLE_PROXY, ROUTING_MODE, STORAGE } from "../defaultValues/routing.mjs";
|
|
6
6
|
import { getStorageAttributes } from "../utils/getStorageAttributes.mjs";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/configFile/buildBrowserConfiguration.ts
|
|
9
9
|
/**
|
|
10
10
|
* Build the internationalization section of the Intlayer configuration.
|
|
11
11
|
*
|
|
@@ -436,6 +436,5 @@ const extractBrowserConfiguration = (config) => {
|
|
|
436
436
|
};
|
|
437
437
|
};
|
|
438
438
|
|
|
439
|
-
//#endregion
|
|
440
439
|
export { bindLogFunction, buildAnalyticsFields, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration };
|
|
441
440
|
//# sourceMappingURL=buildBrowserConfiguration.mjs.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { __require } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { bindLogFunction, buildAnalyticsFields, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration } from "./buildBrowserConfiguration.mjs";
|
|
3
2
|
import { BUILD_MODE, CACHE, CHUNK_GROUPING, DICTIONARIES_PRELOAD, MINIFY, OUTPUT_FORMAT, PURGE, TRAVERSE_PATTERN, TYPE_CHECKING } from "../defaultValues/build.mjs";
|
|
4
3
|
import { COMPILER_DICTIONARY_KEY_PREFIX, COMPILER_ENABLED, COMPILER_NO_METADATA, COMPILER_SAVE_COMPONENTS } from "../defaultValues/compiler.mjs";
|
|
5
4
|
import { CODE_DIR, CONTENT_DIR, EXCLUDED_PATHS, FILE_EXTENSIONS, WATCH } from "../defaultValues/content.mjs";
|
|
@@ -7,11 +6,12 @@ import { CONTENT_AUTO_TRANSFORMATION, FILL, IMPORT_MODE, LOCATION } from "../def
|
|
|
7
6
|
import { CACHE_DIR, CONFIG_DIR, DICTIONARIES_DIR, DYNAMIC_DICTIONARIES_DIR, FETCH_DICTIONARIES_DIR, MAIN_DIR, MODULE_AUGMENTATION_DIR, REMOTE_DICTIONARIES_DIR, TEMP_DIR, TYPES_DIR, UNMERGED_DICTIONARIES_DIR } from "../defaultValues/system.mjs";
|
|
8
7
|
import { getProjectRequire } from "../utils/ESMxCJSHelpers.mjs";
|
|
9
8
|
import { isPackageInstalled } from "../utils/isPackageInstalled.mjs";
|
|
9
|
+
import { bindLogFunction, buildAnalyticsFields, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration } from "./buildBrowserConfiguration.mjs";
|
|
10
10
|
import { intlayerConfigSchema, intlayerConfigSchemaParseContext } from "./configurationSchema.mjs";
|
|
11
11
|
import { statSync } from "node:fs";
|
|
12
12
|
import { dirname, isAbsolute, join } from "node:path";
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
// src/configFile/buildConfigurationFields.ts
|
|
15
15
|
let storedConfiguration;
|
|
16
16
|
/**
|
|
17
17
|
* Optional companion package whose presence in the project dependency tree
|
|
@@ -614,6 +614,5 @@ const buildConfigurationFields = (customConfiguration, baseDir, logFunctions) =>
|
|
|
614
614
|
return storedConfiguration;
|
|
615
615
|
};
|
|
616
616
|
|
|
617
|
-
//#endregion
|
|
618
617
|
export { buildAnalyticsFields, buildBrowserConfiguration, buildConfigurationFields, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration };
|
|
619
618
|
//# sourceMappingURL=buildConfigurationFields.mjs.map
|
|
@@ -2,7 +2,7 @@ import { AiProviders } from "@intlayer/types/config";
|
|
|
2
2
|
import { z } from "zod/mini";
|
|
3
3
|
import englishLocale from "zod/v4/locales/en.js";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/configFile/configurationSchema.ts
|
|
6
6
|
const internationalizationSchema = z.object({
|
|
7
7
|
locales: z.array(z.string()).check(z.minLength(1)),
|
|
8
8
|
requiredLocales: z.optional(z.array(z.string())),
|
|
@@ -221,6 +221,5 @@ const intlayerConfigSchema = z.object({
|
|
|
221
221
|
*/
|
|
222
222
|
const intlayerConfigSchemaParseContext = { error: englishLocale().localeError };
|
|
223
223
|
|
|
224
|
-
//#endregion
|
|
225
224
|
export { aiSchema, analyticsSchema, buildSchema, compilerSchema, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, internationalizationSchema, intlayerConfigSchema, intlayerConfigSchemaParseContext, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, storageAttributesSchema, storageSchema, systemSchema };
|
|
226
225
|
//# sourceMappingURL=configurationSchema.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/configFile/editorServerOverride.ts
|
|
2
2
|
/**
|
|
3
3
|
* Port of the `intlayer-editor` server, set by `intlayer-editor start --with`
|
|
4
4
|
* on the application it starts. Turns the editor on for that application and
|
|
@@ -54,6 +54,5 @@ const applyEditorServerOverride = (configuration, environment = process.env) =>
|
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
-
//#endregion
|
|
58
57
|
export { EDITOR_SERVER_PORT_ENV_VAR, applyEditorServerOverride, getEditorURLForPort };
|
|
59
58
|
//# sourceMappingURL=editorServerOverride.mjs.map
|
|
@@ -6,7 +6,7 @@ import { loadConfigurationFile } from "./loadConfigurationFile.mjs";
|
|
|
6
6
|
import { searchConfigurationFile } from "./searchConfigurationFile.mjs";
|
|
7
7
|
import { defu } from "defu";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/configFile/getConfiguration.ts
|
|
10
10
|
/**
|
|
11
11
|
* Applies the editor server override outside the cache: the editor server
|
|
12
12
|
* sets it once listening, after its configuration was first read.
|
|
@@ -75,6 +75,5 @@ const getConfigurationAndFilePath = (options) => {
|
|
|
75
75
|
*/
|
|
76
76
|
const getConfiguration = (options) => getConfigurationAndFilePath(options).configuration;
|
|
77
77
|
|
|
78
|
-
//#endregion
|
|
79
78
|
export { getConfiguration, getConfigurationAndFilePath };
|
|
80
79
|
//# sourceMappingURL=getConfiguration.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { buildAnalyticsFields, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration } from "./buildBrowserConfiguration.mjs";
|
|
2
|
-
import { aiSchema, analyticsSchema, buildSchema, compilerSchema, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, internationalizationSchema, intlayerConfigSchema, intlayerConfigSchemaParseContext, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, storageAttributesSchema, storageSchema, systemSchema } from "./configurationSchema.mjs";
|
|
3
2
|
import { buildConfigurationFields } from "./buildConfigurationFields.mjs";
|
|
3
|
+
import { aiSchema, analyticsSchema, buildSchema, compilerSchema, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, internationalizationSchema, intlayerConfigSchema, intlayerConfigSchemaParseContext, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, storageAttributesSchema, storageSchema, systemSchema } from "./configurationSchema.mjs";
|
|
4
4
|
import { EDITOR_SERVER_PORT_ENV_VAR, applyEditorServerOverride, getEditorURLForPort } from "./editorServerOverride.mjs";
|
|
5
|
-
import { configurationFilesCandidates, searchConfigurationFile } from "./searchConfigurationFile.mjs";
|
|
6
5
|
import { getConfiguration, getConfigurationAndFilePath } from "./getConfiguration.mjs";
|
|
6
|
+
import { configurationFilesCandidates, searchConfigurationFile } from "./searchConfigurationFile.mjs";
|
|
7
7
|
|
|
8
8
|
export { EDITOR_SERVER_PORT_ENV_VAR, aiSchema, analyticsSchema, applyEditorServerOverride, buildAnalyticsFields, buildBrowserConfiguration, buildConfigurationFields, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, buildSchema, compilerSchema, configurationFilesCandidates, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, extractBrowserConfiguration, getConfiguration, getConfigurationAndFilePath, getEditorURLForPort, internationalizationSchema, intlayerConfigSchema, intlayerConfigSchemaParseContext, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, searchConfigurationFile, storageAttributesSchema, storageSchema, systemSchema };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { configESMxCJSRequire } from "../utils/ESMxCJSHelpers.mjs";
|
|
2
1
|
import { loadExternalFileSync } from "../loadExternalFile/loadExternalFile.mjs";
|
|
2
|
+
import { configESMxCJSRequire } from "../utils/ESMxCJSHelpers.mjs";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/configFile/loadConfigurationFile.ts
|
|
5
5
|
const getAliases = (options) => {
|
|
6
6
|
try {
|
|
7
7
|
return {
|
|
@@ -25,6 +25,5 @@ const loadConfigurationFile = (configFilePath, options) => {
|
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
//#endregion
|
|
29
28
|
export { loadConfigurationFile };
|
|
30
29
|
//# sourceMappingURL=loadConfigurationFile.mjs.map
|
|
@@ -3,7 +3,7 @@ import { getPackageJsonPath } from "../utils/getPackageJsonPath.mjs";
|
|
|
3
3
|
import { existsSync } from "node:fs";
|
|
4
4
|
import { resolve } from "node:path";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/configFile/searchConfigurationFile.ts
|
|
7
7
|
const configurationFilesCandidates = [
|
|
8
8
|
"intlayer.config.ts",
|
|
9
9
|
"intlayer.config.js",
|
|
@@ -46,6 +46,5 @@ const searchConfigurationFile = (startDir) => {
|
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
-
//#endregion
|
|
50
49
|
export { configurationFilesCandidates, searchConfigurationFile };
|
|
51
50
|
//# sourceMappingURL=searchConfigurationFile.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/defaultValues/analytics.ts
|
|
2
2
|
/**
|
|
3
3
|
* Default values for the `analytics` configuration block.
|
|
4
4
|
* Analytics is opt-out — enabled unless the user disables it, and only
|
|
@@ -8,6 +8,5 @@ const ANALYTICS_ENABLED = true;
|
|
|
8
8
|
const ANALYTICS_FLUSH_INTERVAL = 2e4;
|
|
9
9
|
const ANALYTICS_SAMPLE_RATE = 1;
|
|
10
10
|
|
|
11
|
-
//#endregion
|
|
12
11
|
export { ANALYTICS_ENABLED, ANALYTICS_FLUSH_INTERVAL, ANALYTICS_SAMPLE_RATE };
|
|
13
12
|
//# sourceMappingURL=analytics.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/defaultValues/build.ts
|
|
2
2
|
const BUILD_MODE = "auto";
|
|
3
3
|
const OPTIMIZE = void 0;
|
|
4
4
|
const TRAVERSE_PATTERN = [
|
|
@@ -31,6 +31,5 @@ const PURGE = false;
|
|
|
31
31
|
const CHUNK_GROUPING = true;
|
|
32
32
|
const DICTIONARIES_PRELOAD = true;
|
|
33
33
|
|
|
34
|
-
//#endregion
|
|
35
34
|
export { BUILD_MODE, CACHE, CHUNK_GROUPING, DICTIONARIES_PRELOAD, MINIFY, OPTIMIZE, OUTPUT_FORMAT, PURGE, TRAVERSE_PATTERN, TYPE_CHECKING };
|
|
36
35
|
//# sourceMappingURL=build.mjs.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
// src/defaultValues/compiler.ts
|
|
2
2
|
const COMPILER_ENABLED = false;
|
|
3
3
|
const COMPILER_DICTIONARY_KEY_PREFIX = "";
|
|
4
4
|
const COMPILER_NO_METADATA = false;
|
|
5
5
|
const COMPILER_SAVE_COMPONENTS = false;
|
|
6
6
|
|
|
7
|
-
//#endregion
|
|
8
7
|
export { COMPILER_DICTIONARY_KEY_PREFIX, COMPILER_ENABLED, COMPILER_NO_METADATA, COMPILER_SAVE_COMPONENTS };
|
|
9
8
|
//# sourceMappingURL=compiler.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/defaultValues/content.ts
|
|
2
2
|
const FILE_EXTENSIONS = [
|
|
3
3
|
".content.ts",
|
|
4
4
|
".content.js",
|
|
@@ -34,6 +34,5 @@ const I18NEXT_DICTIONARIES_DIR = "i18next_resources";
|
|
|
34
34
|
const REACT_INTL_MESSAGES_DIR = "intl_messages";
|
|
35
35
|
const WATCH = true;
|
|
36
36
|
|
|
37
|
-
//#endregion
|
|
38
37
|
export { CODE_DIR, CONTENT_DIR, EXCLUDED_PATHS, FILE_EXTENSIONS, I18NEXT_DICTIONARIES_DIR, REACT_INTL_MESSAGES_DIR, WATCH };
|
|
39
38
|
//# sourceMappingURL=content.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/defaultValues/dictionary.ts
|
|
2
2
|
const FILL = true;
|
|
3
3
|
const LOCATION = "local";
|
|
4
4
|
const CONTENT_AUTO_TRANSFORMATION = false;
|
|
@@ -41,6 +41,5 @@ const PRELOADED_DYNAMIC_KEY = "__intlayerPreloaded";
|
|
|
41
41
|
*/
|
|
42
42
|
const DYNAMIC_ENTRY_LOADER_MAP_IDENTIFIER = "content";
|
|
43
43
|
|
|
44
|
-
//#endregion
|
|
45
44
|
export { CONTENT_AUTO_TRANSFORMATION, DYNAMIC_DICTIONARIES_JSON_SUBDIR, DYNAMIC_ENTRY_LOADER_MAP_IDENTIFIER, FILL, IMPORT_MODE, LOCATION, PRELOADED_DYNAMIC_KEY, QUALIFIER_DYNAMIC_TYPES_KEY };
|
|
46
45
|
//# sourceMappingURL=dictionary.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/defaultValues/editor.ts
|
|
2
2
|
const APPLICATION_URL = void 0;
|
|
3
3
|
const EDITOR_URL = "http://localhost:8000";
|
|
4
4
|
const CMS_URL = "https://app.intlayer.org";
|
|
@@ -9,6 +9,5 @@ const LIVE_SYNC = false;
|
|
|
9
9
|
const DICTIONARY_PRIORITY_STRATEGY = "local_first";
|
|
10
10
|
const LIVE_SYNC_PORT = 4e3;
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
export { APPLICATION_URL, BACKEND_URL, CMS_URL, DICTIONARY_PRIORITY_STRATEGY, EDITOR_URL, IS_ENABLED, LIVE_SYNC, LIVE_SYNC_PORT, PORT };
|
|
14
13
|
//# sourceMappingURL=editor.mjs.map
|