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 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 = (_a = succ[parts[index]]) !== null && _a !== void 0 ? _a : succ['*'];
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;