@better-giving/endowment 4.0.28 → 4.0.29

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/schema.mjs CHANGED
@@ -17,13 +17,13 @@ export const allocation = v.pipe(v.object({
17
17
  export const reg_number = v.pipe($, v.nonEmpty("required"), v.regex(/^[a-zA-Z0-9]+$/, "must only contain letters and numbers"));
18
18
  export const _url = v.pipe($, v.url());
19
19
  export const social_media_urls = v.object({
20
- facebook: v.optional(https_url(false)),
21
- twitter: v.optional(https_url(false)),
22
- linkedin: v.optional(https_url(false)),
23
- discord: v.optional(https_url(false)),
24
- instagram: v.optional(https_url(false)),
25
- youtube: v.optional(https_url(false)),
26
- tiktok: v.optional(https_url(false)),
20
+ facebook: v.optional(https_url({})),
21
+ twitter: v.optional(https_url({})),
22
+ linkedin: v.optional(https_url({})),
23
+ discord: v.optional(https_url({})),
24
+ instagram: v.optional(https_url({})),
25
+ youtube: v.optional(https_url({})),
26
+ tiktok: v.optional(https_url({})),
27
27
  });
28
28
  export const MAX_RECEIPT_MSG_CHAR = 500;
29
29
  export const increment_val = v.pipe($req_num_gt0,
@@ -54,7 +54,7 @@ export const npo = v.object({
54
54
  street_address: v.optional($),
55
55
  social_media_urls,
56
56
  /** website */
57
- url: v.optional(https_url(false)),
57
+ url: v.optional(https_url({})),
58
58
  sdgs: v.pipe(v.array(unsdg_num), v.minLength(1)),
59
59
  receiptMsg: v.optional(v.pipe($, v.maxLength(MAX_RECEIPT_MSG_CHAR))),
60
60
  //can be optional, default false and need not be explicit
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@better-giving/endowment",
3
- "version": "4.0.28",
3
+ "version": "4.0.29",
4
4
  "dependencies": {
5
5
  "ksuid": "3.0.0"
6
6
  },
7
7
  "peerDependencies": {
8
- "@better-giving/schemas": "2.0.2",
8
+ "@better-giving/schemas": "2.0.3",
9
9
  "@better-giving/types": "1.1.8",
10
10
  "@better-giving/db": "2.0.6",
11
11
  "@aws-sdk/lib-dynamodb": "3.485.0",
package/src/schema.mts CHANGED
@@ -58,13 +58,13 @@ export const reg_number = v.pipe(
58
58
  export const _url = v.pipe($, v.url());
59
59
 
60
60
  export const social_media_urls = v.object({
61
- facebook: v.optional(https_url(false)),
62
- twitter: v.optional(https_url(false)),
63
- linkedin: v.optional(https_url(false)),
64
- discord: v.optional(https_url(false)),
65
- instagram: v.optional(https_url(false)),
66
- youtube: v.optional(https_url(false)),
67
- tiktok: v.optional(https_url(false)),
61
+ facebook: v.optional(https_url({})),
62
+ twitter: v.optional(https_url({})),
63
+ linkedin: v.optional(https_url({})),
64
+ discord: v.optional(https_url({})),
65
+ instagram: v.optional(https_url({})),
66
+ youtube: v.optional(https_url({})),
67
+ tiktok: v.optional(https_url({})),
68
68
  });
69
69
 
70
70
  export interface ISocialMediaURLs
@@ -114,7 +114,7 @@ export const npo = v.object({
114
114
  street_address: v.optional($),
115
115
  social_media_urls,
116
116
  /** website */
117
- url: v.optional(https_url(false)),
117
+ url: v.optional(https_url({})),
118
118
  sdgs: v.pipe(v.array(unsdg_num), v.minLength(1)),
119
119
  receiptMsg: v.optional(v.pipe($, v.maxLength(MAX_RECEIPT_MSG_CHAR))),
120
120
  //can be optional, default false and need not be explicit