@trackunit/iris-app-runtime-core 0.0.71 → 0.0.73

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.
Files changed (2) hide show
  1. package/index.js +10 -1
  2. 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
- return stringValue === null || stringValue === undefined ? null : stringValue.trim().length === 0 ? null : stringValue.trim();
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.71",
3
+ "version": "0.0.73",
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.68",
12
- "@trackunit/react-core-contexts-api": "0.0.62"
11
+ "@trackunit/iris-app-runtime-core-api": "0.0.69",
12
+ "@trackunit/react-core-contexts-api": "0.0.63"
13
13
  },
14
14
  "peerDependencies": {}
15
15
  }