@smvtech/x-flux 1.0.5 → 1.0.6

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/dist/index.js CHANGED
@@ -271,7 +271,7 @@ var isMinor = (dateOfBirth, travelStartDate) => {
271
271
  if (!dateOfBirth || !travelStartDate) return false;
272
272
  let dob;
273
273
  if (dateOfBirth.includes("/")) {
274
- const [month, day, year] = dateOfBirth.split("/").map(Number);
274
+ const [day, month, year] = dateOfBirth.split("/").map(Number);
275
275
  dob = new Date(year, month - 1, day);
276
276
  } else {
277
277
  dob = new Date(dateOfBirth);
package/dist/index.mjs CHANGED
@@ -245,7 +245,7 @@ var isMinor = (dateOfBirth, travelStartDate) => {
245
245
  if (!dateOfBirth || !travelStartDate) return false;
246
246
  let dob;
247
247
  if (dateOfBirth.includes("/")) {
248
- const [month, day, year] = dateOfBirth.split("/").map(Number);
248
+ const [day, month, year] = dateOfBirth.split("/").map(Number);
249
249
  dob = new Date(year, month - 1, day);
250
250
  } else {
251
251
  dob = new Date(dateOfBirth);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smvtech/x-flux",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "x-flux - A powerful React package for managing effective document collection flows, visa questionnaires, travellers, and applications",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",