mol_plot_all 1.2.547 → 1.2.549
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 +13 -3
- package/node.js.map +1 -1
- package/node.mjs +13 -3
- package/node.mjs.map +1 -1
- package/node.test.js +20 -4
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +13 -3
- package/web.js.map +1 -1
- package/web.mjs +13 -3
- package/web.mjs.map +1 -1
- package/web.test.js +7 -1
- package/web.test.js.map +1 -1
package/node.mjs
CHANGED
|
@@ -923,7 +923,9 @@ var $;
|
|
|
923
923
|
}
|
|
924
924
|
let result;
|
|
925
925
|
try {
|
|
926
|
-
if (
|
|
926
|
+
if (!left_proto)
|
|
927
|
+
result = compare_pojo(left, right);
|
|
928
|
+
else if (!Reflect.getPrototypeOf(left_proto))
|
|
927
929
|
result = compare_pojo(left, right);
|
|
928
930
|
else if (Array.isArray(left))
|
|
929
931
|
result = compare_array(left, right);
|
|
@@ -991,10 +993,18 @@ var $;
|
|
|
991
993
|
function compare_pojo(left, right) {
|
|
992
994
|
const left_keys = Object.getOwnPropertyNames(left);
|
|
993
995
|
const right_keys = Object.getOwnPropertyNames(right);
|
|
994
|
-
if (left_keys
|
|
996
|
+
if (!compare_array(left_keys, right_keys))
|
|
995
997
|
return false;
|
|
996
998
|
for (let key of left_keys) {
|
|
997
|
-
if (!$mol_compare_deep(left[key],
|
|
999
|
+
if (!$mol_compare_deep(left[key], right[key]))
|
|
1000
|
+
return false;
|
|
1001
|
+
}
|
|
1002
|
+
const left_syms = Object.getOwnPropertySymbols(left);
|
|
1003
|
+
const right_syms = Object.getOwnPropertySymbols(right);
|
|
1004
|
+
if (!compare_array(left_syms, right_syms))
|
|
1005
|
+
return false;
|
|
1006
|
+
for (let key of left_syms) {
|
|
1007
|
+
if (!$mol_compare_deep(left[key], right[key]))
|
|
998
1008
|
return false;
|
|
999
1009
|
}
|
|
1000
1010
|
return true;
|