Socket
Socket
Sign inDemoInstall

cspell-dictionary

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cspell-dictionary - npm Package Compare versions

Comparing version 8.0.0 to 8.1.0

2

dist/SpellingDictionary/createSpellingDictionary.d.ts

@@ -22,3 +22,3 @@ import type { IterableLike } from '../util/IterableLike.js';

}
export declare function createFailedToLoadDictionary(name: string, source: string, error: Error, options?: SpellingDictionaryOptions | undefined): SpellingDictionary;
export declare function createFailedToLoadDictionary(name: string, sourceUrl: URL | string, error: Error, options?: SpellingDictionaryOptions | undefined): SpellingDictionary;
//# sourceMappingURL=createSpellingDictionary.d.ts.map

@@ -0,1 +1,2 @@

import { fileURLToPath } from 'node:url';
import { buildITrieFromWords, parseDictionaryLines } from 'cspell-trie-lib';

@@ -19,3 +20,3 @@ import { deepEqual } from 'fast-equals';

export function createSpellingDictionary(wordList, name, source, options) {
const params = [wordList, name, source, options];
const params = [wordList, name, source.toString(), options];
if (!Array.isArray(wordList)) {

@@ -48,3 +49,5 @@ return _createSpellingDictionary(params);

}
export function createFailedToLoadDictionary(name, source, error, options) {
export function createFailedToLoadDictionary(name, sourceUrl, error, options) {
const sourceHref = typeof sourceUrl === 'string' ? sourceUrl : sourceUrl.href;
const source = sourceHref.startsWith('file:') ? fileURLToPath(sourceUrl) : sourceHref;
options = options || {};

@@ -51,0 +54,0 @@ return {

{
"name": "cspell-dictionary",
"version": "8.0.0",
"version": "8.1.0",
"description": "A spelling dictionary library useful for checking words and getting suggestions.",

@@ -48,9 +48,9 @@ "type": "module",

"dependencies": {
"@cspell/cspell-pipe": "8.0.0",
"@cspell/cspell-types": "8.0.0",
"cspell-trie-lib": "8.0.0",
"fast-equals": "^4.0.3",
"@cspell/cspell-pipe": "8.1.0",
"@cspell/cspell-types": "8.1.0",
"cspell-trie-lib": "8.1.0",
"fast-equals": "^5.0.1",
"gensequence": "^6.0.0"
},
"gitHead": "67c22bf98baed1c17bbc658fba8656262d17e370"
"gitHead": "28568808deaf39b9ffa71fd0f722441ff1b8c794"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc