hyoo_sync_client 0.0.178 → 0.0.180
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.js +2 -2
- package/node.js.map +1 -1
- package/node.mjs +2 -2
- package/node.test.js +281 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.js +2 -2
- package/web.js.map +1 -1
- package/web.mjs +2 -2
- package/web.test.js +279 -0
- package/web.test.js.map +1 -1
package/package.json
CHANGED
package/web.js
CHANGED
|
@@ -1476,6 +1476,8 @@ var $;
|
|
|
1476
1476
|
result = compare_pojo(left, right);
|
|
1477
1477
|
else if (!Reflect.getPrototypeOf(left_proto))
|
|
1478
1478
|
result = compare_pojo(left, right);
|
|
1479
|
+
else if (Symbol.toPrimitive in left)
|
|
1480
|
+
result = compare_primitive(left, right);
|
|
1479
1481
|
else if (Array.isArray(left))
|
|
1480
1482
|
result = compare_array(left, right);
|
|
1481
1483
|
else if (left instanceof Set)
|
|
@@ -1486,8 +1488,6 @@ var $;
|
|
|
1486
1488
|
result = compare_buffer(left, right);
|
|
1487
1489
|
else if (Symbol.iterator in left)
|
|
1488
1490
|
result = compare_iterator(left[Symbol.iterator](), right[Symbol.iterator]());
|
|
1489
|
-
else if (Symbol.toPrimitive in left)
|
|
1490
|
-
result = compare_primitive(left, right);
|
|
1491
1491
|
else
|
|
1492
1492
|
result = false;
|
|
1493
1493
|
}
|