@intlayer/engine 9.7.1 → 9.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_virtual/_utils_asset.cjs +1 -1
- package/dist/cjs/build.cjs +8 -8
- package/dist/cjs/buildIntlayerDictionary/writeDynamicDictionary.cjs +3 -3
- package/dist/cjs/buildIntlayerDictionary/writeFetchDictionary.cjs +2 -2
- package/dist/cjs/buildIntlayerDictionary/writeMergedDictionary.cjs +2 -2
- package/dist/cjs/buildIntlayerDictionary/writeNestedDictionary.cjs +2 -2
- package/dist/cjs/buildIntlayerDictionary/writeRemoteDictionary.cjs +2 -2
- package/dist/cjs/buildIntlayerDictionary/writeUnmergedDictionary.cjs +2 -2
- package/dist/cjs/cleanOutputDir.cjs +1 -1
- package/dist/cjs/cleanRemovedContentDeclaration.cjs +1 -1
- package/dist/cjs/cli.cjs +5 -2
- package/dist/cjs/createDictionaryEntryPoint/createDictionaryEntryPoint.cjs +1 -1
- package/dist/cjs/createDictionaryEntryPoint/getBuiltDictionariesPath.cjs +2 -2
- package/dist/cjs/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.cjs +2 -2
- package/dist/cjs/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.cjs +2 -2
- package/dist/cjs/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.cjs +2 -2
- package/dist/cjs/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.cjs +2 -2
- package/dist/cjs/createType/createModuleAugmentation.cjs +1 -1
- package/dist/cjs/createType/createType.cjs +1 -1
- package/dist/cjs/docReview/pipeline.cjs.map +1 -1
- package/dist/cjs/fetchDistantDictionaries.cjs.map +1 -1
- package/dist/cjs/handleContentDeclarationFileChange.cjs +2 -2
- package/dist/cjs/init/documentationRouter.cjs +1 -0
- package/dist/cjs/init/documentationRouter.cjs.map +1 -1
- package/dist/cjs/init/frameworkSetup/nextAppRouter/index.cjs +1 -1
- package/dist/cjs/init/frameworkSetup/nextAppRouter/restructure.cjs +1 -1
- package/dist/cjs/init/frameworkSetup/tanstackStart/index.cjs +1 -1
- package/dist/cjs/init/frameworkSetup/tanstackStart/restructure.cjs +1 -1
- package/dist/cjs/init/index.cjs +47 -3
- package/dist/cjs/init/index.cjs.map +1 -1
- package/dist/cjs/init/utils/fileSystem.cjs +2 -2
- package/dist/cjs/init/utils/githubActions.cjs +1 -1
- package/dist/cjs/init/utils/index.cjs +6 -0
- package/dist/cjs/init/utils/intlayerDependencies.cjs +2 -2
- package/dist/cjs/init/utils/packageManager.cjs +3 -1
- package/dist/cjs/init/utils/packageManager.cjs.map +1 -1
- package/dist/cjs/init/utils/prettierConfig.cjs +54 -0
- package/dist/cjs/init/utils/prettierConfig.cjs.map +1 -0
- package/dist/cjs/initConfig/index.cjs +1 -1
- package/dist/cjs/initConfig/index.cjs.map +1 -1
- package/dist/cjs/installLSP.cjs +1 -1
- package/dist/cjs/installMCP/installMCP.cjs +1 -1
- package/dist/cjs/installSkills/index.cjs +1 -1
- package/dist/cjs/installSkills/index.cjs.map +1 -1
- package/dist/cjs/listGitFiles.cjs +1 -1
- package/dist/cjs/listGitFiles.cjs.map +1 -1
- package/dist/cjs/loadDictionaries/getIntlayerBundle.cjs +1 -1
- package/dist/cjs/loadDictionaries/loadContentDeclaration.cjs +1 -1
- package/dist/cjs/loadDictionaries/loadLocalDictionaries.cjs +1 -1
- package/dist/cjs/loadDictionaries/log.cjs +1 -1
- package/dist/cjs/loadDictionaries/logTypeScriptErrors.cjs.map +1 -1
- package/dist/cjs/prepareIntlayer.cjs +2 -2
- package/dist/cjs/prepareIntlayer.cjs.map +1 -1
- package/dist/cjs/scan/index.cjs +1 -1
- package/dist/cjs/syncPluginKit/createFileAdapter.cjs +1 -1
- package/dist/cjs/utils/buildComponentFilesList.cjs +1 -1
- package/dist/cjs/utils/contentWatcherLock.cjs +2 -2
- package/dist/cjs/utils/readDictionariesFromDisk.cjs +1 -1
- package/dist/cjs/utils/runOnce.cjs +2 -2
- package/dist/cjs/utils/withFileLock.cjs +2 -2
- package/dist/cjs/watcher.cjs +4 -4
- package/dist/cjs/watcher.cjs.map +1 -1
- package/dist/cjs/writeConfiguration/index.cjs +2 -2
- package/dist/cjs/writeContentDeclaration/processContentDeclarationContent.cjs +1 -1
- package/dist/cjs/writeContentDeclaration/writeContentDeclaration.cjs +2 -2
- package/dist/cjs/writeContentDeclaration/writeJSFile.cjs +2 -2
- package/dist/cjs/writeContentDeclaration/writeMarkdownFile.cjs +1 -1
- package/dist/cjs/writeContentDeclaration/writeYamlFile.cjs +1 -1
- package/dist/cjs/writeFileIfChanged.cjs +2 -2
- package/dist/esm/_virtual/_utils_asset.mjs +1 -1
- package/dist/esm/build.mjs +8 -8
- package/dist/esm/buildIntlayerDictionary/writeDynamicDictionary.mjs +3 -3
- package/dist/esm/buildIntlayerDictionary/writeFetchDictionary.mjs +2 -2
- package/dist/esm/buildIntlayerDictionary/writeMergedDictionary.mjs +2 -2
- package/dist/esm/buildIntlayerDictionary/writeNestedDictionary.mjs +2 -2
- package/dist/esm/buildIntlayerDictionary/writeRemoteDictionary.mjs +2 -2
- package/dist/esm/buildIntlayerDictionary/writeUnmergedDictionary.mjs +2 -2
- package/dist/esm/cleanOutputDir.mjs +1 -1
- package/dist/esm/cleanRemovedContentDeclaration.mjs +1 -1
- package/dist/esm/cli.mjs +4 -3
- package/dist/esm/createDictionaryEntryPoint/createDictionaryEntryPoint.mjs +1 -1
- package/dist/esm/createDictionaryEntryPoint/getBuiltDictionariesPath.mjs +2 -2
- package/dist/esm/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.mjs +2 -2
- package/dist/esm/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.mjs +2 -2
- package/dist/esm/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.mjs +2 -2
- package/dist/esm/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.mjs +2 -2
- package/dist/esm/createType/createModuleAugmentation.mjs +1 -1
- package/dist/esm/createType/createType.mjs +1 -1
- package/dist/esm/docReview/pipeline.mjs.map +1 -1
- package/dist/esm/fetchDistantDictionaries.mjs.map +1 -1
- package/dist/esm/handleContentDeclarationFileChange.mjs +2 -2
- package/dist/esm/init/documentationRouter.mjs +1 -0
- package/dist/esm/init/documentationRouter.mjs.map +1 -1
- package/dist/esm/init/frameworkSetup/nextAppRouter/index.mjs +1 -1
- package/dist/esm/init/frameworkSetup/nextAppRouter/restructure.mjs +1 -1
- package/dist/esm/init/frameworkSetup/tanstackStart/index.mjs +1 -1
- package/dist/esm/init/frameworkSetup/tanstackStart/restructure.mjs +1 -1
- package/dist/esm/init/index.mjs +47 -3
- package/dist/esm/init/index.mjs.map +1 -1
- package/dist/esm/init/utils/fileSystem.mjs +2 -2
- package/dist/esm/init/utils/githubActions.mjs +1 -1
- package/dist/esm/init/utils/index.mjs +2 -1
- package/dist/esm/init/utils/intlayerDependencies.mjs +2 -2
- package/dist/esm/init/utils/packageManager.mjs +3 -1
- package/dist/esm/init/utils/packageManager.mjs.map +1 -1
- package/dist/esm/init/utils/prettierConfig.mjs +49 -0
- package/dist/esm/init/utils/prettierConfig.mjs.map +1 -0
- package/dist/esm/initConfig/index.mjs +1 -1
- package/dist/esm/initConfig/index.mjs.map +1 -1
- package/dist/esm/installLSP.mjs +1 -1
- package/dist/esm/installMCP/installMCP.mjs +1 -1
- package/dist/esm/installSkills/index.mjs +1 -1
- package/dist/esm/installSkills/index.mjs.map +1 -1
- package/dist/esm/listGitFiles.mjs +1 -1
- package/dist/esm/listGitFiles.mjs.map +1 -1
- package/dist/esm/loadDictionaries/getIntlayerBundle.mjs +1 -1
- package/dist/esm/loadDictionaries/loadContentDeclaration.mjs +1 -1
- package/dist/esm/loadDictionaries/loadLocalDictionaries.mjs +1 -1
- package/dist/esm/loadDictionaries/log.mjs +1 -1
- package/dist/esm/loadDictionaries/logTypeScriptErrors.mjs.map +1 -1
- package/dist/esm/prepareIntlayer.mjs +2 -2
- package/dist/esm/prepareIntlayer.mjs.map +1 -1
- package/dist/esm/scan/index.mjs +1 -1
- package/dist/esm/syncPluginKit/createFileAdapter.mjs +1 -1
- package/dist/esm/utils/buildComponentFilesList.mjs +1 -1
- package/dist/esm/utils/contentWatcherLock.mjs +2 -2
- package/dist/esm/utils/readDictionariesFromDisk.mjs +1 -1
- package/dist/esm/utils/runOnce.mjs +2 -2
- package/dist/esm/utils/withFileLock.mjs +2 -2
- package/dist/esm/watcher.mjs +4 -4
- package/dist/esm/watcher.mjs.map +1 -1
- package/dist/esm/writeConfiguration/index.mjs +2 -2
- package/dist/esm/writeContentDeclaration/processContentDeclarationContent.mjs +1 -1
- package/dist/esm/writeContentDeclaration/writeContentDeclaration.mjs +2 -2
- package/dist/esm/writeContentDeclaration/writeJSFile.mjs +2 -2
- package/dist/esm/writeContentDeclaration/writeMarkdownFile.mjs +1 -1
- package/dist/esm/writeContentDeclaration/writeYamlFile.mjs +1 -1
- package/dist/esm/writeFileIfChanged.mjs +2 -2
- package/dist/types/build.d.ts +17 -17
- package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts.map +1 -1
- package/dist/types/cli.d.ts +12 -10
- package/dist/types/docReview/pipeline.d.ts.map +1 -1
- package/dist/types/init/documentationRouter.d.ts +1 -0
- package/dist/types/init/documentationRouter.d.ts.map +1 -1
- package/dist/types/init/index.d.ts +2 -0
- package/dist/types/init/index.d.ts.map +1 -1
- package/dist/types/init/utils/index.d.ts +2 -1
- package/dist/types/init/utils/packageManager.d.ts +5 -0
- package/dist/types/init/utils/packageManager.d.ts.map +1 -1
- package/dist/types/init/utils/prettierConfig.d.ts +28 -0
- package/dist/types/init/utils/prettierConfig.d.ts.map +1 -0
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +1 -1
- package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts.map +1 -1
- package/dist/types/scan/detection/index.d.ts +4 -0
- package/dist/types/scan/index.d.ts +5 -4
- package/dist/types/watcher.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts +1 -1
- package/package.json +69 -69
|
@@ -137,6 +137,11 @@ export type DetectMissingPackagesOptions = {
|
|
|
137
137
|
* lint step is not part of the setup.
|
|
138
138
|
*/
|
|
139
139
|
skipLintPlugin?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Skip `prettier-plugin-intlayer`, even when the project formats with
|
|
142
|
+
* Prettier. Set when the Prettier step is not part of the setup.
|
|
143
|
+
*/
|
|
144
|
+
skipPrettierPlugin?: boolean;
|
|
140
145
|
};
|
|
141
146
|
/** An existing i18n library Intlayer ships a compat adapter for. */
|
|
142
147
|
export type CompatI18nLibrary = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageManager.d.ts","names":[],"sources":["../../../../src/init/utils/packageManager.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"packageManager.d.ts","names":[],"sources":["../../../../src/init/utils/packageManager.ts"],"mappings":";YAOY;;;;;YAMA;;;;;;;EAOV;;;;;;EAMA;;;;;EAKA;;;;;;;;;;;;;;;EAeA;;;;;;;YAQU;;EAEV;;EAEA;;;;;;;;EAQA;;IAEE;;IAEA;;;;YAKQ;;EAEV;;EAEA;;EAEA;;;;;;EAMA,kBAAkB;;;;;;EAMlB,wBAAwB;;;;;;EAMxB;;;;;;;;qBASW,yBAAyB;;;;;;qBAiDzB,uBAAoB,oBAAsB;;;;;;qBAY1C,kBAAe;;;;;;;YA2ChB;;;;;;EAMV;;;;;;EAMA,eAAe;;;;EAIf,kBAAkB;;;;;EAKlB;;;;;EAKA;;;YAIU;;EAEV;;;;;;EAMA;;;;;EAKA,cAAc;;;;;;;;qBASH,gCAAgC;;;;;qBA+GhC,6BAA6B;;;;;;;;qBAc7B,sCAAmC,aACjC;;;;;;;;;;qBA8BF,4BAAyB,cACtB;;qBAOH;;;;;;;;;qBAUA,kBAAe,cACZ;;;;;;;;;;;qBAiBH,iBAAc,cAAkB;qBAIhC,gCAA6B,iBACvB,wBAAsB,UAC9B,iCACR;;;;;qBA8ZU,kBAAe,iBACX,oBACG,gBACF,gBAAc;;;;;;;;;;qBAgBnB,wBAAqB;;;;;;;;qBAarB,mBAAgB;;;;;;qBAahB,oBAAiB,iBACb,gBACC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Intlayer Prettier setup, as `intlayer init prettier` writes it.
|
|
3
|
+
*
|
|
4
|
+
* Declared locally: `@intlayer/engine` must not depend on the Prettier plugin
|
|
5
|
+
* just to write its name into a JSON file.
|
|
6
|
+
*/
|
|
7
|
+
export declare const PRETTIER_PLUGIN_PACKAGE_NAME = "prettier-plugin-intlayer";
|
|
8
|
+
/**
|
|
9
|
+
* Prettier config files holding JSON (`.prettierrc` may also be YAML: it is
|
|
10
|
+
* only patched when it parses as JSON).
|
|
11
|
+
*/
|
|
12
|
+
export declare const JSON_PRETTIER_CONFIG_FILES: string[];
|
|
13
|
+
/** Every Prettier config file name, JSON or not. */
|
|
14
|
+
export declare const PRETTIER_CONFIG_FILES: string[];
|
|
15
|
+
/** The Prettier config fields init reads and writes. */
|
|
16
|
+
export type PrettierConfig = {
|
|
17
|
+
plugins?: unknown[];
|
|
18
|
+
[option: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
/** True when the project formats with Prettier. */
|
|
21
|
+
export declare const hasPrettier: (dependencies: Record<string, string>) => boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Adds the Intlayer plugin to a Prettier config, in place.
|
|
24
|
+
*
|
|
25
|
+
* @returns Whether the plugin was added.
|
|
26
|
+
*/
|
|
27
|
+
export declare const addIntlayerPluginToPrettierConfig: (prettierConfig: PrettierConfig) => boolean;
|
|
28
|
+
//# sourceMappingURL=prettierConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prettierConfig.d.ts","names":[],"sources":["../../../../src/init/utils/prettierConfig.ts"],"mappings":";;;;;;qBAMa;;;;;qBAMA;;qBAGA;;YAqBD;EACV;GACC;;;qBAIU,cAAW,cAAkB;;;;;;qBAQ7B,oCAAiC,gBAC5B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DictionariesStatus } from "./loadDictionaries.js";
|
|
2
|
-
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
2
|
import { DictionaryAPI } from "@intlayer/api";
|
|
3
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
4
|
export declare const formatDistantDictionaries: (dictionaries: (DictionaryAPI | Dictionary)[]) => Dictionary[];
|
|
5
5
|
export declare const loadRemoteDictionaries: (configuration?: import("@intlayer/types").IntlayerConfig, onStatusUpdate?: (status: DictionariesStatus[]) => void, options?: {
|
|
6
6
|
onStartRemoteCheck?: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logTypeScriptErrors.d.ts","names":[],"sources":["../../../src/loadDictionaries/logTypeScriptErrors.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"logTypeScriptErrors.d.ts","names":[],"sources":["../../../src/loadDictionaries/logTypeScriptErrors.ts"],"mappings":";;;;;qBAqRa,sBAAmB,qBACX,eACJ,mBACd"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browser-safe scan helpers (no Node built-ins, no logger), exported on their
|
|
3
|
+
* own sub-path so the Chrome extension can bundle them.
|
|
4
|
+
*/
|
|
1
5
|
import { CheckDetailParts, getCheckDetailLines, splitCheckDetails } from "./checkDetails.js";
|
|
2
6
|
import { LinkAnchor, LinkClassification, LinkClassificationInput, classifyInternalLinks } from "./classifyInternalLinks.js";
|
|
3
7
|
import { RoutingDetection, RoutingDetectionInput, RoutingStrategy, detectRoutingStrategy, getUrlLocale } from "./detectRoutingStrategy.js";
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { analyzeBundleContent } from "./analyzeBundleContent.js";
|
|
2
2
|
import { RoutingDetection, RoutingDetectionInput, RoutingStrategy, detectRoutingStrategy, getUrlLocale } from "./detection/detectRoutingStrategy.js";
|
|
3
|
-
import { TechnologyCategory, TechnologySignature, technologySignatures } from "./detection/technologySignatures.js";
|
|
4
|
-
import { DetectedTechnology, TechnologyDetectionInput, detectTechnologies, getTechnologyGlobalNames } from "./detection/detectTechnologies.js";
|
|
5
3
|
import { ScorableEvent, Score, ScoreCheckType, mutateScore, scoreRecord, toScorePercent } from "./calculateScore.js";
|
|
6
4
|
import { EmitScanEvent, PageSignals, checkBundleContent, checkCanonical, checkHreflang, checkHreflangReciprocity, checkHtmlDir, checkHtmlLang, checkInternalLinks, checkLocaleConsistency, checkOgLocale, checkRobots, checkSitemap, checkXDefault, formatBundleAnalysis, formatSize } from "./checks.js";
|
|
5
|
+
import { TechnologyCategory, TechnologySignature, technologySignatures } from "./detection/technologySignatures.js";
|
|
6
|
+
import { DetectedTechnology, TechnologyDetectionInput, detectTechnologies, getTechnologyGlobalNames } from "./detection/detectTechnologies.js";
|
|
7
|
+
import "./detection/index.js";
|
|
7
8
|
import { FetchTextResult, ScanFetchOptions, fetchText } from "./fetchText.js";
|
|
8
9
|
import { Anchor, HreflangLink, byteLength, extractAnchors, extractCanonicalHref, extractHreflangs, extractHtmlDir, extractHtmlLang, extractMetaDescription, extractOgImage, extractOgLocale, extractOgLocaleAlternates, extractResourceUrls, extractScriptUrls, extractTitle, extractVisibleTextStrings, hasCanonical } from "./parseHtml.js";
|
|
9
10
|
import { ParsedRobots, isPathAllowedByRobots, parseRobots } from "./robots.js";
|
|
11
|
+
import { RunScanChecksOptions, ScanChecksResult, ScanPageInfo, ScanPageInput, runScanChecks } from "./runScanChecks.js";
|
|
12
|
+
import { scanWebsite } from "./scanWebsite.js";
|
|
10
13
|
import { CheckDetailParts, getCheckDetailLines, splitCheckDetails } from "./detection/checkDetails.js";
|
|
11
14
|
import { LinkAnchor, LinkClassification, LinkClassificationInput, classifyInternalLinks } from "./detection/classifyInternalLinks.js";
|
|
12
15
|
import { findMatchingLocale, getLanguageCode, isRightToLeftLocale, isSameLanguage, isSameLocale, isValidLocaleCode, isValidOpenGraphLocale, looksLikeLocaleCode, normalizeLocaleCode, toOpenGraphLocale } from "./detection/localeCode.js";
|
|
13
16
|
import { BaseLocalePageInput, LocalizedPage, getLocalizedPages, isBaseLocalePage } from "./detection/localizedPages.js";
|
|
14
17
|
import { getFirstPathSegment, getSiteDomain, isAbsoluteUrl, normalizeHostname, normalizeUrl, parseUrl, toAbsoluteScanUrl } from "./detection/url.js";
|
|
15
|
-
import { RunScanChecksOptions, ScanChecksResult, ScanPageInfo, ScanPageInput, runScanChecks } from "./runScanChecks.js";
|
|
16
|
-
import { scanWebsite } from "./scanWebsite.js";
|
|
17
18
|
import { CollectedSitemaps, ParsedSitemap, SitemapEntry, collectSitemapEntries, discoverSitemapUrls, getDefaultSitemapUrls, parseSitemap } from "./sitemap.js";
|
|
18
19
|
import { BundleChunkInput, BundleContentAnalysis, ChunkAnalysis, PageMetadata, ScanCheckStatus, ScanEvent, ScanEventDetails, ScanMode, ScanOptions, ScanResult } from "./types.js";
|
|
19
20
|
export { Anchor, BaseLocalePageInput, BundleChunkInput, BundleContentAnalysis, CheckDetailParts, ChunkAnalysis, CollectedSitemaps, DetectedTechnology, EmitScanEvent, FetchTextResult, HreflangLink, LinkAnchor, LinkClassification, LinkClassificationInput, LocalizedPage, PageMetadata, PageSignals, ParsedRobots, ParsedSitemap, RoutingDetection, RoutingDetectionInput, RoutingStrategy, RunScanChecksOptions, ScanCheckStatus, ScanChecksResult, ScanEvent, ScanEventDetails, ScanFetchOptions, ScanMode, ScanOptions, ScanPageInfo, ScanPageInput, ScanResult, ScorableEvent, Score, ScoreCheckType, SitemapEntry, TechnologyCategory, TechnologyDetectionInput, TechnologySignature, analyzeBundleContent, byteLength, checkBundleContent, checkCanonical, checkHreflang, checkHreflangReciprocity, checkHtmlDir, checkHtmlLang, checkInternalLinks, checkLocaleConsistency, checkOgLocale, checkRobots, checkSitemap, checkXDefault, classifyInternalLinks, collectSitemapEntries, detectRoutingStrategy, detectTechnologies, discoverSitemapUrls, extractAnchors, extractCanonicalHref, extractHreflangs, extractHtmlDir, extractHtmlLang, extractMetaDescription, extractOgImage, extractOgLocale, extractOgLocaleAlternates, extractResourceUrls, extractScriptUrls, extractTitle, extractVisibleTextStrings, fetchText, findMatchingLocale, formatBundleAnalysis, formatSize, getCheckDetailLines, getDefaultSitemapUrls, getFirstPathSegment, getLanguageCode, getLocalizedPages, getSiteDomain, getTechnologyGlobalNames, getUrlLocale, hasCanonical, isAbsoluteUrl, isBaseLocalePage, isPathAllowedByRobots, isRightToLeftLocale, isSameLanguage, isSameLocale, isValidLocaleCode, isValidOpenGraphLocale, looksLikeLocaleCode, mutateScore, normalizeHostname, normalizeLocaleCode, normalizeUrl, parseRobots, parseSitemap, parseUrl, runScanChecks, scanWebsite, scoreRecord, splitCheckDetails, technologySignatures, toAbsoluteScanUrl, toOpenGraphLocale, toScorePercent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watcher.d.ts","names":[],"sources":["../../src/watcher.ts"],"mappings":";;KA4DK;EACH,gBAAgB;EAChB,gBAAgB;EAChB;EACA;;qBAsBW,QAAK,UAAoB,iBAAY;EAkDZ,mBAAM;;
|
|
1
|
+
{"version":3,"file":"watcher.d.ts","names":[],"sources":["../../src/watcher.ts"],"mappings":";;KA4DK;EACH,gBAAgB;EAChB,gBAAgB;EAChB;EACA;;qBAsBW,QAAK,UAAoB,iBAAY;EAkDZ,mBAAM;;qBAuS/B,wBAAqB,UAAoB,iBAAY"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DictionaryStatus } from "./dictionaryStatus.js";
|
|
2
2
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
3
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
|
-
import { Locale } from "@intlayer/types/allLocales";
|
|
5
4
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
5
|
+
import { Locale } from "@intlayer/types/allLocales";
|
|
6
6
|
type WriteContentDeclarationOptions = {
|
|
7
7
|
newDictionariesPath?: string;
|
|
8
8
|
localeList?: LocalesValues[];
|
package/package.json
CHANGED
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/engine",
|
|
3
|
-
"version": "9.7.
|
|
3
|
+
"version": "9.7.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Scans and builds Intlayer declaration files into dictionaries based on Intlayer configuration.",
|
|
6
6
|
"keywords": [
|
|
7
|
-
"intlayer",
|
|
8
|
-
"watcher",
|
|
9
7
|
"application",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
8
|
+
"file",
|
|
9
|
+
"intlayer",
|
|
12
10
|
"javascript",
|
|
13
11
|
"json",
|
|
14
|
-
"
|
|
12
|
+
"transpile",
|
|
13
|
+
"typescript",
|
|
14
|
+
"watcher"
|
|
15
15
|
],
|
|
16
16
|
"homepage": "https://intlayer.org",
|
|
17
17
|
"bugs": {
|
|
18
18
|
"url": "https://github.com/aymericzip/intlayer/issues"
|
|
19
19
|
},
|
|
20
|
-
"repository": {
|
|
21
|
-
"type": "git",
|
|
22
|
-
"url": "git+https://github.com/aymericzip/intlayer.git"
|
|
23
|
-
},
|
|
24
20
|
"license": "Apache-2.0",
|
|
25
21
|
"author": {
|
|
26
22
|
"name": "Aymeric PINEAU",
|
|
@@ -33,7 +29,58 @@
|
|
|
33
29
|
"url": "https://github.com/aymericzip"
|
|
34
30
|
}
|
|
35
31
|
],
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/aymericzip/intlayer.git"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"./dist",
|
|
38
|
+
"./package.json"
|
|
39
|
+
],
|
|
36
40
|
"sideEffects": false,
|
|
41
|
+
"main": "dist/cjs/index.cjs",
|
|
42
|
+
"module": "dist/esm/index.mjs",
|
|
43
|
+
"types": "dist/types/index.d.ts",
|
|
44
|
+
"typesVersions": {
|
|
45
|
+
"*": {
|
|
46
|
+
"watcher": [
|
|
47
|
+
"./dist/types/watcher.d.ts"
|
|
48
|
+
],
|
|
49
|
+
"build": [
|
|
50
|
+
"./dist/types/build.d.ts"
|
|
51
|
+
],
|
|
52
|
+
"cli": [
|
|
53
|
+
"./dist/types/cli.d.ts"
|
|
54
|
+
],
|
|
55
|
+
"logConfigDetails": [
|
|
56
|
+
"./dist/types/logConfigDetails.d.ts"
|
|
57
|
+
],
|
|
58
|
+
"utils": [
|
|
59
|
+
"./dist/types/utils/index.d.ts"
|
|
60
|
+
],
|
|
61
|
+
"syncPluginKit": [
|
|
62
|
+
"./dist/types/syncPluginKit/index.d.ts"
|
|
63
|
+
],
|
|
64
|
+
"listDictionaries": [
|
|
65
|
+
"./dist/types/listDictionariesPath.d.ts"
|
|
66
|
+
],
|
|
67
|
+
"scan": [
|
|
68
|
+
"./dist/types/scan/index.d.ts"
|
|
69
|
+
],
|
|
70
|
+
"scan/detection": [
|
|
71
|
+
"./dist/types/scan/detection/index.d.ts"
|
|
72
|
+
],
|
|
73
|
+
"docReview": [
|
|
74
|
+
"./dist/types/docReview/index.d.ts"
|
|
75
|
+
],
|
|
76
|
+
"contentDeclaration": [
|
|
77
|
+
"./dist/types/writeContentDeclaration/renderContentDeclaration.d.ts"
|
|
78
|
+
],
|
|
79
|
+
"package.json": [
|
|
80
|
+
"./package.json"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
37
84
|
"exports": {
|
|
38
85
|
"./watcher": {
|
|
39
86
|
"types": "./dist/types/watcher.d.ts",
|
|
@@ -92,62 +139,15 @@
|
|
|
92
139
|
},
|
|
93
140
|
"./package.json": "./package.json"
|
|
94
141
|
},
|
|
95
|
-
"main": "dist/cjs/index.cjs",
|
|
96
|
-
"module": "dist/esm/index.mjs",
|
|
97
|
-
"types": "dist/types/index.d.ts",
|
|
98
|
-
"typesVersions": {
|
|
99
|
-
"*": {
|
|
100
|
-
"watcher": [
|
|
101
|
-
"./dist/types/watcher.d.ts"
|
|
102
|
-
],
|
|
103
|
-
"build": [
|
|
104
|
-
"./dist/types/build.d.ts"
|
|
105
|
-
],
|
|
106
|
-
"cli": [
|
|
107
|
-
"./dist/types/cli.d.ts"
|
|
108
|
-
],
|
|
109
|
-
"logConfigDetails": [
|
|
110
|
-
"./dist/types/logConfigDetails.d.ts"
|
|
111
|
-
],
|
|
112
|
-
"utils": [
|
|
113
|
-
"./dist/types/utils/index.d.ts"
|
|
114
|
-
],
|
|
115
|
-
"syncPluginKit": [
|
|
116
|
-
"./dist/types/syncPluginKit/index.d.ts"
|
|
117
|
-
],
|
|
118
|
-
"listDictionaries": [
|
|
119
|
-
"./dist/types/listDictionariesPath.d.ts"
|
|
120
|
-
],
|
|
121
|
-
"scan": [
|
|
122
|
-
"./dist/types/scan/index.d.ts"
|
|
123
|
-
],
|
|
124
|
-
"scan/detection": [
|
|
125
|
-
"./dist/types/scan/detection/index.d.ts"
|
|
126
|
-
],
|
|
127
|
-
"docReview": [
|
|
128
|
-
"./dist/types/docReview/index.d.ts"
|
|
129
|
-
],
|
|
130
|
-
"contentDeclaration": [
|
|
131
|
-
"./dist/types/writeContentDeclaration/renderContentDeclaration.d.ts"
|
|
132
|
-
],
|
|
133
|
-
"package.json": [
|
|
134
|
-
"./package.json"
|
|
135
|
-
]
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
"files": [
|
|
139
|
-
"./dist",
|
|
140
|
-
"./package.json"
|
|
141
|
-
],
|
|
142
142
|
"scripts": {
|
|
143
143
|
"build": "bun --bun tsdown --config tsdown.config.ts",
|
|
144
144
|
"build:ci": "bun --bun tsdown --config tsdown.config.ts",
|
|
145
145
|
"clean": "bun --bun rimraf ./dist .turbo",
|
|
146
146
|
"dev": "bun --bun tsdown --config tsdown.config.ts --watch",
|
|
147
|
-
"format": "
|
|
148
|
-
"format:fix": "
|
|
149
|
-
"lint": "
|
|
150
|
-
"lint:fix": "
|
|
147
|
+
"format": "oxfmt --check .",
|
|
148
|
+
"format:fix": "oxfmt .",
|
|
149
|
+
"lint": "oxlint .",
|
|
150
|
+
"lint:fix": "oxlint --fix .",
|
|
151
151
|
"prepublish": "cp -f ../../../README.md ./README.md",
|
|
152
152
|
"publish": "bun publish || true",
|
|
153
153
|
"publish:canary": "bun publish --access public --tag canary || true",
|
|
@@ -158,11 +158,11 @@
|
|
|
158
158
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
159
159
|
},
|
|
160
160
|
"dependencies": {
|
|
161
|
-
"@intlayer/api": "9.7.
|
|
162
|
-
"@intlayer/config": "9.7.
|
|
163
|
-
"@intlayer/core": "9.7.
|
|
164
|
-
"@intlayer/dictionaries-entry": "9.7.
|
|
165
|
-
"@intlayer/types": "9.7.
|
|
161
|
+
"@intlayer/api": "9.7.3",
|
|
162
|
+
"@intlayer/config": "9.7.3",
|
|
163
|
+
"@intlayer/core": "9.7.3",
|
|
164
|
+
"@intlayer/dictionaries-entry": "9.7.3",
|
|
165
|
+
"@intlayer/types": "9.7.3",
|
|
166
166
|
"@parcel/watcher": "2.6.0",
|
|
167
167
|
"defu": "6.1.7",
|
|
168
168
|
"fast-glob": "3.3.3",
|
|
@@ -175,14 +175,14 @@
|
|
|
175
175
|
"@utils/ts-config": "1.0.4",
|
|
176
176
|
"@utils/ts-config-types": "1.0.4",
|
|
177
177
|
"@utils/tsdown-config": "1.0.4",
|
|
178
|
-
"rimraf": "6.1.
|
|
179
|
-
"tsdown": "0.23.
|
|
178
|
+
"rimraf": "6.1.4",
|
|
179
|
+
"tsdown": "0.23.7",
|
|
180
180
|
"typescript": "7.0.2",
|
|
181
181
|
"vitest": "5.1.0",
|
|
182
182
|
"zod": "4.6.7"
|
|
183
183
|
},
|
|
184
184
|
"peerDependencies": {
|
|
185
|
-
"@intlayer/babel": "9.7.
|
|
185
|
+
"@intlayer/babel": "9.7.3"
|
|
186
186
|
},
|
|
187
187
|
"peerDependenciesMeta": {
|
|
188
188
|
"@intlayer/babel": {
|