@trackunit/iris-app-runtime-core 0.0.72 → 0.0.74
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/index.js +10 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1313,7 +1313,16 @@ const getCustomFieldValueFromRawValue = (customFieldDefinition, newValue) => {
|
|
|
1313
1313
|
|
|
1314
1314
|
const getStringValue = value => {
|
|
1315
1315
|
const stringValue = value;
|
|
1316
|
-
|
|
1316
|
+
|
|
1317
|
+
if (!isNaN(new Date(stringValue).getDate())) {
|
|
1318
|
+
return new Date(stringValue).toISOString();
|
|
1319
|
+
} else if (stringValue === null || stringValue === undefined) {
|
|
1320
|
+
return null;
|
|
1321
|
+
} else if (stringValue.trim().length === 0) {
|
|
1322
|
+
return null;
|
|
1323
|
+
} else {
|
|
1324
|
+
return stringValue.trim();
|
|
1325
|
+
}
|
|
1317
1326
|
};
|
|
1318
1327
|
|
|
1319
1328
|
const CustomFieldRuntime = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-runtime-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.74",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"types": "./index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@trackunit/iris-app-runtime-core-api": "0.0.
|
|
12
|
-
"@trackunit/react-core-contexts-api": "0.0.
|
|
11
|
+
"@trackunit/iris-app-runtime-core-api": "0.0.70",
|
|
12
|
+
"@trackunit/react-core-contexts-api": "0.0.64"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {}
|
|
15
15
|
}
|