owl-cli 6.13.0 → 6.15.0
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.
|
@@ -17,8 +17,8 @@ function isEqual(r1,r2){
|
|
|
17
17
|
return false;
|
|
18
18
|
}
|
|
19
19
|
//now assert a1!=null && r2!=null
|
|
20
|
-
var ks1 =
|
|
21
|
-
var ks2 =
|
|
20
|
+
var ks1 = Object.keys(r1);
|
|
21
|
+
var ks2 = Object.keys(r2);
|
|
22
22
|
if(ks1.length!==ks2.length){
|
|
23
23
|
return false;
|
|
24
24
|
}
|
|
@@ -72,10 +72,10 @@ function diffArray(a1, a2,parentKey){
|
|
|
72
72
|
|
|
73
73
|
function diff(obj1, obj2,parentKey){
|
|
74
74
|
var result = []
|
|
75
|
-
var keys1 =
|
|
76
|
-
var keys2 =
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
var keys1 = Object.keys(obj1);
|
|
76
|
+
var keys2 = Object.keys(obj2);
|
|
77
|
+
keys1.sort();
|
|
78
|
+
keys2.sort();
|
|
79
79
|
|
|
80
80
|
//找到减少的
|
|
81
81
|
和发生了变化的
|