@intlayer/engine 9.4.2 → 9.4.4
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/init/utils/configManipulation.cjs +30 -1
- package/dist/cjs/init/utils/configManipulation.cjs.map +1 -1
- package/dist/cjs/init/utils/packageManager.cjs +2 -1
- package/dist/cjs/init/utils/packageManager.cjs.map +1 -1
- package/dist/esm/init/utils/configManipulation.mjs +30 -1
- package/dist/esm/init/utils/configManipulation.mjs.map +1 -1
- package/dist/esm/init/utils/packageManager.mjs +2 -1
- package/dist/esm/init/utils/packageManager.mjs.map +1 -1
- package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +2 -3
- package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts +1 -2
- package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +10 -11
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts +2 -3
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +5 -6
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeNestedDictionary.d.ts +4 -5
- package/dist/types/buildIntlayerDictionary/writeNestedDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts +3 -4
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts +4 -5
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts.map +1 -1
- package/dist/types/cleanOutputDir.d.ts +1 -2
- package/dist/types/cleanOutputDir.d.ts.map +1 -1
- package/dist/types/cleanRemovedContentDeclaration.d.ts +1 -2
- package/dist/types/cleanRemovedContentDeclaration.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +2 -3
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts.map +1 -1
- package/dist/types/createType/createModuleAugmentation.d.ts +4 -5
- package/dist/types/createType/createModuleAugmentation.d.ts.map +1 -1
- package/dist/types/createType/createType.d.ts +2 -3
- package/dist/types/createType/createType.d.ts.map +1 -1
- package/dist/types/detectFormatCommand.d.ts +1 -2
- package/dist/types/detectFormatCommand.d.ts.map +1 -1
- package/dist/types/docReview/alignBlocks.d.ts +1 -2
- package/dist/types/docReview/alignBlocks.d.ts.map +1 -1
- package/dist/types/docReview/computeSimilarity.d.ts +2 -3
- package/dist/types/docReview/computeSimilarity.d.ts.map +1 -1
- package/dist/types/docReview/fingerprintBlock.d.ts +1 -2
- package/dist/types/docReview/fingerprintBlock.d.ts.map +1 -1
- package/dist/types/docReview/mapChangedLinesToBlocks.d.ts +1 -2
- package/dist/types/docReview/mapChangedLinesToBlocks.d.ts.map +1 -1
- package/dist/types/docReview/normalizeBlock.d.ts +1 -2
- package/dist/types/docReview/normalizeBlock.d.ts.map +1 -1
- package/dist/types/docReview/pipeline.d.ts +4 -4
- package/dist/types/docReview/pipeline.d.ts.map +1 -1
- package/dist/types/docReview/planActions.d.ts +1 -2
- package/dist/types/docReview/planActions.d.ts.map +1 -1
- package/dist/types/docReview/rebuildDocument.d.ts +5 -6
- package/dist/types/docReview/rebuildDocument.d.ts.map +1 -1
- package/dist/types/docReview/reviewReport.d.ts +8 -9
- package/dist/types/docReview/reviewReport.d.ts.map +1 -1
- package/dist/types/docReview/segmentDocument.d.ts +2 -3
- package/dist/types/docReview/segmentDocument.d.ts.map +1 -1
- package/dist/types/docReview/types.d.ts +9 -10
- package/dist/types/docReview/types.d.ts.map +1 -1
- package/dist/types/fetchDistantDictionaries.d.ts +1 -2
- package/dist/types/fetchDistantDictionaries.d.ts.map +1 -1
- package/dist/types/filterInvalidDictionaries.d.ts +2 -3
- package/dist/types/filterInvalidDictionaries.d.ts.map +1 -1
- package/dist/types/formatDictionary.d.ts +7 -7
- package/dist/types/formatDictionary.d.ts.map +1 -1
- package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts +1 -2
- package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts.map +1 -1
- package/dist/types/handleAdditionalContentDeclarationFile.d.ts +1 -2
- package/dist/types/handleAdditionalContentDeclarationFile.d.ts.map +1 -1
- package/dist/types/handleContentDeclarationFileChange.d.ts +1 -2
- package/dist/types/handleContentDeclarationFileChange.d.ts.map +1 -1
- package/dist/types/handleContentDeclarationFileMoved.d.ts +1 -2
- package/dist/types/handleContentDeclarationFileMoved.d.ts.map +1 -1
- package/dist/types/handleUnlinkedContentDeclarationFile.d.ts +1 -2
- package/dist/types/handleUnlinkedContentDeclarationFile.d.ts.map +1 -1
- package/dist/types/init/cms.d.ts +8 -9
- package/dist/types/init/cms.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/index.d.ts +2 -2
- package/dist/types/init/frameworkSetup/index.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/detect.d.ts +4 -4
- package/dist/types/init/frameworkSetup/nextAppRouter/detect.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts +1 -2
- package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/restructure.d.ts +5 -6
- package/dist/types/init/frameworkSetup/nextAppRouter/restructure.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts +8 -9
- package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts +2 -3
- package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/detect.d.ts +3 -4
- package/dist/types/init/frameworkSetup/tanstackStart/detect.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts +1 -2
- package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/restructure.d.ts +7 -8
- package/dist/types/init/frameworkSetup/tanstackStart/restructure.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts +3 -4
- package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts +2 -3
- package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/types.d.ts +2 -3
- package/dist/types/init/frameworkSetup/types.d.ts.map +1 -1
- package/dist/types/init/index.d.ts +4 -5
- package/dist/types/init/index.d.ts.map +1 -1
- package/dist/types/init/utils/astImports.d.ts +3 -4
- package/dist/types/init/utils/astImports.d.ts.map +1 -1
- package/dist/types/init/utils/configManipulation.d.ts +19 -20
- package/dist/types/init/utils/configManipulation.d.ts.map +1 -1
- package/dist/types/init/utils/fileSystem.d.ts +11 -12
- package/dist/types/init/utils/fileSystem.d.ts.map +1 -1
- package/dist/types/init/utils/githubActions.d.ts +7 -8
- package/dist/types/init/utils/githubActions.d.ts.map +1 -1
- package/dist/types/init/utils/jsonParser.d.ts +1 -2
- package/dist/types/init/utils/jsonParser.d.ts.map +1 -1
- package/dist/types/init/utils/nextCompilerBabel.d.ts +2 -3
- package/dist/types/init/utils/nextCompilerBabel.d.ts.map +1 -1
- package/dist/types/init/utils/packageManager.d.ts +17 -18
- package/dist/types/init/utils/packageManager.d.ts.map +1 -1
- package/dist/types/init/utils/tsConfig.d.ts +1 -2
- package/dist/types/init/utils/tsConfig.d.ts.map +1 -1
- package/dist/types/init/utils/version.d.ts +1 -2
- package/dist/types/init/utils/version.d.ts.map +1 -1
- package/dist/types/initConfig/index.d.ts +2 -3
- package/dist/types/initConfig/index.d.ts.map +1 -1
- package/dist/types/installLSP.d.ts +1 -2
- package/dist/types/installLSP.d.ts.map +1 -1
- package/dist/types/installMCP/installMCP.d.ts +2 -3
- package/dist/types/installMCP/installMCP.d.ts.map +1 -1
- package/dist/types/installSkills/index.d.ts +9 -10
- package/dist/types/installSkills/index.d.ts.map +1 -1
- package/dist/types/intlayer/dist/types/index.d.ts +14 -0
- package/dist/types/listDictionariesPath.d.ts +2 -3
- package/dist/types/listDictionariesPath.d.ts.map +1 -1
- package/dist/types/listGitFiles.d.ts +5 -6
- package/dist/types/listGitFiles.d.ts.map +1 -1
- package/dist/types/listProjects.d.ts +3 -4
- package/dist/types/listProjects.d.ts.map +1 -1
- package/dist/types/loadDictionaries/getIntlayerBundle.d.ts +1 -2
- package/dist/types/loadDictionaries/getIntlayerBundle.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadContentDeclaration.d.ts +4 -5
- package/dist/types/loadDictionaries/loadContentDeclaration.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadDictionaries.d.ts +2 -3
- package/dist/types/loadDictionaries/loadDictionaries.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts +1 -2
- package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadMarkdownContentDeclaration.d.ts +1 -2
- package/dist/types/loadDictionaries/loadMarkdownContentDeclaration.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +2 -3
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadYamlContentDeclaration.d.ts +1 -2
- package/dist/types/loadDictionaries/loadYamlContentDeclaration.d.ts.map +1 -1
- package/dist/types/loadDictionaries/log.d.ts +1 -2
- package/dist/types/loadDictionaries/log.d.ts.map +1 -1
- package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts +1 -2
- package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts.map +1 -1
- package/dist/types/logConfigDetails.d.ts +1 -2
- package/dist/types/logConfigDetails.d.ts.map +1 -1
- package/dist/types/prepareIntlayer.d.ts +1 -2
- package/dist/types/prepareIntlayer.d.ts.map +1 -1
- package/dist/types/reduceDictionaryContent/applyMask.d.ts +1 -2
- package/dist/types/reduceDictionaryContent/applyMask.d.ts.map +1 -1
- package/dist/types/reduceDictionaryContent/reduceDictionaryContent.d.ts +1 -2
- package/dist/types/reduceDictionaryContent/reduceDictionaryContent.d.ts.map +1 -1
- package/dist/types/scan/analyzeBundleContent.d.ts +1 -2
- package/dist/types/scan/analyzeBundleContent.d.ts.map +1 -1
- package/dist/types/scan/calculateScore.d.ts +6 -7
- package/dist/types/scan/calculateScore.d.ts.map +1 -1
- package/dist/types/scan/checks.d.ts +8 -9
- package/dist/types/scan/checks.d.ts.map +1 -1
- package/dist/types/scan/parseHtml.d.ts +13 -14
- package/dist/types/scan/parseHtml.d.ts.map +1 -1
- package/dist/types/scan/scanWebsite.d.ts +1 -2
- package/dist/types/scan/scanWebsite.d.ts.map +1 -1
- package/dist/types/scan/types.d.ts +9 -10
- package/dist/types/scan/types.d.ts.map +1 -1
- package/dist/types/syncPluginKit/createFileAdapter.d.ts +4 -5
- package/dist/types/syncPluginKit/createFileAdapter.d.ts.map +1 -1
- package/dist/types/syncPluginKit/createSyncPlugin.d.ts +1 -2
- package/dist/types/syncPluginKit/createSyncPlugin.d.ts.map +1 -1
- package/dist/types/syncPluginKit/extractKeyAndLocaleFromPath.d.ts +1 -2
- package/dist/types/syncPluginKit/extractKeyAndLocaleFromPath.d.ts.map +1 -1
- package/dist/types/syncPluginKit/filePathPatternHelpers.d.ts +1 -2
- package/dist/types/syncPluginKit/filePathPatternHelpers.d.ts.map +1 -1
- package/dist/types/syncPluginKit/types.d.ts +8 -9
- package/dist/types/syncPluginKit/types.d.ts.map +1 -1
- package/dist/types/utils/autoDecorateContent.d.ts +1 -2
- package/dist/types/utils/autoDecorateContent.d.ts.map +1 -1
- package/dist/types/utils/babelParser.d.ts +3 -3
- package/dist/types/utils/babelParser.d.ts.map +1 -1
- package/dist/types/utils/buildComponentFilesList.d.ts +1 -2
- package/dist/types/utils/buildComponentFilesList.d.ts.map +1 -1
- package/dist/types/utils/buildFilesList.d.ts +3 -4
- package/dist/types/utils/buildFilesList.d.ts.map +1 -1
- package/dist/types/utils/chunkArray.d.ts +1 -2
- package/dist/types/utils/chunkArray.d.ts.map +1 -1
- package/dist/types/utils/chunkJSON.d.ts +5 -6
- package/dist/types/utils/chunkJSON.d.ts.map +1 -1
- package/dist/types/utils/formatter.d.ts +2 -3
- package/dist/types/utils/formatter.d.ts.map +1 -1
- package/dist/types/utils/getChunk.d.ts +1 -2
- package/dist/types/utils/getChunk.d.ts.map +1 -1
- package/dist/types/utils/getContentExtension.d.ts +1 -2
- package/dist/types/utils/getContentExtension.d.ts.map +1 -1
- package/dist/types/utils/getFormatFromExtension.d.ts +4 -5
- package/dist/types/utils/getFormatFromExtension.d.ts.map +1 -1
- package/dist/types/utils/getPathHash.d.ts +1 -2
- package/dist/types/utils/getPathHash.d.ts.map +1 -1
- package/dist/types/utils/mergeChunks.d.ts +1 -2
- package/dist/types/utils/mergeChunks.d.ts.map +1 -1
- package/dist/types/utils/pLimit.d.ts +2 -3
- package/dist/types/utils/pLimit.d.ts.map +1 -1
- package/dist/types/utils/parallelize.d.ts +1 -2
- package/dist/types/utils/parallelize.d.ts.map +1 -1
- package/dist/types/utils/parallelizeGlobal.d.ts +3 -4
- package/dist/types/utils/parallelizeGlobal.d.ts.map +1 -1
- package/dist/types/utils/readDictionariesFromDisk.d.ts +1 -2
- package/dist/types/utils/readDictionariesFromDisk.d.ts.map +1 -1
- package/dist/types/utils/reduceObjectFormat.d.ts +4 -5
- package/dist/types/utils/reduceObjectFormat.d.ts.map +1 -1
- package/dist/types/utils/resolveObjectPromises.d.ts +1 -2
- package/dist/types/utils/resolveObjectPromises.d.ts.map +1 -1
- package/dist/types/utils/resolveRelativePath.d.ts +1 -2
- package/dist/types/utils/resolveRelativePath.d.ts.map +1 -1
- package/dist/types/utils/runOnce.d.ts +2 -3
- package/dist/types/utils/runOnce.d.ts.map +1 -1
- package/dist/types/utils/runParallel/bin.d.ts +1 -2
- package/dist/types/utils/runParallel/bin.d.ts.map +1 -1
- package/dist/types/utils/runParallel/bootstrap.d.ts +1 -2
- package/dist/types/utils/runParallel/bootstrap.d.ts.map +1 -1
- package/dist/types/utils/runParallel/index.d.ts +2 -3
- package/dist/types/utils/runParallel/index.d.ts.map +1 -1
- package/dist/types/utils/runParallel/pidTree.d.ts +1 -2
- package/dist/types/utils/runParallel/pidTree.d.ts.map +1 -1
- package/dist/types/utils/runParallel/ps.d.ts +1 -2
- package/dist/types/utils/runParallel/ps.d.ts.map +1 -1
- package/dist/types/utils/runParallel/runTask.d.ts +1 -2
- package/dist/types/utils/runParallel/runTask.d.ts.map +1 -1
- package/dist/types/utils/runParallel/spawnPosix.d.ts +1 -2
- package/dist/types/utils/runParallel/spawnPosix.d.ts.map +1 -1
- package/dist/types/utils/runParallel/spawnWin32.d.ts +1 -2
- package/dist/types/utils/runParallel/spawnWin32.d.ts.map +1 -1
- package/dist/types/utils/runParallel/wmic.d.ts +1 -2
- package/dist/types/utils/runParallel/wmic.d.ts.map +1 -1
- package/dist/types/utils/sortAlphabetically.d.ts +1 -2
- package/dist/types/utils/sortAlphabetically.d.ts.map +1 -1
- package/dist/types/utils/splitTextByLine.d.ts +1 -2
- package/dist/types/utils/splitTextByLine.d.ts.map +1 -1
- package/dist/types/utils/verifyIdenticObjectFormat.d.ts +1 -2
- package/dist/types/utils/verifyIdenticObjectFormat.d.ts.map +1 -1
- package/dist/types/watcher.d.ts +2 -3
- package/dist/types/watcher.d.ts.map +1 -1
- package/dist/types/writeConfiguration/generateConfigurationContent.d.ts +1 -2
- package/dist/types/writeConfiguration/generateConfigurationContent.d.ts.map +1 -1
- package/dist/types/writeConfiguration/index.d.ts +2 -3
- package/dist/types/writeConfiguration/index.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts +1 -2
- package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts +1 -2
- package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/processContentDeclarationContent.d.ts +1 -2
- package/dist/types/writeContentDeclaration/processContentDeclarationContent.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/transformJSFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/transformJSFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/transformJSONFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/transformJSONFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts +1 -2
- package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeJSFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/writeJSFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeMarkdownFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/writeMarkdownFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeYamlFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/writeYamlFile.d.ts.map +1 -1
- package/dist/types/writeFileIfChanged.d.ts +2 -3
- package/dist/types/writeFileIfChanged.d.ts.map +1 -1
- package/dist/types/writeJsonIfChanged.d.ts +1 -2
- package/dist/types/writeJsonIfChanged.d.ts.map +1 -1
- package/package.json +11 -11
|
@@ -8,26 +8,26 @@
|
|
|
8
8
|
* tag can't be parsed it is simply skipped rather than throwing.
|
|
9
9
|
*/
|
|
10
10
|
/** Compute the UTF-8 byte length of a string in both Node and browser builds. */
|
|
11
|
-
declare const byteLength: (text: string) => number;
|
|
11
|
+
export declare const byteLength: (text: string) => number;
|
|
12
12
|
/** Extract the `lang` attribute of the `<html>` element, if present. */
|
|
13
|
-
declare const extractHtmlLang: (html: string) => string | undefined;
|
|
13
|
+
export declare const extractHtmlLang: (html: string) => string | undefined;
|
|
14
14
|
/** Extract the `dir` attribute of the `<html>` element, if present. */
|
|
15
|
-
declare const extractHtmlDir: (html: string) => string | undefined;
|
|
15
|
+
export declare const extractHtmlDir: (html: string) => string | undefined;
|
|
16
16
|
/** Extract the document `<title>` text. */
|
|
17
|
-
declare const extractTitle: (html: string) => string;
|
|
17
|
+
export declare const extractTitle: (html: string) => string;
|
|
18
18
|
/** Extract the `<meta name="description">` content. */
|
|
19
|
-
declare const extractMetaDescription: (html: string) => string;
|
|
19
|
+
export declare const extractMetaDescription: (html: string) => string;
|
|
20
20
|
/** Extract the `<meta property="og:image">` content. */
|
|
21
|
-
declare const extractOgImage: (html: string) => string | undefined;
|
|
21
|
+
export declare const extractOgImage: (html: string) => string | undefined;
|
|
22
22
|
/** Whether a `<link rel="canonical">` element is present. */
|
|
23
|
-
declare const hasCanonical: (html: string) => boolean;
|
|
23
|
+
export declare const hasCanonical: (html: string) => boolean;
|
|
24
24
|
/** A parsed `<link rel="alternate" hreflang>` element. */
|
|
25
|
-
type HreflangLink = {
|
|
25
|
+
export type HreflangLink = {
|
|
26
26
|
hreflang: string;
|
|
27
27
|
href: string;
|
|
28
28
|
};
|
|
29
29
|
/** Extract every `<link rel="alternate" hreflang="…" href="…">` element. */
|
|
30
|
-
declare const extractHreflangs: (html: string) => HreflangLink[];
|
|
30
|
+
export declare const extractHreflangs: (html: string) => HreflangLink[];
|
|
31
31
|
/**
|
|
32
32
|
* Extract every eagerly-loaded script URL: `<script src>`,
|
|
33
33
|
* `<link rel="modulepreload">` and `<link rel="preload" as="script">`.
|
|
@@ -36,19 +36,18 @@ declare const extractHreflangs: (html: string) => HreflangLink[];
|
|
|
36
36
|
* @param baseUrl - Base URL used to resolve relative script URLs.
|
|
37
37
|
* @returns Absolute, de-duplicated script URLs.
|
|
38
38
|
*/
|
|
39
|
-
declare const extractScriptUrls: (html: string, baseUrl: string) => string[];
|
|
39
|
+
export declare const extractScriptUrls: (html: string, baseUrl: string) => string[];
|
|
40
40
|
/** A parsed `<a href>` anchor. */
|
|
41
|
-
type Anchor = {
|
|
41
|
+
export type Anchor = {
|
|
42
42
|
href: string;
|
|
43
43
|
text: string;
|
|
44
44
|
};
|
|
45
45
|
/** Extract every `<a href="…">text</a>` anchor from the document. */
|
|
46
|
-
declare const extractAnchors: (html: string) => Anchor[];
|
|
46
|
+
export declare const extractAnchors: (html: string) => Anchor[];
|
|
47
47
|
/**
|
|
48
48
|
* Extract visible text snippets from an HTML document (scripts, styles and
|
|
49
49
|
* tags stripped). Used to approximate the rendered content size without a DOM.
|
|
50
50
|
*/
|
|
51
|
-
declare const extractVisibleTextStrings: (html: string) => string[];
|
|
51
|
+
export declare const extractVisibleTextStrings: (html: string) => string[];
|
|
52
52
|
//#endregion
|
|
53
|
-
export { Anchor, HreflangLink, byteLength, extractAnchors, extractHreflangs, extractHtmlDir, extractHtmlLang, extractMetaDescription, extractOgImage, extractScriptUrls, extractTitle, extractVisibleTextStrings, hasCanonical };
|
|
54
53
|
//# sourceMappingURL=parseHtml.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseHtml.d.ts","names":[],"sources":["../../../src/scan/parseHtml.ts"],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"parseHtml.d.ts","names":[],"sources":["../../../src/scan/parseHtml.ts"],"mappings":";;;;;;;;;;qBAUa,aAAU;;qBAkBV,kBAAe;;qBAMf,iBAAc;;qBAMd,eAAY;;qBAMZ,yBAAsB;;qBAWtB,iBAAc;;qBAWd,eAAY;;YAMb;EAAiB;EAAkB;;;qBAGlC,mBAAgB,iBAAmB;;;;;;;;;qBAoBnC,oBAAiB,cAAgB;;YA4BlC;EAAW;EAAc;;;qBAGxB,iBAAc,iBAAmB;;;;;qBAsBjC,4BAAyB"}
|
|
@@ -11,7 +11,6 @@ import { ScanOptions, ScanResult } from "./types.js";
|
|
|
11
11
|
* @param options - {@link ScanOptions} controlling depth, timeout and UA.
|
|
12
12
|
* @returns The {@link ScanResult} including score, page size and per-check events.
|
|
13
13
|
*/
|
|
14
|
-
declare const scanWebsite: (targetUrl: string, options?: ScanOptions) => Promise<ScanResult>;
|
|
14
|
+
export declare const scanWebsite: (targetUrl: string, options?: ScanOptions) => Promise<ScanResult>;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { scanWebsite };
|
|
17
16
|
//# sourceMappingURL=scanWebsite.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scanWebsite.d.ts","names":[],"sources":["../../../src/scan/scanWebsite.ts"],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"scanWebsite.d.ts","names":[],"sources":["../../../src/scan/scanWebsite.ts"],"mappings":";;;;;;;;;;;;;qBAmNa,cAAW,mBACL,UACR,gBACR,QAAQ"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Score } from "./calculateScore.js";
|
|
2
2
|
//#region src/scan/types.d.ts
|
|
3
3
|
/** Status of an individual scan check. */
|
|
4
|
-
type ScanCheckStatus = 'success' | 'warning' | 'error';
|
|
4
|
+
export type ScanCheckStatus = 'success' | 'warning' | 'error';
|
|
5
5
|
/** Per-status human-readable details attached to a {@link ScanEvent}. */
|
|
6
|
-
type ScanEventDetails = {
|
|
6
|
+
export type ScanEventDetails = {
|
|
7
7
|
success?: unknown;
|
|
8
8
|
warning?: unknown;
|
|
9
9
|
error?: unknown;
|
|
@@ -12,22 +12,22 @@ type ScanEventDetails = {
|
|
|
12
12
|
* A single check produced while scanning a page. The `type` matches a key of
|
|
13
13
|
* the score table (optionally suffixed with the URL for URL-scoped checks).
|
|
14
14
|
*/
|
|
15
|
-
type ScanEvent = {
|
|
15
|
+
export type ScanEvent = {
|
|
16
16
|
type: string;
|
|
17
17
|
status: ScanCheckStatus;
|
|
18
18
|
details?: ScanEventDetails;
|
|
19
19
|
};
|
|
20
20
|
/** How the scan was performed. */
|
|
21
|
-
type ScanMode = 'basic' | 'deep';
|
|
21
|
+
export type ScanMode = 'basic' | 'deep';
|
|
22
22
|
/** A single JavaScript chunk fetched while scanning. */
|
|
23
|
-
type BundleChunkInput = {
|
|
23
|
+
export type BundleChunkInput = {
|
|
24
24
|
url: string;
|
|
25
25
|
/** Whether the chunk is eagerly loaded on the initial page load. */
|
|
26
26
|
isMainBundle: boolean;
|
|
27
27
|
content: string;
|
|
28
28
|
};
|
|
29
29
|
/** Locale-weight analysis of a single bundle chunk. */
|
|
30
|
-
type ChunkAnalysis = {
|
|
30
|
+
export type ChunkAnalysis = {
|
|
31
31
|
url: string;
|
|
32
32
|
fileSize: number;
|
|
33
33
|
totalLocaleSize: number;
|
|
@@ -38,7 +38,7 @@ type ChunkAnalysis = {
|
|
|
38
38
|
unusedPercent: number;
|
|
39
39
|
};
|
|
40
40
|
/** Aggregated locale-weight analysis across every fetched chunk. */
|
|
41
|
-
type BundleContentAnalysis = {
|
|
41
|
+
export type BundleContentAnalysis = {
|
|
42
42
|
currentLocale: string;
|
|
43
43
|
totalPageSize: number;
|
|
44
44
|
renderedContentSize: number;
|
|
@@ -54,7 +54,7 @@ type BundleContentAnalysis = {
|
|
|
54
54
|
lazyBundleChunks: ChunkAnalysis[];
|
|
55
55
|
};
|
|
56
56
|
/** Options controlling how a website is scanned. */
|
|
57
|
-
type ScanOptions = {
|
|
57
|
+
export type ScanOptions = {
|
|
58
58
|
/**
|
|
59
59
|
* Attempt a deeper, render-based scan using a locally installed `puppeteer`.
|
|
60
60
|
* When `puppeteer` is not installed, the scan transparently falls back to the
|
|
@@ -67,7 +67,7 @@ type ScanOptions = {
|
|
|
67
67
|
userAgent?: string;
|
|
68
68
|
};
|
|
69
69
|
/** Result of scanning a single page. */
|
|
70
|
-
type ScanResult = {
|
|
70
|
+
export type ScanResult = {
|
|
71
71
|
url: string;
|
|
72
72
|
/** Whether the scan ran in `basic` or `deep` mode. */
|
|
73
73
|
mode: ScanMode;
|
|
@@ -87,5 +87,4 @@ type ScanResult = {
|
|
|
87
87
|
bundle?: BundleContentAnalysis;
|
|
88
88
|
};
|
|
89
89
|
//#endregion
|
|
90
|
-
export { BundleChunkInput, BundleContentAnalysis, ChunkAnalysis, ScanCheckStatus, ScanEvent, ScanEventDetails, ScanMode, ScanOptions, ScanResult };
|
|
91
90
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/scan/types.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/scan/types.ts"],"mappings":";;;YAGY;;YAGA;EACV;EACA;EACA;;;;;;YAOU;EACV;EACA,QAAQ;EACR,UAAU;;;YAIA;;YAGA;EACV;;EAEA;EACA;;;YAIU;EACV;EACA;EACA;EACA;EACA;EACA;;EAEA;;;YAIU;EACV;EACA;EACA;;EAEA;;EAEA;;EAEA;;EAEA;EACA,kBAAkB;EAClB,kBAAkB;;;YAIR;;;;;;EAMV;;EAEA;;EAEA;;;YAIU;EACV;;EAEA,MAAM;;EAEN;;EAEA;;EAEA;;EAEA,UAAU;;EAEV,QAAQ;;EAER;;EAEA,SAAS"}
|
|
@@ -9,8 +9,8 @@ import { FilePathPattern } from "@intlayer/types/filePathPattern";
|
|
|
9
9
|
* - `inclusive`: keep every glob match without fabricating missing entries
|
|
10
10
|
* (read-only load plugins, whose patterns may contain free `**` globs).
|
|
11
11
|
*/
|
|
12
|
-
type FileAdapterDiscovery = 'strict' | 'inclusive';
|
|
13
|
-
type CreateFileAdapterOptions = {
|
|
12
|
+
export type FileAdapterDiscovery = 'strict' | 'inclusive';
|
|
13
|
+
export type CreateFileAdapterOptions = {
|
|
14
14
|
/**
|
|
15
15
|
* Location of the files, as a static string, a templated string
|
|
16
16
|
* (e.g. `./messages/{{locale}}/{{key}}.json`) or a function building the
|
|
@@ -39,12 +39,11 @@ type CreateFileAdapterOptions = {
|
|
|
39
39
|
* Handles glob discovery of the source pattern, key/locale extraction from
|
|
40
40
|
* paths, base-directory resolution, and change-detected atomic writes.
|
|
41
41
|
*/
|
|
42
|
-
declare const createFileAdapter: (options: CreateFileAdapterOptions) => ContentAdapter;
|
|
42
|
+
export declare const createFileAdapter: (options: CreateFileAdapterOptions) => ContentAdapter;
|
|
43
43
|
/**
|
|
44
44
|
* Default `readEntry` implementation: plain utf-8 read followed by the given
|
|
45
45
|
* parser. Returns `undefined` for missing or unreadable files.
|
|
46
46
|
*/
|
|
47
|
-
declare const createFileReader: (parse: (raw: string) => SyncContent) => (absoluteFilePath: string) => Promise<SyncContent | undefined>;
|
|
47
|
+
export declare const createFileReader: (parse: (raw: string) => SyncContent) => (absoluteFilePath: string) => Promise<SyncContent | undefined>;
|
|
48
48
|
//#endregion
|
|
49
|
-
export { CreateFileAdapterOptions, FileAdapterDiscovery, createFileAdapter, createFileReader };
|
|
50
49
|
//# sourceMappingURL=createFileAdapter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFileAdapter.d.ts","names":[],"sources":["../../../src/syncPluginKit/createFileAdapter.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"createFileAdapter.d.ts","names":[],"sources":["../../../src/syncPluginKit/createFileAdapter.ts"],"mappings":";;;;;;;;;;;YAyBY;YAEA;;;;;;EAMV,QAAQ;;;;EAKR,OAAO;;;;;;;EAQP,aACE,0BACA,SAAS,sBACN,QAAQ;;;;EAKb,YAAY;;;;;;;;qBAYD,oBAAiB,SACnB,6BACR;;;;;qBAwNU,mBAAgB,QAClB,gBAAgB,iBAAW,6BACF,QAAQ"}
|
|
@@ -11,7 +11,6 @@ import { Plugin } from "@intlayer/types/plugin";
|
|
|
11
11
|
* payload format. Write-back only processes dictionaries whose `location`
|
|
12
12
|
* matches this plugin instance, so adapters never see foreign content.
|
|
13
13
|
*/
|
|
14
|
-
declare const createSyncPlugin: (options: CreateSyncPluginOptions) => Plugin;
|
|
14
|
+
export declare const createSyncPlugin: (options: CreateSyncPluginOptions) => Plugin;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { createSyncPlugin };
|
|
17
16
|
//# sourceMappingURL=createSyncPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSyncPlugin.d.ts","names":[],"sources":["../../../src/syncPluginKit/createSyncPlugin.ts"],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"createSyncPlugin.d.ts","names":[],"sources":["../../../src/syncPluginKit/createSyncPlugin.ts"],"mappings":";;;;;;;;;;;;;qBAuCa,mBAAgB,SAAa,4BAA0B"}
|
|
@@ -10,10 +10,9 @@ import { Locale } from "@intlayer/types/allLocales";
|
|
|
10
10
|
* Missing placeholders fall back to `'index'` for the key and to
|
|
11
11
|
* `defaultLocale` for the locale.
|
|
12
12
|
*/
|
|
13
|
-
declare const extractKeyAndLocaleFromPath: (filePath: string, maskPattern: string, locales: Locale[], defaultLocale: Locale) => {
|
|
13
|
+
export declare const extractKeyAndLocaleFromPath: (filePath: string, maskPattern: string, locales: Locale[], defaultLocale: Locale) => {
|
|
14
14
|
key: string;
|
|
15
15
|
locale: Locale;
|
|
16
16
|
} | null;
|
|
17
17
|
//#endregion
|
|
18
|
-
export { extractKeyAndLocaleFromPath };
|
|
19
18
|
//# sourceMappingURL=extractKeyAndLocaleFromPath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractKeyAndLocaleFromPath.d.ts","names":[],"sources":["../../../src/syncPluginKit/extractKeyAndLocaleFromPath.ts"],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"extractKeyAndLocaleFromPath.d.ts","names":[],"sources":["../../../src/syncPluginKit/extractKeyAndLocaleFromPath.ts"],"mappings":";;;;;;;;;;;;qBAea,8BAA2B,kBACtB,qBACG,SACV,UAAQ,eACF;EACZ;EAAa,QAAQ"}
|
|
@@ -9,7 +9,6 @@ import { FilePathPatternContext } from "@intlayer/types/filePathPattern";
|
|
|
9
9
|
* patterns never reference them, so this single cast keeps the partial
|
|
10
10
|
* context in one audited place instead of scattering `as any` at call sites.
|
|
11
11
|
*/
|
|
12
|
-
declare const buildFilePathPatternContext: (key: string, locale?: string) => FilePathPatternContext;
|
|
12
|
+
export declare const buildFilePathPatternContext: (key: string, locale?: string) => FilePathPatternContext;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { buildFilePathPatternContext };
|
|
15
14
|
//# sourceMappingURL=filePathPatternHelpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filePathPatternHelpers.d.ts","names":[],"sources":["../../../src/syncPluginKit/filePathPatternHelpers.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"filePathPatternHelpers.d.ts","names":[],"sources":["../../../src/syncPluginKit/filePathPatternHelpers.ts"],"mappings":";;;;;;;;;;;qBAWa,8BAA2B,aAC3B,oBAEV"}
|
|
@@ -5,17 +5,17 @@ import { Locale } from "@intlayer/types/allLocales";
|
|
|
5
5
|
/**
|
|
6
6
|
* Structured dictionary content handled by sync plugins.
|
|
7
7
|
*/
|
|
8
|
-
type SyncContent = Record<string, unknown>;
|
|
8
|
+
export type SyncContent = Record<string, unknown>;
|
|
9
9
|
/**
|
|
10
10
|
* Context handed to every {@link ContentAdapter} call.
|
|
11
11
|
*/
|
|
12
|
-
type SyncPluginContext = {
|
|
12
|
+
export type SyncPluginContext = {
|
|
13
13
|
configuration: IntlayerConfig;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* One translatable resource discovered in the external system.
|
|
17
17
|
*/
|
|
18
|
-
type ContentEntry = {
|
|
18
|
+
export type ContentEntry = {
|
|
19
19
|
/** Dictionary key the entry maps to. */
|
|
20
20
|
key: string;
|
|
21
21
|
/** Locale of the entry content. */
|
|
@@ -35,7 +35,7 @@ type ContentEntry = {
|
|
|
35
35
|
/**
|
|
36
36
|
* Identifies where content must be written back by a {@link ContentAdapter}.
|
|
37
37
|
*/
|
|
38
|
-
type ContentTarget = {
|
|
38
|
+
export type ContentTarget = {
|
|
39
39
|
key: string;
|
|
40
40
|
locale: Locale;
|
|
41
41
|
};
|
|
@@ -45,7 +45,7 @@ type ContentTarget = {
|
|
|
45
45
|
* CMS…). Format concerns belong to {@link FormatCodec}, orchestration to
|
|
46
46
|
* `createSyncPlugin`.
|
|
47
47
|
*/
|
|
48
|
-
type ContentAdapter = {
|
|
48
|
+
export type ContentAdapter = {
|
|
49
49
|
/**
|
|
50
50
|
* Enumerate every entry available in the external system.
|
|
51
51
|
*/
|
|
@@ -90,7 +90,7 @@ type ContentAdapter = {
|
|
|
90
90
|
* Format layer of a sync plugin: how a raw string payload maps to structured
|
|
91
91
|
* dictionary content and back (JSON, PO, XLIFF…).
|
|
92
92
|
*/
|
|
93
|
-
type FormatCodec = {
|
|
93
|
+
export type FormatCodec = {
|
|
94
94
|
/**
|
|
95
95
|
* Parse a raw payload into dictionary content.
|
|
96
96
|
* May throw on malformed payloads — callers treat a throw as empty content.
|
|
@@ -108,11 +108,11 @@ type FormatCodec = {
|
|
|
108
108
|
* - `pull`: only ingest external content as dictionaries (read-only).
|
|
109
109
|
* - `both`: ingest and write the merged build output back to the source.
|
|
110
110
|
*/
|
|
111
|
-
type SyncDirection = 'pull' | 'both';
|
|
111
|
+
export type SyncDirection = 'pull' | 'both';
|
|
112
112
|
/**
|
|
113
113
|
* Options of `createSyncPlugin`.
|
|
114
114
|
*/
|
|
115
|
-
type CreateSyncPluginOptions = {
|
|
115
|
+
export type CreateSyncPluginOptions = {
|
|
116
116
|
/** Plugin name reported to the Intlayer engine (e.g. `sync-json`). */
|
|
117
117
|
name: string;
|
|
118
118
|
/** Transport used to enumerate, read and write entries. */
|
|
@@ -149,5 +149,4 @@ type CreateSyncPluginOptions = {
|
|
|
149
149
|
localeOverride?: Locale;
|
|
150
150
|
};
|
|
151
151
|
//#endregion
|
|
152
|
-
export { ContentAdapter, ContentEntry, ContentTarget, CreateSyncPluginOptions, FormatCodec, SyncContent, SyncDirection, SyncPluginContext };
|
|
153
152
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/syncPluginKit/types.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/syncPluginKit/types.ts"],"mappings":";;;;;;;YAOY,cAAc;;;;YAKd;EACV,eAAe;;;;;YAML;;EAEV;;EAEA,QAAQ;;;;;EAKR;;;;;;EAMA;;;;;YAMU;EACV;EACA,QAAQ;;;;;;;;YASE;;;;EAIV,OAAO,SAAS,sBAAsB,QAAQ;;;;;;EAO9C,OACE,OAAO,cACP,SAAS,sBACN,QAAQ;;;;;EAMb,QACE,QAAQ,eACR,SAAS,aACT,SAAS,sBACN;;;;;;;EAQL,cACE,QAAQ,eACR,SAAS,sBACN;;;;;;EAOL,kBAAkB,SAAS,sBAAsB;;;;;EAMjD,kBAAkB,SAAS,sBAAsB;;;;;;EAOjD,wBAAwB;;;;;;YAOd;;;;;EAKV,QAAQ,gBAAgB;;;;EAKxB,YAAY,SAAS,aAAa;IAAW,QAAQ;;;;;;;;YAQ3C;;;;YAKA;;EAEV;;EAGA,SAAS;;;;;EAMT,YAAY;;;;;;EAOZ;;;;;EAMA;;EAGA,SAAS;;;;;;;EAQT;;;;;EAMA,iBAAiB"}
|
|
@@ -7,7 +7,6 @@ type AutoTransformationOptions = {
|
|
|
7
7
|
/**
|
|
8
8
|
* Automatically decorate content strings with md() or insert() if they match
|
|
9
9
|
*/
|
|
10
|
-
declare const autoDecorateContent: (content: any, options?: boolean | AutoTransformationOptions) => any;
|
|
10
|
+
export declare const autoDecorateContent: (content: any, options?: boolean | AutoTransformationOptions) => any;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { autoDecorateContent };
|
|
13
12
|
//# sourceMappingURL=autoDecorateContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoDecorateContent.d.ts","names":[],"sources":["../../../src/utils/autoDecorateContent.ts"],"mappings":";KAwEK;EACH;EACA;EACA;;;;;
|
|
1
|
+
{"version":3,"file":"autoDecorateContent.d.ts","names":[],"sources":["../../../src/utils/autoDecorateContent.ts"],"mappings":";KAwEK;EACH;EACA;EACA;;;;;qBAMW,sBAAmB,cAClB,oBACO"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RecastParser } from "@intlayer/babel/babelParser";
|
|
2
2
|
//#region src/utils/babelParser.d.ts
|
|
3
3
|
/** Drop-in replacement for `recast/parsers/typescript` (TS without JSX). */
|
|
4
|
-
declare const typescriptParser: RecastParser;
|
|
4
|
+
export declare const typescriptParser: RecastParser;
|
|
5
5
|
/** Drop-in replacement for `recast/parsers/babel-ts` (TS *and* JSX). */
|
|
6
|
-
declare const babelTsParser: RecastParser;
|
|
6
|
+
export declare const babelTsParser: RecastParser;
|
|
7
7
|
//#endregion
|
|
8
|
-
export {
|
|
8
|
+
export type { RecastParser };
|
|
9
9
|
//# sourceMappingURL=babelParser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"babelParser.d.ts","names":[],"sources":["../../../src/utils/babelParser.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"babelParser.d.ts","names":[],"sources":["../../../src/utils/babelParser.ts"],"mappings":";;;qBA6Da,kBAAkB;;qBAKlB,eAAe"}
|
|
@@ -21,7 +21,6 @@ import { IntlayerConfig } from "@intlayer/types/config";
|
|
|
21
21
|
* // intlayer.config.ts: { content: { codeDir: ['node_modules/my-ds/src'] } }
|
|
22
22
|
* const files = buildComponentFilesList(config);
|
|
23
23
|
*/
|
|
24
|
-
declare const buildComponentFilesList: (config: IntlayerConfig, excludePattern?: string[]) => string[];
|
|
24
|
+
export declare const buildComponentFilesList: (config: IntlayerConfig, excludePattern?: string[]) => string[];
|
|
25
25
|
//#endregion
|
|
26
|
-
export { buildComponentFilesList };
|
|
27
26
|
//# sourceMappingURL=buildComponentFilesList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildComponentFilesList.d.ts","names":[],"sources":["../../../src/utils/buildComponentFilesList.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"buildComponentFilesList.d.ts","names":[],"sources":["../../../src/utils/buildComponentFilesList.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;qBAqEa,0BAAuB,QAC1B,gBAAc"}
|
|
@@ -3,7 +3,7 @@ import { IntlayerConfig } from "@intlayer/types/config";
|
|
|
3
3
|
/**
|
|
4
4
|
* Options for building the files list
|
|
5
5
|
*/
|
|
6
|
-
type BuildComponentFilesListOptions = {
|
|
6
|
+
export type BuildComponentFilesListOptions = {
|
|
7
7
|
/**
|
|
8
8
|
* Glob patterns to match files
|
|
9
9
|
*/
|
|
@@ -46,7 +46,7 @@ type BuildComponentFilesListOptions = {
|
|
|
46
46
|
* dot: true,
|
|
47
47
|
* });
|
|
48
48
|
*/
|
|
49
|
-
declare const buildComponentFilesList: (config: BuildComponentFilesListOptions) => string[];
|
|
49
|
+
export declare const buildComponentFilesList: (config: BuildComponentFilesListOptions) => string[];
|
|
50
50
|
/**
|
|
51
51
|
* Convenience wrapper that derives all file-list options directly from an
|
|
52
52
|
* `IntlayerConfig` object.
|
|
@@ -55,7 +55,6 @@ declare const buildComponentFilesList: (config: BuildComponentFilesListOptions)
|
|
|
55
55
|
* content declaration file extensions and any `compiler.excludePattern`
|
|
56
56
|
* entries defined in the configuration, and includes dot files.
|
|
57
57
|
*/
|
|
58
|
-
declare const buildComponentFilesListFromConfig: (intlayerConfig: IntlayerConfig) => string[];
|
|
58
|
+
export declare const buildComponentFilesListFromConfig: (intlayerConfig: IntlayerConfig) => string[];
|
|
59
59
|
//#endregion
|
|
60
|
-
export { BuildComponentFilesListOptions, buildComponentFilesList, buildComponentFilesListFromConfig };
|
|
61
60
|
//# sourceMappingURL=buildFilesList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildFilesList.d.ts","names":[],"sources":["../../../src/utils/buildFilesList.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"buildFilesList.d.ts","names":[],"sources":["../../../src/utils/buildFilesList.ts"],"mappings":";;;;;YAOY;;;;EAIV;;;;EAIA;;;;;;EAMA;;;;EAIA;;;;;;;;;;;;;;;;;;;;;;;;;qBAmDW,0BAAuB,QAC1B;;;;;;;;;qBAqDG,oCAAiC,gBAC5B"}
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* chunkArray(['a', 'b', 'c', 'd', 'e'], 2); // [['a', 'b'], ['c', 'd'], ['e']]
|
|
11
11
|
* ```
|
|
12
12
|
*/
|
|
13
|
-
declare const chunkArray: <T>(items: T[], chunkSize: number) => T[][];
|
|
13
|
+
export declare const chunkArray: <T>(items: T[], chunkSize: number) => T[][];
|
|
14
14
|
//#endregion
|
|
15
|
-
export { chunkArray };
|
|
16
15
|
//# sourceMappingURL=chunkArray.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunkArray.d.ts","names":[],"sources":["../../../src/utils/chunkArray.ts"],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"chunkArray.d.ts","names":[],"sources":["../../../src/utils/chunkArray.ts"],"mappings":";;;;;;;;;;;;qBAWa,aAAc,GAAC,OAAS,KAAG,sBAAsB"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
type JSONPrimitive = string | number | boolean | null;
|
|
10
10
|
type JSONValue = JSONPrimitive | JSONObject | JSONArray;
|
|
11
|
-
type JSONObject = {
|
|
11
|
+
export type JSONObject = {
|
|
12
12
|
[k: string]: JSONValue;
|
|
13
13
|
};
|
|
14
14
|
type JSONArray = JSONValue[];
|
|
@@ -27,7 +27,7 @@ type StrAppendPatch = {
|
|
|
27
27
|
};
|
|
28
28
|
type Patch = SetPatch | StrAppendPatch;
|
|
29
29
|
type RootType = 'object' | 'array';
|
|
30
|
-
type JsonChunk = {
|
|
30
|
+
export type JsonChunk = {
|
|
31
31
|
schemaVersion: 1;
|
|
32
32
|
index: number;
|
|
33
33
|
total: number;
|
|
@@ -38,7 +38,7 @@ type JsonChunk = {
|
|
|
38
38
|
/**
|
|
39
39
|
* Split JSON into chunks constrained by character count of serialized chunk.
|
|
40
40
|
*/
|
|
41
|
-
declare const chunkJSON: (value: JSONObject | JSONArray, maxChars: number) => JsonChunk[];
|
|
41
|
+
export declare const chunkJSON: (value: JSONObject | JSONArray, maxChars: number) => JsonChunk[];
|
|
42
42
|
/**
|
|
43
43
|
* Reassemble JSON from chunks.
|
|
44
44
|
* - Validates checksums and indices.
|
|
@@ -49,8 +49,7 @@ declare const chunkJSON: (value: JSONObject | JSONArray, maxChars: number) => Js
|
|
|
49
49
|
* Useful for processing individual chunks in a pipeline where you don't have all chunks yet.
|
|
50
50
|
* Note: This will only reconstruct the partial content contained in this chunk.
|
|
51
51
|
*/
|
|
52
|
-
declare const reconstructFromSingleChunk: (chunk: JsonChunk) => JSONObject | JSONArray;
|
|
53
|
-
declare const assembleJSON: (chunks: JsonChunk[]) => JSONObject | JSONArray;
|
|
52
|
+
export declare const reconstructFromSingleChunk: (chunk: JsonChunk) => JSONObject | JSONArray;
|
|
53
|
+
export declare const assembleJSON: (chunks: JsonChunk[]) => JSONObject | JSONArray;
|
|
54
54
|
//#endregion
|
|
55
|
-
export { JSONObject, JsonChunk, assembleJSON, chunkJSON, reconstructFromSingleChunk };
|
|
56
55
|
//# sourceMappingURL=chunkJSON.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunkJSON.d.ts","names":[],"sources":["../../../src/utils/chunkJSON.ts"],"mappings":";;;;;;;;KAUK;KACA,YAAY,gBAAgB,aAAa;
|
|
1
|
+
{"version":3,"file":"chunkJSON.d.ts","names":[],"sources":["../../../src/utils/chunkJSON.ts"],"mappings":";;;;;;;;KAUK;KACA,YAAY,gBAAgB,aAAa;YAElC;GACT,YAAY;;KAGV,YAAY;KAEZ,OAAO;KAEP;EAAa;EAAW,MAAM;EAAM,OAAO;;KAC3C;EACH;EACA,MAAM;EACN;EACA;EACA;;KAEG,QAAQ,WAAW;KAEnB;YAEO;EACV;EACA;EACA;EACA,UAAU;EACV;EACA,SAAS;;;;;qBAiME,YAAS,OACb,aAAa,WAAS,qBAE5B;;;;;;;;;;;qBAsHU,6BAA0B,OAC9B,cACN,aAAa;qBAiGH,eAAY,QAAY,gBAAc,aAAa"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
2
2
|
import { ANSIColorsType } from "@intlayer/config/logger";
|
|
3
3
|
//#region src/utils/formatter.d.ts
|
|
4
|
-
declare const formatPath: (path: string | string[], color?: ANSIColorsType | false) => string;
|
|
5
|
-
declare const formatLocale: (locale: LocalesValues | LocalesValues[], color?: ANSIColorsType | false) => string;
|
|
4
|
+
export declare const formatPath: (path: string | string[], color?: ANSIColorsType | false) => string;
|
|
5
|
+
export declare const formatLocale: (locale: LocalesValues | LocalesValues[], color?: ANSIColorsType | false) => string;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { formatLocale, formatPath };
|
|
8
7
|
//# sourceMappingURL=formatter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatter.d.ts","names":[],"sources":["../../../src/utils/formatter.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"formatter.d.ts","names":[],"sources":["../../../src/utils/formatter.ts"],"mappings":";;;qBAYa,aAAU,yBACE,QACf;qBAYG,eAAY,QACf,gBAAgB,iBAAe,QAChC"}
|
|
@@ -5,7 +5,6 @@ type TrunkOptions = {
|
|
|
5
5
|
charStart?: number;
|
|
6
6
|
charLength?: number;
|
|
7
7
|
};
|
|
8
|
-
declare const getChunk: (text: string, options?: TrunkOptions) => string;
|
|
8
|
+
export declare const getChunk: (text: string, options?: TrunkOptions) => string;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { getChunk };
|
|
11
10
|
//# sourceMappingURL=getChunk.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getChunk.d.ts","names":[],"sources":["../../../src/utils/getChunk.ts"],"mappings":";KAEK;EACH;EACA;EACA;EACA;;
|
|
1
|
+
{"version":3,"file":"getChunk.d.ts","names":[],"sources":["../../../src/utils/getChunk.ts"],"mappings":";KAEK;EACH;EACA;EACA;EACA;;qBAGW,WAAQ,cAAgB,UAAW"}
|
|
@@ -8,7 +8,6 @@ import { IntlayerConfig } from "@intlayer/types/config";
|
|
|
8
8
|
* format 'ts' -> '.content.ts'
|
|
9
9
|
* format 'esm' -> '.content.js' (if matching .content.js is found in config)
|
|
10
10
|
*/
|
|
11
|
-
declare const getContentExtension: (format: 'ts' | 'esm' | 'cjs' | 'json' | 'jsonc' | 'json5' | (string & {}), configuration: IntlayerConfig) => string;
|
|
11
|
+
export declare const getContentExtension: (format: 'ts' | 'esm' | 'cjs' | 'json' | 'jsonc' | 'json5' | (string & {}), configuration: IntlayerConfig) => string;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { getContentExtension };
|
|
14
13
|
//# sourceMappingURL=getContentExtension.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getContentExtension.d.ts","names":[],"sources":["../../../src/utils/getContentExtension.ts"],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getContentExtension.d.ts","names":[],"sources":["../../../src/utils/getContentExtension.ts"],"mappings":";;;;;;;;;;qBAUa,sBAAmB,2EAC2C,eAC1D"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
//#region src/utils/getFormatFromExtension.d.ts
|
|
2
|
-
type Format = 'ts' | 'cjs' | 'esm' | 'json' | 'jsonc' | 'json5' | 'md' | 'yaml';
|
|
3
|
-
type Extension = '.ts' | '.tsx' | '.js' | '.jsx' | '.cjs' | '.cjsx' | '.mjs' | '.mjsx' | '.json' | '.jsonc' | '.json5' | '.md' | '.mdx' | '.yaml' | '.yml';
|
|
4
|
-
declare const getFormatFromExtension: (extension: Extension | (string & {})) => Format;
|
|
5
|
-
declare const getExtensionFromFormat: (format: Format | (string & {})) => Extension;
|
|
2
|
+
export type Format = 'ts' | 'cjs' | 'esm' | 'json' | 'jsonc' | 'json5' | 'md' | 'yaml';
|
|
3
|
+
export type Extension = '.ts' | '.tsx' | '.js' | '.jsx' | '.cjs' | '.cjsx' | '.mjs' | '.mjsx' | '.json' | '.jsonc' | '.json5' | '.md' | '.mdx' | '.yaml' | '.yml';
|
|
4
|
+
export declare const getFormatFromExtension: (extension: Extension | (string & {})) => Format;
|
|
5
|
+
export declare const getExtensionFromFormat: (format: Format | (string & {})) => Extension;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { Extension, Format, getExtensionFromFormat, getFormatFromExtension };
|
|
8
7
|
//# sourceMappingURL=getFormatFromExtension.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFormatFromExtension.d.ts","names":[],"sources":["../../../src/utils/getFormatFromExtension.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"getFormatFromExtension.d.ts","names":[],"sources":["../../../src/utils/getFormatFromExtension.ts"],"mappings":";YAAY;YAUA;qBAiBC,yBAAsB,WACtB,8BACV;qBA4BU,yBAAsB,QACzB,2BACP"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Fast hashing using cyrb53 algorithm for small unique strings with low collisions risk
|
|
4
4
|
*/
|
|
5
|
-
declare const getPathHash: (filePath: string) => string;
|
|
5
|
+
export declare const getPathHash: (filePath: string) => string;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { getPathHash };
|
|
8
7
|
//# sourceMappingURL=getPathHash.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPathHash.d.ts","names":[],"sources":["../../../src/utils/getPathHash.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"getPathHash.d.ts","names":[],"sources":["../../../src/utils/getPathHash.ts"],"mappings":";;;;qBAGa,cAAW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergeChunks.d.ts","names":[],"sources":["../../../src/utils/mergeChunks.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"mergeChunks.d.ts","names":[],"sources":["../../../src/utils/mergeChunks.ts"],"mappings":";qBAAa,cAAW"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/utils/pLimit.d.ts
|
|
2
|
-
declare class Queue<T> {
|
|
2
|
+
export declare class Queue<T> {
|
|
3
3
|
#private;
|
|
4
4
|
constructor();
|
|
5
5
|
enqueue(value: T): void;
|
|
@@ -10,7 +10,6 @@ declare class Queue<T> {
|
|
|
10
10
|
[Symbol.iterator](): Generator<T, void, unknown>;
|
|
11
11
|
drain(): Generator<T | undefined, void, unknown>;
|
|
12
12
|
}
|
|
13
|
-
declare const pLimit: (concurrency: number) => (fn: (...args: any[]) => Promise<any>, ...arguments_: any[]) => Promise<any>;
|
|
13
|
+
export declare const pLimit: (concurrency: number) => (fn: (...args: any[]) => Promise<any>, ...arguments_: any[]) => Promise<any>;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { Queue, pLimit };
|
|
16
15
|
//# sourceMappingURL=pLimit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pLimit.d.ts","names":[],"sources":["../../../src/utils/pLimit.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"pLimit.d.ts","names":[],"sources":["../../../src/utils/pLimit.ts"],"mappings":";qBAca,MAAM;;EAKjB;EAIA,QAAQ,OAAO;EAcf,WAAW;EAWX,QAAQ;EAWR;MAMI;GAIF,OAAO,aAAa,UAAU;EAS/B,SAAS,UAAU;;qBAOT,SAAM,yBAAuB,QAkE9B,gBAAgB,iBAAY,sBAEnC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region src/utils/parallelize.d.ts
|
|
2
|
-
declare const parallelize: <T, R>(items: T[], callback?: (item: T) => Promise<R>, parallelLimit?: number) => Promise<R[]>;
|
|
2
|
+
export declare const parallelize: <T, R>(items: T[], callback?: (item: T) => Promise<R>, parallelLimit?: number) => Promise<R[]>;
|
|
3
3
|
//#endregion
|
|
4
|
-
export { parallelize };
|
|
5
4
|
//# sourceMappingURL=parallelize.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parallelize.d.ts","names":[],"sources":["../../../src/utils/parallelize.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"parallelize.d.ts","names":[],"sources":["../../../src/utils/parallelize.ts"],"mappings":";qBAEa,cAAqB,GAAG,GAAC,OAC7B,KAAG,YACC,MAAM,MAAM,QAAQ,IAAE,2BAGhC,QAAQ"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { pLimit } from "./pLimit.js";
|
|
2
2
|
//#region src/utils/parallelizeGlobal.d.ts
|
|
3
3
|
/** Get (and optionally configure) the single, shared limiter. */
|
|
4
|
-
declare const getGlobalLimiter: (concurrency?: number) => (fn: (...args: any[]) => Promise<any>, ...arguments_: any[]) => Promise<any>;
|
|
4
|
+
export declare const getGlobalLimiter: (concurrency?: number) => (fn: (...args: any[]) => Promise<any>, ...arguments_: any[]) => Promise<any>;
|
|
5
5
|
/** Limits how many *tasks* run concurrently (independent from AI calls). */
|
|
6
|
-
declare const getTaskLimiter: (concurrency?: number) => (fn: (...args: any[]) => Promise<any>, ...arguments_: any[]) => Promise<any>;
|
|
7
|
-
declare const parallelizeGlobal: <T, R>(items: T[], callback?: (item: T, index: number) => Promise<R>, options?: {
|
|
6
|
+
export declare const getTaskLimiter: (concurrency?: number) => (fn: (...args: any[]) => Promise<any>, ...arguments_: any[]) => Promise<any>;
|
|
7
|
+
export declare const parallelizeGlobal: <T, R>(items: T[], callback?: (item: T, index: number) => Promise<R>, options?: {
|
|
8
8
|
/** Share a single limiter across the app. If omitted, uses global limiter. */
|
|
9
9
|
limiter?: ReturnType<typeof pLimit>;
|
|
10
10
|
/** If provided and no limiter is passed, configure the global limiter. */
|
|
@@ -17,5 +17,4 @@ declare const parallelizeGlobal: <T, R>(items: T[], callback?: (item: T, index:
|
|
|
17
17
|
wrapInLimiter?: boolean;
|
|
18
18
|
}) => Promise<R[]>;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { getGlobalLimiter, getTaskLimiter, parallelizeGlobal };
|
|
21
20
|
//# sourceMappingURL=parallelizeGlobal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parallelizeGlobal.d.ts","names":[],"sources":["../../../src/utils/parallelizeGlobal.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"parallelizeGlobal.d.ts","names":[],"sources":["../../../src/utils/parallelizeGlobal.ts"],"mappings":";;;qBAQa,mBAAgB,0BAAwB,QAAA,gBAAA,iBAAA,sBAAA;;qBAaxC,iBAAc,0BAAwB,QAAA,gBAAA,iBAAA,sBAAA;qBAUtC,oBAA2B,GAAG,GAAC,OACnC,KAAG,YACC,MAAM,GAAG,kBAAkB,QAAQ,IAAE;;EAI9C,UAAU,kBAAkB;;EAE5B;;;;;;EAMA;MAED,QAAQ"}
|