mol_wire_lib 1.0.808 → 1.0.809

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
@@ -885,6 +885,8 @@ var $;
885
885
  return true;
886
886
  }
887
887
  function compare_buffer(left, right) {
888
+ if (left instanceof DataView)
889
+ return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
888
890
  const len = left.byteLength;
889
891
  if (len !== right.byteLength)
890
892
  return false;
package/web.test.js CHANGED
@@ -752,6 +752,11 @@ var $;
752
752
  $mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
753
753
  $mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
754
754
  },
755
+ 'DataView'() {
756
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array().buffer), new DataView(new Uint8Array().buffer)));
757
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([0]).buffer)));
758
+ $mol_assert_not($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([1]).buffer)));
759
+ },
755
760
  'Serializale'() {
756
761
  class User {
757
762
  name;