@intlayer/chokidar 6.1.6 → 7.0.0-canary.1
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 → assets}/getContentDeclarationFileTemplate/cjsTemplate.txt +3 -2
- package/dist/{cjs → assets}/getContentDeclarationFileTemplate/esmTemplate.txt +2 -1
- package/dist/{cjs → assets}/getContentDeclarationFileTemplate/jsonTemplate.txt +2 -1
- package/dist/{cjs → assets}/getContentDeclarationFileTemplate/tsTemplate.txt +2 -1
- package/dist/cjs/_virtual/_utils_asset.cjs +104 -0
- package/dist/cjs/_virtual/rolldown_runtime.cjs +25 -0
- package/dist/cjs/buildIntlayerDictionary/buildIntlayerDictionary.cjs +42 -80
- package/dist/cjs/buildIntlayerDictionary/buildIntlayerDictionary.cjs.map +1 -1
- package/dist/cjs/buildIntlayerDictionary/index.cjs +5 -25
- package/dist/cjs/buildIntlayerDictionary/processContentDeclaration.cjs +21 -42
- package/dist/cjs/buildIntlayerDictionary/processContentDeclaration.cjs.map +1 -1
- package/dist/cjs/buildIntlayerDictionary/writeDynamicDictionary.cjs +79 -116
- package/dist/cjs/buildIntlayerDictionary/writeDynamicDictionary.cjs.map +1 -1
- package/dist/cjs/buildIntlayerDictionary/writeFetchDictionary.cjs +62 -86
- package/dist/cjs/buildIntlayerDictionary/writeFetchDictionary.cjs.map +1 -1
- package/dist/cjs/buildIntlayerDictionary/writeMergedDictionary.cjs +48 -69
- package/dist/cjs/buildIntlayerDictionary/writeMergedDictionary.cjs.map +1 -1
- package/dist/cjs/buildIntlayerDictionary/writeRemoteDictionary.cjs +42 -52
- package/dist/cjs/buildIntlayerDictionary/writeRemoteDictionary.cjs.map +1 -1
- package/dist/cjs/buildIntlayerDictionary/writeUnmergedDictionary.cjs +60 -82
- package/dist/cjs/buildIntlayerDictionary/writeUnmergedDictionary.cjs.map +1 -1
- package/dist/cjs/cleanOutputDir.cjs +20 -60
- package/dist/cjs/cleanOutputDir.cjs.map +1 -1
- package/dist/cjs/createDictionaryEntryPoint/createDictionaryEntryPoint.cjs +64 -103
- package/dist/cjs/createDictionaryEntryPoint/createDictionaryEntryPoint.cjs.map +1 -1
- package/dist/cjs/createDictionaryEntryPoint/generateDictionaryListContent.cjs +41 -73
- package/dist/cjs/createDictionaryEntryPoint/generateDictionaryListContent.cjs.map +1 -1
- package/dist/cjs/createDictionaryEntryPoint/getBuiltDictionariesPath.cjs +19 -49
- package/dist/cjs/createDictionaryEntryPoint/getBuiltDictionariesPath.cjs.map +1 -1
- package/dist/cjs/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.cjs +20 -50
- package/dist/cjs/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.cjs.map +1 -1
- package/dist/cjs/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.cjs +20 -50
- package/dist/cjs/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.cjs.map +1 -1
- package/dist/cjs/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.cjs +19 -49
- package/dist/cjs/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.cjs.map +1 -1
- package/dist/cjs/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.cjs +19 -49
- package/dist/cjs/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.cjs.map +1 -1
- package/dist/cjs/createDictionaryEntryPoint/index.cjs +15 -35
- package/dist/cjs/createType/createModuleAugmentation.cjs +56 -108
- package/dist/cjs/createType/createModuleAugmentation.cjs.map +1 -1
- package/dist/cjs/createType/createType.cjs +29 -58
- package/dist/cjs/createType/createType.cjs.map +1 -1
- package/dist/cjs/createType/index.cjs +7 -25
- package/dist/cjs/fetchDistantDictionaries.cjs +49 -77
- package/dist/cjs/fetchDistantDictionaries.cjs.map +1 -1
- package/dist/cjs/filterInvalidDictionaries.cjs +26 -59
- package/dist/cjs/filterInvalidDictionaries.cjs.map +1 -1
- package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs +32 -68
- package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs.map +1 -1
- package/dist/cjs/handleAdditionalContentDeclarationFile.cjs +32 -51
- package/dist/cjs/handleAdditionalContentDeclarationFile.cjs.map +1 -1
- package/dist/cjs/handleContentDeclarationFileChange.cjs +35 -56
- package/dist/cjs/handleContentDeclarationFileChange.cjs.map +1 -1
- package/dist/cjs/handleUnlinkedContentDeclarationFile.cjs +36 -0
- package/dist/cjs/handleUnlinkedContentDeclarationFile.cjs.map +1 -0
- package/dist/cjs/index.cjs +103 -156
- package/dist/cjs/listDictionariesPath.cjs +27 -59
- package/dist/cjs/listDictionariesPath.cjs.map +1 -1
- package/dist/cjs/listGitFiles.cjs +93 -162
- package/dist/cjs/listGitFiles.cjs.map +1 -1
- package/dist/cjs/loadDictionaries/getIntlayerBundle.cjs +70 -0
- package/dist/cjs/loadDictionaries/getIntlayerBundle.cjs.map +1 -0
- package/dist/cjs/loadDictionaries/index.cjs +11 -29
- package/dist/cjs/loadDictionaries/loadContentDeclaration.cjs +68 -90
- package/dist/cjs/loadDictionaries/loadContentDeclaration.cjs.map +1 -1
- package/dist/cjs/loadDictionaries/loadDictionaries.cjs +111 -166
- package/dist/cjs/loadDictionaries/loadDictionaries.cjs.map +1 -1
- package/dist/cjs/loadDictionaries/loadLocalDictionaries.cjs +27 -53
- package/dist/cjs/loadDictionaries/loadLocalDictionaries.cjs.map +1 -1
- package/dist/cjs/loadDictionaries/loadRemoteDictionaries.cjs +60 -102
- package/dist/cjs/loadDictionaries/loadRemoteDictionaries.cjs.map +1 -1
- package/dist/cjs/loadDictionaries/log.cjs +107 -182
- package/dist/cjs/loadDictionaries/log.cjs.map +1 -1
- package/dist/cjs/prepareIntlayer.cjs +73 -130
- package/dist/cjs/prepareIntlayer.cjs.map +1 -1
- package/dist/cjs/reduceDictionaryContent/applyMask.cjs +27 -61
- package/dist/cjs/reduceDictionaryContent/applyMask.cjs.map +1 -1
- package/dist/cjs/reduceDictionaryContent/reduceDictionaryContent.cjs +10 -32
- package/dist/cjs/reduceDictionaryContent/reduceDictionaryContent.cjs.map +1 -1
- package/dist/cjs/utils/chunkJSON.cjs +329 -0
- package/dist/cjs/utils/chunkJSON.cjs.map +1 -0
- package/dist/cjs/utils/extractErrorMessage.cjs +92 -135
- package/dist/cjs/utils/extractErrorMessage.cjs.map +1 -1
- package/dist/cjs/utils/formatter.cjs +19 -49
- package/dist/cjs/utils/formatter.cjs.map +1 -1
- package/dist/cjs/utils/getChunk.cjs +34 -0
- package/dist/cjs/utils/getChunk.cjs.map +1 -0
- package/dist/cjs/utils/getFileHash.cjs +9 -40
- package/dist/cjs/utils/getFileHash.cjs.map +1 -1
- package/dist/cjs/utils/getFormatFromExtension.cjs +23 -54
- package/dist/cjs/utils/getFormatFromExtension.cjs.map +1 -1
- package/dist/cjs/utils/kebabCaseToCamelCase.cjs +11 -36
- package/dist/cjs/utils/kebabCaseToCamelCase.cjs.map +1 -1
- package/dist/cjs/utils/pLimit.cjs +128 -0
- package/dist/cjs/utils/pLimit.cjs.map +1 -0
- package/dist/cjs/utils/parallelize.cjs +10 -169
- package/dist/cjs/utils/parallelize.cjs.map +1 -1
- package/dist/cjs/utils/parallelizeGlobal.cjs +29 -0
- package/dist/cjs/utils/parallelizeGlobal.cjs.map +1 -0
- package/dist/cjs/utils/reduceObjectFormat.cjs +31 -0
- package/dist/cjs/utils/reduceObjectFormat.cjs.map +1 -0
- package/dist/cjs/utils/resolveObjectPromises.cjs +18 -48
- package/dist/cjs/utils/resolveObjectPromises.cjs.map +1 -1
- package/dist/cjs/utils/runOnce.cjs +80 -57
- package/dist/cjs/utils/runOnce.cjs.map +1 -1
- package/dist/cjs/utils/runParallel.cjs +163 -74
- package/dist/cjs/utils/runParallel.cjs.map +1 -1
- package/dist/cjs/utils/sortAlphabetically.cjs +5 -27
- package/dist/cjs/utils/sortAlphabetically.cjs.map +1 -1
- package/dist/cjs/utils/splitTextByLine.cjs +11 -0
- package/dist/cjs/utils/splitTextByLine.cjs.map +1 -0
- package/dist/cjs/utils/verifyIdenticObjectFormat copy.cjs +54 -0
- package/dist/cjs/utils/verifyIdenticObjectFormat copy.cjs.map +1 -0
- package/dist/cjs/utils/verifyIdenticObjectFormat.cjs +60 -0
- package/dist/cjs/utils/verifyIdenticObjectFormat.cjs.map +1 -0
- package/dist/cjs/watcher.cjs +61 -83
- package/dist/cjs/watcher.cjs.map +1 -1
- package/dist/cjs/writeConfiguration/index.cjs +15 -35
- package/dist/cjs/writeConfiguration/index.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/detectExportedComponentName.cjs +25 -51
- package/dist/cjs/writeContentDeclaration/detectExportedComponentName.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/dictionaryStatus.cjs +0 -17
- package/dist/cjs/writeContentDeclaration/index.cjs +9 -33
- package/dist/cjs/writeContentDeclaration/processContentDeclarationContent.cjs +77 -0
- package/dist/cjs/writeContentDeclaration/processContentDeclarationContent.cjs.map +1 -0
- package/dist/cjs/writeContentDeclaration/transformJSFile.cjs +1731 -755
- package/dist/cjs/writeContentDeclaration/transformJSFile.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/writeContentDeclaration.cjs +113 -112
- package/dist/cjs/writeContentDeclaration/writeContentDeclaration.cjs.map +1 -1
- package/dist/cjs/writeContentDeclaration/writeJSFile.cjs +56 -66
- package/dist/cjs/writeContentDeclaration/writeJSFile.cjs.map +1 -1
- package/dist/cjs/writeFileIfChanged.cjs +10 -43
- package/dist/cjs/writeFileIfChanged.cjs.map +1 -1
- package/dist/cjs/writeJsonIfChanged.cjs +14 -31
- package/dist/cjs/writeJsonIfChanged.cjs.map +1 -1
- package/dist/esm/_virtual/_utils_asset.mjs +100 -0
- package/dist/esm/_virtual/rolldown_runtime.mjs +8 -0
- package/dist/esm/buildIntlayerDictionary/buildIntlayerDictionary.mjs +35 -54
- package/dist/esm/buildIntlayerDictionary/buildIntlayerDictionary.mjs.map +1 -1
- package/dist/esm/buildIntlayerDictionary/index.mjs +4 -3
- package/dist/esm/buildIntlayerDictionary/processContentDeclaration.mjs +18 -17
- package/dist/esm/buildIntlayerDictionary/processContentDeclaration.mjs.map +1 -1
- package/dist/esm/buildIntlayerDictionary/writeDynamicDictionary.mjs +69 -91
- package/dist/esm/buildIntlayerDictionary/writeDynamicDictionary.mjs.map +1 -1
- package/dist/esm/buildIntlayerDictionary/writeFetchDictionary.mjs +53 -61
- package/dist/esm/buildIntlayerDictionary/writeFetchDictionary.mjs.map +1 -1
- package/dist/esm/buildIntlayerDictionary/writeMergedDictionary.mjs +40 -42
- package/dist/esm/buildIntlayerDictionary/writeMergedDictionary.mjs.map +1 -1
- package/dist/esm/buildIntlayerDictionary/writeRemoteDictionary.mjs +35 -25
- package/dist/esm/buildIntlayerDictionary/writeRemoteDictionary.mjs.map +1 -1
- package/dist/esm/buildIntlayerDictionary/writeUnmergedDictionary.mjs +53 -56
- package/dist/esm/buildIntlayerDictionary/writeUnmergedDictionary.mjs.map +1 -1
- package/dist/esm/cleanOutputDir.mjs +17 -36
- package/dist/esm/cleanOutputDir.mjs.map +1 -1
- package/dist/esm/createDictionaryEntryPoint/createDictionaryEntryPoint.mjs +51 -70
- package/dist/esm/createDictionaryEntryPoint/createDictionaryEntryPoint.mjs.map +1 -1
- package/dist/esm/createDictionaryEntryPoint/generateDictionaryListContent.mjs +36 -47
- package/dist/esm/createDictionaryEntryPoint/generateDictionaryListContent.mjs.map +1 -1
- package/dist/esm/createDictionaryEntryPoint/getBuiltDictionariesPath.mjs +14 -14
- package/dist/esm/createDictionaryEntryPoint/getBuiltDictionariesPath.mjs.map +1 -1
- package/dist/esm/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.mjs +15 -15
- package/dist/esm/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.mjs.map +1 -1
- package/dist/esm/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.mjs +15 -15
- package/dist/esm/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.mjs.map +1 -1
- package/dist/esm/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.mjs +14 -14
- package/dist/esm/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.mjs.map +1 -1
- package/dist/esm/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.mjs +14 -14
- package/dist/esm/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.mjs.map +1 -1
- package/dist/esm/createDictionaryEntryPoint/index.mjs +9 -8
- package/dist/esm/createType/createModuleAugmentation.mjs +48 -71
- package/dist/esm/createType/createModuleAugmentation.mjs.map +1 -1
- package/dist/esm/createType/createType.mjs +24 -35
- package/dist/esm/createType/createType.mjs.map +1 -1
- package/dist/esm/createType/index.mjs +4 -3
- package/dist/esm/fetchDistantDictionaries.mjs +45 -52
- package/dist/esm/fetchDistantDictionaries.mjs.map +1 -1
- package/dist/esm/filterInvalidDictionaries.mjs +22 -37
- package/dist/esm/filterInvalidDictionaries.mjs.map +1 -1
- package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs +31 -42
- package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs.map +1 -1
- package/dist/esm/handleAdditionalContentDeclarationFile.mjs +27 -24
- package/dist/esm/handleAdditionalContentDeclarationFile.mjs.map +1 -1
- package/dist/esm/handleContentDeclarationFileChange.mjs +30 -29
- package/dist/esm/handleContentDeclarationFileChange.mjs.map +1 -1
- package/dist/esm/handleUnlinkedContentDeclarationFile.mjs +34 -0
- package/dist/esm/handleUnlinkedContentDeclarationFile.mjs.map +1 -0
- package/dist/esm/index.mjs +39 -99
- package/dist/esm/listDictionariesPath.mjs +24 -24
- package/dist/esm/listDictionariesPath.mjs.map +1 -1
- package/dist/esm/listGitFiles.mjs +83 -124
- package/dist/esm/listGitFiles.mjs.map +1 -1
- package/dist/esm/loadDictionaries/getIntlayerBundle.mjs +66 -0
- package/dist/esm/loadDictionaries/getIntlayerBundle.mjs.map +1 -0
- package/dist/esm/loadDictionaries/index.mjs +6 -5
- package/dist/esm/loadDictionaries/loadContentDeclaration.mjs +61 -70
- package/dist/esm/loadDictionaries/loadContentDeclaration.mjs.map +1 -1
- package/dist/esm/loadDictionaries/loadDictionaries.mjs +105 -146
- package/dist/esm/loadDictionaries/loadDictionaries.mjs.map +1 -1
- package/dist/esm/loadDictionaries/loadLocalDictionaries.mjs +23 -31
- package/dist/esm/loadDictionaries/loadLocalDictionaries.mjs.map +1 -1
- package/dist/esm/loadDictionaries/loadRemoteDictionaries.mjs +52 -74
- package/dist/esm/loadDictionaries/loadRemoteDictionaries.mjs.map +1 -1
- package/dist/esm/loadDictionaries/log.mjs +105 -165
- package/dist/esm/loadDictionaries/log.mjs.map +1 -1
- package/dist/esm/prepareIntlayer.mjs +64 -97
- package/dist/esm/prepareIntlayer.mjs.map +1 -1
- package/dist/esm/reduceDictionaryContent/applyMask.mjs +26 -37
- package/dist/esm/reduceDictionaryContent/applyMask.mjs.map +1 -1
- package/dist/esm/reduceDictionaryContent/reduceDictionaryContent.mjs +7 -7
- package/dist/esm/reduceDictionaryContent/reduceDictionaryContent.mjs.map +1 -1
- package/dist/esm/utils/chunkJSON.mjs +327 -0
- package/dist/esm/utils/chunkJSON.mjs.map +1 -0
- package/dist/esm/utils/extractErrorMessage.mjs +91 -111
- package/dist/esm/utils/extractErrorMessage.mjs.map +1 -1
- package/dist/esm/utils/formatter.mjs +10 -12
- package/dist/esm/utils/formatter.mjs.map +1 -1
- package/dist/esm/utils/getChunk.mjs +34 -0
- package/dist/esm/utils/getChunk.mjs.map +1 -0
- package/dist/esm/utils/getFileHash.mjs +6 -5
- package/dist/esm/utils/getFileHash.mjs.map +1 -1
- package/dist/esm/utils/getFormatFromExtension.mjs +21 -29
- package/dist/esm/utils/getFormatFromExtension.mjs.map +1 -1
- package/dist/esm/utils/kebabCaseToCamelCase.mjs +10 -12
- package/dist/esm/utils/kebabCaseToCamelCase.mjs.map +1 -1
- package/dist/esm/utils/pLimit.mjs +126 -0
- package/dist/esm/utils/pLimit.mjs.map +1 -0
- package/dist/esm/utils/parallelize.mjs +10 -144
- package/dist/esm/utils/parallelize.mjs.map +1 -1
- package/dist/esm/utils/parallelizeGlobal.mjs +27 -0
- package/dist/esm/utils/parallelizeGlobal.mjs.map +1 -0
- package/dist/esm/utils/reduceObjectFormat.mjs +30 -0
- package/dist/esm/utils/reduceObjectFormat.mjs.map +1 -0
- package/dist/esm/utils/resolveObjectPromises.mjs +17 -24
- package/dist/esm/utils/resolveObjectPromises.mjs.map +1 -1
- package/dist/esm/utils/runOnce.mjs +76 -33
- package/dist/esm/utils/runOnce.mjs.map +1 -1
- package/dist/esm/utils/runParallel.mjs +160 -40
- package/dist/esm/utils/runParallel.mjs.map +1 -1
- package/dist/esm/utils/sortAlphabetically.mjs +4 -3
- package/dist/esm/utils/sortAlphabetically.mjs.map +1 -1
- package/dist/esm/utils/splitTextByLine.mjs +10 -0
- package/dist/esm/utils/splitTextByLine.mjs.map +1 -0
- package/dist/esm/utils/verifyIdenticObjectFormat copy.mjs +53 -0
- package/dist/esm/utils/verifyIdenticObjectFormat copy.mjs.map +1 -0
- package/dist/esm/utils/verifyIdenticObjectFormat.mjs +59 -0
- package/dist/esm/utils/verifyIdenticObjectFormat.mjs.map +1 -0
- package/dist/esm/watcher.mjs +53 -58
- package/dist/esm/watcher.mjs.map +1 -1
- package/dist/esm/writeConfiguration/index.mjs +11 -10
- package/dist/esm/writeConfiguration/index.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/detectExportedComponentName.mjs +24 -27
- package/dist/esm/writeContentDeclaration/detectExportedComponentName.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/dictionaryStatus.mjs +0 -1
- package/dist/esm/writeContentDeclaration/index.mjs +6 -7
- package/dist/esm/writeContentDeclaration/processContentDeclarationContent.mjs +71 -0
- package/dist/esm/writeContentDeclaration/processContentDeclarationContent.mjs.map +1 -0
- package/dist/esm/writeContentDeclaration/transformJSFile.mjs +1726 -735
- package/dist/esm/writeContentDeclaration/transformJSFile.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/writeContentDeclaration.mjs +105 -76
- package/dist/esm/writeContentDeclaration/writeContentDeclaration.mjs.map +1 -1
- package/dist/esm/writeContentDeclaration/writeJSFile.mjs +48 -46
- package/dist/esm/writeContentDeclaration/writeJSFile.mjs.map +1 -1
- package/dist/esm/writeFileIfChanged.mjs +7 -18
- package/dist/esm/writeFileIfChanged.mjs.map +1 -1
- package/dist/esm/writeJsonIfChanged.mjs +14 -7
- package/dist/esm/writeJsonIfChanged.mjs.map +1 -1
- package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +14 -7
- package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/index.d.ts +3 -3
- package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts +7 -2
- package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +14 -10
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts +8 -3
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +12 -7
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts +8 -2
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts +10 -6
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts.map +1 -1
- package/dist/types/cleanOutputDir.d.ts +6 -1
- package/dist/types/cleanOutputDir.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +6 -1
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +6 -1
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts +7 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts +7 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts +7 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts +7 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts +7 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/index.d.ts +8 -8
- package/dist/types/createType/createModuleAugmentation.d.ts +8 -5
- package/dist/types/createType/createModuleAugmentation.d.ts.map +1 -1
- package/dist/types/createType/createType.d.ts +7 -4
- package/dist/types/createType/createType.d.ts.map +1 -1
- package/dist/types/createType/index.d.ts +3 -3
- package/dist/types/fetchDistantDictionaries.d.ts +10 -7
- package/dist/types/fetchDistantDictionaries.d.ts.map +1 -1
- package/dist/types/filterInvalidDictionaries.d.ts +7 -4
- package/dist/types/filterInvalidDictionaries.d.ts.map +1 -1
- package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts +6 -2
- package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts.map +1 -1
- package/dist/types/handleAdditionalContentDeclarationFile.d.ts +6 -2
- package/dist/types/handleAdditionalContentDeclarationFile.d.ts.map +1 -1
- package/dist/types/handleContentDeclarationFileChange.d.ts +6 -2
- package/dist/types/handleContentDeclarationFileChange.d.ts.map +1 -1
- package/dist/types/handleUnlinkedContentDeclarationFile.d.ts +7 -0
- package/dist/types/handleUnlinkedContentDeclarationFile.d.ts.map +1 -0
- package/dist/types/index.d.ts +49 -33
- package/dist/types/listDictionariesPath.d.ts +7 -2
- package/dist/types/listDictionariesPath.d.ts.map +1 -1
- package/dist/types/listGitFiles.d.ts +24 -12
- package/dist/types/listGitFiles.d.ts.map +1 -1
- package/dist/types/loadDictionaries/getIntlayerBundle.d.ts +11 -0
- package/dist/types/loadDictionaries/getIntlayerBundle.d.ts.map +1 -0
- package/dist/types/loadDictionaries/index.d.ts +5 -5
- package/dist/types/loadDictionaries/loadContentDeclaration.d.ts +8 -5
- package/dist/types/loadDictionaries/loadContentDeclaration.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadDictionaries.d.ts +18 -14
- package/dist/types/loadDictionaries/loadDictionaries.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts +6 -3
- package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +13 -8
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts.map +1 -1
- package/dist/types/loadDictionaries/log.d.ts +28 -24
- package/dist/types/loadDictionaries/log.d.ts.map +1 -1
- package/dist/types/prepareIntlayer.d.ts +12 -2
- package/dist/types/prepareIntlayer.d.ts.map +1 -1
- package/dist/types/reduceDictionaryContent/applyMask.d.ts +6 -2
- package/dist/types/reduceDictionaryContent/applyMask.d.ts.map +1 -1
- package/dist/types/reduceDictionaryContent/reduceDictionaryContent.d.ts +6 -2
- package/dist/types/reduceDictionaryContent/reduceDictionaryContent.d.ts.map +1 -1
- package/dist/types/utils/chunkJSON.d.ts +56 -0
- package/dist/types/utils/chunkJSON.d.ts.map +1 -0
- package/dist/types/utils/extractErrorMessage.d.ts +4 -1
- package/dist/types/utils/extractErrorMessage.d.ts.map +1 -1
- package/dist/types/utils/formatter.d.ts +8 -3
- package/dist/types/utils/formatter.d.ts.map +1 -1
- package/dist/types/utils/getChunk.d.ts +11 -0
- package/dist/types/utils/getChunk.d.ts.map +1 -0
- package/dist/types/utils/getFileHash.d.ts +4 -1
- package/dist/types/utils/getFileHash.d.ts.map +1 -1
- package/dist/types/utils/getFormatFromExtension.d.ts +7 -4
- package/dist/types/utils/getFormatFromExtension.d.ts.map +1 -1
- package/dist/types/utils/kebabCaseToCamelCase.d.ts +4 -1
- package/dist/types/utils/kebabCaseToCamelCase.d.ts.map +1 -1
- package/dist/types/utils/pLimit.d.ts +16 -0
- package/dist/types/utils/pLimit.d.ts.map +1 -0
- package/dist/types/utils/parallelize.d.ts +4 -13
- package/dist/types/utils/parallelize.d.ts.map +1 -1
- package/dist/types/utils/parallelizeGlobal.d.ts +22 -0
- package/dist/types/utils/parallelizeGlobal.d.ts.map +1 -0
- package/dist/types/utils/reduceObjectFormat.d.ts +17 -0
- package/dist/types/utils/reduceObjectFormat.d.ts.map +1 -0
- package/dist/types/utils/resolveObjectPromises.d.ts +4 -1
- package/dist/types/utils/resolveObjectPromises.d.ts.map +1 -1
- package/dist/types/utils/runOnce.d.ts +23 -2
- package/dist/types/utils/runOnce.d.ts.map +1 -1
- package/dist/types/utils/runParallel.d.ts +9 -6
- package/dist/types/utils/runParallel.d.ts.map +1 -1
- package/dist/types/utils/sortAlphabetically.d.ts +4 -1
- package/dist/types/utils/sortAlphabetically.d.ts.map +1 -1
- package/dist/types/utils/splitTextByLine.d.ts +5 -0
- package/dist/types/utils/splitTextByLine.d.ts.map +1 -0
- package/dist/types/utils/verifyIdenticObjectFormat copy.d.ts +23 -0
- package/dist/types/utils/verifyIdenticObjectFormat copy.d.ts.map +1 -0
- package/dist/types/utils/verifyIdenticObjectFormat.d.ts +23 -0
- package/dist/types/utils/verifyIdenticObjectFormat.d.ts.map +1 -0
- package/dist/types/watcher.d.ts +13 -9
- package/dist/types/watcher.d.ts.map +1 -1
- package/dist/types/writeConfiguration/index.d.ts +6 -2
- package/dist/types/writeConfiguration/index.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts +4 -1
- package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts +4 -1
- package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/index.d.ts +6 -7
- package/dist/types/writeContentDeclaration/processContentDeclarationContent.d.ts +7 -0
- package/dist/types/writeContentDeclaration/processContentDeclarationContent.d.ts.map +1 -0
- package/dist/types/writeContentDeclaration/transformJSFile.d.ts +33 -6
- package/dist/types/writeContentDeclaration/transformJSFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts +14 -6
- package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeJSFile.d.ts +7 -3
- package/dist/types/writeContentDeclaration/writeJSFile.d.ts.map +1 -1
- package/dist/types/writeFileIfChanged.d.ts +7 -2
- package/dist/types/writeFileIfChanged.d.ts.map +1 -1
- package/dist/types/writeJsonIfChanged.d.ts +7 -2
- package/dist/types/writeJsonIfChanged.d.ts.map +1 -1
- package/package.json +48 -54
- package/LICENSE +0 -202
- package/dist/cjs/buildIntlayerDictionary/index.cjs.map +0 -1
- package/dist/cjs/createDictionaryEntryPoint/index.cjs.map +0 -1
- package/dist/cjs/createType/index.cjs.map +0 -1
- package/dist/cjs/handleUnlikedContentDeclarationFile.cjs +0 -57
- package/dist/cjs/handleUnlikedContentDeclarationFile.cjs.map +0 -1
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/cjs/loadDictionaries/index.cjs.map +0 -1
- package/dist/cjs/mergeDictionaries.cjs +0 -143
- package/dist/cjs/mergeDictionaries.cjs.map +0 -1
- package/dist/cjs/orderDictionaries.cjs +0 -71
- package/dist/cjs/orderDictionaries.cjs.map +0 -1
- package/dist/cjs/prepareContentDeclaration.cjs +0 -93
- package/dist/cjs/prepareContentDeclaration.cjs.map +0 -1
- package/dist/cjs/processPerLocaleDictionary.cjs +0 -49
- package/dist/cjs/processPerLocaleDictionary.cjs.map +0 -1
- package/dist/cjs/utils/getExtention.cjs +0 -37
- package/dist/cjs/utils/getExtention.cjs.map +0 -1
- package/dist/cjs/writeContentDeclaration/dictionaryStatus.cjs.map +0 -1
- package/dist/cjs/writeContentDeclaration/formatCode.cjs +0 -78
- package/dist/cjs/writeContentDeclaration/formatCode.cjs.map +0 -1
- package/dist/cjs/writeContentDeclaration/index.cjs.map +0 -1
- package/dist/esm/buildIntlayerDictionary/index.mjs.map +0 -1
- package/dist/esm/createDictionaryEntryPoint/index.mjs.map +0 -1
- package/dist/esm/createType/index.mjs.map +0 -1
- package/dist/esm/getContentDeclarationFileTemplate/cjsTemplate.txt +0 -9
- package/dist/esm/getContentDeclarationFileTemplate/esmTemplate.txt +0 -9
- package/dist/esm/getContentDeclarationFileTemplate/jsonTemplate.txt +0 -5
- package/dist/esm/getContentDeclarationFileTemplate/tsTemplate.txt +0 -8
- package/dist/esm/handleUnlikedContentDeclarationFile.mjs +0 -33
- package/dist/esm/handleUnlikedContentDeclarationFile.mjs.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/loadDictionaries/index.mjs.map +0 -1
- package/dist/esm/mergeDictionaries.mjs +0 -109
- package/dist/esm/mergeDictionaries.mjs.map +0 -1
- package/dist/esm/orderDictionaries.mjs +0 -37
- package/dist/esm/orderDictionaries.mjs.map +0 -1
- package/dist/esm/prepareContentDeclaration.mjs +0 -72
- package/dist/esm/prepareContentDeclaration.mjs.map +0 -1
- package/dist/esm/processPerLocaleDictionary.mjs +0 -25
- package/dist/esm/processPerLocaleDictionary.mjs.map +0 -1
- package/dist/esm/utils/getExtention.mjs +0 -13
- package/dist/esm/utils/getExtention.mjs.map +0 -1
- package/dist/esm/writeContentDeclaration/dictionaryStatus.mjs.map +0 -1
- package/dist/esm/writeContentDeclaration/formatCode.mjs +0 -44
- package/dist/esm/writeContentDeclaration/formatCode.mjs.map +0 -1
- package/dist/esm/writeContentDeclaration/index.mjs.map +0 -1
- package/dist/types/buildIntlayerDictionary/index.d.ts.map +0 -1
- package/dist/types/createDictionaryEntryPoint/index.d.ts.map +0 -1
- package/dist/types/createType/index.d.ts.map +0 -1
- package/dist/types/handleUnlikedContentDeclarationFile.d.ts +0 -3
- package/dist/types/handleUnlikedContentDeclarationFile.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/loadDictionaries/index.d.ts.map +0 -1
- package/dist/types/mergeDictionaries.d.ts +0 -3
- package/dist/types/mergeDictionaries.d.ts.map +0 -1
- package/dist/types/orderDictionaries.d.ts +0 -10
- package/dist/types/orderDictionaries.d.ts.map +0 -1
- package/dist/types/prepareContentDeclaration.d.ts +0 -3
- package/dist/types/prepareContentDeclaration.d.ts.map +0 -1
- package/dist/types/processPerLocaleDictionary.d.ts +0 -32
- package/dist/types/processPerLocaleDictionary.d.ts.map +0 -1
- package/dist/types/utils/getExtention.d.ts +0 -3
- package/dist/types/utils/getExtention.d.ts.map +0 -1
- package/dist/types/writeContentDeclaration/formatCode.d.ts +0 -2
- package/dist/types/writeContentDeclaration/formatCode.d.ts.map +0 -1
- package/dist/types/writeContentDeclaration/index.d.ts.map +0 -1
|
@@ -1,15 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
//#region src/listGitFiles.d.ts
|
|
2
|
+
type DiffMode = 'gitDiff' | 'uncommitted' | 'unpushed' | 'untracked';
|
|
3
|
+
type ListGitFilesOptions = {
|
|
4
|
+
mode: DiffMode[];
|
|
5
|
+
baseRef?: string;
|
|
6
|
+
currentRef?: string;
|
|
7
|
+
absolute?: boolean;
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
declare const listGitFiles: ({
|
|
10
|
+
mode,
|
|
11
|
+
baseRef,
|
|
12
|
+
currentRef,
|
|
13
|
+
absolute
|
|
14
|
+
}: ListGitFilesOptions) => Promise<string[]>;
|
|
15
|
+
type ListGitLinesOptions = {
|
|
16
|
+
mode: DiffMode[];
|
|
17
|
+
baseRef?: string;
|
|
18
|
+
currentRef?: string;
|
|
13
19
|
};
|
|
14
|
-
|
|
20
|
+
declare const listGitLines: (filePath: string, {
|
|
21
|
+
mode,
|
|
22
|
+
baseRef,
|
|
23
|
+
currentRef
|
|
24
|
+
}: ListGitLinesOptions) => Promise<number[]>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { DiffMode, ListGitFilesOptions, ListGitLinesOptions, listGitFiles, listGitLines };
|
|
15
27
|
//# sourceMappingURL=listGitFiles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listGitFiles.d.ts","
|
|
1
|
+
{"version":3,"file":"listGitFiles.d.ts","names":[],"sources":["../../src/listGitFiles.ts"],"sourcesContent":[],"mappings":";KAMY,QAAA;AAAA,KAgBA,mBAAA,GAhBQ;EAgBR,IAAA,EACJ,QADI,EAAA;EAOC,OAAA,CAAA,EAAA,MA4DZ;EA5DkC,UAAA,CAAA,EAAA,MAAA;EAAA,QAAA,CAAA,EAAA,OAAA;CAAA;AAAA,cAAtB,YAAsB,EAAA,CAAA;EAAA,IAAA;EAAA,OAAA;EAAA,UAAA;EAAA;AAAA,CAAA,EAKhC,mBALgC,EAAA,GAKb,OALa,CAAA,MAAA,EAAA,CAAA;AAKhC,KAyDS,mBAAA,GAzDT;EAAmB,IAAA,EA0Dd,QA1Dc,EAAA;EAAA,OAAA,CAAA,EAAA,MAAA;EAyDV,UAAA,CAAA,EAAA,MAAA;AAMZ,CAAA;AAEE,cAFW,YAEX,EAAA,CAAA,QAAA,EAAA,MAAA,EAAA;EAAA,IAAA;EAAA,OAAA;EAAA;AAAA,CAAA,EAIG,mBAJH,EAAA,GAKC,OALD,CAAA,MAAA,EAAA,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IntlayerConfig } from "@intlayer/types";
|
|
2
|
+
|
|
3
|
+
//#region src/loadDictionaries/getIntlayerBundle.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Get the intlayer bundle to embed @intlayer/core and be able to mock @intlayer/config/built to mock the configuration file.
|
|
7
|
+
*/
|
|
8
|
+
declare const getIntlayerBundle: (configuration: IntlayerConfig) => Promise<string>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { getIntlayerBundle };
|
|
11
|
+
//# sourceMappingURL=getIntlayerBundle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getIntlayerBundle.d.ts","names":[],"sources":["../../../src/loadDictionaries/getIntlayerBundle.ts"],"sourcesContent":[],"mappings":";;;;;;AA6DA;cAAa,mCAA0C,mBAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { DictionariesStatus, loadDictionaries } from "./loadDictionaries.js";
|
|
2
|
+
import { formatLocalDictionaries, loadContentDeclarations } from "./loadContentDeclaration.js";
|
|
3
|
+
import { loadLocalDictionaries } from "./loadLocalDictionaries.js";
|
|
4
|
+
import { formatDistantDictionaries, loadRemoteDictionaries } from "./loadRemoteDictionaries.js";
|
|
5
|
+
export { DictionariesStatus, formatDistantDictionaries, formatLocalDictionaries, loadContentDeclarations, loadDictionaries, loadLocalDictionaries, loadRemoteDictionaries };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { DictionariesStatus } from "./loadDictionaries.js";
|
|
2
|
+
import { Dictionary, IntlayerConfig } from "@intlayer/types";
|
|
3
|
+
|
|
4
|
+
//#region src/loadDictionaries/loadContentDeclaration.d.ts
|
|
5
|
+
declare const formatLocalDictionaries: (dictionariesRecord: Record<string, Dictionary>, configuration: IntlayerConfig) => Dictionary[];
|
|
6
|
+
declare const loadContentDeclarations: (contentDeclarationFilePath: string[], configuration: IntlayerConfig, onStatusUpdate?: (status: DictionariesStatus[]) => void) => Promise<Dictionary[]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { formatLocalDictionaries, loadContentDeclarations };
|
|
6
9
|
//# sourceMappingURL=loadContentDeclaration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadContentDeclaration.d.ts","
|
|
1
|
+
{"version":3,"file":"loadContentDeclaration.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadContentDeclaration.ts"],"sourcesContent":[],"mappings":";;;;cAaa,8CACS,eAAe,4BACpB,mBACd;cAUU,+EAEI,0CACW,kCACzB,QAAQ"}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { Dictionary, IntlayerConfig } from "@intlayer/types";
|
|
2
|
+
|
|
3
|
+
//#region src/loadDictionaries/loadDictionaries.d.ts
|
|
4
|
+
type DictionariesStatus = {
|
|
5
|
+
dictionaryKey: string;
|
|
6
|
+
type: 'local' | 'remote';
|
|
7
|
+
status: 'pending' | 'fetching' | 'fetched' | 'error' | 'imported' | 'found' | 'building' | 'built';
|
|
8
|
+
error?: string;
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
declare const loadDictionaries: (contentDeclarationsPaths: string[] | string, configuration: IntlayerConfig) => Promise<{
|
|
11
|
+
localDictionaries: Dictionary[];
|
|
12
|
+
remoteDictionaries: Dictionary[];
|
|
13
|
+
pluginDictionaries: Dictionary[];
|
|
14
|
+
time: {
|
|
15
|
+
localDictionaries: number;
|
|
16
|
+
remoteDictionaries: number;
|
|
17
|
+
};
|
|
16
18
|
}>;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { DictionariesStatus, loadDictionaries };
|
|
17
21
|
//# sourceMappingURL=loadDictionaries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadDictionaries.d.ts","
|
|
1
|
+
{"version":3,"file":"loadDictionaries.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadDictionaries.ts"],"sourcesContent":[],"mappings":";;;KAcY,kBAAA;;EAAA,IAAA,EAAA,OAAA,GAAA,QAAkB;EA6IjB,MAAA,EAAA,SAAA,GAmGZ,UAAA,GAAA,SAAA,GAAA,OAAA,GAAA,UAAA,GAAA,OAAA,GAAA,UAAA,GAAA,OAAA;EAjGgB,KAAA,CAAA,EAAA,MAAA;CAEI;AACC,cALT,gBAKS,EAAA,CAAA,wBAAA,EAAA,MAAA,EAAA,GAAA,MAAA,EAAA,aAAA,EAHL,cAGK,EAAA,GAFnB,OAEmB,CAAA;EACA,iBAAA,EAFD,UAEC,EAAA;EAHnB,kBAAA,EAEmB,UAFnB,EAAA;EAAO,kBAAA,EAGY,UAHZ,EAAA"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Dictionary, IntlayerConfig } from "@intlayer/types";
|
|
2
|
+
|
|
3
|
+
//#region src/loadDictionaries/loadLocalDictionaries.d.ts
|
|
4
|
+
declare const loadLocalDictionaries: (contentDeclarationsPaths: string[] | string, configuration: IntlayerConfig) => Promise<Dictionary[]>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { loadLocalDictionaries };
|
|
4
7
|
//# sourceMappingURL=loadLocalDictionaries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadLocalDictionaries.d.ts","
|
|
1
|
+
{"version":3,"file":"loadLocalDictionaries.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadLocalDictionaries.ts"],"sourcesContent":[],"mappings":";;;cAKa,oFAEI,mBACd,QAAQ"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { DictionariesStatus } from "./loadDictionaries.js";
|
|
2
|
+
import * as _intlayer_types6 from "@intlayer/types";
|
|
3
|
+
import { Dictionary } from "@intlayer/types";
|
|
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_types6.IntlayerConfig, onStatusUpdate?: (status: DictionariesStatus[]) => void, options?: {
|
|
9
|
+
onStartRemoteCheck?: () => void;
|
|
10
|
+
onStopRemoteCheck?: () => void;
|
|
11
|
+
onError?: (error: Error) => void;
|
|
9
12
|
}) => Promise<DictionaryAPI[]>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { formatDistantDictionaries, loadRemoteDictionaries };
|
|
10
15
|
//# sourceMappingURL=loadRemoteDictionaries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadRemoteDictionaries.d.ts","
|
|
1
|
+
{"version":3,"file":"loadRemoteDictionaries.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadRemoteDictionaries.ts"],"sourcesContent":[],"mappings":";;;;;;cAUa,2CACI,gBAAgB,kBAC9B;cAOU,yCA6HZ,gBAAA,CA5HC,0CAC0B,sCAVK;;EADpB,iBAAA,CAAA,EAAA,GAAA,GAAA,IAOR;EANY,OAAA,CAAA,EAAA,CAAA,KAAA,EAcK,KAdL,EAAA,GAAA,IAAA;CAAgB,EAAA,GAgB9B,OAhB8B,CAgBtB,aAhBsB,EAAA,CAAA"}
|
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import { DictionariesStatus } from "./loadDictionaries.js";
|
|
2
|
+
|
|
3
|
+
//#region src/loadDictionaries/log.d.ts
|
|
4
|
+
declare class DictionariesLogger {
|
|
5
|
+
private statuses;
|
|
6
|
+
private spinnerTimer;
|
|
7
|
+
private spinnerIndex;
|
|
8
|
+
private renderedLines;
|
|
9
|
+
private readonly spinnerFrames;
|
|
10
|
+
private isFinished;
|
|
11
|
+
private readonly prefix;
|
|
12
|
+
private lastRenderedState;
|
|
13
|
+
private remoteCheckInProgress;
|
|
14
|
+
private expectRemote;
|
|
15
|
+
private remoteError;
|
|
16
|
+
constructor();
|
|
17
|
+
setExpectRemote(expect: boolean): void;
|
|
18
|
+
startRemoteCheck(): void;
|
|
19
|
+
stopRemoteCheck(): void;
|
|
20
|
+
update(newStatuses: DictionariesStatus[]): void;
|
|
21
|
+
finish(): void;
|
|
22
|
+
private startSpinner;
|
|
23
|
+
private stopSpinner;
|
|
24
|
+
setRemoteError: (error?: Error) => void;
|
|
25
|
+
private render;
|
|
26
|
+
private computeProgress;
|
|
25
27
|
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { DictionariesLogger };
|
|
26
30
|
//# sourceMappingURL=log.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","
|
|
1
|
+
{"version":3,"file":"log.d.ts","names":[],"sources":["../../../src/loadDictionaries/log.ts"],"sourcesContent":[],"mappings":";;;cAWa,kBAAA;;EAAA,QAAA,YAAA;;;;;;;;;;;;;;sBAiCS;;;;2BA8Ca"}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { IntlayerConfig } from "@intlayer/types";
|
|
2
|
+
|
|
3
|
+
//#region src/prepareIntlayer.d.ts
|
|
4
|
+
type PrepareIntlayerOptions = {
|
|
5
|
+
clean?: boolean;
|
|
6
|
+
format?: ('cjs' | 'esm')[];
|
|
7
|
+
forceRun?: boolean;
|
|
8
|
+
onIsCached?: () => void | Promise<void>;
|
|
9
|
+
};
|
|
10
|
+
declare const prepareIntlayer: (configuration: IntlayerConfig, options?: PrepareIntlayerOptions) => Promise<void>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { prepareIntlayer };
|
|
3
13
|
//# sourceMappingURL=prepareIntlayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepareIntlayer.d.ts","
|
|
1
|
+
{"version":3,"file":"prepareIntlayer.d.ts","names":[],"sources":["../../src/prepareIntlayer.ts"],"sourcesContent":[],"mappings":";;;KAcK,sBAAA;;EAAA,MAAA,CAAA,EAAA,CAAA,KAAA,GAAA,KAAA,CAAA,EAAsB;EAad,QAAA,CAAA,EAAA,OAuJZ;EAtJgB,UAAA,CAAA,EAAA,GAAA,GAAA,IAAA,GAVW,OAUX,CAAA,IAAA,CAAA;CACL;AAAsB,cAFrB,eAEqB,EAAA,CAAA,aAAA,EADjB,cACiB,EAAA,OAAA,CAAA,EAAtB,sBAAsB,EAAA,GAAA,OAAA,CAAA,IAAA,CAAA"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { Dictionary } from "@intlayer/types";
|
|
2
|
+
|
|
3
|
+
//#region src/reduceDictionaryContent/applyMask.d.ts
|
|
4
|
+
declare const applyMask: (full: Dictionary, mask: any) => Dictionary;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { applyMask };
|
|
3
7
|
//# sourceMappingURL=applyMask.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyMask.d.ts","
|
|
1
|
+
{"version":3,"file":"applyMask.d.ts","names":[],"sources":["../../../src/reduceDictionaryContent/applyMask.ts"],"sourcesContent":[],"mappings":";;;cAEa,kBAAmB,0BAAwB"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Dictionary } from "@intlayer/types";
|
|
2
|
+
|
|
3
|
+
//#region src/reduceDictionaryContent/reduceDictionaryContent.d.ts
|
|
4
|
+
declare const reduceDictionaryContent: (fullDictionary: Dictionary, partialDictionary: Dictionary) => Dictionary;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { reduceDictionaryContent };
|
|
3
7
|
//# sourceMappingURL=reduceDictionaryContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reduceDictionaryContent.d.ts","
|
|
1
|
+
{"version":3,"file":"reduceDictionaryContent.d.ts","names":[],"sources":["../../../src/reduceDictionaryContent/reduceDictionaryContent.ts"],"sourcesContent":[],"mappings":";;;cAIa,0CACK,+BACG,eAAU"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//#region src/utils/chunkJSON.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Split & reassemble JSON by character budget.
|
|
4
|
+
* - Measures serialized size using JSON.stringify(..).length (characters).
|
|
5
|
+
* - Ensures each chunk is itself valid JSON.
|
|
6
|
+
* - Very large strings are split into safe pieces using getChunk and re-concatenated on assemble.
|
|
7
|
+
* - Protects against circular structures (JSON can't serialize those anyway).
|
|
8
|
+
*/
|
|
9
|
+
type JSONPrimitive = string | number | boolean | null;
|
|
10
|
+
type JSONValue = JSONPrimitive | JSONObject | JSONArray;
|
|
11
|
+
type JSONObject = {
|
|
12
|
+
[k: string]: JSONValue;
|
|
13
|
+
};
|
|
14
|
+
type JSONArray = JSONValue[];
|
|
15
|
+
type Path = Array<string | number>;
|
|
16
|
+
type SetPatch = {
|
|
17
|
+
op: 'set';
|
|
18
|
+
path: Path;
|
|
19
|
+
value: JSONValue;
|
|
20
|
+
};
|
|
21
|
+
type StrAppendPatch = {
|
|
22
|
+
op: 'str-append';
|
|
23
|
+
path: Path;
|
|
24
|
+
value: string;
|
|
25
|
+
index: number;
|
|
26
|
+
total: number;
|
|
27
|
+
};
|
|
28
|
+
type Patch = SetPatch | StrAppendPatch;
|
|
29
|
+
type RootType = 'object' | 'array';
|
|
30
|
+
type JsonChunk = {
|
|
31
|
+
schemaVersion: 1;
|
|
32
|
+
index: number;
|
|
33
|
+
total: number;
|
|
34
|
+
rootType: RootType;
|
|
35
|
+
checksum: string;
|
|
36
|
+
entries: Patch[];
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Split JSON into chunks constrained by character count of serialized chunk.
|
|
40
|
+
*/
|
|
41
|
+
declare const chunkJSON: (value: JSONObject | JSONArray, maxChars: number) => JsonChunk[];
|
|
42
|
+
/**
|
|
43
|
+
* Reassemble JSON from chunks.
|
|
44
|
+
* - Validates checksums and indices.
|
|
45
|
+
* - Applies 'set' patches and merges string pieces from 'str-append'.
|
|
46
|
+
*/
|
|
47
|
+
/**
|
|
48
|
+
* Reconstruct content from a single chunk without validation.
|
|
49
|
+
* Useful for processing individual chunks in a pipeline where you don't have all chunks yet.
|
|
50
|
+
* Note: This will only reconstruct the partial content contained in this chunk.
|
|
51
|
+
*/
|
|
52
|
+
declare const reconstructFromSingleChunk: (chunk: JsonChunk) => JSONObject | JSONArray;
|
|
53
|
+
declare const assembleJSON: (chunks: JsonChunk[]) => JSONObject | JSONArray;
|
|
54
|
+
//#endregion
|
|
55
|
+
export { JSONObject, JsonChunk, assembleJSON, chunkJSON, reconstructFromSingleChunk };
|
|
56
|
+
//# sourceMappingURL=chunkJSON.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunkJSON.d.ts","names":[],"sources":["../../../src/utils/chunkJSON.ts"],"sourcesContent":[],"mappings":";;;AAUkB;;;;;AAGlB,KAHK,aAAA,GAGiB,MAAA,GACP,MAAA,GAAS,OAAA,GAAA,IAAA;AACtB,KAJG,SAAA,GAAY,aAMA,GANgB,UAMP,GANoB,SAMpB;AAErB,KANO,UAAA,GAMA;EAEP,CAAA,CAAA,EAAA,MAAA,CAAQ,EAPE,SAOF;AAA4C,CAAA;AAG7C,KAPP,SAAA,GAAY,SAYJ,EAAA;AAAyB,KAVjC,IAAA,GAAO,KAYC,CAAA,MAAA,GAAA,MAAA,CAAA;AAEb,KAZK,QAAA,GAYgB;EAuMR,EAAA,EAAA,KAAA;EACJ,IAAA,EApN0B,IAoN1B;EAAa,KAAA,EApN0B,SAoN1B;CAEnB;KArNE,cAAA,GAqNO;EAsHC,EAAA,EAAA,YAAA;EACJ,IAAA,EA1UD,IA0UC;EACN,KAAA,EAAA,MAAA;EAAa,KAAA,EAAA,MAAA;EA+Ff,KAAA,EAAA,MAAA;AAED,CAAA;KAvaK,KAAA,GAAQ,QAuawB,GAvab,cAuaa;KArahC,QAAA,GAqa8C,QAAA,GAAA,OAAA;AAAa,KAnapD,SAAA,GAmaoD;EAkL/D,aAAA,EAAA,CAAA;;;YAjlBW;;WAED;;;;;cAiME,mBACJ,aAAa,gCAEnB;;;;;;;;;;;cAsHU,oCACJ,cACN,aAAa;cAiGH,uBAAwB,gBAAc,aAAa"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/utils/extractErrorMessage.d.ts
|
|
2
|
+
declare const extractErrorMessage: (error: unknown) => string;
|
|
3
|
+
//#endregion
|
|
4
|
+
export { extractErrorMessage };
|
|
2
5
|
//# sourceMappingURL=extractErrorMessage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractErrorMessage.d.ts","
|
|
1
|
+
{"version":3,"file":"extractErrorMessage.d.ts","names":[],"sources":["../../../src/utils/extractErrorMessage.ts"],"sourcesContent":[],"mappings":";cAAa"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { LocalesValues } from "@intlayer/types";
|
|
2
|
+
import { ANSIColors } from "@intlayer/config";
|
|
3
|
+
|
|
4
|
+
//#region src/utils/formatter.d.ts
|
|
5
|
+
declare const formatPath: (path: string | string[], color?: ANSIColors | false) => string;
|
|
6
|
+
declare const formatLocale: (locale: LocalesValues | LocalesValues[], color?: ANSIColors | false) => string;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { formatLocale, formatPath };
|
|
4
9
|
//# sourceMappingURL=formatter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatter.d.ts","
|
|
1
|
+
{"version":3,"file":"formatter.d.ts","names":[],"sources":["../../../src/utils/formatter.ts"],"sourcesContent":[],"mappings":";;;;cAMa,8CAEH;cAcG,uBACH,gBAAgB,yBACjB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/utils/getChunk.d.ts
|
|
2
|
+
type TrunkOptions = {
|
|
3
|
+
lineStart?: number;
|
|
4
|
+
lineLength?: number;
|
|
5
|
+
charStart?: number;
|
|
6
|
+
charLength?: number;
|
|
7
|
+
};
|
|
8
|
+
declare const getChunk: (text: string, options?: TrunkOptions) => string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { getChunk };
|
|
11
|
+
//# sourceMappingURL=getChunk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getChunk.d.ts","names":[],"sources":["../../../src/utils/getChunk.ts"],"sourcesContent":[],"mappings":";KAEK,YAAA;EAAA,SAAA,CAAA,EAAA,MAAY;EAOJ,UAAA,CA8EZ,EAAA,MAAA;;;;cA9EY,mCAAmC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFileHash.d.ts","
|
|
1
|
+
{"version":3,"file":"getFileHash.d.ts","names":[],"sources":["../../../src/utils/getFileHash.ts"],"sourcesContent":[],"mappings":";cAEa"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region src/utils/getFormatFromExtension.d.ts
|
|
2
|
+
type Format = 'ts' | 'cjs' | 'esm' | 'json';
|
|
3
|
+
type Extension = '.ts' | '.tsx' | '.js' | '.jsx' | '.cjs' | '.cjsx' | '.mjs' | '.mjsx' | '.json' | '.json5';
|
|
4
|
+
declare const getFormatFromExtension: (extension: Extension) => Format;
|
|
5
|
+
declare const getExtensionFromFormat: (format: Format) => Extension;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Extension, Format, getExtensionFromFormat, getFormatFromExtension };
|
|
5
8
|
//# sourceMappingURL=getFormatFromExtension.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFormatFromExtension.d.ts","
|
|
1
|
+
{"version":3,"file":"getFormatFromExtension.d.ts","names":[],"sources":["../../../src/utils/getFormatFromExtension.ts"],"sourcesContent":[],"mappings":";KAAY,MAAA;AAAA,KACA,SAAA,GADM,KAAA,GAAA,MAAA,GAAA,KAAA,GAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAAA,MAAA,GAAA,OAAA,GAAA,OAAA,GAAA,QAAA;AACN,cAYC,sBAZQ,EAAA,CAAA,SAAA,EAY6B,SAZ7B,EAAA,GAYyC,MAZzC;AAYR,cAkBA,sBAlBqC,EAAA,CAAA,MAAY,EAkBf,MAF9C,EAAA,GAEuD,SAFvD"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/utils/kebabCaseToCamelCase.d.ts
|
|
2
|
+
declare const kebabCaseToCamelCase: (name: string) => string;
|
|
3
|
+
//#endregion
|
|
4
|
+
export { kebabCaseToCamelCase };
|
|
2
5
|
//# sourceMappingURL=kebabCaseToCamelCase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kebabCaseToCamelCase.d.ts","
|
|
1
|
+
{"version":3,"file":"kebabCaseToCamelCase.d.ts","names":[],"sources":["../../../src/utils/kebabCaseToCamelCase.ts"],"sourcesContent":[],"mappings":";cAAa"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/utils/pLimit.d.ts
|
|
2
|
+
declare class Queue<T> {
|
|
3
|
+
#private;
|
|
4
|
+
constructor();
|
|
5
|
+
enqueue(value: T): void;
|
|
6
|
+
dequeue(): T | undefined;
|
|
7
|
+
peek(): T | undefined;
|
|
8
|
+
clear(): void;
|
|
9
|
+
get size(): number;
|
|
10
|
+
[Symbol.iterator](): Generator<T, void, unknown>;
|
|
11
|
+
drain(): Generator<T | undefined, void, unknown>;
|
|
12
|
+
}
|
|
13
|
+
declare const pLimit: (concurrency: number) => (fn: (...args: any[]) => Promise<any>, ...arguments_: any[]) => Promise<any>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Queue, pLimit };
|
|
16
|
+
//# sourceMappingURL=pLimit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pLimit.d.ts","names":[],"sources":["../../../src/utils/pLimit.ts"],"sourcesContent":[],"mappings":";cAca;EAAA,CAAA,OAAK;EASD,WAAA,CAAA;EAcJ,OAAA,CAAA,KAAA,EAdI,CAcJ,CAAA,EAAA,IAAA;EAWH,OAAA,CAAA,CAAA,EAXG,CAWH,GAAA,SAAA;EAqBwB,IAAA,CAAA,CAAA,EArBxB,CAqBwB,GAAA,SAAA;EAAV,KAAA,CAAA,CAAA,EAAA,IAAA;EAApB,IAAO,IAAA,CAAA,CAAA,EAAA,MAAA;EASW,CATlB,MAAA,CAAO,QAAA,GASW,EATE,SASF,CATY,CASZ,EAAA,IAAA,EAAA,OAAA,CAAA;EAAV,KAAA,CAAA,CAAA,EAAA,SAAA,CAAU,CAAV,GAAA,SAAA,EAAA,IAAA,EAAA,OAAA,CAAA;;AAOC,cAAA,MAkEe,EAAA,CAAA,WAEvB,EAAO,MAAA,EAAA,GAAA,CAAA,EAAA,EAAA,CAAA,GAAA,IAAA,EAAA,GAAA,EAAA,EAAA,GAFgB,OAEhB,CAAA,GAAA,CAAA,EAAA,GAAA,UAAA,EAAA,GAAA,EAAA,EAAA,GAAP,OAAO,CAAA,GAAA,CAAA"}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
dequeue(): T | undefined;
|
|
6
|
-
peek(): T | undefined;
|
|
7
|
-
clear(): void;
|
|
8
|
-
get size(): number;
|
|
9
|
-
[Symbol.iterator](): Generator<T, void, unknown>;
|
|
10
|
-
drain(): Generator<T | undefined, void, unknown>;
|
|
11
|
-
}
|
|
12
|
-
export declare const pLimit: (concurrency: number) => (function_: (...args: any[]) => Promise<any>, ...arguments_: any[]) => Promise<any>;
|
|
13
|
-
export declare const parallelize: <T, R>(items: T[], callback: (item: T) => Promise<R>, parallelLimit?: number) => Promise<R[]>;
|
|
1
|
+
//#region src/utils/parallelize.d.ts
|
|
2
|
+
declare const parallelize: <T, R>(items: T[], callback?: (item: T) => Promise<R>, parallelLimit?: number) => Promise<R[]>;
|
|
3
|
+
//#endregion
|
|
4
|
+
export { parallelize };
|
|
14
5
|
//# sourceMappingURL=parallelize.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parallelize.d.ts","
|
|
1
|
+
{"version":3,"file":"parallelize.d.ts","names":[],"sources":["../../../src/utils/parallelize.ts"],"sourcesContent":[],"mappings":";cAEa,2BACJ,uBACU,MAAM,QAAQ,+BAG9B,QAAQ"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { pLimit } from "./pLimit.js";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/parallelizeGlobal.d.ts
|
|
4
|
+
/** Get (and optionally configure) the single, shared limiter. */
|
|
5
|
+
declare const getGlobalLimiter: (concurrency?: number) => (fn: (...args: any[]) => Promise<any>, ...arguments_: any[]) => Promise<any>;
|
|
6
|
+
/** Limits how many *tasks* run concurrently (independent from AI calls). */
|
|
7
|
+
declare const getTaskLimiter: (concurrency?: number) => (fn: (...args: any[]) => Promise<any>, ...arguments_: any[]) => Promise<any>;
|
|
8
|
+
declare const parallelizeGlobal: <T, R>(items: T[], callback?: (item: T, index: number) => Promise<R>, options?: {
|
|
9
|
+
/** Share a single limiter across the app. If omitted, uses global limiter. */
|
|
10
|
+
limiter?: ReturnType<typeof pLimit>;
|
|
11
|
+
/** If provided and no limiter is passed, configure the global limiter. */
|
|
12
|
+
concurrency?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Whether to wrap *each* callback run in the limiter.
|
|
15
|
+
* - For orchestration (outer loops): set `false` (don't burn limiter slots).
|
|
16
|
+
* - For atomic work (AI calls, writes): leave `true` (default).
|
|
17
|
+
*/
|
|
18
|
+
wrapInLimiter?: boolean;
|
|
19
|
+
}) => Promise<R[]>;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { getGlobalLimiter, getTaskLimiter, parallelizeGlobal };
|
|
22
|
+
//# sourceMappingURL=parallelizeGlobal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parallelizeGlobal.d.ts","names":[],"sources":["../../../src/utils/parallelizeGlobal.ts"],"sourcesContent":[],"mappings":";;;;cAQa,qEAkDuiD,uCAAA;AAlDpjD;AAaa,cAAA,cAqCuiD,EAAA,CAAA,WAAA,CAAA,EAAA,MAAA,EAAA,GAAA,CAAA,EAAA,EAAA,CAAA,GAAA,IAAA,EAAA,GAAA,EAAA,EAAA,GAAA,OAAA,CAAA,GAAA,CAAA,EAAA,GAAA,UAAA,EAAA,GAAA,EAAA,EAAA,GAAA,OAAA,CAAA,GAAA,CAAA;AA3BviD,cAAA,iBA0BZ,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,KAAA,EAzBQ,CAyBR,EAAA,EAAA,QAAA,CAAA,EAAA,CAAA,IAAA,EAxBkB,CAwBlB,EAAA,KAAA,EAAA,MAAA,EAAA,GAxBuC,OAwBvC,CAxB+C,CAwB/C,CAAA,EAAA,QAAA,EAAA;EAzBQ;EACU,OAAA,CAAA,EAIL,UAJK,CAAA,OAIa,MAJb,CAAA;EAA6B;EAAR,WAAA,CAAA,EAAA,MAAA;EAIR;;;;;;MAU7B,QAAQ"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/utils/reduceObjectFormat.d.ts
|
|
2
|
+
type Primitive = string | number | boolean | null | undefined;
|
|
3
|
+
type Recursive = Primitive | {
|
|
4
|
+
[key: string]: Recursive;
|
|
5
|
+
} | Array<Recursive>;
|
|
6
|
+
/**
|
|
7
|
+
* Reduce an object to only the shape provided by a format object.
|
|
8
|
+
* Values are always taken from the source object; the format is used only for structure.
|
|
9
|
+
*
|
|
10
|
+
* Examples:
|
|
11
|
+
* reduceObjectFormat({ a: 1, b: 2 }, { a: 0 }) => { a: 1 }
|
|
12
|
+
* reduceObjectFormat({ a: { x: 1, y: 2 } }, { a: { x: 0 } }) => { a: { x: 1 } }
|
|
13
|
+
*/
|
|
14
|
+
declare const reduceObjectFormat: (source: Recursive, format: Recursive) => Recursive;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { reduceObjectFormat };
|
|
17
|
+
//# sourceMappingURL=reduceObjectFormat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reduceObjectFormat.d.ts","names":[],"sources":["../../../src/utils/reduceObjectFormat.ts"],"sourcesContent":[],"mappings":";KAAK,SAAA;KAEA,SAAA,GAAY,SAFH,GAAA;EAET,CAAA,GAAA,EAAA,MAAS,CAAA,EAAgC,SAAhC;CAAG,GAA2C,KAA3C,CAAiD,SAAjD,CAAA;;;;;AAUjB;;;;AA8BC,cA9BY,kBA8BZ,EAAA,CAAA,MAAA,EA7BS,SA6BT,EAAA,MAAA,EA5BS,SA4BT,EAAA,GA3BE,SA2BF"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
//#region src/utils/resolveObjectPromises.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* A more "unified" approach where each type (function, array, object, primitive)
|
|
3
4
|
* is handled inside the main recursive body.
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
+
declare const resolveObjectPromises: <T = unknown>(entry: any) => Promise<T>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { resolveObjectPromises };
|
|
6
9
|
//# sourceMappingURL=resolveObjectPromises.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveObjectPromises.d.ts","
|
|
1
|
+
{"version":3,"file":"resolveObjectPromises.d.ts","names":[],"sources":["../../../src/utils/resolveObjectPromises.ts"],"sourcesContent":[],"mappings":";;AAIA;;;cAAa,oDAEV,QAAQ"}
|