hyoo_sync_client 0.0.179 → 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/node.js
CHANGED
|
@@ -2066,6 +2066,8 @@ var $;
|
|
|
2066
2066
|
result = compare_pojo(left, right);
|
|
2067
2067
|
else if (!Reflect.getPrototypeOf(left_proto))
|
|
2068
2068
|
result = compare_pojo(left, right);
|
|
2069
|
+
else if (Symbol.toPrimitive in left)
|
|
2070
|
+
result = compare_primitive(left, right);
|
|
2069
2071
|
else if (Array.isArray(left))
|
|
2070
2072
|
result = compare_array(left, right);
|
|
2071
2073
|
else if (left instanceof Set)
|
|
@@ -2076,8 +2078,6 @@ var $;
|
|
|
2076
2078
|
result = compare_buffer(left, right);
|
|
2077
2079
|
else if (Symbol.iterator in left)
|
|
2078
2080
|
result = compare_iterator(left[Symbol.iterator](), right[Symbol.iterator]());
|
|
2079
|
-
else if (Symbol.toPrimitive in left)
|
|
2080
|
-
result = compare_primitive(left, right);
|
|
2081
2081
|
else
|
|
2082
2082
|
result = false;
|
|
2083
2083
|
}
|