videomail-client 13.5.2 → 13.5.3

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.5.2"
10667
+ rE: "13.5.3"
10668
10668
  };
10669
10669
  var defined = __webpack_require__("./node_modules/defined/index.js");
10670
10670
  var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
@@ -16877,9 +16877,19 @@ var __webpack_exports__ = {};
16877
16877
  });
16878
16878
  } else {
16879
16879
  rawHeight = this.getVideoHeight();
16880
- if (!rawHeight || rawHeight < 1) throw error_createError({
16880
+ if (void 0 === rawHeight) throw error_createError({
16881
+ message: "Bad dimensions",
16882
+ explanation: "Raw video height from DOM element cannot be undefined.",
16883
+ options: this.options
16884
+ });
16885
+ if (0 === rawHeight) throw error_createError({
16886
+ message: "Bad dimensions",
16887
+ explanation: "Raw video height from DOM element cannot be zero.",
16888
+ options: this.options
16889
+ });
16890
+ if (rawHeight < 1) throw error_createError({
16881
16891
  message: "Bad dimensions",
16882
- explanation: "Raw video height from DOM element cannot be less than 1!",
16892
+ explanation: "Raw video height from DOM element cannot be less than 1.",
16883
16893
  options: this.options
16884
16894
  });
16885
16895
  }
package/dist/esm/index.js CHANGED
@@ -3606,7 +3606,7 @@ const constants = {
3606
3606
  }
3607
3607
  };
3608
3608
  var package_namespaceObject = {
3609
- rE: "13.5.2"
3609
+ rE: "13.5.3"
3610
3610
  };
3611
3611
  function canPlayType_canPlayType(video, type) {
3612
3612
  const canPlayType = video.canPlayType(`video/${type}`);
@@ -6206,9 +6206,19 @@ class UserMedia extends util_Despot {
6206
6206
  });
6207
6207
  } else {
6208
6208
  rawHeight = this.getVideoHeight();
6209
- if (!rawHeight || rawHeight < 1) throw error_createError({
6209
+ if (void 0 === rawHeight) throw error_createError({
6210
+ message: "Bad dimensions",
6211
+ explanation: "Raw video height from DOM element cannot be undefined.",
6212
+ options: this.options
6213
+ });
6214
+ if (0 === rawHeight) throw error_createError({
6215
+ message: "Bad dimensions",
6216
+ explanation: "Raw video height from DOM element cannot be zero.",
6217
+ options: this.options
6218
+ });
6219
+ if (rawHeight < 1) throw error_createError({
6210
6220
  message: "Bad dimensions",
6211
- explanation: "Raw video height from DOM element cannot be less than 1!",
6221
+ explanation: "Raw video height from DOM element cannot be less than 1.",
6212
6222
  options: this.options
6213
6223
  });
6214
6224
  }
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.5.2"
10673
+ rE: "13.5.3"
10674
10674
  };
10675
10675
  var defined = __webpack_require__("./node_modules/defined/index.js");
10676
10676
  var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
@@ -16621,9 +16621,19 @@
16621
16621
  });
16622
16622
  } else {
16623
16623
  rawHeight = this.getVideoHeight();
16624
- if (!rawHeight || rawHeight < 1) throw error_createError({
16624
+ if (void 0 === rawHeight) throw error_createError({
16625
+ message: "Bad dimensions",
16626
+ explanation: "Raw video height from DOM element cannot be undefined.",
16627
+ options: this.options
16628
+ });
16629
+ if (0 === rawHeight) throw error_createError({
16630
+ message: "Bad dimensions",
16631
+ explanation: "Raw video height from DOM element cannot be zero.",
16632
+ options: this.options
16633
+ });
16634
+ if (rawHeight < 1) throw error_createError({
16625
16635
  message: "Bad dimensions",
16626
- explanation: "Raw video height from DOM element cannot be less than 1!",
16636
+ explanation: "Raw video height from DOM element cannot be less than 1.",
16627
16637
  options: this.options
16628
16638
  });
16629
16639
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "13.5.2",
3
+ "version": "13.5.3",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",