@intlayer/chokidar 8.4.4 → 8.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_virtual/_rolldown/runtime.cjs +29 -0
- package/dist/cjs/_virtual/_utils_asset.cjs +98 -0
- package/dist/cjs/build.cjs +58 -1
- package/dist/cjs/buildIntlayerDictionary/buildIntlayerDictionary.cjs +62 -1
- package/dist/cjs/buildIntlayerDictionary/buildIntlayerDictionary.cjs.map +1 -1
- package/dist/cjs/buildIntlayerDictionary/index.cjs +6 -1
- package/dist/cjs/buildIntlayerDictionary/processContentDeclaration.cjs +26 -1
- package/dist/cjs/buildIntlayerDictionary/processContentDeclaration.cjs.map +1 -1
- package/dist/cjs/buildIntlayerDictionary/writeDynamicDictionary.cjs +107 -5
- package/dist/cjs/buildIntlayerDictionary/writeDynamicDictionary.cjs.map +1 -1
- package/dist/cjs/buildIntlayerDictionary/writeFetchDictionary.cjs +80 -3
- package/dist/cjs/buildIntlayerDictionary/writeFetchDictionary.cjs.map +1 -1
- package/dist/cjs/buildIntlayerDictionary/writeMergedDictionary.cjs +46 -1
- package/dist/cjs/buildIntlayerDictionary/writeMergedDictionary.cjs.map +1 -1
- package/dist/cjs/buildIntlayerDictionary/writeRemoteDictionary.cjs +50 -1
- package/dist/cjs/buildIntlayerDictionary/writeRemoteDictionary.cjs.map +1 -1
- package/dist/cjs/buildIntlayerDictionary/writeUnmergedDictionary.cjs +59 -1
- package/dist/cjs/buildIntlayerDictionary/writeUnmergedDictionary.cjs.map +1 -1
- package/dist/cjs/cleanOutputDir.cjs +30 -1
- package/dist/cjs/cleanOutputDir.cjs.map +1 -1
- package/dist/cjs/cleanRemovedContentDeclaration.cjs +97 -1
- package/dist/cjs/cleanRemovedContentDeclaration.cjs.map +1 -1
- package/dist/cjs/cli.cjs +35 -1
- package/dist/cjs/createDictionaryEntryPoint/createDictionaryEntryPoint.cjs +70 -1
- package/dist/cjs/createDictionaryEntryPoint/createDictionaryEntryPoint.cjs.map +1 -1
- package/dist/cjs/createDictionaryEntryPoint/generateDictionaryListContent.cjs +42 -7
- package/dist/cjs/createDictionaryEntryPoint/generateDictionaryListContent.cjs.map +1 -1
- package/dist/cjs/createDictionaryEntryPoint/getBuiltDictionariesPath.cjs +23 -1
- package/dist/cjs/createDictionaryEntryPoint/getBuiltDictionariesPath.cjs.map +1 -1
- package/dist/cjs/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.cjs +24 -1
- package/dist/cjs/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.cjs.map +1 -1
- package/dist/cjs/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.cjs +24 -1
- package/dist/cjs/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.cjs.map +1 -1
- package/dist/cjs/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.cjs +23 -1
- package/dist/cjs/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.cjs.map +1 -1
- package/dist/cjs/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.cjs +23 -1
- package/dist/cjs/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.cjs.map +1 -1
- package/dist/cjs/createDictionaryEntryPoint/index.cjs +16 -1
- package/dist/cjs/createType/createModuleAugmentation.cjs +112 -9
- package/dist/cjs/createType/createModuleAugmentation.cjs.map +1 -1
- package/dist/cjs/createType/createType.cjs +29 -1
- package/dist/cjs/createType/createType.cjs.map +1 -1
- package/dist/cjs/createType/index.cjs +8 -1
- package/dist/cjs/detectFormatCommand.cjs +32 -1
- package/dist/cjs/detectFormatCommand.cjs.map +1 -1
- package/dist/cjs/fetchDistantDictionaries.cjs +51 -1
- package/dist/cjs/fetchDistantDictionaries.cjs.map +1 -1
- package/dist/cjs/filterInvalidDictionaries.cjs +52 -1
- package/dist/cjs/filterInvalidDictionaries.cjs.map +1 -1
- package/dist/cjs/formatDictionary.cjs +49 -1
- package/dist/cjs/formatDictionary.cjs.map +1 -1
- package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs +61 -7
- package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs.map +1 -1
- package/dist/cjs/getContentDeclarationFileTemplate/index.cjs +4 -1
- package/dist/cjs/handleAdditionalContentDeclarationFile.cjs +34 -1
- package/dist/cjs/handleAdditionalContentDeclarationFile.cjs.map +1 -1
- package/dist/cjs/handleContentDeclarationFileChange.cjs +49 -1
- package/dist/cjs/handleContentDeclarationFileChange.cjs.map +1 -1
- package/dist/cjs/handleContentDeclarationFileMoved.cjs +24 -1
- package/dist/cjs/handleContentDeclarationFileMoved.cjs.map +1 -1
- package/dist/cjs/handleUnlinkedContentDeclarationFile.cjs +37 -1
- package/dist/cjs/handleUnlinkedContentDeclarationFile.cjs.map +1 -1
- package/dist/cjs/init/index.cjs +284 -1
- package/dist/cjs/init/index.cjs.map +1 -1
- package/dist/cjs/init/utils/configManipulation.cjs +111 -1
- package/dist/cjs/init/utils/configManipulation.cjs.map +1 -1
- package/dist/cjs/init/utils/fileSystem.cjs +39 -1
- package/dist/cjs/init/utils/fileSystem.cjs.map +1 -1
- package/dist/cjs/init/utils/index.cjs +14 -1
- package/dist/cjs/init/utils/jsonParser.cjs +42 -3
- package/dist/cjs/init/utils/jsonParser.cjs.map +1 -1
- package/dist/cjs/init/utils/tsConfig.cjs +18 -1
- package/dist/cjs/init/utils/tsConfig.cjs.map +1 -1
- package/dist/cjs/initConfig/index.cjs +39 -1
- package/dist/cjs/initConfig/index.cjs.map +1 -1
- package/dist/cjs/installMCP/installMCP.cjs +50 -1
- package/dist/cjs/installMCP/installMCP.cjs.map +1 -1
- package/dist/cjs/installSkills/index.cjs +303 -1
- package/dist/cjs/installSkills/index.cjs.map +1 -1
- package/dist/cjs/listDictionariesPath.cjs +42 -1
- package/dist/cjs/listDictionariesPath.cjs.map +1 -1
- package/dist/cjs/listGitFiles.cjs +105 -5
- package/dist/cjs/listGitFiles.cjs.map +1 -1
- package/dist/cjs/listProjects.cjs +47 -1
- package/dist/cjs/listProjects.cjs.map +1 -1
- package/dist/cjs/loadDictionaries/getIntlayerBundle.cjs +68 -1
- package/dist/cjs/loadDictionaries/getIntlayerBundle.cjs.map +1 -1
- package/dist/cjs/loadDictionaries/index.cjs +14 -1
- package/dist/cjs/loadDictionaries/loadContentDeclaration.cjs +93 -2
- package/dist/cjs/loadDictionaries/loadContentDeclaration.cjs.map +1 -1
- package/dist/cjs/loadDictionaries/loadDictionaries.cjs +127 -1
- package/dist/cjs/loadDictionaries/loadDictionaries.cjs.map +1 -1
- package/dist/cjs/loadDictionaries/loadLocalDictionaries.cjs +27 -1
- package/dist/cjs/loadDictionaries/loadLocalDictionaries.cjs.map +1 -1
- package/dist/cjs/loadDictionaries/loadRemoteDictionaries.cjs +61 -1
- package/dist/cjs/loadDictionaries/loadRemoteDictionaries.cjs.map +1 -1
- package/dist/cjs/loadDictionaries/log.cjs +138 -3
- package/dist/cjs/loadDictionaries/log.cjs.map +1 -1
- package/dist/cjs/loadDictionaries/logTypeScriptErrors.cjs +63 -2
- package/dist/cjs/loadDictionaries/logTypeScriptErrors.cjs.map +1 -1
- package/dist/cjs/logConfigDetails.cjs +39 -2
- package/dist/cjs/logConfigDetails.cjs.map +1 -1
- package/dist/cjs/prepareIntlayer.cjs +103 -1
- package/dist/cjs/prepareIntlayer.cjs.map +1 -1
- package/dist/cjs/reduceDictionaryContent/applyMask.cjs +30 -1
- package/dist/cjs/reduceDictionaryContent/applyMask.cjs.map +1 -1
- package/dist/cjs/reduceDictionaryContent/reduceDictionaryContent.cjs +12 -1
- package/dist/cjs/reduceDictionaryContent/reduceDictionaryContent.cjs.map +1 -1
- package/dist/cjs/utils/autoDecorateContent.cjs +89 -1
- package/dist/cjs/utils/autoDecorateContent.cjs.map +1 -1
- package/dist/cjs/utils/buildComponentFilesList.cjs +67 -1
- package/dist/cjs/utils/buildComponentFilesList.cjs.map +1 -1
- package/dist/cjs/utils/buildFilesList.cjs +83 -1
- package/dist/cjs/utils/buildFilesList.cjs.map +1 -1
- package/dist/cjs/utils/chunkJSON.cjs +336 -1
- package/dist/cjs/utils/chunkJSON.cjs.map +1 -1
- package/dist/cjs/utils/formatter.cjs +18 -1
- package/dist/cjs/utils/formatter.cjs.map +1 -1
- package/dist/cjs/utils/getChunk.cjs +34 -1
- package/dist/cjs/utils/getChunk.cjs.map +1 -1
- package/dist/cjs/utils/getContentExtension.cjs +29 -1
- package/dist/cjs/utils/getContentExtension.cjs.map +1 -1
- package/dist/cjs/utils/getFormatFromExtension.cjs +34 -1
- package/dist/cjs/utils/getFormatFromExtension.cjs.map +1 -1
- package/dist/cjs/utils/getPathHash.cjs +10 -1
- package/dist/cjs/utils/getPathHash.cjs.map +1 -1
- package/dist/cjs/utils/index.cjs +49 -1
- package/dist/cjs/utils/mergeChunks.cjs +28 -1
- package/dist/cjs/utils/mergeChunks.cjs.map +1 -1
- package/dist/cjs/utils/pLimit.cjs +128 -1
- package/dist/cjs/utils/pLimit.cjs.map +1 -1
- package/dist/cjs/utils/parallelize.cjs +11 -1
- package/dist/cjs/utils/parallelize.cjs.map +1 -1
- package/dist/cjs/utils/parallelizeGlobal.cjs +29 -1
- package/dist/cjs/utils/parallelizeGlobal.cjs.map +1 -1
- package/dist/cjs/utils/reduceObjectFormat.cjs +31 -1
- package/dist/cjs/utils/reduceObjectFormat.cjs.map +1 -1
- package/dist/cjs/utils/resolveObjectPromises.cjs +21 -1
- package/dist/cjs/utils/resolveObjectPromises.cjs.map +1 -1
- package/dist/cjs/utils/resolveRelativePath.cjs +21 -1
- package/dist/cjs/utils/resolveRelativePath.cjs.map +1 -1
- package/dist/cjs/utils/runOnce.cjs +95 -1
- package/dist/cjs/utils/runOnce.cjs.map +1 -1
- package/dist/cjs/utils/runParallel/bin.cjs +54 -1
- package/dist/cjs/utils/runParallel/bin.cjs.map +1 -1
- package/dist/cjs/utils/runParallel/bootstrap.cjs +24 -1
- package/dist/cjs/utils/runParallel/bootstrap.cjs.map +1 -1
- package/dist/cjs/utils/runParallel/index.cjs +115 -1
- package/dist/cjs/utils/runParallel/index.cjs.map +1 -1
- package/dist/cjs/utils/runParallel/pidTree.cjs +145 -1
- package/dist/cjs/utils/runParallel/pidTree.cjs.map +1 -1
- package/dist/cjs/utils/runParallel/ps.cjs +49 -1
- package/dist/cjs/utils/runParallel/ps.cjs.map +1 -1
- package/dist/cjs/utils/runParallel/runTask.cjs +154 -1
- package/dist/cjs/utils/runParallel/runTask.cjs.map +1 -1
- package/dist/cjs/utils/runParallel/spawnPosix.cjs +59 -1
- package/dist/cjs/utils/runParallel/spawnPosix.cjs.map +1 -1
- package/dist/cjs/utils/runParallel/spawnWin32.cjs +43 -1
- package/dist/cjs/utils/runParallel/spawnWin32.cjs.map +1 -1
- package/dist/cjs/utils/runParallel/wmic.cjs +52 -1
- package/dist/cjs/utils/runParallel/wmic.cjs.map +1 -1
- package/dist/cjs/utils/sortAlphabetically.cjs +7 -1
- package/dist/cjs/utils/sortAlphabetically.cjs.map +1 -1
- package/dist/cjs/utils/splitTextByLine.cjs +11 -1
- package/dist/cjs/utils/splitTextByLine.cjs.map +1 -1
- package/dist/cjs/utils/verifyIdenticObjectFormat.cjs +60 -1
- package/dist/cjs/utils/verifyIdenticObjectFormat.cjs.map +1 -1
- package/dist/cjs/watcher.cjs +120 -1
- package/dist/cjs/watcher.cjs.map +1 -1
- package/dist/cjs/writeConfiguration/index.cjs +42 -1
- package/dist/cjs/writeConfiguration/index.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/detectExportedComponentName.cjs +28 -1
- package/dist/cjs/writeContentDeclaration/detectExportedComponentName.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/index.cjs +10 -1
- package/dist/cjs/writeContentDeclaration/processContentDeclarationContent.cjs +94 -1
- package/dist/cjs/writeContentDeclaration/processContentDeclarationContent.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/transformJSFile.cjs +412 -3
- package/dist/cjs/writeContentDeclaration/transformJSFile.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/transformJSONFile.cjs +127 -2
- package/dist/cjs/writeContentDeclaration/transformJSONFile.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/writeContentDeclaration.cjs +148 -1
- package/dist/cjs/writeContentDeclaration/writeContentDeclaration.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/writeJSFile.cjs +92 -1
- package/dist/cjs/writeContentDeclaration/writeJSFile.cjs.map +1 -1
- package/dist/cjs/writeFileIfChanged.cjs +50 -1
- package/dist/cjs/writeFileIfChanged.cjs.map +1 -1
- package/dist/cjs/writeJsonIfChanged.cjs +17 -1
- package/dist/cjs/writeJsonIfChanged.cjs.map +1 -1
- package/dist/esm/_virtual/_rolldown/runtime.mjs +8 -0
- package/dist/esm/_virtual/_utils_asset.mjs +97 -0
- package/dist/esm/build.mjs +25 -1
- package/dist/esm/buildIntlayerDictionary/buildIntlayerDictionary.mjs +60 -1
- package/dist/esm/buildIntlayerDictionary/buildIntlayerDictionary.mjs.map +1 -1
- package/dist/esm/buildIntlayerDictionary/index.mjs +4 -1
- package/dist/esm/buildIntlayerDictionary/processContentDeclaration.mjs +24 -1
- package/dist/esm/buildIntlayerDictionary/processContentDeclaration.mjs.map +1 -1
- package/dist/esm/buildIntlayerDictionary/writeDynamicDictionary.mjs +102 -5
- package/dist/esm/buildIntlayerDictionary/writeDynamicDictionary.mjs.map +1 -1
- package/dist/esm/buildIntlayerDictionary/writeFetchDictionary.mjs +76 -3
- package/dist/esm/buildIntlayerDictionary/writeFetchDictionary.mjs.map +1 -1
- package/dist/esm/buildIntlayerDictionary/writeMergedDictionary.mjs +44 -1
- package/dist/esm/buildIntlayerDictionary/writeMergedDictionary.mjs.map +1 -1
- package/dist/esm/buildIntlayerDictionary/writeRemoteDictionary.mjs +48 -1
- package/dist/esm/buildIntlayerDictionary/writeRemoteDictionary.mjs.map +1 -1
- package/dist/esm/buildIntlayerDictionary/writeUnmergedDictionary.mjs +56 -1
- package/dist/esm/buildIntlayerDictionary/writeUnmergedDictionary.mjs.map +1 -1
- package/dist/esm/cleanOutputDir.mjs +28 -1
- package/dist/esm/cleanOutputDir.mjs.map +1 -1
- package/dist/esm/cleanRemovedContentDeclaration.mjs +94 -1
- package/dist/esm/cleanRemovedContentDeclaration.mjs.map +1 -1
- package/dist/esm/cli.mjs +15 -1
- package/dist/esm/createDictionaryEntryPoint/createDictionaryEntryPoint.mjs +68 -1
- package/dist/esm/createDictionaryEntryPoint/createDictionaryEntryPoint.mjs.map +1 -1
- package/dist/esm/createDictionaryEntryPoint/generateDictionaryListContent.mjs +40 -7
- package/dist/esm/createDictionaryEntryPoint/generateDictionaryListContent.mjs.map +1 -1
- package/dist/esm/createDictionaryEntryPoint/getBuiltDictionariesPath.mjs +20 -1
- package/dist/esm/createDictionaryEntryPoint/getBuiltDictionariesPath.mjs.map +1 -1
- package/dist/esm/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.mjs +21 -1
- package/dist/esm/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.mjs.map +1 -1
- package/dist/esm/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.mjs +21 -1
- package/dist/esm/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.mjs.map +1 -1
- package/dist/esm/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.mjs +20 -1
- package/dist/esm/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.mjs.map +1 -1
- package/dist/esm/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.mjs +20 -1
- package/dist/esm/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.mjs.map +1 -1
- package/dist/esm/createDictionaryEntryPoint/index.mjs +9 -1
- package/dist/esm/createType/createModuleAugmentation.mjs +108 -9
- package/dist/esm/createType/createModuleAugmentation.mjs.map +1 -1
- package/dist/esm/createType/createType.mjs +26 -1
- package/dist/esm/createType/createType.mjs.map +1 -1
- package/dist/esm/createType/index.mjs +4 -1
- package/dist/esm/detectFormatCommand.mjs +30 -1
- package/dist/esm/detectFormatCommand.mjs.map +1 -1
- package/dist/esm/fetchDistantDictionaries.mjs +49 -1
- package/dist/esm/fetchDistantDictionaries.mjs.map +1 -1
- package/dist/esm/filterInvalidDictionaries.mjs +48 -1
- package/dist/esm/filterInvalidDictionaries.mjs.map +1 -1
- package/dist/esm/formatDictionary.mjs +44 -1
- package/dist/esm/formatDictionary.mjs.map +1 -1
- package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs +59 -7
- package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs.map +1 -1
- package/dist/esm/getContentDeclarationFileTemplate/index.mjs +3 -1
- package/dist/esm/handleAdditionalContentDeclarationFile.mjs +32 -1
- package/dist/esm/handleAdditionalContentDeclarationFile.mjs.map +1 -1
- package/dist/esm/handleContentDeclarationFileChange.mjs +47 -1
- package/dist/esm/handleContentDeclarationFileChange.mjs.map +1 -1
- package/dist/esm/handleContentDeclarationFileMoved.mjs +22 -1
- package/dist/esm/handleContentDeclarationFileMoved.mjs.map +1 -1
- package/dist/esm/handleUnlinkedContentDeclarationFile.mjs +35 -1
- package/dist/esm/handleUnlinkedContentDeclarationFile.mjs.map +1 -1
- package/dist/esm/init/index.mjs +281 -1
- package/dist/esm/init/index.mjs.map +1 -1
- package/dist/esm/init/utils/configManipulation.mjs +108 -1
- package/dist/esm/init/utils/configManipulation.mjs.map +1 -1
- package/dist/esm/init/utils/fileSystem.mjs +34 -1
- package/dist/esm/init/utils/fileSystem.mjs.map +1 -1
- package/dist/esm/init/utils/index.mjs +6 -1
- package/dist/esm/init/utils/jsonParser.mjs +40 -3
- package/dist/esm/init/utils/jsonParser.mjs.map +1 -1
- package/dist/esm/init/utils/tsConfig.mjs +16 -1
- package/dist/esm/init/utils/tsConfig.mjs.map +1 -1
- package/dist/esm/initConfig/index.mjs +37 -1
- package/dist/esm/initConfig/index.mjs.map +1 -1
- package/dist/esm/installMCP/installMCP.mjs +46 -1
- package/dist/esm/installMCP/installMCP.mjs.map +1 -1
- package/dist/esm/installSkills/index.mjs +295 -1
- package/dist/esm/installSkills/index.mjs.map +1 -1
- package/dist/esm/listDictionariesPath.mjs +38 -1
- package/dist/esm/listDictionariesPath.mjs.map +1 -1
- package/dist/esm/listGitFiles.mjs +100 -5
- package/dist/esm/listGitFiles.mjs.map +1 -1
- package/dist/esm/listProjects.mjs +43 -1
- package/dist/esm/listProjects.mjs.map +1 -1
- package/dist/esm/loadDictionaries/getIntlayerBundle.mjs +67 -1
- package/dist/esm/loadDictionaries/getIntlayerBundle.mjs.map +1 -1
- package/dist/esm/loadDictionaries/index.mjs +6 -1
- package/dist/esm/loadDictionaries/loadContentDeclaration.mjs +88 -2
- package/dist/esm/loadDictionaries/loadContentDeclaration.mjs.map +1 -1
- package/dist/esm/loadDictionaries/loadDictionaries.mjs +124 -1
- package/dist/esm/loadDictionaries/loadDictionaries.mjs.map +1 -1
- package/dist/esm/loadDictionaries/loadLocalDictionaries.mjs +25 -1
- package/dist/esm/loadDictionaries/loadLocalDictionaries.mjs.map +1 -1
- package/dist/esm/loadDictionaries/loadRemoteDictionaries.mjs +58 -1
- package/dist/esm/loadDictionaries/loadRemoteDictionaries.mjs.map +1 -1
- package/dist/esm/loadDictionaries/log.mjs +134 -3
- package/dist/esm/loadDictionaries/log.mjs.map +1 -1
- package/dist/esm/loadDictionaries/logTypeScriptErrors.mjs +61 -2
- package/dist/esm/loadDictionaries/logTypeScriptErrors.mjs.map +1 -1
- package/dist/esm/logConfigDetails.mjs +36 -2
- package/dist/esm/logConfigDetails.mjs.map +1 -1
- package/dist/esm/prepareIntlayer.mjs +99 -1
- package/dist/esm/prepareIntlayer.mjs.map +1 -1
- package/dist/esm/reduceDictionaryContent/applyMask.mjs +28 -1
- package/dist/esm/reduceDictionaryContent/applyMask.mjs.map +1 -1
- package/dist/esm/reduceDictionaryContent/reduceDictionaryContent.mjs +10 -1
- package/dist/esm/reduceDictionaryContent/reduceDictionaryContent.mjs.map +1 -1
- package/dist/esm/utils/autoDecorateContent.mjs +86 -1
- package/dist/esm/utils/autoDecorateContent.mjs.map +1 -1
- package/dist/esm/utils/buildComponentFilesList.mjs +64 -1
- package/dist/esm/utils/buildComponentFilesList.mjs.map +1 -1
- package/dist/esm/utils/buildFilesList.mjs +79 -1
- package/dist/esm/utils/buildFilesList.mjs.map +1 -1
- package/dist/esm/utils/chunkJSON.mjs +333 -1
- package/dist/esm/utils/chunkJSON.mjs.map +1 -1
- package/dist/esm/utils/formatter.mjs +13 -1
- package/dist/esm/utils/formatter.mjs.map +1 -1
- package/dist/esm/utils/getChunk.mjs +33 -1
- package/dist/esm/utils/getChunk.mjs.map +1 -1
- package/dist/esm/utils/getContentExtension.mjs +27 -1
- package/dist/esm/utils/getContentExtension.mjs.map +1 -1
- package/dist/esm/utils/getFormatFromExtension.mjs +31 -1
- package/dist/esm/utils/getFormatFromExtension.mjs.map +1 -1
- package/dist/esm/utils/getPathHash.mjs +7 -1
- package/dist/esm/utils/getPathHash.mjs.map +1 -1
- package/dist/esm/utils/index.mjs +22 -1
- package/dist/esm/utils/mergeChunks.mjs +26 -1
- package/dist/esm/utils/mergeChunks.mjs.map +1 -1
- package/dist/esm/utils/pLimit.mjs +125 -1
- package/dist/esm/utils/pLimit.mjs.map +1 -1
- package/dist/esm/utils/parallelize.mjs +10 -1
- package/dist/esm/utils/parallelize.mjs.map +1 -1
- package/dist/esm/utils/parallelizeGlobal.mjs +26 -1
- package/dist/esm/utils/parallelizeGlobal.mjs.map +1 -1
- package/dist/esm/utils/reduceObjectFormat.mjs +29 -1
- package/dist/esm/utils/reduceObjectFormat.mjs.map +1 -1
- package/dist/esm/utils/resolveObjectPromises.mjs +19 -1
- package/dist/esm/utils/resolveObjectPromises.mjs.map +1 -1
- package/dist/esm/utils/resolveRelativePath.mjs +19 -1
- package/dist/esm/utils/resolveRelativePath.mjs.map +1 -1
- package/dist/esm/utils/runOnce.mjs +92 -1
- package/dist/esm/utils/runOnce.mjs.map +1 -1
- package/dist/esm/utils/runParallel/bin.mjs +52 -1
- package/dist/esm/utils/runParallel/bin.mjs.map +1 -1
- package/dist/esm/utils/runParallel/bootstrap.mjs +22 -1
- package/dist/esm/utils/runParallel/bootstrap.mjs.map +1 -1
- package/dist/esm/utils/runParallel/index.mjs +113 -1
- package/dist/esm/utils/runParallel/index.mjs.map +1 -1
- package/dist/esm/utils/runParallel/pidTree.mjs +142 -1
- package/dist/esm/utils/runParallel/pidTree.mjs.map +1 -1
- package/dist/esm/utils/runParallel/ps.mjs +46 -1
- package/dist/esm/utils/runParallel/ps.mjs.map +1 -1
- package/dist/esm/utils/runParallel/runTask.mjs +152 -1
- package/dist/esm/utils/runParallel/runTask.mjs.map +1 -1
- package/dist/esm/utils/runParallel/spawnPosix.mjs +57 -1
- package/dist/esm/utils/runParallel/spawnPosix.mjs.map +1 -1
- package/dist/esm/utils/runParallel/spawnWin32.mjs +41 -1
- package/dist/esm/utils/runParallel/spawnWin32.mjs.map +1 -1
- package/dist/esm/utils/runParallel/wmic.mjs +49 -1
- package/dist/esm/utils/runParallel/wmic.mjs.map +1 -1
- package/dist/esm/utils/sortAlphabetically.mjs +5 -1
- package/dist/esm/utils/sortAlphabetically.mjs.map +1 -1
- package/dist/esm/utils/splitTextByLine.mjs +9 -1
- package/dist/esm/utils/splitTextByLine.mjs.map +1 -1
- package/dist/esm/utils/verifyIdenticObjectFormat.mjs +58 -1
- package/dist/esm/utils/verifyIdenticObjectFormat.mjs.map +1 -1
- package/dist/esm/watcher.mjs +117 -1
- package/dist/esm/watcher.mjs.map +1 -1
- package/dist/esm/writeConfiguration/index.mjs +39 -1
- package/dist/esm/writeConfiguration/index.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/detectExportedComponentName.mjs +26 -1
- package/dist/esm/writeContentDeclaration/detectExportedComponentName.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/index.mjs +6 -1
- package/dist/esm/writeContentDeclaration/processContentDeclarationContent.mjs +91 -1
- package/dist/esm/writeContentDeclaration/processContentDeclarationContent.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/transformJSFile.mjs +407 -3
- package/dist/esm/writeContentDeclaration/transformJSFile.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/transformJSONFile.mjs +124 -2
- package/dist/esm/writeContentDeclaration/transformJSONFile.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/writeContentDeclaration.mjs +146 -1
- package/dist/esm/writeContentDeclaration/writeContentDeclaration.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/writeJSFile.mjs +90 -1
- package/dist/esm/writeContentDeclaration/writeJSFile.mjs.map +1 -1
- package/dist/esm/writeFileIfChanged.mjs +48 -1
- package/dist/esm/writeFileIfChanged.mjs.map +1 -1
- package/dist/esm/writeJsonIfChanged.mjs +16 -1
- package/dist/esm/writeJsonIfChanged.mjs.map +1 -1
- package/dist/types/build.d.ts +20 -20
- package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +25 -2
- package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts.map +1 -0
- package/dist/types/buildIntlayerDictionary/index.d.ts +2 -2
- package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts +11 -2
- package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts.map +1 -0
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +49 -2
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts.map +1 -0
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts +1 -1
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +30 -2
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts.map +1 -0
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts +34 -2
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts.map +1 -0
- package/dist/types/cli.d.ts +6 -6
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +14 -2
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts.map +1 -0
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +10 -2
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts.map +1 -0
- package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts +10 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts.map +1 -0
- package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts +10 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts.map +1 -0
- package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts +10 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts.map +1 -0
- package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts +10 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts.map +1 -0
- package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts +10 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts.map +1 -0
- package/dist/types/createDictionaryEntryPoint/index.d.ts +7 -7
- package/dist/types/createType/createModuleAugmentation.d.ts +9 -2
- package/dist/types/createType/createModuleAugmentation.d.ts.map +1 -0
- package/dist/types/createType/createType.d.ts +12 -2
- package/dist/types/createType/createType.d.ts.map +1 -0
- package/dist/types/createType/index.d.ts +2 -2
- package/dist/types/fetchDistantDictionaries.d.ts +1 -1
- package/dist/types/fetchDistantDictionaries.d.ts.map +1 -1
- package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts +7 -2
- package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts.map +1 -0
- package/dist/types/getContentDeclarationFileTemplate/index.d.ts +1 -1
- package/dist/types/loadDictionaries/index.d.ts +4 -4
- package/dist/types/loadDictionaries/loadContentDeclaration.d.ts +12 -2
- package/dist/types/loadDictionaries/loadContentDeclaration.d.ts.map +1 -0
- package/dist/types/loadDictionaries/loadDictionaries.d.ts +23 -2
- package/dist/types/loadDictionaries/loadDictionaries.d.ts.map +1 -0
- package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts +8 -2
- package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts.map +1 -0
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +15 -2
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts.map +1 -0
- package/dist/types/loadDictionaries/log.d.ts +1 -1
- package/dist/types/utils/getFormatFromExtension.d.ts +8 -2
- package/dist/types/utils/getFormatFromExtension.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/writeConfiguration/index.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts +12 -2
- package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts.map +1 -0
- package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts +5 -2
- package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts.map +1 -0
- package/dist/types/writeContentDeclaration/index.d.ts +5 -5
- package/dist/types/writeContentDeclaration/processContentDeclarationContent.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/transformJSFile.d.ts +11 -2
- package/dist/types/writeContentDeclaration/transformJSFile.d.ts.map +1 -0
- package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts +19 -2
- package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts.map +1 -0
- package/dist/types/writeContentDeclaration/writeJSFile.d.ts +14 -2
- package/dist/types/writeContentDeclaration/writeJSFile.d.ts.map +1 -0
- package/package.json +8 -8
- package/dist/cjs/_utils_asset-SJVy1xMD.cjs +0 -2
- package/dist/cjs/chunk-Bmb41Sf3.cjs +0 -1
- package/dist/esm/_utils_asset-4w8dPH9r.mjs +0 -2
- package/dist/esm/chunk-DDgYwkfe.mjs +0 -1
- package/dist/types/buildIntlayerDictionary-C-LWgPIL.d.ts +0 -25
- package/dist/types/buildIntlayerDictionary-C-LWgPIL.d.ts.map +0 -1
- package/dist/types/createDictionaryEntryPoint-Bc5lHSiY.d.ts +0 -14
- package/dist/types/createDictionaryEntryPoint-Bc5lHSiY.d.ts.map +0 -1
- package/dist/types/createModuleAugmentation-D1eIVnjg.d.ts +0 -9
- package/dist/types/createModuleAugmentation-D1eIVnjg.d.ts.map +0 -1
- package/dist/types/createType--rDwdg2t.d.ts +0 -12
- package/dist/types/createType--rDwdg2t.d.ts.map +0 -1
- package/dist/types/detectExportedComponentName-DVXsp_FG.d.ts +0 -12
- package/dist/types/detectExportedComponentName-DVXsp_FG.d.ts.map +0 -1
- package/dist/types/dictionaryStatus-DPVO37qe.d.ts +0 -5
- package/dist/types/dictionaryStatus-DPVO37qe.d.ts.map +0 -1
- package/dist/types/generateDictionaryListContent-DAtHG6SR.d.ts +0 -10
- package/dist/types/generateDictionaryListContent-DAtHG6SR.d.ts.map +0 -1
- package/dist/types/getBuiltDictionariesPath-C4it65a1.d.ts +0 -10
- package/dist/types/getBuiltDictionariesPath-C4it65a1.d.ts.map +0 -1
- package/dist/types/getBuiltDynamicDictionariesPath-Cj9EWnjT.d.ts +0 -10
- package/dist/types/getBuiltDynamicDictionariesPath-Cj9EWnjT.d.ts.map +0 -1
- package/dist/types/getBuiltFetchDictionariesPath-1JleRhT3.d.ts +0 -10
- package/dist/types/getBuiltFetchDictionariesPath-1JleRhT3.d.ts.map +0 -1
- package/dist/types/getBuiltRemoteDictionariesPath-DHOmqNCr.d.ts +0 -10
- package/dist/types/getBuiltRemoteDictionariesPath-DHOmqNCr.d.ts.map +0 -1
- package/dist/types/getBuiltUnmergedDictionariesPath-GUmmLxTB.d.ts +0 -10
- package/dist/types/getBuiltUnmergedDictionariesPath-GUmmLxTB.d.ts.map +0 -1
- package/dist/types/getContentDeclarationFileTemplate-Dz3rnFy9.d.ts +0 -7
- package/dist/types/getContentDeclarationFileTemplate-Dz3rnFy9.d.ts.map +0 -1
- package/dist/types/getFormatFromExtension-SdXYWfPx.d.ts +0 -8
- package/dist/types/getFormatFromExtension-SdXYWfPx.d.ts.map +0 -1
- package/dist/types/loadContentDeclaration-CBMS4vkA.d.ts +0 -12
- package/dist/types/loadContentDeclaration-CBMS4vkA.d.ts.map +0 -1
- package/dist/types/loadDictionaries-BIqHwtYE.d.ts +0 -23
- package/dist/types/loadDictionaries-BIqHwtYE.d.ts.map +0 -1
- package/dist/types/loadLocalDictionaries-CNmVaw0c.d.ts +0 -8
- package/dist/types/loadLocalDictionaries-CNmVaw0c.d.ts.map +0 -1
- package/dist/types/loadRemoteDictionaries-MoITTb7W.d.ts +0 -15
- package/dist/types/loadRemoteDictionaries-MoITTb7W.d.ts.map +0 -1
- package/dist/types/processContentDeclaration-CAvrHaIT.d.ts +0 -11
- package/dist/types/processContentDeclaration-CAvrHaIT.d.ts.map +0 -1
- package/dist/types/transformJSFile-Cg0LkeLb.d.ts +0 -11
- package/dist/types/transformJSFile-Cg0LkeLb.d.ts.map +0 -1
- package/dist/types/writeContentDeclaration-XdGxj0KP.d.ts +0 -19
- package/dist/types/writeContentDeclaration-XdGxj0KP.d.ts.map +0 -1
- package/dist/types/writeDynamicDictionary-BE0mF2zZ.d.ts +0 -49
- package/dist/types/writeDynamicDictionary-BE0mF2zZ.d.ts.map +0 -1
- package/dist/types/writeJSFile-kK95jzg_.d.ts +0 -14
- package/dist/types/writeJSFile-kK95jzg_.d.ts.map +0 -1
- package/dist/types/writeMergedDictionary-CMeghcRI.d.ts +0 -30
- package/dist/types/writeMergedDictionary-CMeghcRI.d.ts.map +0 -1
- package/dist/types/writeUnmergedDictionary-Cxx51isz.d.ts +0 -34
- package/dist/types/writeUnmergedDictionary-Cxx51isz.d.ts.map +0 -1
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { DictionariesStatus } from "./loadDictionaries.js";
|
|
2
|
+
import * as _intlayer_types_config0 from "@intlayer/types/config";
|
|
3
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
|
+
import { DictionaryAPI } from "@intlayer/backend";
|
|
5
|
+
|
|
6
|
+
//#region src/loadDictionaries/loadRemoteDictionaries.d.ts
|
|
7
|
+
declare const formatDistantDictionaries: (dictionaries: (DictionaryAPI | Dictionary)[]) => Dictionary[];
|
|
8
|
+
declare const loadRemoteDictionaries: (configuration?: _intlayer_types_config0.IntlayerConfig, onStatusUpdate?: (status: DictionariesStatus[]) => void, options?: {
|
|
9
|
+
onStartRemoteCheck?: () => void;
|
|
10
|
+
onStopRemoteCheck?: () => void;
|
|
11
|
+
onError?: (error: Error) => void;
|
|
12
|
+
}) => Promise<Dictionary[]>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { formatDistantDictionaries, loadRemoteDictionaries };
|
|
15
|
+
//# sourceMappingURL=loadRemoteDictionaries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadRemoteDictionaries.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadRemoteDictionaries.ts"],"mappings":";;;;;;cAUa,yBAAA,GACX,YAAA,GAAe,aAAA,GAAgB,UAAA,QAC9B,UAAA;AAAA,cAOU,sBAAA,GACX,aAAA,GAqID,uBAAA,CArIC,cAAA,EACA,cAAA,IAAkB,MAAA,EAAQ,kBAAA,aAC1B,OAAA;EACE,kBAAA;EACA,iBAAA;EACA,OAAA,IAAW,KAAA,EAAO,KAAA;AAAA,MAEnB,OAAA,CAAQ,UAAA"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region src/utils/getFormatFromExtension.d.ts
|
|
2
|
+
type Format = 'ts' | 'cjs' | 'esm' | 'json' | 'jsonc' | 'json5';
|
|
3
|
+
type Extension = '.ts' | '.tsx' | '.js' | '.jsx' | '.cjs' | '.cjsx' | '.mjs' | '.mjsx' | '.json' | '.jsonc' | '.json5';
|
|
4
|
+
declare const getFormatFromExtension: (extension: Extension | (string & {})) => Format;
|
|
5
|
+
declare const getExtensionFromFormat: (format: Format | (string & {})) => Extension;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Extension, Format, getExtensionFromFormat, getFormatFromExtension };
|
|
8
|
+
//# sourceMappingURL=getFormatFromExtension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFormatFromExtension.d.ts","names":[],"sources":["../../../src/utils/getFormatFromExtension.ts"],"mappings":";KAAY,MAAA;AAAA,KACA,SAAA;AAAA,cAaC,sBAAA,GACX,SAAA,EAAW,SAAA,qBACV,MAAA;AAAA,cAsBU,sBAAA,GACX,MAAA,EAAQ,MAAA,qBACP,SAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Extension, Format, getExtensionFromFormat, getFormatFromExtension } from "./getFormatFromExtension.js";
|
|
2
2
|
import { autoDecorateContent } from "./autoDecorateContent.js";
|
|
3
3
|
import { buildComponentFilesList } from "./buildComponentFilesList.js";
|
|
4
4
|
import { JSONObject, JsonChunk, assembleJSON, chunkJSON, reconstructFromSingleChunk } from "./chunkJSON.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/writeConfiguration/index.ts"],"mappings":";;;cAmBa,6BAAA,GACX,aAAA,EAAe,cAAA,KACd,OAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/writeConfiguration/index.ts"],"mappings":";;;cAmBa,6BAAA,GACX,aAAA,EAAe,cAAA,KACd,OAAA;AAAA,cAiCU,kBAAA,GAA4B,aAAA,EAAe,cAAA,KAAc,OAAA"}
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region src/writeContentDeclaration/detectExportedComponentName.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Attempt to detect an exported React component name in the file text.
|
|
4
|
+
* Looks for patterns like:
|
|
5
|
+
* - export const MyComponent = ...
|
|
6
|
+
* - export function MyComponent(...)
|
|
7
|
+
* - export default function MyComponent(...)
|
|
8
|
+
*/
|
|
9
|
+
declare const detectExportedComponentName: (fileText: string) => string | null;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { detectExportedComponentName };
|
|
12
|
+
//# sourceMappingURL=detectExportedComponentName.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detectExportedComponentName.d.ts","names":[],"sources":["../../../src/writeContentDeclaration/detectExportedComponentName.ts"],"mappings":";;AAOA;;;;;;cAAa,2BAAA,GACX,QAAA"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region src/writeContentDeclaration/dictionaryStatus.d.ts
|
|
2
|
+
type DictionaryStatus = 'pending' | 'fetching' | 'up-to-date' | 'replaced' | 'updated' | 'fetched' | 'unknown' | 'error' | 'imported' | 'reimported in JSON' | 'new content file' | 'created';
|
|
3
|
+
//#endregion
|
|
4
|
+
export { DictionaryStatus };
|
|
5
|
+
//# sourceMappingURL=dictionaryStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dictionaryStatus.d.ts","names":[],"sources":["../../../src/writeContentDeclaration/dictionaryStatus.ts"],"mappings":";KAAY,gBAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { detectExportedComponentName } from "./detectExportedComponentName.js";
|
|
2
|
+
import { DictionaryStatus } from "./dictionaryStatus.js";
|
|
3
|
+
import { transformJSFile } from "./transformJSFile.js";
|
|
4
|
+
import { writeContentDeclaration } from "./writeContentDeclaration.js";
|
|
5
|
+
import { writeJSFile } from "./writeJSFile.js";
|
|
6
6
|
export { DictionaryStatus, detectExportedComponentName, transformJSFile, writeContentDeclaration, writeJSFile };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processContentDeclarationContent.d.ts","names":[],"sources":["../../../src/writeContentDeclaration/processContentDeclarationContent.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"processContentDeclarationContent.d.ts","names":[],"sources":["../../../src/writeContentDeclaration/processContentDeclarationContent.ts"],"mappings":";;;;;AAiIA;;;;;cAAa,gCAAA,GACX,UAAA,EAAY,UAAA,KAAU,OAAA"}
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
2
|
+
import { Locale } from "@intlayer/types/allLocales";
|
|
3
|
+
|
|
4
|
+
//#region src/writeContentDeclaration/transformJSFile.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Updates a JS/TS file seamlessly to map new localization keys, arrays, complex nodes and nested dictionaries gracefully using AST updates via Recast parser.
|
|
7
|
+
*/
|
|
8
|
+
declare const transformJSFile: (fileContent: string, dictionary: Dictionary, fallbackLocale?: Locale, noMetadata?: boolean) => Promise<string>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { transformJSFile };
|
|
11
|
+
//# sourceMappingURL=transformJSFile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformJSFile.d.ts","names":[],"sources":["../../../src/writeContentDeclaration/transformJSFile.ts"],"mappings":";;;;;;AA8lBA;cAAa,eAAA,GACX,WAAA,UACA,UAAA,EAAY,UAAA,EACZ,cAAA,GAAiB,MAAA,EACjB,UAAA,eACC,OAAA"}
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { DictionaryStatus } from "./dictionaryStatus.js";
|
|
2
|
+
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
|
+
import { Locale } from "@intlayer/types/allLocales";
|
|
5
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
6
|
+
|
|
7
|
+
//#region src/writeContentDeclaration/writeContentDeclaration.d.ts
|
|
8
|
+
type WriteContentDeclarationOptions = {
|
|
9
|
+
newDictionariesPath?: string;
|
|
10
|
+
localeList?: LocalesValues[];
|
|
11
|
+
fallbackLocale?: Locale;
|
|
12
|
+
};
|
|
13
|
+
declare const writeContentDeclaration: (dictionary: Dictionary, configuration: IntlayerConfig, options?: WriteContentDeclarationOptions) => Promise<{
|
|
14
|
+
status: DictionaryStatus;
|
|
15
|
+
path: string;
|
|
16
|
+
}>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { writeContentDeclaration };
|
|
19
|
+
//# sourceMappingURL=writeContentDeclaration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeContentDeclaration.d.ts","names":[],"sources":["../../../src/writeContentDeclaration/writeContentDeclaration.ts"],"mappings":";;;;;;;KAsHK,8BAAA;EACH,mBAAA;EACA,UAAA,GAAa,aAAA;EACb,cAAA,GAAiB,MAAA;AAAA;AAAA,cAON,uBAAA,GACX,UAAA,EAAY,UAAA,EACZ,aAAA,EAAe,cAAA,EACf,OAAA,GAAU,8BAAA,KACT,OAAA;EAAU,MAAA,EAAQ,gBAAA;EAAkB,IAAA;AAAA"}
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
+
|
|
4
|
+
//#region src/writeContentDeclaration/writeJSFile.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Updates a JavaScript/TypeScript file based on the provided JSON instructions.
|
|
7
|
+
* It targets a specific dictionary object within the file (identified by its 'key' property)
|
|
8
|
+
* and updates its 'content' entries. Currently, it focuses on modifying arguments
|
|
9
|
+
* of 't' (translation) function calls.
|
|
10
|
+
*/
|
|
11
|
+
declare const writeJSFile: (filePath: string, dictionary: Dictionary, configuration: IntlayerConfig, noMetadata?: boolean) => Promise<void>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { writeJSFile };
|
|
14
|
+
//# sourceMappingURL=writeJSFile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeJSFile.d.ts","names":[],"sources":["../../../src/writeContentDeclaration/writeJSFile.ts"],"mappings":";;;;;;AAqBA;;;;cAAa,WAAA,GACX,QAAA,UACA,UAAA,EAAY,UAAA,EACZ,aAAA,EAAe,cAAA,EACf,UAAA,eACC,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/chokidar",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Uses chokidar to scan and build Intlayer declaration files into dictionaries based on Intlayer configuration.",
|
|
6
6
|
"keywords": [
|
|
@@ -110,13 +110,13 @@
|
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
|
112
112
|
"@babel/parser": "7.29.0",
|
|
113
|
-
"@intlayer/api": "8.4.
|
|
114
|
-
"@intlayer/config": "8.4.
|
|
115
|
-
"@intlayer/core": "8.4.
|
|
116
|
-
"@intlayer/dictionaries-entry": "8.4.
|
|
117
|
-
"@intlayer/remote-dictionaries-entry": "8.4.
|
|
118
|
-
"@intlayer/types": "8.4.
|
|
119
|
-
"@intlayer/unmerged-dictionaries-entry": "8.4.
|
|
113
|
+
"@intlayer/api": "8.4.5",
|
|
114
|
+
"@intlayer/config": "8.4.5",
|
|
115
|
+
"@intlayer/core": "8.4.5",
|
|
116
|
+
"@intlayer/dictionaries-entry": "8.4.5",
|
|
117
|
+
"@intlayer/remote-dictionaries-entry": "8.4.5",
|
|
118
|
+
"@intlayer/types": "8.4.5",
|
|
119
|
+
"@intlayer/unmerged-dictionaries-entry": "8.4.5",
|
|
120
120
|
"chokidar": "3.6.0",
|
|
121
121
|
"defu": "6.1.4",
|
|
122
122
|
"fast-glob": "3.3.3",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
require(`./chunk-Bmb41Sf3.cjs`);let e=require(`node:path`),t=require(`node:fs`),n=require(`node:url`);const r=()=>{try{return(0,e.dirname)((0,n.fileURLToPath)(require(`url`).pathToFileURL(__filename).href))}catch{return typeof __dirname<`u`?__dirname:process.cwd()}},i=t=>{let n=t;for(let t=0;t<12;t++){if((0,e.basename)(n)===`dist`)return n;let t=(0,e.resolve)(n,`..`);if(t===n)break;n=t}return null},a=e=>{if(!e)return null;try{if(e.startsWith(`file://`))return(0,n.fileURLToPath)(e)}catch{}return e},o=()=>{let t=Error.prepareStackTrace;try{Error.prepareStackTrace=(e,t)=>t;let t=Error();Error.captureStackTrace(t,o);let n=t.stack||[],r=t=>t.includes(`${e.sep}_virtual${e.sep}`)||t.includes(`/_virtual/`);for(let t of n){let n=a(typeof t.getFileName==`function`?t.getFileName():null);if(n&&!(n.includes(`node:internal`)||n.includes(`${e.sep}internal${e.sep}modules${e.sep}`))&&!r(n))return(0,e.dirname)(n)}for(let t of n){let n=a(typeof t.getFileName==`function`?t.getFileName():null);if(n)return(0,e.dirname)(n)}}catch{}finally{Error.prepareStackTrace=t}return r()},s=(n,a=`utf8`)=>{let s=r(),c=i(s)??(0,e.resolve)(s,`..`,`..`,`dist`),l=(0,e.join)(c,`assets`),u=[],d=(0,e.relative)(c,o()).split(`\\`).join(`/`).replace(/^(?:dist\/)?(?:esm|cjs)\//,``).replace(/^_virtual\//,``);if(n.startsWith(`./`)||n.startsWith(`../`)){let r=(0,e.resolve)(l,d,n);if(u.push(r),(0,t.existsSync)(r))return(0,t.readFileSync)(r,a)}let f=(0,e.join)(l,n);if(u.push(f),(0,t.existsSync)(f))return(0,t.readFileSync)(f,a);if(d){let r=(0,e.join)(l,d,n);if(u.push(r),(0,t.existsSync)(r))return(0,t.readFileSync)(r,a)}let p=[`readAsset: file not found.`,`Searched:`,...u.map(e=>`- ${e}`)].join(`
|
|
2
|
-
`);throw Error(p)};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{basename as e,dirname as t,join as n,relative as r,resolve as i,sep as a}from"node:path";import{existsSync as o,readFileSync as s}from"node:fs";import{fileURLToPath as c}from"node:url";const l=()=>{try{return t(c(import.meta.url))}catch{return typeof __dirname<`u`?__dirname:process.cwd()}},u=t=>{let n=t;for(let t=0;t<12;t++){if(e(n)===`dist`)return n;let t=i(n,`..`);if(t===n)break;n=t}return null},d=e=>{if(!e)return null;try{if(e.startsWith(`file://`))return c(e)}catch{}return e},f=()=>{let e=Error.prepareStackTrace;try{Error.prepareStackTrace=(e,t)=>t;let e=Error();Error.captureStackTrace(e,f);let n=e.stack||[],r=e=>e.includes(`${a}_virtual${a}`)||e.includes(`/_virtual/`);for(let e of n){let n=d(typeof e.getFileName==`function`?e.getFileName():null);if(n&&!(n.includes(`node:internal`)||n.includes(`${a}internal${a}modules${a}`))&&!r(n))return t(n)}for(let e of n){let n=d(typeof e.getFileName==`function`?e.getFileName():null);if(n)return t(n)}}catch{}finally{Error.prepareStackTrace=e}return l()},p=(e,t=`utf8`)=>{let a=l(),c=u(a)??i(a,`..`,`..`,`dist`),d=n(c,`assets`),p=[],m=r(c,f()).split(`\\`).join(`/`).replace(/^(?:dist\/)?(?:esm|cjs)\//,``).replace(/^_virtual\//,``);if(e.startsWith(`./`)||e.startsWith(`../`)){let n=i(d,m,e);if(p.push(n),o(n))return s(n,t)}let h=n(d,e);if(p.push(h),o(h))return s(h,t);if(m){let r=n(d,m,e);if(p.push(r),o(r))return s(r,t)}let g=[`readAsset: file not found.`,`Searched:`,...p.map(e=>`- ${e}`)].join(`
|
|
2
|
-
`);throw Error(g)};export{p as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});export{e as t};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { t as UnmergedDictionaryOutput } from "./writeUnmergedDictionary-Cxx51isz.js";
|
|
2
|
-
import { t as MergedDictionaryOutput } from "./writeMergedDictionary-CMeghcRI.js";
|
|
3
|
-
import { n as LocalizedDictionaryOutput } from "./writeDynamicDictionary-BE0mF2zZ.js";
|
|
4
|
-
import { IntlayerConfig } from "@intlayer/types/config";
|
|
5
|
-
import { Dictionary } from "@intlayer/types/dictionary";
|
|
6
|
-
import { OUTPUT_FORMAT } from "@intlayer/config/defaultValues";
|
|
7
|
-
|
|
8
|
-
//#region src/buildIntlayerDictionary/buildIntlayerDictionary.d.ts
|
|
9
|
-
type BuildDictionariesOptions = Partial<{
|
|
10
|
-
formats: typeof OUTPUT_FORMAT;
|
|
11
|
-
importOtherDictionaries: boolean;
|
|
12
|
-
env: 'prod' | 'dev';
|
|
13
|
-
}>;
|
|
14
|
-
/**
|
|
15
|
-
* This function transpile the bundled code to to make dictionaries as JSON files
|
|
16
|
-
*/
|
|
17
|
-
declare const buildDictionary: (localDictionariesEntries: Dictionary[], configuration: IntlayerConfig, options?: BuildDictionariesOptions) => Promise<{
|
|
18
|
-
unmergedDictionaries: UnmergedDictionaryOutput;
|
|
19
|
-
mergedDictionaries: MergedDictionaryOutput;
|
|
20
|
-
dynamicDictionaries: LocalizedDictionaryOutput;
|
|
21
|
-
fetchDictionaries: LocalizedDictionaryOutput;
|
|
22
|
-
}>;
|
|
23
|
-
//#endregion
|
|
24
|
-
export { buildDictionary as n, BuildDictionariesOptions as t };
|
|
25
|
-
//# sourceMappingURL=buildIntlayerDictionary-C-LWgPIL.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buildIntlayerDictionary-C-LWgPIL.d.ts","names":[],"sources":["../../src/buildIntlayerDictionary/buildIntlayerDictionary.ts"],"mappings":";;;;;;;;KAYY,wBAAA,GAA2B,OAAA;EACrC,OAAA,SAAgB,aAAA;EAChB,uBAAA;EACA,GAAA;AAAA;;;;cAYW,eAAA,GACX,wBAAA,EAA0B,UAAA,IAC1B,aAAA,EAAe,cAAA,EACf,OAAA,GAAU,wBAAA,KAAwB,OAAA;wBAAA,wBAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as _intlayer_types_config0 from "@intlayer/types/config";
|
|
2
|
-
|
|
3
|
-
//#region src/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts
|
|
4
|
-
type CreateDictionaryEntryPointOptions = {
|
|
5
|
-
formats?: ('cjs' | 'esm')[];
|
|
6
|
-
excludeKeys?: string[];
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* This function generates a list of dictionaries in the main directory
|
|
10
|
-
*/
|
|
11
|
-
declare const createDictionaryEntryPoint: (configuration?: _intlayer_types_config0.IntlayerConfig, options?: CreateDictionaryEntryPointOptions) => Promise<void>;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { createDictionaryEntryPoint as n, CreateDictionaryEntryPointOptions as t };
|
|
14
|
-
//# sourceMappingURL=createDictionaryEntryPoint-Bc5lHSiY.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createDictionaryEntryPoint-Bc5lHSiY.d.ts","names":[],"sources":["../../src/createDictionaryEntryPoint/createDictionaryEntryPoint.ts"],"mappings":";;;KAqCY,iCAAA;EACV,OAAA;EACA,WAAA;AAAA;;;;cAMW,0BAAA,GACX,aAAA,GAkFD,uBAAA,CAlFC,cAAA,EACA,OAAA,GAAS,iCAAA,KAAsC,OAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
|
-
|
|
3
|
-
//#region src/createType/createModuleAugmentation.d.ts
|
|
4
|
-
declare const getTypeName: (key: string) => string;
|
|
5
|
-
/** Generate the index file merging all the types */
|
|
6
|
-
declare const createModuleAugmentation: (configuration: IntlayerConfig) => Promise<void>;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { getTypeName as n, createModuleAugmentation as t };
|
|
9
|
-
//# sourceMappingURL=createModuleAugmentation-D1eIVnjg.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createModuleAugmentation-D1eIVnjg.d.ts","names":[],"sources":["../../src/createType/createModuleAugmentation.ts"],"mappings":";;;cAUa,WAAA,GAAe,GAAA;;cA4Kf,wBAAA,GACX,aAAA,EAAe,cAAA,KAAc,OAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
|
-
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
-
|
|
4
|
-
//#region src/createType/createType.d.ts
|
|
5
|
-
declare const generateTypeScriptType: (dictionary: Dictionary) => string;
|
|
6
|
-
/**
|
|
7
|
-
* This function generates a TypeScript type definition from a JSON object
|
|
8
|
-
*/
|
|
9
|
-
declare const createTypes: (dictionaries: Dictionary[], configuration: IntlayerConfig) => Promise<string[]>;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { generateTypeScriptType as n, createTypes as t };
|
|
12
|
-
//# sourceMappingURL=createType--rDwdg2t.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createType--rDwdg2t.d.ts","names":[],"sources":["../../src/createType/createType.ts"],"mappings":";;;;cAMa,sBAAA,GAA0B,UAAA,EAAY,UAAA;;AAAnD;;cAQa,WAAA,GACX,YAAA,EAAc,UAAA,IACd,aAAA,EAAe,cAAA,KACd,OAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//#region src/writeContentDeclaration/detectExportedComponentName.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Attempt to detect an exported React component name in the file text.
|
|
4
|
-
* Looks for patterns like:
|
|
5
|
-
* - export const MyComponent = ...
|
|
6
|
-
* - export function MyComponent(...)
|
|
7
|
-
* - export default function MyComponent(...)
|
|
8
|
-
*/
|
|
9
|
-
declare const detectExportedComponentName: (fileText: string) => string | null;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { detectExportedComponentName as t };
|
|
12
|
-
//# sourceMappingURL=detectExportedComponentName-DVXsp_FG.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"detectExportedComponentName-DVXsp_FG.d.ts","names":[],"sources":["../../src/writeContentDeclaration/detectExportedComponentName.ts"],"mappings":";;AAOA;;;;;;cAAa,2BAAA,GACX,QAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
//#region src/writeContentDeclaration/dictionaryStatus.d.ts
|
|
2
|
-
type DictionaryStatus = 'pending' | 'fetching' | 'up-to-date' | 'replaced' | 'updated' | 'fetched' | 'unknown' | 'error' | 'imported' | 'reimported in JSON' | 'new content file' | 'created';
|
|
3
|
-
//#endregion
|
|
4
|
-
export { DictionaryStatus as t };
|
|
5
|
-
//# sourceMappingURL=dictionaryStatus-DPVO37qe.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dictionaryStatus-DPVO37qe.d.ts","names":[],"sources":["../../src/writeContentDeclaration/dictionaryStatus.ts"],"mappings":";KAAY,gBAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as _intlayer_types_config0 from "@intlayer/types/config";
|
|
2
|
-
|
|
3
|
-
//#region src/createDictionaryEntryPoint/generateDictionaryListContent.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* This function generates the content of the dictionary list file
|
|
6
|
-
*/
|
|
7
|
-
declare const generateDictionaryListContent: (dictionaries: string[], functionName: string, importType: "json" | "javascript", format?: "cjs" | "esm", configuration?: _intlayer_types_config0.IntlayerConfig) => string;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { generateDictionaryListContent as t };
|
|
10
|
-
//# sourceMappingURL=generateDictionaryListContent-DAtHG6SR.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generateDictionaryListContent-DAtHG6SR.d.ts","names":[],"sources":["../../src/createDictionaryEntryPoint/generateDictionaryListContent.ts"],"mappings":";;;;;;cAQa,6BAAA,GACX,YAAA,YACA,YAAA,UACA,UAAA,yBACA,MAAA,kBACA,aAAA,GA2CD,uBAAA,CA3CC,cAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
|
-
|
|
3
|
-
//#region src/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* This function generates a list of dictionaries in the main directory
|
|
6
|
-
*/
|
|
7
|
-
declare const getBuiltDictionariesPath: (configuration: IntlayerConfig, excludeKeys?: string[]) => Promise<string[]>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { getBuiltDictionariesPath as t };
|
|
10
|
-
//# sourceMappingURL=getBuiltDictionariesPath-C4it65a1.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getBuiltDictionariesPath-C4it65a1.d.ts","names":[],"sources":["../../src/createDictionaryEntryPoint/getBuiltDictionariesPath.ts"],"mappings":";;;;;AASA;cAAa,wBAAA,GACX,aAAA,EAAe,cAAA,EACf,WAAA,gBAA0B,OAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
|
-
|
|
3
|
-
//#region src/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* This function generates a list of dictionaries in the main directory
|
|
6
|
-
*/
|
|
7
|
-
declare const getBuiltDynamicDictionariesPath: (configuration: IntlayerConfig, format?: "cjs" | "esm", excludeKeys?: string[]) => Promise<string[]>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { getBuiltDynamicDictionariesPath as t };
|
|
10
|
-
//# sourceMappingURL=getBuiltDynamicDictionariesPath-Cj9EWnjT.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getBuiltDynamicDictionariesPath-Cj9EWnjT.d.ts","names":[],"sources":["../../src/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.ts"],"mappings":";;;;;AASA;cAAa,+BAAA,GACX,aAAA,EAAe,cAAA,EACf,MAAA,kBACA,WAAA,gBAA0B,OAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
|
-
|
|
3
|
-
//#region src/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* This function generates a list of dictionaries in the main directory
|
|
6
|
-
*/
|
|
7
|
-
declare const getBuiltFetchDictionariesPath: (configuration: IntlayerConfig, format?: "cjs" | "esm", excludeKeys?: string[]) => Promise<string[]>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { getBuiltFetchDictionariesPath as t };
|
|
10
|
-
//# sourceMappingURL=getBuiltFetchDictionariesPath-1JleRhT3.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getBuiltFetchDictionariesPath-1JleRhT3.d.ts","names":[],"sources":["../../src/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.ts"],"mappings":";;;;;AASA;cAAa,6BAAA,GACX,aAAA,EAAe,cAAA,EACf,MAAA,kBACA,WAAA,gBAA0B,OAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
|
-
|
|
3
|
-
//#region src/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* This function generates a list of dictionaries in the main directory
|
|
6
|
-
*/
|
|
7
|
-
declare const getBuiltRemoteDictionariesPath: (configuration: IntlayerConfig, excludeKeys?: string[]) => Promise<string[]>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { getBuiltRemoteDictionariesPath as t };
|
|
10
|
-
//# sourceMappingURL=getBuiltRemoteDictionariesPath-DHOmqNCr.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getBuiltRemoteDictionariesPath-DHOmqNCr.d.ts","names":[],"sources":["../../src/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.ts"],"mappings":";;;;;AASA;cAAa,8BAAA,GACX,aAAA,EAAe,cAAA,EACf,WAAA,gBAA0B,OAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
|
-
|
|
3
|
-
//#region src/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* This function generates a list of dictionaries in the main directory
|
|
6
|
-
*/
|
|
7
|
-
declare const getBuiltUnmergedDictionariesPath: (configuration: IntlayerConfig, excludeKeys?: string[]) => Promise<string[]>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { getBuiltUnmergedDictionariesPath as t };
|
|
10
|
-
//# sourceMappingURL=getBuiltUnmergedDictionariesPath-GUmmLxTB.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getBuiltUnmergedDictionariesPath-GUmmLxTB.d.ts","names":[],"sources":["../../src/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.ts"],"mappings":";;;;;AASA;cAAa,gCAAA,GACX,aAAA,EAAe,cAAA,EACf,WAAA,gBAA0B,OAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { n as Format } from "./getFormatFromExtension-SdXYWfPx.js";
|
|
2
|
-
|
|
3
|
-
//#region src/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts
|
|
4
|
-
declare const getContentDeclarationFileTemplate: (key: string, format: Format, fileParams?: Record<string, any>, noMetadata?: boolean) => Promise<string>;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { getContentDeclarationFileTemplate as t };
|
|
7
|
-
//# sourceMappingURL=getContentDeclarationFileTemplate-Dz3rnFy9.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getContentDeclarationFileTemplate-Dz3rnFy9.d.ts","names":[],"sources":["../../src/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.ts"],"mappings":";;;cAGa,iCAAA,GACX,GAAA,UACA,MAAA,EAAQ,MAAA,EACR,UAAA,GAAY,MAAA,eACZ,UAAA,eAAoB,OAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
//#region src/utils/getFormatFromExtension.d.ts
|
|
2
|
-
type Format = 'ts' | 'cjs' | 'esm' | 'json' | 'jsonc' | 'json5';
|
|
3
|
-
type Extension = '.ts' | '.tsx' | '.js' | '.jsx' | '.cjs' | '.cjsx' | '.mjs' | '.mjsx' | '.json' | '.jsonc' | '.json5';
|
|
4
|
-
declare const getFormatFromExtension: (extension: Extension | (string & {})) => Format;
|
|
5
|
-
declare const getExtensionFromFormat: (format: Format | (string & {})) => Extension;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { getFormatFromExtension as i, Format as n, getExtensionFromFormat as r, Extension as t };
|
|
8
|
-
//# sourceMappingURL=getFormatFromExtension-SdXYWfPx.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getFormatFromExtension-SdXYWfPx.d.ts","names":[],"sources":["../../src/utils/getFormatFromExtension.ts"],"mappings":";KAAY,MAAA;AAAA,KACA,SAAA;AAAA,cAaC,sBAAA,GACX,SAAA,EAAW,SAAA,qBACV,MAAA;AAAA,cAsBU,sBAAA,GACX,MAAA,EAAQ,MAAA,qBACP,SAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { t as DictionariesStatus } from "./loadDictionaries-BIqHwtYE.js";
|
|
2
|
-
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
|
-
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
|
-
|
|
5
|
-
//#region src/loadDictionaries/loadContentDeclaration.d.ts
|
|
6
|
-
declare const formatLocalDictionaries: (dictionariesRecord: Record<string, Dictionary>, configuration: IntlayerConfig) => Dictionary[];
|
|
7
|
-
declare const ensureIntlayerBundle: (configuration: IntlayerConfig) => Promise<string>;
|
|
8
|
-
declare const loadContentDeclaration: (path: string, configuration: IntlayerConfig, bundleFilePath?: string) => Promise<Dictionary | undefined>;
|
|
9
|
-
declare const loadContentDeclarations: (contentDeclarationFilePath: string[], configuration: IntlayerConfig, onStatusUpdate?: (status: DictionariesStatus[]) => void) => Promise<Dictionary[]>;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { loadContentDeclarations as i, formatLocalDictionaries as n, loadContentDeclaration as r, ensureIntlayerBundle as t };
|
|
12
|
-
//# sourceMappingURL=loadContentDeclaration-CBMS4vkA.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loadContentDeclaration-CBMS4vkA.d.ts","names":[],"sources":["../../src/loadDictionaries/loadContentDeclaration.ts"],"mappings":";;;;;cAaa,uBAAA,GACX,kBAAA,EAAoB,MAAA,SAAe,UAAA,GACnC,aAAA,EAAe,cAAA,KACd,UAAA;AAAA,cAQU,oBAAA,GACX,aAAA,EAAe,cAAA,KACd,OAAA;AAAA,cAmBU,sBAAA,GACX,IAAA,UACA,aAAA,EAAe,cAAA,EACf,cAAA,cACC,OAAA,CAAQ,UAAA;AAAA,cA6BE,uBAAA,GACX,0BAAA,YACA,aAAA,EAAe,cAAA,EACf,cAAA,IAAkB,MAAA,EAAQ,kBAAA,gBACzB,OAAA,CAAQ,UAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
|
-
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
-
|
|
4
|
-
//#region src/loadDictionaries/loadDictionaries.d.ts
|
|
5
|
-
type DictionariesStatus = {
|
|
6
|
-
dictionaryKey: string;
|
|
7
|
-
type: 'local' | 'remote';
|
|
8
|
-
status: 'pending' | 'fetching' | 'fetched' | 'error' | 'imported' | 'found' | 'building' | 'built';
|
|
9
|
-
error?: string;
|
|
10
|
-
};
|
|
11
|
-
declare const loadDictionaries: (contentDeclarationsPaths: string[] | string, configuration: IntlayerConfig) => Promise<{
|
|
12
|
-
localDictionaries: Dictionary[];
|
|
13
|
-
remoteDictionaries: Dictionary[];
|
|
14
|
-
pluginDictionaries: Dictionary[];
|
|
15
|
-
time: {
|
|
16
|
-
localDictionaries: number;
|
|
17
|
-
remoteDictionaries: number;
|
|
18
|
-
pluginDictionaries: number;
|
|
19
|
-
};
|
|
20
|
-
}>;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { loadDictionaries as n, DictionariesStatus as t };
|
|
23
|
-
//# sourceMappingURL=loadDictionaries-BIqHwtYE.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loadDictionaries-BIqHwtYE.d.ts","names":[],"sources":["../../src/loadDictionaries/loadDictionaries.ts"],"mappings":";;;;KAeY,kBAAA;EACV,aAAA;EACA,IAAA;EACA,MAAA;EASA,KAAA;AAAA;AAAA,cAiIW,gBAAA,GACX,wBAAA,qBACA,aAAA,EAAe,cAAA,KACd,OAAA;EACD,iBAAA,EAAmB,UAAA;EACnB,kBAAA,EAAoB,UAAA;EACpB,kBAAA,EAAoB,UAAA;EACpB,IAAA;IACE,iBAAA;IACA,kBAAA;IACA,kBAAA;EAAA;AAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
|
-
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
-
|
|
4
|
-
//#region src/loadDictionaries/loadLocalDictionaries.d.ts
|
|
5
|
-
declare const loadLocalDictionaries: (contentDeclarationsPaths: string[] | string, configuration: IntlayerConfig) => Promise<Dictionary[]>;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { loadLocalDictionaries as t };
|
|
8
|
-
//# sourceMappingURL=loadLocalDictionaries-CNmVaw0c.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loadLocalDictionaries-CNmVaw0c.d.ts","names":[],"sources":["../../src/loadDictionaries/loadLocalDictionaries.ts"],"mappings":";;;;cAMa,qBAAA,GACX,wBAAA,qBACA,aAAA,EAAe,cAAA,KACd,OAAA,CAAQ,UAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { t as DictionariesStatus } from "./loadDictionaries-BIqHwtYE.js";
|
|
2
|
-
import * as _intlayer_types_config0 from "@intlayer/types/config";
|
|
3
|
-
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
|
-
import { DictionaryAPI } from "@intlayer/backend";
|
|
5
|
-
|
|
6
|
-
//#region src/loadDictionaries/loadRemoteDictionaries.d.ts
|
|
7
|
-
declare const formatDistantDictionaries: (dictionaries: (DictionaryAPI | Dictionary)[]) => Dictionary[];
|
|
8
|
-
declare const loadRemoteDictionaries: (configuration?: _intlayer_types_config0.IntlayerConfig, onStatusUpdate?: (status: DictionariesStatus[]) => void, options?: {
|
|
9
|
-
onStartRemoteCheck?: () => void;
|
|
10
|
-
onStopRemoteCheck?: () => void;
|
|
11
|
-
onError?: (error: Error) => void;
|
|
12
|
-
}) => Promise<Dictionary[]>;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { loadRemoteDictionaries as n, formatDistantDictionaries as t };
|
|
15
|
-
//# sourceMappingURL=loadRemoteDictionaries-MoITTb7W.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loadRemoteDictionaries-MoITTb7W.d.ts","names":[],"sources":["../../src/loadDictionaries/loadRemoteDictionaries.ts"],"mappings":";;;;;;cAUa,yBAAA,GACX,YAAA,GAAe,aAAA,GAAgB,UAAA,QAC9B,UAAA;AAAA,cAOU,sBAAA,GACX,aAAA,GAqID,uBAAA,CArIC,cAAA,EACA,cAAA,IAAkB,MAAA,EAAQ,kBAAA,aAC1B,OAAA;EACE,kBAAA;EACA,iBAAA;EACA,OAAA,IAAW,KAAA,EAAO,KAAA;AAAA,MAEnB,OAAA,CAAQ,UAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
|
-
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
-
|
|
4
|
-
//#region src/buildIntlayerDictionary/processContentDeclaration.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Function to load, process the module and return the Intlayer Dictionary from the module file
|
|
7
|
-
*/
|
|
8
|
-
declare const processContentDeclaration: (contentDeclaration: Dictionary, configuration: IntlayerConfig) => Promise<Dictionary | undefined>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { processContentDeclaration as t };
|
|
11
|
-
//# sourceMappingURL=processContentDeclaration-CAvrHaIT.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"processContentDeclaration-CAvrHaIT.d.ts","names":[],"sources":["../../src/buildIntlayerDictionary/processContentDeclaration.ts"],"mappings":";;;;;;AASA;cAAa,yBAAA,GACX,kBAAA,EAAoB,UAAA,EACpB,aAAA,EAAe,cAAA,KACd,OAAA,CAAQ,UAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Dictionary } from "@intlayer/types/dictionary";
|
|
2
|
-
import { Locale } from "@intlayer/types/allLocales";
|
|
3
|
-
|
|
4
|
-
//#region src/writeContentDeclaration/transformJSFile.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Updates a JS/TS file seamlessly to map new localization keys, arrays, complex nodes and nested dictionaries gracefully using AST updates via Recast parser.
|
|
7
|
-
*/
|
|
8
|
-
declare const transformJSFile: (fileContent: string, dictionary: Dictionary, fallbackLocale?: Locale, noMetadata?: boolean) => Promise<string>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { transformJSFile as t };
|
|
11
|
-
//# sourceMappingURL=transformJSFile-Cg0LkeLb.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transformJSFile-Cg0LkeLb.d.ts","names":[],"sources":["../../src/writeContentDeclaration/transformJSFile.ts"],"mappings":";;;;;;AA6kBA;cAAa,eAAA,GACX,WAAA,UACA,UAAA,EAAY,UAAA,EACZ,cAAA,GAAiB,MAAA,EACjB,UAAA,eACC,OAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { t as DictionaryStatus } from "./dictionaryStatus-DPVO37qe.js";
|
|
2
|
-
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
|
-
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
|
-
import { Locale } from "@intlayer/types/allLocales";
|
|
5
|
-
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
6
|
-
|
|
7
|
-
//#region src/writeContentDeclaration/writeContentDeclaration.d.ts
|
|
8
|
-
type WriteContentDeclarationOptions = {
|
|
9
|
-
newDictionariesPath?: string;
|
|
10
|
-
localeList?: LocalesValues[];
|
|
11
|
-
fallbackLocale?: Locale;
|
|
12
|
-
};
|
|
13
|
-
declare const writeContentDeclaration: (dictionary: Dictionary, configuration: IntlayerConfig, options?: WriteContentDeclarationOptions) => Promise<{
|
|
14
|
-
status: DictionaryStatus;
|
|
15
|
-
path: string;
|
|
16
|
-
}>;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { writeContentDeclaration as t };
|
|
19
|
-
//# sourceMappingURL=writeContentDeclaration-XdGxj0KP.d.ts.map
|