videomail-client 13.6.6 → 13.6.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.
@@ -10664,7 +10664,7 @@ var __webpack_exports__ = {};
10664
10664
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10665
10665
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10666
10666
  var package_namespaceObject = {
10667
- rE: "13.6.6"
10667
+ rE: "13.6.8"
10668
10668
  };
10669
10669
  function isAudioEnabled(options) {
10670
10670
  return Boolean(options.audio.enabled);
@@ -16865,8 +16865,13 @@ var __webpack_exports__ = {};
16865
16865
  if (this.options.video.width || this.options.video.height) {
16866
16866
  const heightDimension = this.recorder.calculateHeight(responsive);
16867
16867
  rawHeight = heightDimension.value;
16868
- if (!rawHeight || rawHeight < 1) throw error_createError({
16869
- message: "Bad dimensions",
16868
+ if (void 0 === rawHeight) throw error_createError({
16869
+ message: "Undefined height",
16870
+ explanation: "Calculated raw height cannot be undefined.",
16871
+ options: this.options
16872
+ });
16873
+ if (rawHeight < 1) throw error_createError({
16874
+ message: "Invalid height",
16870
16875
  explanation: "Calculated raw height cannot be less than 1!",
16871
16876
  options: this.options
16872
16877
  });
@@ -17104,9 +17109,9 @@ var __webpack_exports__ = {};
17104
17109
  initSocket(cb) {
17105
17110
  if (!this.connected) {
17106
17111
  this.connecting = true;
17107
- this.options.logger.debug(`Recorder: initializing web socket to ${this.options.socketUrl}`);
17108
17112
  this.emit("CONNECTING");
17109
17113
  const url2Connect = `${this.options.socketUrl}?${encodeURIComponent(constants.SITE_NAME_LABEL)}=${encodeURIComponent(this.options.siteName)}`;
17114
+ this.options.logger.debug(`Recorder: initializing web socket to ${url2Connect}`);
17110
17115
  try {
17111
17116
  this.stream = stream_default()(url2Connect, {
17112
17117
  perMessageDeflate: false,
package/dist/esm/index.js CHANGED
@@ -3606,7 +3606,7 @@ const constants = {
3606
3606
  }
3607
3607
  };
3608
3608
  var package_namespaceObject = {
3609
- rE: "13.6.6"
3609
+ rE: "13.6.8"
3610
3610
  };
3611
3611
  function isAudioEnabled(options) {
3612
3612
  return Boolean(options.audio.enabled);
@@ -6202,8 +6202,13 @@ class UserMedia extends util_Despot {
6202
6202
  if (this.options.video.width || this.options.video.height) {
6203
6203
  const heightDimension = this.recorder.calculateHeight(responsive);
6204
6204
  rawHeight = heightDimension.value;
6205
- if (!rawHeight || rawHeight < 1) throw error_createError({
6206
- message: "Bad dimensions",
6205
+ if (void 0 === rawHeight) throw error_createError({
6206
+ message: "Undefined height",
6207
+ explanation: "Calculated raw height cannot be undefined.",
6208
+ options: this.options
6209
+ });
6210
+ if (rawHeight < 1) throw error_createError({
6211
+ message: "Invalid height",
6207
6212
  explanation: "Calculated raw height cannot be less than 1!",
6208
6213
  options: this.options
6209
6214
  });
@@ -6459,9 +6464,9 @@ class Recorder extends util_Despot {
6459
6464
  initSocket(cb) {
6460
6465
  if (!this.connected) {
6461
6466
  this.connecting = true;
6462
- this.options.logger.debug(`Recorder: initializing web socket to ${this.options.socketUrl}`);
6463
6467
  this.emit("CONNECTING");
6464
6468
  const url2Connect = `${this.options.socketUrl}?${encodeURIComponent(constants.SITE_NAME_LABEL)}=${encodeURIComponent(this.options.siteName)}`;
6469
+ this.options.logger.debug(`Recorder: initializing web socket to ${url2Connect}`);
6465
6470
  try {
6466
6471
  this.stream = websocket_stream(url2Connect, {
6467
6472
  perMessageDeflate: false,
@@ -13,7 +13,6 @@ export interface Videomail {
13
13
  cc?: EmailAddresses | undefined;
14
14
  alias: string;
15
15
  connection?: Record<string, number | string>;
16
- correctUrl: string;
17
16
  dateCreated: number;
18
17
  dateCreatedServerPretty: string;
19
18
  dateUpdated?: number;
@@ -56,5 +55,7 @@ export interface Videomail {
56
55
  rejectedTo?: DeliveryRecord;
57
56
  rejectedCc?: DeliveryRecord;
58
57
  rejectedBcc?: DeliveryRecord;
58
+ editUrl?: string;
59
+ repeatUrl?: string;
59
60
  }
60
61
  export type PartialVideomail = PartialDeep<Videomail>;
@@ -27,7 +27,6 @@ declare class Form extends Despot {
27
27
  connection?: {
28
28
  [x: string]: string | number | undefined;
29
29
  };
30
- correctUrl?: string;
31
30
  dateCreated?: number;
32
31
  dateCreatedServerPretty?: string;
33
32
  dateUpdated?: number;
@@ -153,6 +152,8 @@ declare class Form extends Despot {
153
152
  userKey?: string | false;
154
153
  } | undefined;
155
154
  };
155
+ editUrl?: string;
156
+ repeatUrl?: string;
156
157
  };
157
158
  getRecipients(): {
158
159
  subject?: string;
@@ -165,7 +166,6 @@ declare class Form extends Despot {
165
166
  connection?: {
166
167
  [x: string]: string | number | undefined;
167
168
  };
168
- correctUrl?: string;
169
169
  dateCreated?: number;
170
170
  dateCreatedServerPretty?: string;
171
171
  dateUpdated?: number;
@@ -291,6 +291,8 @@ declare class Form extends Despot {
291
291
  userKey?: string | false;
292
292
  } | undefined;
293
293
  };
294
+ editUrl?: string;
295
+ repeatUrl?: string;
294
296
  };
295
297
  loadVideomail(videomail: Videomail): void;
296
298
  private setDisabled;
package/dist/umd/index.js CHANGED
@@ -10670,7 +10670,7 @@
10670
10670
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10671
10671
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10672
10672
  var package_namespaceObject = {
10673
- rE: "13.6.6"
10673
+ rE: "13.6.8"
10674
10674
  };
10675
10675
  function isAudioEnabled(options) {
10676
10676
  return Boolean(options.audio.enabled);
@@ -16614,8 +16614,13 @@
16614
16614
  if (this.options.video.width || this.options.video.height) {
16615
16615
  const heightDimension = this.recorder.calculateHeight(responsive);
16616
16616
  rawHeight = heightDimension.value;
16617
- if (!rawHeight || rawHeight < 1) throw error_createError({
16618
- message: "Bad dimensions",
16617
+ if (void 0 === rawHeight) throw error_createError({
16618
+ message: "Undefined height",
16619
+ explanation: "Calculated raw height cannot be undefined.",
16620
+ options: this.options
16621
+ });
16622
+ if (rawHeight < 1) throw error_createError({
16623
+ message: "Invalid height",
16619
16624
  explanation: "Calculated raw height cannot be less than 1!",
16620
16625
  options: this.options
16621
16626
  });
@@ -16871,9 +16876,9 @@
16871
16876
  initSocket(cb) {
16872
16877
  if (!this.connected) {
16873
16878
  this.connecting = true;
16874
- this.options.logger.debug(`Recorder: initializing web socket to ${this.options.socketUrl}`);
16875
16879
  this.emit("CONNECTING");
16876
16880
  const url2Connect = `${this.options.socketUrl}?${encodeURIComponent(constants.SITE_NAME_LABEL)}=${encodeURIComponent(this.options.siteName)}`;
16881
+ this.options.logger.debug(`Recorder: initializing web socket to ${url2Connect}`);
16877
16882
  try {
16878
16883
  this.stream = stream_default()(url2Connect, {
16879
16884
  perMessageDeflate: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "13.6.6",
3
+ "version": "13.6.8",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -107,14 +107,14 @@
107
107
  "eslint-plugin-simple-import-sort": "12.1.1",
108
108
  "eslint-plugin-storybook": "10.1.10",
109
109
  "globals": "16.5.0",
110
- "jsdom": "27.3.0",
111
- "msw": "2.12.4",
110
+ "jsdom": "27.4.0",
111
+ "msw": "2.12.6",
112
112
  "msw-storybook-addon": "2.0.6",
113
113
  "prettier": "3.7.4",
114
114
  "prettier-plugin-curly": "0.4.1",
115
115
  "prettier-plugin-packagejson": "2.5.20",
116
116
  "prettier-plugin-sh": "0.18.0",
117
- "release-it": "19.2.1",
117
+ "release-it": "19.2.2",
118
118
  "storybook": "10.1.10",
119
119
  "storybook-html-rsbuild": "3.2.0",
120
120
  "type-fest": "5.3.1",