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/node.mjs CHANGED
@@ -1792,6 +1792,8 @@ var $;
1792
1792
  return true;
1793
1793
  }
1794
1794
  function compare_buffer(left, right) {
1795
+ if (left instanceof DataView)
1796
+ return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
1795
1797
  const len = left.byteLength;
1796
1798
  if (len !== right.byteLength)
1797
1799
  return false;
package/node.test.js CHANGED
@@ -1784,6 +1784,8 @@ var $;
1784
1784
  return true;
1785
1785
  }
1786
1786
  function compare_buffer(left, right) {
1787
+ if (left instanceof DataView)
1788
+ return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
1787
1789
  const len = left.byteLength;
1788
1790
  if (len !== right.byteLength)
1789
1791
  return false;
@@ -4012,6 +4014,11 @@ var $;
4012
4014
  $mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
4013
4015
  $mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
4014
4016
  },
4017
+ 'DataView'() {
4018
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array().buffer), new DataView(new Uint8Array().buffer)));
4019
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([0]).buffer)));
4020
+ $mol_assert_not($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([1]).buffer)));
4021
+ },
4015
4022
  'Serializale'() {
4016
4023
  class User {
4017
4024
  name;