cspell-trie-lib
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -127,3 +127,3 @@ "use strict"; | ||
const cNode = children.length ? { c: new TrieNode_1.ChildMap(children) } : {}; | ||
return Object.assign(Object.assign({}, cNode), flags); | ||
return { ...cNode, ...flags }; | ||
} | ||
@@ -130,0 +130,0 @@ readHeader(iter); |
@@ -99,3 +99,3 @@ "use strict"; | ||
const radix = base > 36 ? 36 : base < 10 ? 10 : base; | ||
const rootRef = Object.assign(Object.assign({}, root), { s: '^' }); | ||
const rootRef = { ...root, s: '^' }; | ||
const rows = flattenToReferences(rootRef).map(n => toLine(n, base)); | ||
@@ -159,3 +159,3 @@ return generateHeader(radix, comment) | ||
const cNode = children.length ? { c: new TrieNode_1.ChildMap(children) } : {}; | ||
return Object.assign(Object.assign({ s: letter }, cNode), flags); | ||
return { s: letter, ...cNode, ...flags }; | ||
} | ||
@@ -162,0 +162,0 @@ readHeader(iter); |
@@ -165,3 +165,3 @@ "use strict"; | ||
nodes.pop(); | ||
return Object.assign(Object.assign({}, acc), { nodes, parser }); | ||
return { ...acc, nodes, parser }; | ||
} | ||
@@ -173,3 +173,3 @@ function parseEscapeCharacter(acc, _) { | ||
s = characterMap.get(prev + s) || s; | ||
return parseCharacter(Object.assign(Object.assign({}, acc), { parser: undefined }), s); | ||
return parseCharacter({ ...acc, parser: undefined }, s); | ||
} | ||
@@ -180,5 +180,5 @@ if (s === ESCAPE) { | ||
} | ||
return parseCharacter(Object.assign(Object.assign({}, acc), { parser: undefined }), s); | ||
return parseCharacter({ ...acc, parser: undefined }, s); | ||
}; | ||
return Object.assign(Object.assign({}, acc), { parser }); | ||
return { ...acc, parser }; | ||
} | ||
@@ -216,3 +216,3 @@ function parseCharacter(acc, s) { | ||
if (!charactersBack.has(s)) { | ||
return parserMain(Object.assign(Object.assign({}, acc), { parser: undefined }), s); | ||
return parserMain({ ...acc, parser: undefined }, s); | ||
} | ||
@@ -224,3 +224,3 @@ let n = s === BACK ? 1 : parseInt(s, 10) - 1; | ||
} | ||
return Object.assign(Object.assign({}, acc), { parser: parseBack }); | ||
return { ...acc, parser: parseBack }; | ||
} | ||
@@ -227,0 +227,0 @@ function parseIgnore(acc, _) { |
@@ -10,5 +10,6 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.suggestionCollector = void 0; | ||
__exportStar(require("./trie"), exports); | ||
@@ -15,0 +16,0 @@ __exportStar(require("./TrieNode"), exports); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.suggestionCollector = exports.compSuggestionResults = exports.genCompoundableSuggestions = exports.genSuggestions = exports.suggest = void 0; | ||
exports.suggestionCollector = exports.compSuggestionResults = exports.genCompoundableSuggestions = exports.genSuggestions = exports.suggest = exports.WORD_SEPARATOR = exports.JOIN_SEPARATOR = exports.CompoundWordsMethod = void 0; | ||
const util_1 = require("./util"); | ||
@@ -5,0 +5,0 @@ const walker_1 = require("./walker"); |
@@ -92,3 +92,3 @@ "use strict"; | ||
if (!node.c || Object.isFrozen(node)) { | ||
node = Object.assign(Object.assign({}, node), { c: new Map((_b = node.c) !== null && _b !== void 0 ? _b : []) }); | ||
node = { ...node, c: new Map((_b = node.c) !== null && _b !== void 0 ? _b : []) }; | ||
} | ||
@@ -95,0 +95,0 @@ node.c.set(head, child); |
{ | ||
"name": "cspell-trie-lib", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "Trie Data Structure to support cspell.", | ||
@@ -41,3 +41,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "51dd14f887ec74a9a6854b0ef5c59c94fc2ac1ff" | ||
"gitHead": "d1b8d25aa3713b481094d1f1063fc9d031674672" | ||
} |
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
2147
80466