videomail-client 10.2.7 → 10.2.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.
@@ -13602,8 +13602,8 @@ var __webpack_exports__ = {};
13602
13602
  return email.replace(REGEX, "");
13603
13603
  }
13604
13604
  function trimEmails(emails) {
13605
- const uniqueAddresses = emails.split(REGEX).map((item)=>item.trim()).filter(Boolean);
13606
- return new Set(uniqueAddresses);
13605
+ const trimmedEmails = emails.split(REGEX).map((item)=>item.trim()).filter(Boolean);
13606
+ return trimmedEmails;
13607
13607
  }
13608
13608
  function isNotButton(element) {
13609
13609
  return "BUTTON" !== element.tagName && "submit" !== element.getAttribute("type");
@@ -13673,10 +13673,7 @@ var __webpack_exports__ = {};
13673
13673
  case "INPUT":
13674
13674
  {
13675
13675
  const inputControl = formControl;
13676
- if (value instanceof Set) inputControl.value = [
13677
- ...value
13678
- ].join(", ");
13679
- else if (Array.isArray(value)) inputControl.value = value.join(", ");
13676
+ if (Array.isArray(value)) inputControl.value = value.join(", ");
13680
13677
  else inputControl.value = value;
13681
13678
  break;
13682
13679
  }
@@ -13874,7 +13871,7 @@ var __webpack_exports__ = {};
13874
13871
  }
13875
13872
  const wrappers_form = Form;
13876
13873
  var package_namespaceObject = {
13877
- i8: "10.2.7"
13874
+ i8: "10.2.8"
13878
13875
  };
13879
13876
  function resource_define_property(obj, key, value) {
13880
13877
  if (key in obj) Object.defineProperty(obj, key, {
@@ -17787,9 +17784,9 @@ var __webpack_exports__ = {};
17787
17784
  const toIsConfigured = "to" in recipients;
17788
17785
  const ccIsConfigured = "cc" in recipients;
17789
17786
  const bccIsConfigured = "bcc" in recipients;
17790
- const hasTo = recipients.to && recipients.to.size > 0;
17791
- const hasCc = recipients.cc && recipients.cc.size > 0;
17792
- const hasBcc = recipients.bcc && recipients.bcc.size > 0;
17787
+ const hasTo = recipients.to && recipients.to.length > 0;
17788
+ const hasCc = recipients.cc && recipients.cc.length > 0;
17789
+ const hasBcc = recipients.bcc && recipients.bcc.length > 0;
17793
17790
  if (toIsConfigured) {
17794
17791
  if (!hasTo) {
17795
17792
  if (ccIsConfigured && bccIsConfigured) {
package/dist/esm/index.js CHANGED
@@ -3707,8 +3707,8 @@ function trimEmail(email) {
3707
3707
  return email.replace(REGEX, "");
3708
3708
  }
3709
3709
  function trimEmails(emails) {
3710
- const uniqueAddresses = emails.split(REGEX).map((item)=>item.trim()).filter(Boolean);
3711
- return new Set(uniqueAddresses);
3710
+ const trimmedEmails = emails.split(REGEX).map((item)=>item.trim()).filter(Boolean);
3711
+ return trimmedEmails;
3712
3712
  }
3713
3713
  function isNotButton(element) {
3714
3714
  return "BUTTON" !== element.tagName && "submit" !== element.getAttribute("type");
@@ -3788,10 +3788,7 @@ class Form extends Despot {
3788
3788
  case "INPUT":
3789
3789
  {
3790
3790
  const inputControl = formControl;
3791
- if (value instanceof Set) inputControl.value = [
3792
- ...value
3793
- ].join(", ");
3794
- else if (Array.isArray(value)) inputControl.value = value.join(", ");
3791
+ if (Array.isArray(value)) inputControl.value = value.join(", ");
3795
3792
  else inputControl.value = value;
3796
3793
  break;
3797
3794
  }
@@ -3970,7 +3967,7 @@ class Form extends Despot {
3970
3967
  }
3971
3968
  const wrappers_form = Form;
3972
3969
  var package_namespaceObject = {
3973
- i8: "10.2.7"
3970
+ i8: "10.2.8"
3974
3971
  };
3975
3972
  function findOriginalExc(exc) {
3976
3973
  if (exc instanceof Error && "response" in exc) {
@@ -7618,9 +7615,9 @@ class Container extends Despot {
7618
7615
  const toIsConfigured = "to" in recipients;
7619
7616
  const ccIsConfigured = "cc" in recipients;
7620
7617
  const bccIsConfigured = "bcc" in recipients;
7621
- const hasTo = recipients.to && recipients.to.size > 0;
7622
- const hasCc = recipients.cc && recipients.cc.size > 0;
7623
- const hasBcc = recipients.bcc && recipients.bcc.size > 0;
7618
+ const hasTo = recipients.to && recipients.to.length > 0;
7619
+ const hasCc = recipients.cc && recipients.cc.length > 0;
7620
+ const hasBcc = recipients.bcc && recipients.bcc.length > 0;
7624
7621
  if (toIsConfigured) {
7625
7622
  if (!hasTo) {
7626
7623
  if (ccIsConfigured && bccIsConfigured) {
@@ -3,9 +3,9 @@ import RecordingStats from "./RecordingStats";
3
3
  import VideoFormat from "./VideoFormat";
4
4
  interface Videomail {
5
5
  alias: string;
6
- bcc?: Set<string> | undefined;
6
+ bcc?: string[] | undefined;
7
7
  body?: string;
8
- cc?: Set<string> | undefined;
8
+ cc?: string[] | undefined;
9
9
  connection?: Record<string, number | string>;
10
10
  correctUrl: string;
11
11
  dateCreated: number;
@@ -24,24 +24,24 @@ interface Videomail {
24
24
  parentKey?: string;
25
25
  poster: string;
26
26
  recordingStats?: RecordingStats | undefined;
27
- rejectedBcc?: Set<string>;
28
- rejectedCc?: Set<string>;
29
- rejectedTo?: Set<string>;
30
- accepted?: Set<string>;
27
+ rejectedBcc?: string[];
28
+ rejectedCc?: string[];
29
+ rejectedTo?: string[];
30
+ accepted?: string[];
31
31
  replyAllUrl?: string;
32
32
  replyUrl: string;
33
33
  sending: boolean;
34
34
  sent?: boolean;
35
- sentBcc?: Set<string>;
36
- sentCc?: Set<string>;
35
+ sentBcc?: string[];
36
+ sentCc?: string[];
37
37
  sentDate?: number;
38
38
  sentDateIso?: string;
39
39
  sentDatePretty?: string;
40
- sentTo?: Set<string>;
40
+ sentTo?: string[];
41
41
  siteName: string;
42
42
  siteTitle?: string;
43
43
  subject?: string;
44
- to?: Set<string> | undefined;
44
+ to?: string[] | undefined;
45
45
  url: string;
46
46
  versions: {
47
47
  ninjaFormPlugin?: string;
@@ -1,3 +1,3 @@
1
1
  declare function trimEmail(email: string): string;
2
- declare function trimEmails(emails: string): Set<string>;
2
+ declare function trimEmails(emails: string): string[];
3
3
  export { trimEmail, trimEmails };
package/dist/umd/index.js CHANGED
@@ -13579,8 +13579,8 @@
13579
13579
  return email.replace(REGEX, "");
13580
13580
  }
13581
13581
  function trimEmails(emails) {
13582
- const uniqueAddresses = emails.split(REGEX).map((item)=>item.trim()).filter(Boolean);
13583
- return new Set(uniqueAddresses);
13582
+ const trimmedEmails = emails.split(REGEX).map((item)=>item.trim()).filter(Boolean);
13583
+ return trimmedEmails;
13584
13584
  }
13585
13585
  function isNotButton(element) {
13586
13586
  return "BUTTON" !== element.tagName && "submit" !== element.getAttribute("type");
@@ -13660,10 +13660,7 @@
13660
13660
  case "INPUT":
13661
13661
  {
13662
13662
  const inputControl = formControl;
13663
- if (value instanceof Set) inputControl.value = [
13664
- ...value
13665
- ].join(", ");
13666
- else if (Array.isArray(value)) inputControl.value = value.join(", ");
13663
+ if (Array.isArray(value)) inputControl.value = value.join(", ");
13667
13664
  else inputControl.value = value;
13668
13665
  break;
13669
13666
  }
@@ -13842,7 +13839,7 @@
13842
13839
  }
13843
13840
  const wrappers_form = Form;
13844
13841
  var package_namespaceObject = {
13845
- i8: "10.2.7"
13842
+ i8: "10.2.8"
13846
13843
  };
13847
13844
  function findOriginalExc(exc) {
13848
13845
  if (exc instanceof Error && "response" in exc) {
@@ -17568,9 +17565,9 @@
17568
17565
  const toIsConfigured = "to" in recipients;
17569
17566
  const ccIsConfigured = "cc" in recipients;
17570
17567
  const bccIsConfigured = "bcc" in recipients;
17571
- const hasTo = recipients.to && recipients.to.size > 0;
17572
- const hasCc = recipients.cc && recipients.cc.size > 0;
17573
- const hasBcc = recipients.bcc && recipients.bcc.size > 0;
17568
+ const hasTo = recipients.to && recipients.to.length > 0;
17569
+ const hasCc = recipients.cc && recipients.cc.length > 0;
17570
+ const hasBcc = recipients.bcc && recipients.bcc.length > 0;
17574
17571
  if (toIsConfigured) {
17575
17572
  if (!hasTo) {
17576
17573
  if (ccIsConfigured && bccIsConfigured) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "10.2.7",
3
+ "version": "10.2.8",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",