mol_time_all 1.1.784 → 1.1.786
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.test.js +8 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +8 -1
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -1634,6 +1634,8 @@ var $;
|
|
|
1634
1634
|
return true;
|
|
1635
1635
|
}
|
|
1636
1636
|
function compare_buffer(left, right) {
|
|
1637
|
+
if (left instanceof DataView)
|
|
1638
|
+
return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
|
|
1637
1639
|
const len = left.byteLength;
|
|
1638
1640
|
if (len !== right.byteLength)
|
|
1639
1641
|
return false;
|
|
@@ -1777,6 +1779,11 @@ var $;
|
|
|
1777
1779
|
$mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
|
|
1778
1780
|
$mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
|
|
1779
1781
|
},
|
|
1782
|
+
'DataView'() {
|
|
1783
|
+
$mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array().buffer), new DataView(new Uint8Array().buffer)));
|
|
1784
|
+
$mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([0]).buffer)));
|
|
1785
|
+
$mol_assert_not($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([1]).buffer)));
|
|
1786
|
+
},
|
|
1780
1787
|
'Serializale'() {
|
|
1781
1788
|
class User {
|
|
1782
1789
|
name;
|
|
@@ -1887,7 +1894,7 @@ var $;
|
|
|
1887
1894
|
if ('outerHTML' in val)
|
|
1888
1895
|
return val.outerHTML;
|
|
1889
1896
|
try {
|
|
1890
|
-
return JSON.stringify(val,
|
|
1897
|
+
return JSON.stringify(val, (k, v) => typeof v === 'bigint' ? String(v) : v, '\t');
|
|
1891
1898
|
}
|
|
1892
1899
|
catch (error) {
|
|
1893
1900
|
console.error(error);
|