@bolttech/form-engine-core 1.0.6 → 1.0.7

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.esm.js +3 -0
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -2064,14 +2064,17 @@ const getIntervalsDate = (date, intervals) => {
2064
2064
  */
2065
2065
  const dateRearrangeMapper = {
2066
2066
  DDMMYYYY: value => {
2067
+ if (!value) return '';
2067
2068
  const dateParts = value.split(value.includes('/') ? '/' : '-');
2068
2069
  return `${dateParts[1]}/${dateParts[0]}/${dateParts[2]}`;
2069
2070
  },
2070
2071
  YYYYMMDD: value => {
2072
+ if (!value) return '';
2071
2073
  const dateParts = value.split(value.includes('/') ? '/' : '-');
2072
2074
  return `${dateParts[1]}/${dateParts[2]}/${dateParts[0]}`;
2073
2075
  },
2074
2076
  YYYYDDMM: value => {
2077
+ if (!value) return '';
2075
2078
  const dateParts = value.split(value.includes('/') ? '/' : '-');
2076
2079
  return `${dateParts[2]}/${dateParts[1]}/${dateParts[0]}`;
2077
2080
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bolttech/form-engine-core",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "dependencies": {
5
5
  "@gaignoux/currency": "^1.1.0",
6
6
  "credit-card-type": "^10.0.0",