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/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;
@@ -3074,6 +3075,7 @@ var $;
3074
3075
  const getter = (() => value);
3075
3076
  getter['()'] = value;
3076
3077
  getter[Symbol.toStringTag] = value;
3078
+ getter[$mol_dev_format_head] = () => $mol_dev_format_span({}, '()=> ', $mol_dev_format_auto(value));
3077
3079
  return getter;
3078
3080
  }
3079
3081
  $.$mol_const = $mol_const;
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;
@@ -3066,6 +3067,7 @@ var $;
3066
3067
  const getter = (() => value);
3067
3068
  getter['()'] = value;
3068
3069
  getter[Symbol.toStringTag] = value;
3070
+ getter[$mol_dev_format_head] = () => $mol_dev_format_span({}, '()=> ', $mol_dev_format_auto(value));
3069
3071
  return getter;
3070
3072
  }
3071
3073
  $.$mol_const = $mol_const;
@@ -5338,6 +5340,11 @@ var $;
5338
5340
  $mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
5339
5341
  $mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
5340
5342
  },
5343
+ 'DataView'() {
5344
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array().buffer), new DataView(new Uint8Array().buffer)));
5345
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([0]).buffer)));
5346
+ $mol_assert_not($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([1]).buffer)));
5347
+ },
5341
5348
  'Serializale'() {
5342
5349
  class User {
5343
5350
  name;
@@ -5448,7 +5455,7 @@ var $;
5448
5455
  if ('outerHTML' in val)
5449
5456
  return val.outerHTML;
5450
5457
  try {
5451
- return JSON.stringify(val, null, '\t');
5458
+ return JSON.stringify(val, (k, v) => typeof v === 'bigint' ? String(v) : v, '\t');
5452
5459
  }
5453
5460
  catch (error) {
5454
5461
  console.error(error);