cspell-lib 7.0.2 → 7.2.0
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/esm/Cache/{cspell.cache.d.mts → cspell.cache.d.ts} +1 -1
- package/dist/esm/Cache/{cspell.cache.mjs → cspell.cache.js} +1 -0
- package/dist/esm/Cache/index.d.ts +2 -0
- package/dist/esm/Cache/index.js +2 -0
- package/dist/esm/Document/{Document.d.mts → Document.d.ts} +2 -2
- package/dist/esm/Document/Document.js +2 -0
- package/dist/esm/Document/{index.d.mts → index.d.ts} +4 -4
- package/dist/esm/Document/index.js +3 -0
- package/dist/esm/Document/{isBinaryDoc.d.mts → isBinaryDoc.d.ts} +3 -3
- package/dist/esm/Document/{isBinaryDoc.mjs → isBinaryDoc.js} +4 -3
- package/dist/esm/Document/{normalizeLanguageIds.d.mts → normalizeLanguageIds.d.ts} +1 -1
- package/dist/esm/Document/{normalizeLanguageIds.mjs → normalizeLanguageIds.js} +1 -0
- package/dist/esm/Document/{resolveDocument.d.mts → resolveDocument.d.ts} +3 -3
- package/dist/esm/Document/{resolveDocument.mjs → resolveDocument.js} +4 -3
- package/dist/esm/FeatureFlags/{FeatureFlags.d.mts → FeatureFlags.d.ts} +1 -1
- package/dist/esm/FeatureFlags/{FeatureFlags.mjs → FeatureFlags.js} +1 -0
- package/dist/esm/FeatureFlags/index.d.ts +2 -0
- package/dist/esm/FeatureFlags/index.js +2 -0
- package/dist/esm/{LanguageIds.d.mts → LanguageIds.d.ts} +1 -1
- package/dist/esm/{LanguageIds.mjs → LanguageIds.js} +2 -1
- package/dist/esm/Models/{CSpellSettingsInternalDef.d.mts → CSpellSettingsInternalDef.d.ts} +2 -2
- package/dist/esm/Models/{CSpellSettingsInternalDef.mjs → CSpellSettingsInternalDef.js} +2 -1
- package/dist/esm/Models/{PatternRegExp.d.mts → PatternRegExp.d.ts} +1 -1
- package/dist/esm/Models/{PatternRegExp.mjs → PatternRegExp.js} +1 -0
- package/dist/esm/Models/{Suggestion.d.mts → Suggestion.d.ts} +1 -1
- package/dist/esm/Models/Suggestion.js +2 -0
- package/dist/esm/Models/{TextDocument.d.mts → TextDocument.d.ts} +2 -2
- package/dist/esm/Models/{TextDocument.mjs → TextDocument.js} +3 -2
- package/dist/esm/Models/ValidationIssue.d.ts +7 -0
- package/dist/esm/Models/ValidationIssue.js +2 -0
- package/dist/esm/Models/{ValidationResult.d.mts → ValidationResult.d.ts} +1 -1
- package/dist/esm/Models/ValidationResult.js +2 -0
- package/dist/esm/Settings/{CSpellSettingsServer.d.mts → CSpellSettingsServer.d.ts} +3 -3
- package/dist/esm/Settings/{CSpellSettingsServer.mjs → CSpellSettingsServer.js} +7 -6
- package/dist/esm/Settings/Controller/{ImportError.d.mts → ImportError.d.ts} +1 -1
- package/dist/esm/Settings/Controller/{ImportError.mjs → ImportError.js} +2 -1
- package/dist/esm/Settings/Controller/{SettingsController.d.mts → SettingsController.d.ts} +1 -1
- package/dist/esm/Settings/Controller/{SettingsController.mjs → SettingsController.js} +1 -0
- package/dist/esm/Settings/Controller/configLoader/{PnPSettings.d.mts → PnPSettings.d.ts} +2 -2
- package/dist/esm/Settings/Controller/configLoader/{PnPSettings.mjs → PnPSettings.js} +2 -1
- package/dist/esm/Settings/Controller/configLoader/{configLoader.d.mts → configLoader.d.ts} +7 -7
- package/dist/esm/Settings/Controller/configLoader/{configLoader.mjs → configLoader.js} +14 -13
- package/dist/esm/Settings/Controller/configLoader/defaultSettings.d.ts +3 -0
- package/dist/esm/Settings/Controller/configLoader/{defaultSettings.mjs → defaultSettings.js} +3 -2
- package/dist/esm/Settings/Controller/configLoader/{extractImportErrors.d.mts → extractImportErrors.d.ts} +2 -2
- package/dist/esm/Settings/Controller/configLoader/{extractImportErrors.mjs → extractImportErrors.js} +1 -0
- package/dist/esm/Settings/Controller/configLoader/{index.d.mts → index.d.ts} +5 -5
- package/dist/esm/Settings/Controller/configLoader/index.js +5 -0
- package/dist/esm/Settings/Controller/configLoader/{normalizeRawSettings.d.mts → normalizeRawSettings.d.ts} +2 -2
- package/dist/esm/Settings/Controller/configLoader/{normalizeRawSettings.mjs → normalizeRawSettings.js} +5 -4
- package/dist/esm/Settings/Controller/configLoader/{readSettings.d.mts → readSettings.d.ts} +2 -2
- package/dist/esm/Settings/Controller/configLoader/{readSettings.mjs → readSettings.js} +2 -1
- package/dist/esm/Settings/Controller/configLoader/{readSettingsFiles.d.mts → readSettingsFiles.d.ts} +2 -2
- package/dist/esm/Settings/Controller/configLoader/{readSettingsFiles.mjs → readSettingsFiles.js} +4 -3
- package/dist/esm/Settings/Controller/configLoader/{toGlobDef.d.mts → toGlobDef.d.ts} +1 -1
- package/dist/esm/Settings/Controller/configLoader/{toGlobDef.mjs → toGlobDef.js} +1 -0
- package/dist/esm/Settings/Controller/configLoader/{types.d.mts → types.d.ts} +2 -2
- package/dist/esm/Settings/Controller/configLoader/types.js +2 -0
- package/dist/esm/Settings/Controller/index.d.ts +2 -0
- package/dist/esm/Settings/Controller/index.js +2 -0
- package/dist/esm/Settings/Controller/{pnpLoader.d.mts → pnpLoader.d.ts} +2 -2
- package/dist/esm/Settings/Controller/{pnpLoader.mjs → pnpLoader.js} +3 -2
- package/dist/esm/Settings/{DefaultSettings.d.mts → DefaultSettings.d.ts} +2 -2
- package/dist/esm/Settings/{DefaultSettings.mjs → DefaultSettings.js} +8 -7
- package/dist/esm/Settings/{DictionaryReferenceCollection.d.mts → DictionaryReferenceCollection.d.ts} +1 -1
- package/dist/esm/Settings/{DictionaryReferenceCollection.mjs → DictionaryReferenceCollection.js} +1 -0
- package/dist/esm/Settings/{DictionarySettings.d.mts → DictionarySettings.d.ts} +3 -3
- package/dist/esm/Settings/{DictionarySettings.mjs → DictionarySettings.js} +6 -5
- package/dist/esm/Settings/{GlobalSettings.d.mts → GlobalSettings.d.ts} +1 -1
- package/dist/esm/Settings/{GlobalSettings.mjs → GlobalSettings.js} +4 -3
- package/dist/esm/Settings/{InDocSettings.d.mts → InDocSettings.d.ts} +2 -2
- package/dist/esm/Settings/{InDocSettings.mjs → InDocSettings.js} +5 -4
- package/dist/esm/Settings/{LanguageSettings.d.mts → LanguageSettings.d.ts} +1 -1
- package/dist/esm/Settings/{LanguageSettings.mjs → LanguageSettings.js} +4 -3
- package/dist/esm/Settings/{RegExpPatterns.d.mts → RegExpPatterns.d.ts} +1 -1
- package/dist/esm/Settings/{RegExpPatterns.mjs → RegExpPatterns.js} +1 -0
- package/dist/esm/Settings/{TextDocumentSettings.d.mts → TextDocumentSettings.d.ts} +2 -2
- package/dist/esm/Settings/{TextDocumentSettings.mjs → TextDocumentSettings.js} +4 -3
- package/dist/esm/Settings/{cfgStore.d.mts → cfgStore.d.ts} +1 -1
- package/dist/esm/Settings/{cfgStore.mjs → cfgStore.js} +1 -0
- package/dist/esm/Settings/{constants.d.mts → constants.d.ts} +1 -1
- package/dist/esm/Settings/{constants.mjs → constants.js} +1 -0
- package/dist/esm/Settings/{index.d.mts → index.d.ts} +7 -7
- package/dist/esm/Settings/{index.mjs → index.js} +6 -5
- package/dist/esm/Settings/{index.link.d.mts → index.link.d.ts} +3 -3
- package/dist/esm/Settings/index.link.js +2 -0
- package/dist/esm/Settings/{link.d.mts → link.d.ts} +1 -1
- package/dist/esm/Settings/{link.mjs → link.js} +4 -3
- package/dist/esm/Settings/{patterns.d.mts → patterns.d.ts} +1 -1
- package/dist/esm/Settings/{patterns.mjs → patterns.js} +3 -2
- package/dist/esm/SpellingDictionary/{Dictionaries.d.mts → Dictionaries.d.ts} +2 -2
- package/dist/esm/SpellingDictionary/{Dictionaries.mjs → Dictionaries.js} +4 -3
- package/dist/esm/SpellingDictionary/DictionaryController/{DictionaryLoader.d.mts → DictionaryLoader.d.ts} +2 -2
- package/dist/esm/SpellingDictionary/DictionaryController/{DictionaryLoader.mjs → DictionaryLoader.js} +5 -4
- package/dist/esm/SpellingDictionary/DictionaryController/{index.d.mts → index.d.ts} +2 -2
- package/dist/esm/SpellingDictionary/DictionaryController/index.js +2 -0
- package/dist/esm/SpellingDictionary/{DictionaryLoader.d.mts → DictionaryLoader.d.ts} +4 -4
- package/dist/esm/SpellingDictionary/{DictionaryLoader.mjs → DictionaryLoader.js} +3 -2
- package/dist/esm/SpellingDictionary/{SpellingDictionary.d.mts → SpellingDictionary.d.ts} +1 -1
- package/dist/esm/SpellingDictionary/{SpellingDictionary.mjs → SpellingDictionary.js} +1 -0
- package/dist/esm/SpellingDictionary/{SpellingDictionaryError.d.mts → SpellingDictionaryError.d.ts} +2 -2
- package/dist/esm/SpellingDictionary/{SpellingDictionaryError.mjs → SpellingDictionaryError.js} +1 -0
- package/dist/esm/SpellingDictionary/SuggestExperimental/{SuggestionCollector.d.mts → SuggestionCollector.d.ts} +2 -2
- package/dist/esm/SpellingDictionary/SuggestExperimental/{SuggestionCollector.mjs → SuggestionCollector.js} +2 -1
- package/dist/esm/SpellingDictionary/SuggestExperimental/{entities.d.mts → entities.d.ts} +1 -1
- package/dist/esm/SpellingDictionary/SuggestExperimental/entities.js +2 -0
- package/dist/esm/SpellingDictionary/SuggestExperimental/{helpers.d.mts → helpers.d.ts} +2 -2
- package/dist/esm/SpellingDictionary/SuggestExperimental/{helpers.mjs → helpers.js} +1 -0
- package/dist/esm/SpellingDictionary/SuggestExperimental/{suggest.d.mts → suggest.d.ts} +2 -2
- package/dist/esm/SpellingDictionary/SuggestExperimental/{suggest.mjs → suggest.js} +2 -1
- package/dist/esm/SpellingDictionary/index.d.ts +4 -0
- package/dist/esm/SpellingDictionary/index.js +4 -0
- package/dist/esm/{clearCachedFiles.d.mts → clearCachedFiles.d.ts} +1 -1
- package/dist/esm/{clearCachedFiles.mjs → clearCachedFiles.js} +3 -2
- package/dist/esm/{exclusionHelper.d.mts → exclusionHelper.d.ts} +1 -1
- package/dist/esm/{exclusionHelper.mjs → exclusionHelper.js} +2 -1
- package/dist/esm/{getDictionary.d.mts → getDictionary.d.ts} +2 -2
- package/dist/esm/{getDictionary.mjs → getDictionary.js} +3 -2
- package/dist/esm/{index.d.mts → index.d.ts} +26 -26
- package/dist/esm/{index.mjs → index.js} +21 -20
- package/dist/esm/{spellCheckFile.d.mts → spellCheckFile.d.ts} +4 -4
- package/dist/esm/{spellCheckFile.mjs → spellCheckFile.js} +8 -7
- package/dist/esm/{static.d.mts → static.d.ts} +1 -1
- package/dist/esm/{static.mjs → static.js} +1 -0
- package/dist/esm/{suggestions.d.mts → suggestions.d.ts} +3 -3
- package/dist/esm/{suggestions.mjs → suggestions.js} +7 -6
- package/dist/esm/textValidation/{ValidateTextOptions.d.mts → ValidateTextOptions.d.ts} +1 -1
- package/dist/esm/textValidation/ValidateTextOptions.js +2 -0
- package/dist/esm/textValidation/{ValidationTypes.d.mts → ValidationTypes.d.ts} +3 -3
- package/dist/esm/textValidation/ValidationTypes.js +2 -0
- package/dist/esm/textValidation/{checkText.d.mts → checkText.d.ts} +5 -5
- package/dist/esm/textValidation/{checkText.mjs → checkText.js} +8 -7
- package/dist/esm/textValidation/{defaultConstants.d.mts → defaultConstants.d.ts} +1 -1
- package/dist/esm/textValidation/{defaultConstants.mjs → defaultConstants.js} +1 -0
- package/dist/esm/textValidation/{determineTextDocumentSettings.d.mts → determineTextDocumentSettings.d.ts} +3 -3
- package/dist/esm/textValidation/{determineTextDocumentSettings.mjs → determineTextDocumentSettings.js} +5 -4
- package/dist/esm/textValidation/{docValidator.d.mts → docValidator.d.ts} +12 -12
- package/dist/esm/textValidation/{docValidator.mjs → docValidator.js} +17 -16
- package/dist/esm/textValidation/index.d.ts +12 -0
- package/dist/esm/textValidation/index.js +5 -0
- package/dist/esm/textValidation/{isWordValid.d.mts → isWordValid.d.ts} +2 -2
- package/dist/esm/textValidation/{isWordValid.mjs → isWordValid.js} +1 -0
- package/dist/esm/textValidation/{lineValidatorFactory.d.mts → lineValidatorFactory.d.ts} +2 -2
- package/dist/esm/textValidation/{lineValidatorFactory.mjs → lineValidatorFactory.js} +8 -7
- package/dist/esm/textValidation/{parsedText.d.mts → parsedText.d.ts} +3 -3
- package/dist/esm/textValidation/{parsedText.mjs → parsedText.js} +2 -1
- package/dist/esm/textValidation/{settingsToValidateOptions.d.mts → settingsToValidateOptions.d.ts} +3 -3
- package/dist/esm/textValidation/{settingsToValidateOptions.mjs → settingsToValidateOptions.js} +1 -0
- package/dist/esm/textValidation/{textValidator.d.mts → textValidator.d.ts} +4 -4
- package/dist/esm/textValidation/{textValidator.mjs → textValidator.js} +5 -4
- package/dist/esm/textValidation/{validator.d.mts → validator.d.ts} +3 -3
- package/dist/esm/textValidation/{validator.mjs → validator.js} +7 -6
- package/dist/esm/{trace.d.mts → trace.d.ts} +2 -2
- package/dist/esm/{trace.mjs → trace.js} +6 -5
- package/dist/esm/util/{AutoResolve.d.mts → AutoResolve.d.ts} +1 -1
- package/dist/esm/util/{AutoResolve.mjs → AutoResolve.js} +1 -0
- package/dist/esm/util/{AutoResolveLRUCache.d.mts → AutoResolveLRUCache.d.ts} +1 -1
- package/dist/esm/util/{AutoResolveLRUCache.mjs → AutoResolveLRUCache.js} +2 -1
- package/dist/esm/util/{Comparable.d.mts → Comparable.d.ts} +1 -1
- package/dist/esm/util/{Comparable.mjs → Comparable.js} +1 -0
- package/dist/esm/util/{FreqCounter.d.mts → FreqCounter.d.ts} +2 -2
- package/dist/esm/util/{FreqCounter.mjs → FreqCounter.js} +1 -0
- package/dist/esm/util/{IterableLike.d.mts → IterableLike.d.ts} +1 -1
- package/dist/esm/util/IterableLike.js +2 -0
- package/dist/esm/util/{MinHeapQueue.d.mts → MinHeapQueue.d.ts} +1 -1
- package/dist/esm/util/{MinHeapQueue.mjs → MinHeapQueue.js} +1 -0
- package/dist/esm/util/{PairingHeap.d.mts → PairingHeap.d.ts} +1 -1
- package/dist/esm/util/{PairingHeap.mjs → PairingHeap.js} +1 -0
- package/dist/esm/util/{TextMap.d.mts → TextMap.d.ts} +1 -1
- package/dist/esm/util/{TextMap.mjs → TextMap.js} +1 -0
- package/dist/esm/util/{TextRange.d.mts → TextRange.d.ts} +1 -1
- package/dist/esm/util/{TextRange.mjs → TextRange.js} +1 -0
- package/dist/esm/util/{Uri.d.mts → Uri.d.ts} +1 -1
- package/dist/esm/util/{Uri.mjs → Uri.js} +1 -0
- package/dist/esm/util/{debugPerf.d.mts → debugPerf.d.ts} +1 -1
- package/dist/esm/util/{debugPerf.mjs → debugPerf.js} +2 -1
- package/dist/esm/util/{errors.d.mts → errors.d.ts} +1 -1
- package/dist/esm/util/{errors.mjs → errors.js} +1 -0
- package/dist/esm/util/{fileReader.d.mts → fileReader.d.ts} +1 -1
- package/dist/esm/util/{fileReader.mjs → fileReader.js} +2 -1
- package/dist/esm/util/{iterableIteratorLib.d.mts → iterableIteratorLib.d.ts} +2 -2
- package/dist/esm/util/{iterableIteratorLib.mjs → iterableIteratorLib.js} +1 -0
- package/dist/esm/util/{logger.d.mts → logger.d.ts} +1 -1
- package/dist/esm/util/{logger.mjs → logger.js} +1 -0
- package/dist/esm/util/{memorizeLastCall.d.mts → memorizeLastCall.d.ts} +1 -1
- package/dist/esm/util/{memorizeLastCall.mjs → memorizeLastCall.js} +2 -1
- package/dist/esm/util/{memorizerWeak.d.mts → memorizerWeak.d.ts} +1 -1
- package/dist/esm/util/{memorizerWeak.mjs → memorizerWeak.js} +1 -0
- package/dist/esm/util/{regexHelper.d.mts → regexHelper.d.ts} +1 -1
- package/dist/esm/util/{regexHelper.mjs → regexHelper.js} +1 -0
- package/dist/esm/util/{repMap.d.mts → repMap.d.ts} +1 -1
- package/dist/esm/util/{repMap.mjs → repMap.js} +2 -1
- package/dist/esm/util/{resolveFile.d.mts → resolveFile.d.ts} +1 -1
- package/dist/esm/util/{resolveFile.mjs → resolveFile.js} +16 -0
- package/dist/esm/util/{search.d.mts → search.d.ts} +1 -1
- package/dist/esm/util/{search.mjs → search.js} +1 -0
- package/dist/esm/util/{simpleCache.d.mts → simpleCache.d.ts} +1 -1
- package/dist/esm/util/{simpleCache.mjs → simpleCache.js} +1 -0
- package/dist/esm/util/{text.d.mts → text.d.ts} +3 -3
- package/dist/esm/util/{text.mjs → text.js} +6 -5
- package/dist/esm/util/{textRegex.d.mts → textRegex.d.ts} +1 -1
- package/dist/esm/util/{textRegex.mjs → textRegex.js} +1 -0
- package/dist/esm/util/{timer.d.mts → timer.d.ts} +1 -1
- package/dist/esm/util/{timer.mjs → timer.js} +1 -0
- package/dist/esm/util/{types.d.mts → types.d.ts} +1 -1
- package/dist/esm/util/{types.mjs → types.js} +1 -0
- package/dist/esm/util/{util.d.mts → util.d.ts} +2 -2
- package/dist/esm/util/{util.mjs → util.js} +1 -0
- package/dist/esm/util/{wordSplitter.d.mts → wordSplitter.d.ts} +1 -1
- package/dist/esm/util/{wordSplitter.mjs → wordSplitter.js} +4 -3
- package/dist/esm/{validator.d.mts → validator.d.ts} +3 -3
- package/dist/esm/validator.js +2 -0
- package/dist/esm/{wordListHelper.d.mts → wordListHelper.d.ts} +1 -1
- package/dist/esm/{wordListHelper.mjs → wordListHelper.js} +5 -4
- package/package.json +18 -19
- package/dist/esm/Cache/index.d.mts +0 -2
- package/dist/esm/Cache/index.mjs +0 -1
- package/dist/esm/Document/Document.mjs +0 -1
- package/dist/esm/Document/index.mjs +0 -2
- package/dist/esm/FeatureFlags/index.d.mts +0 -2
- package/dist/esm/FeatureFlags/index.mjs +0 -1
- package/dist/esm/Models/Suggestion.mjs +0 -1
- package/dist/esm/Models/ValidationIssue.d.mts +0 -7
- package/dist/esm/Models/ValidationIssue.mjs +0 -1
- package/dist/esm/Models/ValidationResult.mjs +0 -1
- package/dist/esm/Settings/Controller/configLoader/defaultSettings.d.mts +0 -3
- package/dist/esm/Settings/Controller/configLoader/index.mjs +0 -4
- package/dist/esm/Settings/Controller/configLoader/types.mjs +0 -1
- package/dist/esm/Settings/Controller/index.d.mts +0 -2
- package/dist/esm/Settings/Controller/index.mjs +0 -1
- package/dist/esm/Settings/index.link.mjs +0 -1
- package/dist/esm/SpellingDictionary/DictionaryController/index.mjs +0 -1
- package/dist/esm/SpellingDictionary/SuggestExperimental/entities.mjs +0 -1
- package/dist/esm/SpellingDictionary/index.d.mts +0 -4
- package/dist/esm/SpellingDictionary/index.mjs +0 -3
- package/dist/esm/textValidation/ValidateTextOptions.mjs +0 -1
- package/dist/esm/textValidation/ValidationTypes.mjs +0 -1
- package/dist/esm/textValidation/index.d.mts +0 -12
- package/dist/esm/textValidation/index.mjs +0 -4
- package/dist/esm/util/IterableLike.mjs +0 -1
- package/dist/esm/validator.mjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SpellingDictionary } from 'cspell-dictionary';
|
|
2
|
-
import type { ValidationResult } from '../Models/ValidationResult.
|
|
3
|
-
import * as TextRange from '../util/TextRange.
|
|
4
|
-
import type { IncludeExcludeOptions, LineSegment, ValidationOptions } from './ValidationTypes.
|
|
2
|
+
import type { ValidationResult } from '../Models/ValidationResult.js';
|
|
3
|
+
import * as TextRange from '../util/TextRange.js';
|
|
4
|
+
import type { IncludeExcludeOptions, LineSegment, ValidationOptions } from './ValidationTypes.js';
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated
|
|
7
7
|
* @deprecation Use spellCheckDocument
|
|
@@ -17,4 +17,4 @@ export declare function mapLineSegmentAgainstRangesFactory(includeRanges: TextRa
|
|
|
17
17
|
export declare const _testMethods: {
|
|
18
18
|
mapWordsAgainstRanges: typeof mapLineSegmentAgainstRangesFactory;
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=textValidator.d.
|
|
20
|
+
//# sourceMappingURL=textValidator.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { opConcatMap, opFilter, opTake, pipe } from '@cspell/cspell-pipe/sync';
|
|
2
|
-
import * as Text from '../util/text.
|
|
3
|
-
import * as TextRange from '../util/TextRange.
|
|
4
|
-
import { defaultMaxDuplicateProblems, defaultMaxNumberOfProblems } from './defaultConstants.
|
|
5
|
-
import { lineValidatorFactory } from './lineValidatorFactory.
|
|
2
|
+
import * as Text from '../util/text.js';
|
|
3
|
+
import * as TextRange from '../util/TextRange.js';
|
|
4
|
+
import { defaultMaxDuplicateProblems, defaultMaxNumberOfProblems } from './defaultConstants.js';
|
|
5
|
+
import { lineValidatorFactory } from './lineValidatorFactory.js';
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated
|
|
8
8
|
* @deprecation Use spellCheckDocument
|
|
@@ -85,3 +85,4 @@ export function mapLineSegmentAgainstRangesFactory(includeRanges) {
|
|
|
85
85
|
export const _testMethods = {
|
|
86
86
|
mapWordsAgainstRanges: mapLineSegmentAgainstRangesFactory,
|
|
87
87
|
};
|
|
88
|
+
//# sourceMappingURL=textValidator.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { CSpellUserSettings } from '@cspell/cspell-types';
|
|
2
|
-
import type { ValidationIssue } from '../Models/ValidationIssue.
|
|
3
|
-
import type { ValidateTextOptions } from './ValidateTextOptions.
|
|
2
|
+
import type { ValidationIssue } from '../Models/ValidationIssue.js';
|
|
3
|
+
import type { ValidateTextOptions } from './ValidateTextOptions.js';
|
|
4
4
|
export declare const diagSource = "cSpell Checker";
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated
|
|
7
7
|
* @deprecationMessage Use spellCheckDocument
|
|
8
8
|
*/
|
|
9
9
|
export declare function validateText(text: string, settings: CSpellUserSettings, options?: ValidateTextOptions): Promise<ValidationIssue[]>;
|
|
10
|
-
//# sourceMappingURL=validator.d.
|
|
10
|
+
//# sourceMappingURL=validator.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IssueType } from '@cspell/cspell-types';
|
|
2
|
-
import { createTextDocument } from '../Models/TextDocument.
|
|
3
|
-
import * as Settings from '../Settings/index.
|
|
4
|
-
import { validateInDocumentSettings } from '../Settings/InDocSettings.
|
|
5
|
-
import { CompoundWordsMethod, getDictionaryInternal } from '../SpellingDictionary/index.
|
|
6
|
-
import { settingsToValidateOptions } from './settingsToValidateOptions.
|
|
7
|
-
import { validateText as validateFullText } from './textValidator.
|
|
2
|
+
import { createTextDocument } from '../Models/TextDocument.js';
|
|
3
|
+
import * as Settings from '../Settings/index.js';
|
|
4
|
+
import { validateInDocumentSettings } from '../Settings/InDocSettings.js';
|
|
5
|
+
import { CompoundWordsMethod, getDictionaryInternal } from '../SpellingDictionary/index.js';
|
|
6
|
+
import { settingsToValidateOptions } from './settingsToValidateOptions.js';
|
|
7
|
+
import { validateText as validateFullText } from './textValidator.js';
|
|
8
8
|
export const diagSource = 'cSpell Checker';
|
|
9
9
|
/**
|
|
10
10
|
* @deprecated
|
|
@@ -56,3 +56,4 @@ function mapValidationIssues(text, valIssues) {
|
|
|
56
56
|
}
|
|
57
57
|
return issues.map(toValidationIssue);
|
|
58
58
|
}
|
|
59
|
+
//# sourceMappingURL=validator.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CSpellSettings, LocaleId } from '@cspell/cspell-types';
|
|
2
|
-
import type { LanguageId } from './LanguageIds.
|
|
2
|
+
import type { LanguageId } from './LanguageIds.js';
|
|
3
3
|
export interface TraceResult {
|
|
4
4
|
word: string;
|
|
5
5
|
found: boolean;
|
|
@@ -20,4 +20,4 @@ export interface TraceOptions {
|
|
|
20
20
|
}
|
|
21
21
|
export declare function traceWords(words: string[], settings: CSpellSettings, options: TraceOptions | undefined): Promise<TraceResult[]>;
|
|
22
22
|
export declare function traceWordsAsync(words: Iterable<string> | AsyncIterable<string>, settings: CSpellSettings, options: TraceOptions | undefined): AsyncIterableIterator<TraceResult[]>;
|
|
23
|
-
//# sourceMappingURL=trace.d.
|
|
23
|
+
//# sourceMappingURL=trace.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { genSequence } from 'gensequence';
|
|
2
|
-
import { toInternalSettings } from './Settings/CSpellSettingsServer.
|
|
3
|
-
import { finalizeSettings, mergeSettings } from './Settings/index.
|
|
4
|
-
import { calcSettingsForLanguageId } from './Settings/LanguageSettings.
|
|
5
|
-
import { getDictionaryInternal, refreshDictionaryCache } from './SpellingDictionary/index.
|
|
6
|
-
import * as util from './util/util.
|
|
2
|
+
import { toInternalSettings } from './Settings/CSpellSettingsServer.js';
|
|
3
|
+
import { finalizeSettings, mergeSettings } from './Settings/index.js';
|
|
4
|
+
import { calcSettingsForLanguageId } from './Settings/LanguageSettings.js';
|
|
5
|
+
import { getDictionaryInternal, refreshDictionaryCache } from './SpellingDictionary/index.js';
|
|
6
|
+
import * as util from './util/util.js';
|
|
7
7
|
export async function traceWords(words, settings, options) {
|
|
8
8
|
const results = await util.asyncIterableToArray(traceWordsAsync(words, settings, options));
|
|
9
9
|
const s = genSequence(results)
|
|
@@ -62,3 +62,4 @@ export async function* traceWordsAsync(words, settings, options) {
|
|
|
62
62
|
yield processWord(word);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
+
//# sourceMappingURL=trace.js.map
|
|
@@ -18,4 +18,4 @@ export declare class AutoResolveWeakCache<K extends object, V> {
|
|
|
18
18
|
set(k: K, v: V): this;
|
|
19
19
|
}
|
|
20
20
|
export declare function createAutoResolveWeakCache<K extends object, V>(): AutoResolveWeakCache<K, V>;
|
|
21
|
-
//# sourceMappingURL=AutoResolve.d.
|
|
21
|
+
//# sourceMappingURL=AutoResolve.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import assert from 'assert';
|
|
2
|
-
import { isArrayEqual } from './util.
|
|
2
|
+
import { isArrayEqual } from './util.js';
|
|
3
3
|
export class AutoResolveLRUCache {
|
|
4
4
|
constructor(maxSize, isEqual) {
|
|
5
5
|
this.maxSize = maxSize;
|
|
@@ -126,3 +126,4 @@ export class AutoResolveLastNCalls extends AutoResolveLRUCache {
|
|
|
126
126
|
super(maxSize, isArrayEqual);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
+
//# sourceMappingURL=AutoResolveLRUCache.js.map
|
|
@@ -17,4 +17,4 @@ export declare function compareByRev<T>(extract1: CompareArg<T>, extract2: Compa
|
|
|
17
17
|
export declare function compareEach<T>(...compareFn: CompareFn<T>[]): CompareFn<T>;
|
|
18
18
|
export declare function compare<T extends Comparable>(a: T, b: T): number;
|
|
19
19
|
export declare function reverse<T>(fn: CompareFn<T>): CompareFn<T>;
|
|
20
|
-
//# sourceMappingURL=Comparable.d.
|
|
20
|
+
//# sourceMappingURL=Comparable.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IterableLike } from './IterableLike.
|
|
1
|
+
import type { IterableLike } from './IterableLike.js';
|
|
2
2
|
export declare class FreqCounter<T> {
|
|
3
3
|
private _total;
|
|
4
4
|
readonly _counters: Map<T, number>;
|
|
@@ -13,4 +13,4 @@ export declare class FreqCounter<T> {
|
|
|
13
13
|
merge(...freqCounters: FreqCounter<T>[]): FreqCounter<T>;
|
|
14
14
|
static create<T>(values?: IterableLike<T>): FreqCounter<T>;
|
|
15
15
|
}
|
|
16
|
-
//# sourceMappingURL=FreqCounter.d.
|
|
16
|
+
//# sourceMappingURL=FreqCounter.d.ts.map
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* @returns a function
|
|
7
7
|
*/
|
|
8
8
|
export declare function perfFn<P extends any[], R>(fn: (...args: P) => R, message: string, callback?: (m: string, elapsedMs: number) => void): (...args: P) => R;
|
|
9
|
-
//# sourceMappingURL=debugPerf.d.
|
|
9
|
+
//# sourceMappingURL=debugPerf.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createTimer } from './timer.
|
|
1
|
+
import { createTimer } from './timer.js';
|
|
2
2
|
/**
|
|
3
3
|
* Measure and log result.
|
|
4
4
|
* @param fn - function to measure.
|
|
@@ -15,3 +15,4 @@ export function perfFn(fn, message, callback = (message, time) => console.error(
|
|
|
15
15
|
return r;
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
+
//# sourceMappingURL=debugPerf.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
export declare function readLines(filename: string, encoding?: BufferEncoding): Promise<IterableIterator<string>>;
|
|
3
3
|
export declare function readLinesSync(filename: string, encoding?: BufferEncoding): string[];
|
|
4
|
-
//# sourceMappingURL=fileReader.d.
|
|
4
|
+
//# sourceMappingURL=fileReader.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { readFileText, readFileTextSync } from 'cspell-io';
|
|
2
|
-
import { toIterableIterator } from './iterableIteratorLib.
|
|
2
|
+
import { toIterableIterator } from './iterableIteratorLib.js';
|
|
3
3
|
export async function readLines(filename, encoding = 'utf8') {
|
|
4
4
|
try {
|
|
5
5
|
const content = await readFileText(filename, encoding);
|
|
@@ -13,3 +13,4 @@ export function readLinesSync(filename, encoding = 'utf8') {
|
|
|
13
13
|
const content = readFileTextSync(filename, encoding);
|
|
14
14
|
return content.split(/\r?\n/g);
|
|
15
15
|
}
|
|
16
|
+
//# sourceMappingURL=fileReader.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IterableLike } from './IterableLike.
|
|
1
|
+
import type { IterableLike } from './IterableLike.js';
|
|
2
2
|
export declare function toIterableIterator<T>(i: IterableLike<T>): IterableIterator<T>;
|
|
3
3
|
export declare function concatIterables<T>(...iterables: IterableLike<T>[]): IterableIterator<T>;
|
|
4
|
-
//# sourceMappingURL=iterableIteratorLib.d.
|
|
4
|
+
//# sourceMappingURL=iterableIteratorLib.d.ts.map
|
|
@@ -10,4 +10,4 @@ export declare function memorizeLastCall<T, K0, K1>(fn: (...p: [K0, K1]) => T):
|
|
|
10
10
|
export declare function memorizeLastCall<T, K0, K1, K2>(fn: (...p: [K0, K1, K2]) => T): (...p: [K0, K1, K2]) => T;
|
|
11
11
|
export declare function memorizeLastCall<T, K0, K1, K2, K3>(fn: (...p: [K0, K1, K2, K3]) => T): (...p: [K0, K1, K2, K3]) => T;
|
|
12
12
|
export declare function memorizeLastCall<T, K>(fn: (...p: [...K[]]) => T): (...p: [...K[]]) => T;
|
|
13
|
-
//# sourceMappingURL=memorizeLastCall.d.
|
|
13
|
+
//# sourceMappingURL=memorizeLastCall.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isArrayEqual } from './util.
|
|
1
|
+
import { isArrayEqual } from './util.js';
|
|
2
2
|
export function memorizeLastCall(fn) {
|
|
3
3
|
let last;
|
|
4
4
|
return (...p) => {
|
|
@@ -11,3 +11,4 @@ export function memorizeLastCall(fn) {
|
|
|
11
11
|
return value;
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
+
//# sourceMappingURL=memorizeLastCall.js.map
|
|
@@ -3,4 +3,4 @@ export declare function memorizerWeak<T, K0 extends object, K1 extends object>(f
|
|
|
3
3
|
export declare function memorizerWeak<T, K0 extends object, K1 extends object, K2 extends object>(fn: (...p: [K0, K1, K2]) => T): (...p: [K0, K1, K2]) => T;
|
|
4
4
|
export declare function memorizerWeak<T, K0 extends object, K1 extends object, K2 extends object, K3 extends object>(fn: (...p: [K0, K1, K2, K3]) => T): (...p: [K0, K1, K2, K3]) => T;
|
|
5
5
|
export declare function memorizerWeak<T, K0 extends object>(fn: (...p: [K0]) => T): (...p: [K0]) => T;
|
|
6
|
-
//# sourceMappingURL=memorizerWeak.d.
|
|
6
|
+
//# sourceMappingURL=memorizerWeak.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { escapeRegEx } from './regexHelper.
|
|
1
|
+
import { escapeRegEx } from './regexHelper.js';
|
|
2
2
|
export function createMapper(repMap) {
|
|
3
3
|
const filteredMap = repMap.filter(([match, _]) => !!match);
|
|
4
4
|
if (!filteredMap.length) {
|
|
@@ -31,3 +31,4 @@ export function createMapper(repMap) {
|
|
|
31
31
|
return s.replace(regEx, resolve);
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
+
//# sourceMappingURL=repMap.js.map
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { resolveGlobal } from '@cspell/cspell-resolver';
|
|
2
|
+
import { importResolveModuleName } from '@cspell/dynamic-import';
|
|
2
3
|
import * as fs from 'fs';
|
|
3
4
|
import * as os from 'os';
|
|
4
5
|
import * as path from 'path';
|
|
5
6
|
import resolveFrom from 'resolve-from';
|
|
7
|
+
import { fileURLToPath } from 'url';
|
|
8
|
+
import { srcDirectory } from '../../lib-cjs/pkg-info.cjs';
|
|
6
9
|
const testNodeModules = /^node_modules\//;
|
|
7
10
|
/**
|
|
8
11
|
* Resolve filename to absolute paths.
|
|
@@ -11,10 +14,12 @@ const testNodeModules = /^node_modules\//;
|
|
|
11
14
|
* @param relativeTo absolute path
|
|
12
15
|
*/
|
|
13
16
|
export function resolveFile(filename, relativeTo) {
|
|
17
|
+
filename.startsWith('@cspell/cspell-json') && console.warn('%o', { filename, relativeTo });
|
|
14
18
|
filename = filename.replace(/^~/, os.homedir());
|
|
15
19
|
const steps = [
|
|
16
20
|
{ filename, fn: tryUrl },
|
|
17
21
|
{ filename, fn: tryNodeResolve },
|
|
22
|
+
{ filename, fn: tryImportResolve },
|
|
18
23
|
{ filename: path.resolve(relativeTo, filename), fn: tryResolveExists },
|
|
19
24
|
{ filename: path.resolve(filename), fn: tryResolveExists },
|
|
20
25
|
{ filename, fn: tryNodeResolveDefaultPaths },
|
|
@@ -78,6 +83,16 @@ function tryNodeResolve(filename, relativeTo) {
|
|
|
78
83
|
return { filename, relativeTo, found: false };
|
|
79
84
|
}
|
|
80
85
|
}
|
|
86
|
+
function tryImportResolve(filename, relativeTo) {
|
|
87
|
+
try {
|
|
88
|
+
const paths = filename.startsWith('.') ? [relativeTo] : [relativeTo, srcDirectory];
|
|
89
|
+
const resolved = fileURLToPath(importResolveModuleName(filename, paths));
|
|
90
|
+
return { filename: resolved, relativeTo, found: true };
|
|
91
|
+
}
|
|
92
|
+
catch (_) {
|
|
93
|
+
return { filename, relativeTo, found: false };
|
|
94
|
+
}
|
|
95
|
+
}
|
|
81
96
|
function tryResolveGlobal(filename) {
|
|
82
97
|
const r = resolveGlobal(filename);
|
|
83
98
|
return { filename: r || filename, relativeTo: undefined, found: !!r };
|
|
@@ -94,3 +109,4 @@ function tryResolveFrom(filename, relativeTo) {
|
|
|
94
109
|
return { filename: filename, relativeTo, found: false };
|
|
95
110
|
}
|
|
96
111
|
}
|
|
112
|
+
//# sourceMappingURL=resolveFile.js.map
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* The value returned is either the position of the item or where it should be inserted.
|
|
4
4
|
*/
|
|
5
5
|
export declare function binarySearch<T>(arr: Array<T>, item: T, leftOffset?: number, rightOffset?: number): number;
|
|
6
|
-
//# sourceMappingURL=search.d.
|
|
6
|
+
//# sourceMappingURL=search.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TextDocumentOffset, TextOffset } from '@cspell/cspell-types';
|
|
2
|
-
import type { Uri } from './Uri.
|
|
3
|
-
export { stringToRegExp } from './textRegex.
|
|
2
|
+
import type { Uri } from './Uri.js';
|
|
3
|
+
export { stringToRegExp } from './textRegex.js';
|
|
4
4
|
export declare function splitCamelCaseWordWithOffset(wo: TextOffset): Array<TextOffset>;
|
|
5
5
|
/**
|
|
6
6
|
* Split camelCase words into an array of strings.
|
|
@@ -46,4 +46,4 @@ export declare const __testing__: {
|
|
|
46
46
|
regExWords: RegExp;
|
|
47
47
|
regExWordsAndDigits: RegExp;
|
|
48
48
|
};
|
|
49
|
-
//# sourceMappingURL=text.d.
|
|
49
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { opConcatMap, opMap, pipe } from '@cspell/cspell-pipe/sync';
|
|
2
2
|
import { sequenceFromRegExpMatch } from 'gensequence';
|
|
3
|
-
import { binarySearch } from './search.
|
|
4
|
-
import { regExAccents, regExAllLower, regExAllUpper, regExFirstUpper, regExIgnoreCharacters, regExSplitWords, regExSplitWords2, regExUpperSOrIng, regExWords, regExWordsAndDigits, } from './textRegex.
|
|
5
|
-
import { toUri } from './Uri.
|
|
6
|
-
import { scanMap } from './util.
|
|
7
|
-
export { stringToRegExp } from './textRegex.
|
|
3
|
+
import { binarySearch } from './search.js';
|
|
4
|
+
import { regExAccents, regExAllLower, regExAllUpper, regExFirstUpper, regExIgnoreCharacters, regExSplitWords, regExSplitWords2, regExUpperSOrIng, regExWords, regExWordsAndDigits, } from './textRegex.js';
|
|
5
|
+
import { toUri } from './Uri.js';
|
|
6
|
+
import { scanMap } from './util.js';
|
|
7
|
+
export { stringToRegExp } from './textRegex.js';
|
|
8
8
|
// CSpell:ignore ings ning gimuy tsmerge
|
|
9
9
|
export function splitCamelCaseWordWithOffset(wo) {
|
|
10
10
|
return splitCamelCaseWord(wo.text).map(scanMap((last, text) => ({ text, offset: last.offset + last.text.length }), {
|
|
@@ -178,3 +178,4 @@ export const __testing__ = {
|
|
|
178
178
|
regExWords,
|
|
179
179
|
regExWordsAndDigits,
|
|
180
180
|
};
|
|
181
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -17,4 +17,4 @@ export declare const regExDanglingQuote: RegExp;
|
|
|
17
17
|
export declare const regExTrailingEndings: RegExp;
|
|
18
18
|
export declare const regExNumericLiteral: RegExp;
|
|
19
19
|
export declare function stringToRegExp(pattern: string | RegExp, defaultFlags?: string, forceFlags?: string): RegExp | undefined;
|
|
20
|
-
//# sourceMappingURL=textRegex.d.
|
|
20
|
+
//# sourceMappingURL=textRegex.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RemoveUndefined } from './types.
|
|
1
|
+
import type { RemoveUndefined } from './types.js';
|
|
2
2
|
export declare const uniqueFn: typeof uniqueFilterFnGenerator;
|
|
3
3
|
export declare function uniqueFilterFnGenerator<T>(): (v: T) => boolean;
|
|
4
4
|
export declare function uniqueFilterFnGenerator<T, U>(extractFn: (v: T) => U): (v: T) => boolean;
|
|
@@ -30,4 +30,4 @@ export declare function isArrayEqual<K>(a: K[], b: K[]): boolean;
|
|
|
30
30
|
*/
|
|
31
31
|
export declare function doSetsIntersect<T>(a: Set<T>, b: Set<T>): boolean;
|
|
32
32
|
export declare function isRecordEqual<T extends Record<string, unknown>>(a: T | undefined, b: T | undefined): boolean;
|
|
33
|
-
//# sourceMappingURL=util.d.
|
|
33
|
+
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PairingHeap } from './PairingHeap.
|
|
2
|
-
import { escapeRegEx } from './regexHelper.
|
|
3
|
-
import { regExDanglingQuote, regExEscapeCharacters, regExNumericLiteral, regExPossibleWordBreaks, regExSplitWords, regExSplitWords2, regExTrailingEndings, regExWordsAndDigits, } from './textRegex.
|
|
1
|
+
import { PairingHeap } from './PairingHeap.js';
|
|
2
|
+
import { escapeRegEx } from './regexHelper.js';
|
|
3
|
+
import { regExDanglingQuote, regExEscapeCharacters, regExNumericLiteral, regExPossibleWordBreaks, regExSplitWords, regExSplitWords2, regExTrailingEndings, regExWordsAndDigits, } from './textRegex.js';
|
|
4
4
|
const ignoreBreak = Object.freeze([]);
|
|
5
5
|
export function split(line, offset, isValidWord, options = {}) {
|
|
6
6
|
const relWordToSplit = findNextWordText({ text: line.text, offset: offset - line.offset });
|
|
@@ -328,3 +328,4 @@ export const __testing__ = {
|
|
|
328
328
|
generateWordBreaks,
|
|
329
329
|
findNextWordText,
|
|
330
330
|
};
|
|
331
|
+
//# sourceMappingURL=wordSplitter.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { CheckTextInfo, IncludeExcludeOptions, TextInfoItem, ValidateTextOptions, ValidationIssue, } from './textValidation/index.
|
|
2
|
-
export { checkText, checkTextDocument, IncludeExcludeFlag, validateText } from './textValidation/index.
|
|
3
|
-
//# sourceMappingURL=validator.d.
|
|
1
|
+
export type { CheckTextInfo, IncludeExcludeOptions, TextInfoItem, ValidateTextOptions, ValidationIssue, } from './textValidation/index.js';
|
|
2
|
+
export { checkText, checkTextDocument, IncludeExcludeFlag, validateText } from './textValidation/index.js';
|
|
3
|
+
//# sourceMappingURL=validator.d.ts.map
|