videomail-client 10.2.7 → 10.2.9

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.
@@ -7250,6 +7250,10 @@ var __webpack_modules__ = {
7250
7250
  }
7251
7251
  return header;
7252
7252
  };
7253
+ exports1.normalizeHostname = (hostname)=>{
7254
+ const [, normalized] = hostname.match(/^\[([^\]]+)\]$/) || [];
7255
+ return normalized || hostname;
7256
+ };
7253
7257
  exports1.isObject = (object)=>null !== object && 'object' == typeof object;
7254
7258
  exports1.hasOwn = Object.hasOwn || function(object, property) {
7255
7259
  if (null == object) throw new TypeError('Cannot convert undefined or null to object');
@@ -13602,8 +13606,8 @@ var __webpack_exports__ = {};
13602
13606
  return email.replace(REGEX, "");
13603
13607
  }
13604
13608
  function trimEmails(emails) {
13605
- const uniqueAddresses = emails.split(REGEX).map((item)=>item.trim()).filter(Boolean);
13606
- return new Set(uniqueAddresses);
13609
+ const trimmedEmails = emails.split(REGEX).map((item)=>item.trim()).filter(Boolean);
13610
+ return trimmedEmails;
13607
13611
  }
13608
13612
  function isNotButton(element) {
13609
13613
  return "BUTTON" !== element.tagName && "submit" !== element.getAttribute("type");
@@ -13673,10 +13677,7 @@ var __webpack_exports__ = {};
13673
13677
  case "INPUT":
13674
13678
  {
13675
13679
  const inputControl = formControl;
13676
- if (value instanceof Set) inputControl.value = [
13677
- ...value
13678
- ].join(", ");
13679
- else if (Array.isArray(value)) inputControl.value = value.join(", ");
13680
+ if (Array.isArray(value)) inputControl.value = value.join(", ");
13680
13681
  else inputControl.value = value;
13681
13682
  break;
13682
13683
  }
@@ -13874,7 +13875,7 @@ var __webpack_exports__ = {};
13874
13875
  }
13875
13876
  const wrappers_form = Form;
13876
13877
  var package_namespaceObject = {
13877
- i8: "10.2.7"
13878
+ i8: "10.2.9"
13878
13879
  };
13879
13880
  function resource_define_property(obj, key, value) {
13880
13881
  if (key in obj) Object.defineProperty(obj, key, {
@@ -17787,9 +17788,9 @@ var __webpack_exports__ = {};
17787
17788
  const toIsConfigured = "to" in recipients;
17788
17789
  const ccIsConfigured = "cc" in recipients;
17789
17790
  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;
17791
+ const hasTo = recipients.to && recipients.to.length > 0;
17792
+ const hasCc = recipients.cc && recipients.cc.length > 0;
17793
+ const hasBcc = recipients.bcc && recipients.bcc.length > 0;
17793
17794
  if (toIsConfigured) {
17794
17795
  if (!hasTo) {
17795
17796
  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.9"
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
@@ -7256,6 +7256,10 @@
7256
7256
  }
7257
7257
  return header;
7258
7258
  };
7259
+ exports1.normalizeHostname = (hostname)=>{
7260
+ const [, normalized] = hostname.match(/^\[([^\]]+)\]$/) || [];
7261
+ return normalized || hostname;
7262
+ };
7259
7263
  exports1.isObject = (object)=>null !== object && 'object' == typeof object;
7260
7264
  exports1.hasOwn = Object.hasOwn || function(object, property) {
7261
7265
  if (null == object) throw new TypeError('Cannot convert undefined or null to object');
@@ -13579,8 +13583,8 @@
13579
13583
  return email.replace(REGEX, "");
13580
13584
  }
13581
13585
  function trimEmails(emails) {
13582
- const uniqueAddresses = emails.split(REGEX).map((item)=>item.trim()).filter(Boolean);
13583
- return new Set(uniqueAddresses);
13586
+ const trimmedEmails = emails.split(REGEX).map((item)=>item.trim()).filter(Boolean);
13587
+ return trimmedEmails;
13584
13588
  }
13585
13589
  function isNotButton(element) {
13586
13590
  return "BUTTON" !== element.tagName && "submit" !== element.getAttribute("type");
@@ -13660,10 +13664,7 @@
13660
13664
  case "INPUT":
13661
13665
  {
13662
13666
  const inputControl = formControl;
13663
- if (value instanceof Set) inputControl.value = [
13664
- ...value
13665
- ].join(", ");
13666
- else if (Array.isArray(value)) inputControl.value = value.join(", ");
13667
+ if (Array.isArray(value)) inputControl.value = value.join(", ");
13667
13668
  else inputControl.value = value;
13668
13669
  break;
13669
13670
  }
@@ -13842,7 +13843,7 @@
13842
13843
  }
13843
13844
  const wrappers_form = Form;
13844
13845
  var package_namespaceObject = {
13845
- i8: "10.2.7"
13846
+ i8: "10.2.9"
13846
13847
  };
13847
13848
  function findOriginalExc(exc) {
13848
13849
  if (exc instanceof Error && "response" in exc) {
@@ -17568,9 +17569,9 @@
17568
17569
  const toIsConfigured = "to" in recipients;
17569
17570
  const ccIsConfigured = "cc" in recipients;
17570
17571
  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;
17572
+ const hasTo = recipients.to && recipients.to.length > 0;
17573
+ const hasCc = recipients.cc && recipients.cc.length > 0;
17574
+ const hasBcc = recipients.bcc && recipients.bcc.length > 0;
17574
17575
  if (toIsConfigured) {
17575
17576
  if (!hasTo) {
17576
17577
  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.9",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -67,53 +67,53 @@
67
67
  "hidden": "1.1.1",
68
68
  "is-power-of-two": "1.0.0",
69
69
  "nanoevents": "9.1.0",
70
- "superagent": "10.1.1",
70
+ "superagent": "10.2.0",
71
71
  "ua-parser-js": "2.0.2",
72
72
  "websocket-stream": "5.5.2"
73
73
  },
74
74
  "devDependencies": {
75
- "@chromatic-com/storybook": "3.2.4",
76
- "@eslint/js": "9.20.0",
75
+ "@chromatic-com/storybook": "3.2.5",
76
+ "@eslint/js": "9.22.0",
77
77
  "@rsbuild/plugin-node-polyfill": "1.3.0",
78
- "@rsbuild/plugin-stylus": "1.0.7",
78
+ "@rsbuild/plugin-stylus": "1.0.8",
79
79
  "@rsdoctor/rspack-plugin": "0.4.13",
80
80
  "@rslib/core": "0.4.1",
81
- "@storybook/addon-a11y": "8.5.6",
81
+ "@storybook/addon-a11y": "8.6.4",
82
82
  "@storybook/addon-console": "3.0.0",
83
- "@storybook/addon-essentials": "8.5.6",
84
- "@storybook/addon-interactions": "8.5.6",
85
- "@storybook/addon-links": "8.5.6",
86
- "@storybook/html": "8.5.6",
87
- "@storybook/manager-api": "8.5.6",
88
- "@storybook/theming": "8.5.6",
83
+ "@storybook/addon-essentials": "8.6.4",
84
+ "@storybook/addon-interactions": "8.6.4",
85
+ "@storybook/addon-links": "8.6.4",
86
+ "@storybook/html": "8.6.4",
87
+ "@storybook/manager-api": "8.6.4",
88
+ "@storybook/theming": "8.6.4",
89
89
  "@tsconfig/node22": "22.0.0",
90
90
  "@tsconfig/strictest": "2.0.5",
91
91
  "@types/defined": "1.0.2",
92
- "@types/node": "22.13.4",
92
+ "@types/node": "22.13.10",
93
93
  "@types/superagent": "8.1.9",
94
94
  "@types/ua-parser-js": "0.7.39",
95
- "@vitest/eslint-plugin": "1.1.31",
95
+ "@vitest/eslint-plugin": "1.1.37",
96
96
  "audit-ci": "7.1.0",
97
- "chromatic": "11.25.2",
97
+ "chromatic": "11.27.0",
98
98
  "cross-env": "7.0.3",
99
- "eslint": "9.20.1",
100
- "eslint-import-resolver-typescript": "3.8.0",
99
+ "eslint": "9.22.0",
100
+ "eslint-import-resolver-typescript": "3.8.5",
101
101
  "eslint-plugin-depend": "0.12.0",
102
102
  "eslint-plugin-import-x": "4.6.1",
103
103
  "eslint-plugin-promise": "7.2.1",
104
104
  "eslint-plugin-regexp": "2.7.0",
105
105
  "eslint-plugin-security": "3.0.1",
106
- "eslint-plugin-storybook": "0.11.3",
107
- "globals": "15.15.0",
106
+ "eslint-plugin-storybook": "0.11.4",
107
+ "globals": "16.0.0",
108
108
  "jsdom": "26.0.0",
109
- "msw": "2.7.0",
109
+ "msw": "2.7.3",
110
110
  "msw-storybook-addon": "2.0.4",
111
- "prettier": "3.5.1",
111
+ "prettier": "3.5.3",
112
112
  "prettier-plugin-curly": "0.3.1",
113
- "prettier-plugin-packagejson": "2.5.8",
114
- "prettier-plugin-sh": "0.14.0",
113
+ "prettier-plugin-packagejson": "2.5.10",
114
+ "prettier-plugin-sh": "0.15.0",
115
115
  "release-it": "18.1.2",
116
- "storybook": "8.5.6",
116
+ "storybook": "8.6.4",
117
117
  "storybook-html-rsbuild": "0.1.10",
118
118
  "type-fest": "4.34.1",
119
119
  "typescript": "5.7.3",