hyoo_sync_client 0.0.242 → 0.0.243

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
@@ -1276,7 +1276,6 @@ var $;
1276
1276
  $.$mol_dev_format_element = $mol_dev_format_element;
1277
1277
  function $mol_dev_format_span(style, ...content) {
1278
1278
  return $mol_dev_format_element('span', {
1279
- 'vertical-align': '8%',
1280
1279
  ...style,
1281
1280
  }, ...content);
1282
1281
  }
@@ -2210,6 +2209,8 @@ var $;
2210
2209
  return true;
2211
2210
  }
2212
2211
  function compare_buffer(left, right) {
2212
+ if (left instanceof DataView)
2213
+ return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
2213
2214
  const len = left.byteLength;
2214
2215
  if (len !== right.byteLength)
2215
2216
  return false;
package/node.test.js CHANGED
@@ -1268,7 +1268,6 @@ var $;
1268
1268
  $.$mol_dev_format_element = $mol_dev_format_element;
1269
1269
  function $mol_dev_format_span(style, ...content) {
1270
1270
  return $mol_dev_format_element('span', {
1271
- 'vertical-align': '8%',
1272
1271
  ...style,
1273
1272
  }, ...content);
1274
1273
  }
@@ -2202,6 +2201,8 @@ var $;
2202
2201
  return true;
2203
2202
  }
2204
2203
  function compare_buffer(left, right) {
2204
+ if (left instanceof DataView)
2205
+ return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
2205
2206
  const len = left.byteLength;
2206
2207
  if (len !== right.byteLength)
2207
2208
  return false;
@@ -5338,6 +5339,11 @@ var $;
5338
5339
  $mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
5339
5340
  $mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
5340
5341
  },
5342
+ 'DataView'() {
5343
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array().buffer), new DataView(new Uint8Array().buffer)));
5344
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([0]).buffer)));
5345
+ $mol_assert_not($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([1]).buffer)));
5346
+ },
5341
5347
  'Serializale'() {
5342
5348
  class User {
5343
5349
  name;
@@ -5448,7 +5454,7 @@ var $;
5448
5454
  if ('outerHTML' in val)
5449
5455
  return val.outerHTML;
5450
5456
  try {
5451
- return JSON.stringify(val, null, '\t');
5457
+ return JSON.stringify(val, (k, v) => typeof v === 'bigint' ? String(v) : v, '\t');
5452
5458
  }
5453
5459
  catch (error) {
5454
5460
  console.error(error);