mol_jsx_lib 0.0.676 → 0.0.677

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.mjs CHANGED
@@ -1195,6 +1195,8 @@ var $;
1195
1195
  return true;
1196
1196
  }
1197
1197
  function compare_buffer(left, right) {
1198
+ if (left instanceof DataView)
1199
+ return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
1198
1200
  const len = left.byteLength;
1199
1201
  if (len !== right.byteLength)
1200
1202
  return false;
package/web.test.js CHANGED
@@ -1090,6 +1090,11 @@ var $;
1090
1090
  $mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
1091
1091
  $mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
1092
1092
  },
1093
+ 'DataView'() {
1094
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array().buffer), new DataView(new Uint8Array().buffer)));
1095
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([0]).buffer)));
1096
+ $mol_assert_not($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([1]).buffer)));
1097
+ },
1093
1098
  'Serializale'() {
1094
1099
  class User {
1095
1100
  name;