owl-cli 6.62.0 → 6.64.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,13 +127,13 @@ 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
138
|
return result;
|
|
139
139
|
}
|
|
@@ -345,7 +345,13 @@ var @projectCodeService = (function (pigeon) {
|
|
|
345
345
|
return value
|
|
346
346
|
}
|
|
347
347
|
case 'date':
|
|
348
|
-
|
|
348
|
+
try{
|
|
349
|
+
return moment(value);
|
|
350
|
+
}
|
|
351
|
+
catch(e){
|
|
352
|
+
return null;
|
|
353
|
+
}
|
|
354
|
+
|
|
349
355
|
case 'choice':
|
|
350
356
|
return value
|
|
351
357
|
default:
|