tldts 6.0.10 → 6.0.11
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/cjs/index.js +3 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/suffix-trie.js +3 -2
- package/dist/cjs/src/suffix-trie.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/es6/src/suffix-trie.js +3 -2
- package/dist/es6/src/suffix-trie.js.map +1 -1
- package/dist/es6/tsconfig.bundle.tsbuildinfo +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +4 -4
- package/src/suffix-trie.ts +3 -1
package/dist/cjs/index.js
CHANGED
|
@@ -568,7 +568,6 @@ const rules = (function () {
|
|
|
568
568
|
* Lookup parts of domain in Trie
|
|
569
569
|
*/
|
|
570
570
|
function lookupInTrie(parts, trie, index, allowedMask) {
|
|
571
|
-
var _a;
|
|
572
571
|
let result = null;
|
|
573
572
|
let node = trie;
|
|
574
573
|
while (node !== undefined) {
|
|
@@ -585,7 +584,9 @@ function lookupInTrie(parts, trie, index, allowedMask) {
|
|
|
585
584
|
break;
|
|
586
585
|
}
|
|
587
586
|
const succ = node[1];
|
|
588
|
-
node = (
|
|
587
|
+
node = Object.prototype.hasOwnProperty.call(succ, parts[index])
|
|
588
|
+
? succ[parts[index]]
|
|
589
|
+
: succ['*'];
|
|
589
590
|
index -= 1;
|
|
590
591
|
}
|
|
591
592
|
return result;
|