mol_plot_all 1.2.816 → 1.2.818

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;
@@ -2170,6 +2171,7 @@ var $;
2170
2171
  const getter = (() => value);
2171
2172
  getter['()'] = value;
2172
2173
  getter[Symbol.toStringTag] = value;
2174
+ getter[$mol_dev_format_head] = () => $mol_dev_format_span({}, '()=> ', $mol_dev_format_auto(value));
2173
2175
  return getter;
2174
2176
  }
2175
2177
  $.$mol_const = $mol_const;
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;
@@ -2162,6 +2163,7 @@ var $;
2162
2163
  const getter = (() => value);
2163
2164
  getter['()'] = value;
2164
2165
  getter[Symbol.toStringTag] = value;
2166
+ getter[$mol_dev_format_head] = () => $mol_dev_format_span({}, '()=> ', $mol_dev_format_auto(value));
2165
2167
  return getter;
2166
2168
  }
2167
2169
  $.$mol_const = $mol_const;
@@ -7016,6 +7018,11 @@ var $;
7016
7018
  $mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
7017
7019
  $mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
7018
7020
  },
7021
+ 'DataView'() {
7022
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array().buffer), new DataView(new Uint8Array().buffer)));
7023
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([0]).buffer)));
7024
+ $mol_assert_not($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([1]).buffer)));
7025
+ },
7019
7026
  'Serializale'() {
7020
7027
  class User {
7021
7028
  name;
@@ -7126,7 +7133,7 @@ var $;
7126
7133
  if ('outerHTML' in val)
7127
7134
  return val.outerHTML;
7128
7135
  try {
7129
- return JSON.stringify(val, null, '\t');
7136
+ return JSON.stringify(val, (k, v) => typeof v === 'bigint' ? String(v) : v, '\t');
7130
7137
  }
7131
7138
  catch (error) {
7132
7139
  console.error(error);