hyoo_sync_client 0.0.301 → 0.0.302

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
@@ -1270,8 +1270,6 @@ var $;
1270
1270
  function $mol_dev_format_native(obj) {
1271
1271
  if (typeof obj === 'undefined')
1272
1272
  return $.$mol_dev_format_shade('undefined');
1273
- if (typeof obj !== 'object' && typeof obj !== 'function')
1274
- return obj;
1275
1273
  return [
1276
1274
  'object',
1277
1275
  {
@@ -2220,11 +2218,11 @@ var $;
2220
2218
  return true;
2221
2219
  }
2222
2220
  function compare_buffer(left, right) {
2223
- if (left instanceof DataView)
2224
- return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
2225
2221
  const len = left.byteLength;
2226
2222
  if (len !== right.byteLength)
2227
2223
  return false;
2224
+ if (left instanceof DataView)
2225
+ return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
2228
2226
  for (let i = 0; i < len; ++i) {
2229
2227
  if (left[i] !== right[i])
2230
2228
  return false;
package/node.test.js CHANGED
@@ -1262,8 +1262,6 @@ var $;
1262
1262
  function $mol_dev_format_native(obj) {
1263
1263
  if (typeof obj === 'undefined')
1264
1264
  return $.$mol_dev_format_shade('undefined');
1265
- if (typeof obj !== 'object' && typeof obj !== 'function')
1266
- return obj;
1267
1265
  return [
1268
1266
  'object',
1269
1267
  {
@@ -2212,11 +2210,11 @@ var $;
2212
2210
  return true;
2213
2211
  }
2214
2212
  function compare_buffer(left, right) {
2215
- if (left instanceof DataView)
2216
- return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
2217
2213
  const len = left.byteLength;
2218
2214
  if (len !== right.byteLength)
2219
2215
  return false;
2216
+ if (left instanceof DataView)
2217
+ return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
2220
2218
  for (let i = 0; i < len; ++i) {
2221
2219
  if (left[i] !== right[i])
2222
2220
  return false;