@cloudstrytech/validations 1.0.7 → 1.0.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudstrytech/validations",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "JavaScript utility functions for validation",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -30,10 +30,10 @@ const MANDATORY_FIELDS = {
30
30
  validate: (v) => !!v && isValidIndianMobile(v),
31
31
  },
32
32
 
33
- "company": {
34
- message: "Company is required",
35
- validate: (v) => !!v && String(v).trim() !== "",
36
- },
33
+ // "company": {
34
+ // message: "Company is required",
35
+ // validate: (v) => !!v && String(v).trim() !== "",
36
+ // },
37
37
 
38
38
  "badge1": {
39
39
  message: "Badge ID is required or must be a 5-digit number",
@@ -46,10 +46,10 @@ const MANDATORY_FIELDS = {
46
46
  validate: (v) => !!v && isValidDate(v),
47
47
  },
48
48
 
49
- "location-b1": {
50
- message: "Location is required",
51
- validate: (v) => !!v && String(v).trim() !== "",
52
- },
49
+ // "location-b1": {
50
+ // message: "Location is required",
51
+ // validate: (v) => !!v && String(v).trim() !== "",
52
+ // },
53
53
  };
54
54
 
55
55
  export async function validateCSV(csvInput) {