mol_plot_all 1.2.815 → 1.2.817

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
@@ -385,7 +385,6 @@ var $;
385
385
  $.$mol_dev_format_element = $mol_dev_format_element;
386
386
  function $mol_dev_format_span(style, ...content) {
387
387
  return $mol_dev_format_element('span', {
388
- 'vertical-align': '8%',
389
388
  ...style,
390
389
  }, ...content);
391
390
  }
@@ -994,6 +993,8 @@ var $;
994
993
  return true;
995
994
  }
996
995
  function compare_buffer(left, right) {
996
+ if (left instanceof DataView)
997
+ return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
997
998
  const len = left.byteLength;
998
999
  if (len !== right.byteLength)
999
1000
  return false;
package/web.test.js CHANGED
@@ -684,6 +684,11 @@ var $;
684
684
  $mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
685
685
  $mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
686
686
  },
687
+ 'DataView'() {
688
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array().buffer), new DataView(new Uint8Array().buffer)));
689
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([0]).buffer)));
690
+ $mol_assert_not($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([1]).buffer)));
691
+ },
687
692
  'Serializale'() {
688
693
  class User {
689
694
  name;
@@ -794,7 +799,7 @@ var $;
794
799
  if ('outerHTML' in val)
795
800
  return val.outerHTML;
796
801
  try {
797
- return JSON.stringify(val, null, '\t');
802
+ return JSON.stringify(val, (k, v) => typeof v === 'bigint' ? String(v) : v, '\t');
798
803
  }
799
804
  catch (error) {
800
805
  console.error(error);