mol_jsx_lib 0.0.147 → 0.0.148

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/node.js CHANGED
@@ -1659,7 +1659,7 @@ var $;
1659
1659
  }
1660
1660
  return true;
1661
1661
  }
1662
- function compare_iterator(left, right, compare) {
1662
+ function compare_iterator(left, right) {
1663
1663
  while (true) {
1664
1664
  const left_next = left.next();
1665
1665
  const right_next = right.next();
@@ -1667,7 +1667,7 @@ var $;
1667
1667
  return false;
1668
1668
  if (left_next.done)
1669
1669
  break;
1670
- if (!compare(left_next.value, right_next.value))
1670
+ if (!$mol_compare_deep(left_next.value, right_next.value))
1671
1671
  return false;
1672
1672
  }
1673
1673
  return true;
@@ -1675,13 +1675,13 @@ var $;
1675
1675
  function compare_set(left, right) {
1676
1676
  if (left.size !== right.size)
1677
1677
  return false;
1678
- return compare_iterator(left.values(), right.values(), $mol_compare_deep);
1678
+ return compare_iterator(left.values(), right.values());
1679
1679
  }
1680
1680
  function compare_map(left, right) {
1681
1681
  if (left.size !== right.size)
1682
1682
  return false;
1683
- return compare_iterator(left.keys(), right.keys(), Object.is)
1684
- && compare_iterator(left.values(), right.values(), $mol_compare_deep);
1683
+ return compare_iterator(left.keys(), right.keys())
1684
+ && compare_iterator(left.values(), right.values());
1685
1685
  }
1686
1686
  function compare_pojo(left, right) {
1687
1687
  const left_keys = Object.getOwnPropertyNames(left);