jp-shared 1.0.30 → 1.1.0

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.
@@ -24,36 +24,32 @@ const schema = new mongoose.Schema(
24
24
  type: String,
25
25
  required: [true, "Organization name is required"],
26
26
  trim: true,
27
- minlength: [2, "Organization name must be at least 2 characters long"],
28
- maxlength: [100, "Organization name cannot exceed 100 characters"],
27
+ // minlength: [2, "Organization name must be at least 2 characters long"],
28
+ // maxlength: [100, "Organization name cannot exceed 100 characters"],
29
29
  },
30
30
  normalizedOrganizationName: {
31
31
  type: String,
32
32
  trim: true,
33
- minlength: [
34
- 2,
35
- "Normalized organization name must be at least 2 characters long",
36
- ],
37
- maxlength: [
38
- 100,
39
- "Normalized organization name cannot exceed 100 characters",
40
- ],
33
+ // minlength: [
34
+ // 2,
35
+ // "Normalized organization name must be at least 2 characters long",
36
+ // ],
37
+ // maxlength: [
38
+ // 100,
39
+ // "Normalized organization name cannot exceed 100 characters",
40
+ // ],
41
41
  lowercase: true, // Ensuring normalization for consistent database querying
42
42
  },
43
43
  about: {
44
44
  type: String,
45
45
  required: [true, "About section is required"],
46
46
  trim: true,
47
- minlength: [10, "About section must be at least 10 characters long"],
48
- maxlength: [1000, "About section cannot exceed 1000 characters"],
47
+ // minlength: [10, "About section must be at least 10 characters long"],
48
+ // maxlength: [1000, "About section cannot exceed 1000 characters"],
49
49
  },
50
50
  websiteLink: {
51
51
  type: String,
52
52
  required: [true, "Website link is required"],
53
- // match: [
54
- // /^(https?:\/\/)?(www\.)?([a-zA-Z0-9]+)(\.[a-z]{2,})+(\/[^\s]*)?$/,
55
- // "Website link must be a valid URL",
56
- // ],
57
53
  trim: true,
58
54
  },
59
55
  gallery: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jp-shared",
3
- "version": "1.0.30",
3
+ "version": "1.1.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"