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/web.js CHANGED
@@ -1151,7 +1151,7 @@ var $;
1151
1151
  }
1152
1152
  return true;
1153
1153
  }
1154
- function compare_iterator(left, right, compare) {
1154
+ function compare_iterator(left, right) {
1155
1155
  while (true) {
1156
1156
  const left_next = left.next();
1157
1157
  const right_next = right.next();
@@ -1159,7 +1159,7 @@ var $;
1159
1159
  return false;
1160
1160
  if (left_next.done)
1161
1161
  break;
1162
- if (!compare(left_next.value, right_next.value))
1162
+ if (!$mol_compare_deep(left_next.value, right_next.value))
1163
1163
  return false;
1164
1164
  }
1165
1165
  return true;
@@ -1167,13 +1167,13 @@ var $;
1167
1167
  function compare_set(left, right) {
1168
1168
  if (left.size !== right.size)
1169
1169
  return false;
1170
- return compare_iterator(left.values(), right.values(), $mol_compare_deep);
1170
+ return compare_iterator(left.values(), right.values());
1171
1171
  }
1172
1172
  function compare_map(left, right) {
1173
1173
  if (left.size !== right.size)
1174
1174
  return false;
1175
- return compare_iterator(left.keys(), right.keys(), Object.is)
1176
- && compare_iterator(left.values(), right.values(), $mol_compare_deep);
1175
+ return compare_iterator(left.keys(), right.keys())
1176
+ && compare_iterator(left.values(), right.values());
1177
1177
  }
1178
1178
  function compare_pojo(left, right) {
1179
1179
  const left_keys = Object.getOwnPropertyNames(left);