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.deps.json +1 -1
- package/node.js +2 -1
- package/node.js.map +1 -1
- package/node.mjs +2 -1
- package/node.test.js +8 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +2 -1
- package/web.js.map +1 -1
- package/web.mjs +2 -1
- package/web.test.js +6 -1
- package/web.test.js.map +1 -1
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;
|
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,
|
|
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);
|