mol_wire_lib 1.0.280 → 1.0.283

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
@@ -844,7 +844,7 @@ var $;
844
844
  }
845
845
  return true;
846
846
  }
847
- function compare_iterator(left, right, compare) {
847
+ function compare_iterator(left, right) {
848
848
  while (true) {
849
849
  const left_next = left.next();
850
850
  const right_next = right.next();
@@ -852,7 +852,7 @@ var $;
852
852
  return false;
853
853
  if (left_next.done)
854
854
  break;
855
- if (!compare(left_next.value, right_next.value))
855
+ if (!$mol_compare_deep(left_next.value, right_next.value))
856
856
  return false;
857
857
  }
858
858
  return true;
@@ -860,13 +860,13 @@ var $;
860
860
  function compare_set(left, right) {
861
861
  if (left.size !== right.size)
862
862
  return false;
863
- return compare_iterator(left.values(), right.values(), $mol_compare_deep);
863
+ return compare_iterator(left.values(), right.values());
864
864
  }
865
865
  function compare_map(left, right) {
866
866
  if (left.size !== right.size)
867
867
  return false;
868
- return compare_iterator(left.keys(), right.keys(), Object.is)
869
- && compare_iterator(left.values(), right.values(), $mol_compare_deep);
868
+ return compare_iterator(left.keys(), right.keys())
869
+ && compare_iterator(left.values(), right.values());
870
870
  }
871
871
  function compare_pojo(left, right) {
872
872
  const left_keys = Object.getOwnPropertyNames(left);