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/node.mjs CHANGED
@@ -400,7 +400,6 @@ var $;
400
400
  $.$mol_dev_format_element = $mol_dev_format_element;
401
401
  function $mol_dev_format_span(style, ...content) {
402
402
  return $mol_dev_format_element('span', {
403
- 'vertical-align': '8%',
404
403
  ...style,
405
404
  }, ...content);
406
405
  }
@@ -1003,6 +1002,8 @@ var $;
1003
1002
  return true;
1004
1003
  }
1005
1004
  function compare_buffer(left, right) {
1005
+ if (left instanceof DataView)
1006
+ return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
1006
1007
  const len = left.byteLength;
1007
1008
  if (len !== right.byteLength)
1008
1009
  return false;
package/node.test.js CHANGED
@@ -392,7 +392,6 @@ var $;
392
392
  $.$mol_dev_format_element = $mol_dev_format_element;
393
393
  function $mol_dev_format_span(style, ...content) {
394
394
  return $mol_dev_format_element('span', {
395
- 'vertical-align': '8%',
396
395
  ...style,
397
396
  }, ...content);
398
397
  }
@@ -995,6 +994,8 @@ var $;
995
994
  return true;
996
995
  }
997
996
  function compare_buffer(left, right) {
997
+ if (left instanceof DataView)
998
+ return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
998
999
  const len = left.byteLength;
999
1000
  if (len !== right.byteLength)
1000
1001
  return false;
@@ -7016,6 +7017,11 @@ var $;
7016
7017
  $mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
7017
7018
  $mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
7018
7019
  },
7020
+ 'DataView'() {
7021
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array().buffer), new DataView(new Uint8Array().buffer)));
7022
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([0]).buffer)));
7023
+ $mol_assert_not($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([1]).buffer)));
7024
+ },
7019
7025
  'Serializale'() {
7020
7026
  class User {
7021
7027
  name;
@@ -7126,7 +7132,7 @@ var $;
7126
7132
  if ('outerHTML' in val)
7127
7133
  return val.outerHTML;
7128
7134
  try {
7129
- return JSON.stringify(val, null, '\t');
7135
+ return JSON.stringify(val, (k, v) => typeof v === 'bigint' ? String(v) : v, '\t');
7130
7136
  }
7131
7137
  catch (error) {
7132
7138
  console.error(error);