Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cspell-trie-lib

Package Overview
Dependencies
Maintainers
1
Versions
295
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cspell-trie-lib - npm Package Compare versions

Comparing version 5.0.1-alpha.3 to 5.0.1-alpha.5

15

dist/index.js
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./lib"));
__exportStar(require("./lib"), exports);
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.bufferLines = exports.buffer = void 0;
function* buffer(iter, bufferSize) {

@@ -4,0 +5,0 @@ const buffer = [];

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.compoundWords = exports.compoundWalker = void 0;
/**

@@ -4,0 +5,0 @@ *

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.consolidate = void 0;
const TrieNode_1 = require("./TrieNode");

@@ -4,0 +5,0 @@ const util_1 = require("./util");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.defaultTrieOptions = exports.LINE_COMMENT = exports.FORBID_PREFIX = exports.CASE_INSENSITIVE_PREFIX = exports.OPTIONAL_COMPOUND_FIX = exports.COMPOUND_FIX = void 0;
exports.COMPOUND_FIX = '+';

@@ -4,0 +5,0 @@ exports.OPTIONAL_COMPOUND_FIX = '*';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertToTrieRefNodes = void 0;
const TrieNode_1 = require("./TrieNode");

@@ -4,0 +5,0 @@ const gensequence_1 = require("gensequence");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isForbiddenWord = exports.findLegacyCompoundWord = exports.findLegacyCompoundNode = exports.findNodeExact = exports.findWordExact = exports.findCompoundWord = exports.findCompoundNode = exports.findWord = void 0;
const TrieNode_1 = require("./TrieNode");

@@ -4,0 +5,0 @@ const util_1 = require("./util");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.flattenToTrieRefNodeArray = exports.flattenToTrieRefNodeIterable = exports.flattenToTrieRefNode = void 0;
function flattenToTrieRefNode(root, nodes) {

@@ -4,0 +5,0 @@ const signatures = new Map();

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.importTrie = exports.serializeTrie = void 0;
const gensequence_1 = require("gensequence");

@@ -4,0 +5,0 @@ const iv1 = require("./importExportV1");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.importTrie = exports.serializeTrie = exports.DATA = void 0;
const TrieNode_1 = require("./TrieNode");

@@ -4,0 +5,0 @@ const gensequence_1 = require("gensequence");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.importTrie = exports.serializeTrie = exports.DATA = void 0;
const TrieNode_1 = require("./TrieNode");

@@ -4,0 +5,0 @@ const gensequence_1 = require("gensequence");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.importTrie = exports.serializeTrie = exports.DATA = void 0;
const TrieNode_1 = require("./TrieNode");

@@ -4,0 +5,0 @@ const gensequence_1 = require("gensequence");

@@ -8,3 +8,3 @@ export * from './trie';

export * from './consolidate';
export { SuggestionResult, MaxCost, suggestionCollector, SuggestionCollector, CompoundWordsMethod } from './suggest';
export { SuggestionResult, MaxCost, suggestionCollector, SuggestionCollector } from './suggest';
export { parseDictionaryLines, parseDictionary } from './SimpleDictionaryParser';
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./trie"));
__export(require("./TrieNode"));
__export(require("./util"));
__export(require("./walker"));
__export(require("./importExport"));
__export(require("./TrieBuilder"));
__export(require("./consolidate"));
__exportStar(require("./trie"), exports);
__exportStar(require("./TrieNode"), exports);
__exportStar(require("./util"), exports);
__exportStar(require("./walker"), exports);
__exportStar(require("./importExport"), exports);
__exportStar(require("./TrieBuilder"), exports);
__exportStar(require("./consolidate"), exports);
var suggest_1 = require("./suggest");
exports.suggestionCollector = suggest_1.suggestionCollector;
exports.CompoundWordsMethod = suggest_1.CompoundWordsMethod;
Object.defineProperty(exports, "suggestionCollector", { enumerable: true, get: function () { return suggest_1.suggestionCollector; } });
var SimpleDictionaryParser_1 = require("./SimpleDictionaryParser");
exports.parseDictionaryLines = SimpleDictionaryParser_1.parseDictionaryLines;
exports.parseDictionary = SimpleDictionaryParser_1.parseDictionary;
Object.defineProperty(exports, "parseDictionaryLines", { enumerable: true, get: function () { return SimpleDictionaryParser_1.parseDictionaryLines; } });
Object.defineProperty(exports, "parseDictionary", { enumerable: true, get: function () { return SimpleDictionaryParser_1.parseDictionary; } });
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.visualLetterMap = exports.visualLetterGroups = exports.compare = void 0;
const intl = new Intl.Collator('en', { sensitivity: 'base' });

@@ -4,0 +5,0 @@ exports.compare = intl.compare;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseDictionary = exports.parseDictionaryLines = exports.defaultParseDictionaryOptions = void 0;
const gensequence_1 = require("gensequence");

@@ -4,0 +5,0 @@ const util_1 = require("./util");

import { TrieRoot } from './TrieNode';
import { CompoundWordsMethod } from './walker';
export { CompoundWordsMethod, JOIN_SEPARATOR, WORD_SEPARATOR } from './walker';
export declare type Cost = number;

@@ -5,0 +4,0 @@ export declare type MaxCost = Cost;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.suggestionCollector = exports.compSuggestionResults = exports.genCompoundableSuggestions = exports.genSuggestions = exports.suggest = void 0;
const util_1 = require("./util");
const walker_1 = require("./walker");
var walker_2 = require("./walker");
exports.CompoundWordsMethod = walker_2.CompoundWordsMethod;
exports.JOIN_SEPARATOR = walker_2.JOIN_SEPARATOR;
exports.WORD_SEPARATOR = walker_2.WORD_SEPARATOR;
const orthography_1 = require("./orthography");

@@ -10,0 +7,0 @@ const defaultMaxNumberSuggestions = 10;

import { Sequence } from 'gensequence';
import { TrieNode, TrieOptions, TrieRoot, PartialTrieOptions } from './TrieNode';
import { SuggestionCollector, SuggestionResult, CompoundWordsMethod } from './suggest';
import { WalkerIterator } from './walker';
import { SuggestionCollector, SuggestionResult } from './suggest';
import { WalkerIterator, CompoundWordsMethod } from './walker';
export { COMPOUND_FIX, OPTIONAL_COMPOUND_FIX, CASE_INSENSITIVE_PREFIX, FORBID_PREFIX, } from './constants';

@@ -6,0 +6,0 @@ export { TrieOptions, PartialTrieOptions } from './TrieNode';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Trie = exports.FORBID = exports.NORMALIZED = exports.OPTIONAL_COMPOUND = exports.COMPOUND = void 0;
const gensequence_1 = require("gensequence");

@@ -10,8 +11,8 @@ const suggest_1 = require("./suggest");

var constants_2 = require("./constants");
exports.COMPOUND_FIX = constants_2.COMPOUND_FIX;
exports.OPTIONAL_COMPOUND_FIX = constants_2.OPTIONAL_COMPOUND_FIX;
exports.CASE_INSENSITIVE_PREFIX = constants_2.CASE_INSENSITIVE_PREFIX;
exports.FORBID_PREFIX = constants_2.FORBID_PREFIX;
Object.defineProperty(exports, "COMPOUND_FIX", { enumerable: true, get: function () { return constants_2.COMPOUND_FIX; } });
Object.defineProperty(exports, "OPTIONAL_COMPOUND_FIX", { enumerable: true, get: function () { return constants_2.OPTIONAL_COMPOUND_FIX; } });
Object.defineProperty(exports, "CASE_INSENSITIVE_PREFIX", { enumerable: true, get: function () { return constants_2.CASE_INSENSITIVE_PREFIX; } });
Object.defineProperty(exports, "FORBID_PREFIX", { enumerable: true, get: function () { return constants_2.FORBID_PREFIX; } });
var constants_3 = require("./constants");
exports.defaultTrieOptions = constants_3.defaultTrieOptions;
Object.defineProperty(exports, "defaultTrieOptions", { enumerable: true, get: function () { return constants_3.defaultTrieOptions; } });
/** @deprecated */

@@ -18,0 +19,0 @@ exports.COMPOUND = constants_1.COMPOUND_FIX;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TrieBuilder = exports.buildTrieFast = exports.buildTrie = void 0;
const trie_1 = require("./trie");

@@ -4,0 +5,0 @@ const consolidate_1 = require("./consolidate");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChildMap = exports.FLAG_WORD = void 0;
exports.FLAG_WORD = 1;

@@ -4,0 +5,0 @@ class ChildMap extends Map {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalizeWordToLowercase = exports.normalizeWord = exports.trieNodeToRoot = exports.mergeDefaults = exports.isCircular = exports.countWords = exports.countNodes = exports.findNode = exports.has = exports.createTriFromList = exports.createTrieRoot = exports.mergeOptionalWithDefaults = exports.iteratorTrieWords = exports.iterateTrie = exports.walk = exports.orderTrie = exports.isWordTerminationNode = exports.insert = void 0;
const gensequence_1 = require("gensequence");

@@ -4,0 +5,0 @@ const TrieNode_1 = require("./TrieNode");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.hintedWalker = exports.walker = exports.CompoundWordsMethod = exports.WORD_SEPARATOR = exports.JOIN_SEPARATOR = void 0;
exports.JOIN_SEPARATOR = '+';

@@ -4,0 +5,0 @@ exports.WORD_SEPARATOR = ' ';

{
"name": "cspell-trie-lib",
"version": "5.0.1-alpha.3",
"version": "5.0.1-alpha.5",
"description": "Trie Data Structure to support cspell.",

@@ -59,3 +59,3 @@ "main": "dist/index.js",

},
"gitHead": "efceae2801b83dd00d976926ddaf29069ac97a23"
"gitHead": "e3c554df4c7bdedd2dd71c72d87563ee44067e49"
}
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