videomail-client 9.2.15 → 9.2.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "9.2.15",
3
+ "version": "9.2.16",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -17267,7 +17267,7 @@ function wrappy (fn, cb) {
17267
17267
  },{}],116:[function(_dereq_,module,exports){
17268
17268
  module.exports={
17269
17269
  "name": "videomail-client",
17270
- "version": "9.2.15",
17270
+ "version": "9.2.16",
17271
17271
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
17272
17272
  "keywords": [
17273
17273
  "webcam",
@@ -20275,24 +20275,16 @@ var Container = function Container(options) {
20275
20275
  var whyInvalid;
20276
20276
  var invalidData;
20277
20277
  if (form) {
20278
- valid = form.validate();
20279
- if (valid) {
20280
- if (!areVisualsHidden() && !visualsValid) {
20281
- // TODO Improve this check to have this based on `key`
20282
- if (buttonsAreReady() || self.isRecording() || self.isPaused() || self.isCountingDown()) {
20283
- valid = false;
20284
- }
20285
- if (!valid) {
20286
- whyInvalid = "Don't forget to record a video 😉";
20287
- }
20288
- }
20289
- } else {
20290
- var invalidInput = form.getInvalidElement();
20291
- if (invalidInput) {
20292
- whyInvalid = "Input \"".concat(invalidInput.name, "\" seems wrong \uD83E\uDD14");
20293
- invalidData = (0, _defineProperty2.default)({}, invalidInput.name, invalidInput.value);
20294
- } else {
20295
- whyInvalid = "Unknown form input(s) are invalid";
20278
+ var invalidInput = form.getInvalidElement();
20279
+ if (invalidInput) {
20280
+ valid = false;
20281
+ whyInvalid = "Input \"".concat(invalidInput.name, "\" seems wrong \uD83E\uDD14");
20282
+ invalidData = (0, _defineProperty2.default)({}, invalidInput.name, invalidInput.value);
20283
+ } else if (!areVisualsHidden() && !visualsValid) {
20284
+ // TODO Improve this check to have this based on `key`
20285
+ if (buttonsAreReady() || self.isRecording() || self.isPaused() || self.isCountingDown()) {
20286
+ valid = false;
20287
+ whyInvalid = "Don't forget to record a video 😉";
20296
20288
  }
20297
20289
  }
20298
20290
  if (valid) {
@@ -20862,10 +20854,6 @@ var Form = function Form(container, formElement, options) {
20862
20854
  }
20863
20855
  return null;
20864
20856
  };
20865
- this.validate = function () {
20866
- var formIsValid = formElement.checkValidity();
20867
- return formIsValid;
20868
- };
20869
20857
  this.findSubmitButton = function () {
20870
20858
  return formElement.querySelector("[type='submit']");
20871
20859
  };
@@ -22128,8 +22116,11 @@ var Recorder = function Recorder(visuals, replay) {
22128
22116
  }
22129
22117
  }
22130
22118
  function clearRetryTimeout() {
22119
+ if (!retryTimeout) {
22120
+ return;
22121
+ }
22131
22122
  debug("Recorder: clearRetryTimeout()");
22132
- retryTimeout && clearTimeout(retryTimeout);
22123
+ clearTimeout(retryTimeout);
22133
22124
  retryTimeout = null;
22134
22125
  }
22135
22126
  function calculateFrameProgress() {