owl-cli 6.61.0 → 6.63.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.
|
@@ -127,14 +127,15 @@ function diff(obj1, obj2,parentKeys){
|
|
|
127
127
|
obj2 = {};
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
if(typeof
|
|
130
|
+
if(typeof obj2==='string'){
|
|
131
131
|
result.push({
|
|
132
132
|
type:'changed',
|
|
133
133
|
fieldKey : parentKeys,
|
|
134
134
|
parentKeys: "",
|
|
135
|
-
oldv : '' + JSON.stringify(
|
|
136
|
-
newv : '' +
|
|
135
|
+
oldv : '' + JSON.stringify(obj1),
|
|
136
|
+
newv : '' + obj2
|
|
137
137
|
});
|
|
138
|
+
return result;
|
|
138
139
|
}
|
|
139
140
|
var keys1 = Object.keys(obj1);
|
|
140
141
|
var keys2 = Object.keys(obj2);
|