hyoo_sync_client 0.0.242 → 0.0.244

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
@@ -698,7 +698,6 @@ var $;
698
698
  $.$mol_dev_format_element = $mol_dev_format_element;
699
699
  function $mol_dev_format_span(style, ...content) {
700
700
  return $mol_dev_format_element('span', {
701
- 'vertical-align': '8%',
702
701
  ...style,
703
702
  }, ...content);
704
703
  }
@@ -1638,6 +1637,8 @@ var $;
1638
1637
  return true;
1639
1638
  }
1640
1639
  function compare_buffer(left, right) {
1640
+ if (left instanceof DataView)
1641
+ return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
1641
1642
  const len = left.byteLength;
1642
1643
  if (len !== right.byteLength)
1643
1644
  return false;
@@ -2810,6 +2811,7 @@ var $;
2810
2811
  const getter = (() => value);
2811
2812
  getter['()'] = value;
2812
2813
  getter[Symbol.toStringTag] = value;
2814
+ getter[$mol_dev_format_head] = () => $mol_dev_format_span({}, '()=> ', $mol_dev_format_auto(value));
2813
2815
  return getter;
2814
2816
  }
2815
2817
  $.$mol_const = $mol_const;
package/web.test.js CHANGED
@@ -560,6 +560,11 @@ var $;
560
560
  $mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
561
561
  $mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
562
562
  },
563
+ 'DataView'() {
564
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array().buffer), new DataView(new Uint8Array().buffer)));
565
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([0]).buffer)));
566
+ $mol_assert_not($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([1]).buffer)));
567
+ },
563
568
  'Serializale'() {
564
569
  class User {
565
570
  name;
@@ -670,7 +675,7 @@ var $;
670
675
  if ('outerHTML' in val)
671
676
  return val.outerHTML;
672
677
  try {
673
- return JSON.stringify(val, null, '\t');
678
+ return JSON.stringify(val, (k, v) => typeof v === 'bigint' ? String(v) : v, '\t');
674
679
  }
675
680
  catch (error) {
676
681
  console.error(error);