mol_crypto_lib 0.0.718 → 0.0.720
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
|
@@ -1540,6 +1540,8 @@ var $;
|
|
|
1540
1540
|
result = compare_map(left, right);
|
|
1541
1541
|
else if (ArrayBuffer.isView(left))
|
|
1542
1542
|
result = compare_buffer(left, right);
|
|
1543
|
+
else if (Symbol.iterator in left)
|
|
1544
|
+
result = compare_iterator(left[Symbol.iterator](), right[Symbol.iterator]());
|
|
1543
1545
|
else if (Symbol.toPrimitive in left)
|
|
1544
1546
|
result = compare_primitive(left, right);
|
|
1545
1547
|
else
|
|
@@ -1703,7 +1705,7 @@ var $;
|
|
|
1703
1705
|
$mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
|
|
1704
1706
|
$mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
|
|
1705
1707
|
},
|
|
1706
|
-
'
|
|
1708
|
+
'Serializale'() {
|
|
1707
1709
|
class User {
|
|
1708
1710
|
name;
|
|
1709
1711
|
rand;
|
|
@@ -1718,6 +1720,11 @@ var $;
|
|
|
1718
1720
|
$mol_assert_ok($mol_compare_deep(new User('Jin'), new User('Jin')));
|
|
1719
1721
|
$mol_assert_not($mol_compare_deep(new User('Jin'), new User('John')));
|
|
1720
1722
|
},
|
|
1723
|
+
'Iterable'() {
|
|
1724
|
+
$mol_assert_ok($mol_compare_deep(new URLSearchParams({ foo: 'bar' }), new URLSearchParams({ foo: 'bar' })));
|
|
1725
|
+
$mol_assert_not($mol_compare_deep(new URLSearchParams({ foo: 'xxx' }), new URLSearchParams({ foo: 'yyy' })));
|
|
1726
|
+
$mol_assert_not($mol_compare_deep(new URLSearchParams({ foo: 'xxx', bar: 'yyy' }), new URLSearchParams({ bar: 'yyy', foo: 'xxx' })));
|
|
1727
|
+
},
|
|
1721
1728
|
});
|
|
1722
1729
|
})($ || ($ = {}));
|
|
1723
1730
|
//mol/compare/deep/deep.test.tsx
|