cspell-trie-lib
Advanced tools
Comparing version 4.1.8 to 4.1.9
@@ -11,3 +11,3 @@ "use strict"; | ||
const refNode = node; | ||
refNode.s = (_a = refNode.s, (_a !== null && _a !== void 0 ? _a : k)); | ||
refNode.s = (_a = refNode.s) !== null && _a !== void 0 ? _a : k; | ||
return refNode; | ||
@@ -14,0 +14,0 @@ } |
@@ -187,3 +187,3 @@ "use strict"; | ||
const node = top.node; | ||
node.c = (_a = node.c, (_a !== null && _a !== void 0 ? _a : new Map())); | ||
node.c = (_a = node.c) !== null && _a !== void 0 ? _a : new Map(); | ||
const n = { f: undefined, c: undefined, n: nodes.length }; | ||
@@ -235,3 +235,3 @@ node.c.set(s, n); | ||
var _a, _b; | ||
const parser = (_b = (_a = acc.parser, (_a !== null && _a !== void 0 ? _a : parsers.get(s))), (_b !== null && _b !== void 0 ? _b : parseCharacter)); | ||
const parser = (_b = (_a = acc.parser) !== null && _a !== void 0 ? _a : parsers.get(s)) !== null && _b !== void 0 ? _b : parseCharacter; | ||
return parser(acc, s); | ||
@@ -238,0 +238,0 @@ } |
@@ -28,3 +28,3 @@ "use strict"; | ||
var _a; | ||
this.count = (_a = this.count, (_a !== null && _a !== void 0 ? _a : util_1.countWords(this.root))); | ||
this.count = (_a = this.count) !== null && _a !== void 0 ? _a : util_1.countWords(this.root); | ||
return this.count; | ||
@@ -31,0 +31,0 @@ } |
@@ -83,3 +83,3 @@ "use strict"; | ||
return; | ||
const t = (_a = this.transforms.get(src), (_a !== null && _a !== void 0 ? _a : new Map())); | ||
const t = (_a = this.transforms.get(src)) !== null && _a !== void 0 ? _a : new Map(); | ||
t.set(s, result); | ||
@@ -92,3 +92,3 @@ this.transforms.set(src, t); | ||
if (!node.c || Object.isFrozen(node)) { | ||
node = Object.assign(Object.assign({}, node), { c: new Map((_b = node.c, (_b !== null && _b !== void 0 ? _b : []))) }); | ||
node = Object.assign(Object.assign({}, node), { c: new Map((_b = node.c) !== null && _b !== void 0 ? _b : []) }); | ||
} | ||
@@ -144,7 +144,6 @@ node.c.set(head, child); | ||
insertWord(word) { | ||
var _a; | ||
let d = 1; | ||
for (const s of word.split('')) { | ||
const p = this.lastPath[d]; | ||
if (((_a = p) === null || _a === void 0 ? void 0 : _a.s) !== s) | ||
if ((p === null || p === void 0 ? void 0 : p.s) !== s) | ||
break; | ||
@@ -151,0 +150,0 @@ d++; |
{ | ||
"name": "cspell-trie-lib", | ||
"version": "4.1.8", | ||
"version": "4.1.9", | ||
"description": "Trie Data Structure to support cspell.", | ||
@@ -36,3 +36,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"gensequence": "^3.0.3" | ||
"gensequence": "^3.1.1" | ||
}, | ||
@@ -60,3 +60,3 @@ "nyc": { | ||
}, | ||
"gitHead": "cbe103ba540d0ec7af38876372722802f80f4098" | ||
"gitHead": "710c11198d72f879a53f6c6f8528c7c356bd68c8" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78452
2117
Updatedgensequence@^3.1.1