videomail-client 11.3.2 → 11.3.4

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.
@@ -10324,8 +10324,8 @@ var __webpack_exports__ = {};
10324
10324
  "use strict";
10325
10325
  __webpack_require__.r(__webpack_exports__);
10326
10326
  __webpack_require__.d(__webpack_exports__, {
10327
- VideomailClient: ()=>src_client,
10328
- VideoType: ()=>VideoType
10327
+ VideoExtension: ()=>VideoExtension,
10328
+ VideomailClient: ()=>src_client
10329
10329
  });
10330
10330
  const constants = {
10331
10331
  SITE_NAME_LABEL: "x-videomail-site-name",
@@ -10488,7 +10488,7 @@ var __webpack_exports__ = {};
10488
10488
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10489
10489
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10490
10490
  var package_namespaceObject = {
10491
- rE: "11.3.2"
10491
+ rE: "11.3.4"
10492
10492
  };
10493
10493
  var defined = __webpack_require__("./node_modules/defined/index.js");
10494
10494
  var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
@@ -13624,7 +13624,7 @@ var __webpack_exports__ = {};
13624
13624
  NAME,
13625
13625
  VERSION
13626
13626
  ]);
13627
- const VideoType = {
13627
+ const VideoExtension = {
13628
13628
  WebM: "webm",
13629
13629
  MP4: "mp4"
13630
13630
  };
@@ -13644,7 +13644,7 @@ var __webpack_exports__ = {};
13644
13644
  else obj[key] = value;
13645
13645
  return obj;
13646
13646
  }
13647
- const FALLBACK_VIDEO_TYPE = VideoType.MP4;
13647
+ const FALLBACK_VIDEO_TYPE = VideoExtension.MP4;
13648
13648
  class Browser_Browser {
13649
13649
  isIOS() {
13650
13650
  return "iOS" === this.result.os.name;
@@ -13682,10 +13682,10 @@ var __webpack_exports__ = {};
13682
13682
  }
13683
13683
  getVideoType(video) {
13684
13684
  if (!this.videoType) {
13685
- if (media_canPlayType(video, VideoType.MP4)) this.videoType = VideoType.MP4;
13686
- else if (media_canPlayType(video, VideoType.WebM)) this.videoType = VideoType.WebM;
13685
+ if (media_canPlayType(video, VideoExtension.MP4)) this.videoType = VideoExtension.MP4;
13686
+ else if (media_canPlayType(video, VideoExtension.WebM)) this.videoType = VideoExtension.WebM;
13687
13687
  }
13688
- if (this.videoType !== VideoType.WebM && this.videoType !== VideoType.MP4) this.videoType = FALLBACK_VIDEO_TYPE;
13688
+ if (this.videoType !== VideoExtension.WebM && this.videoType !== VideoExtension.MP4) this.videoType = FALLBACK_VIDEO_TYPE;
13689
13689
  if ("" === this.videoType.trim()) this.videoType = FALLBACK_VIDEO_TYPE;
13690
13690
  return this.videoType;
13691
13691
  }
@@ -17886,10 +17886,10 @@ var __webpack_exports__ = {};
17886
17886
  }
17887
17887
  }
17888
17888
  setMp4Source(src, bustCache) {
17889
- this.setVideoSource(VideoType.MP4, src, bustCache);
17889
+ this.setVideoSource(VideoExtension.MP4, src, bustCache);
17890
17890
  }
17891
17891
  setWebMSource(src, bustCache) {
17892
- this.setVideoSource(VideoType.WebM, src, bustCache);
17892
+ this.setVideoSource(VideoExtension.WebM, src, bustCache);
17893
17893
  }
17894
17894
  getVideoType() {
17895
17895
  if (!this.replayElement) return;
@@ -18820,10 +18820,10 @@ var __webpack_exports__ = {};
18820
18820
  client_define_property(VideomailClient, "ENC_TYPE_FORM", constants["public"].ENC_TYPE_FORM);
18821
18821
  const src_client = VideomailClient;
18822
18822
  })();
18823
- exports.VideoType = __webpack_exports__.VideoType;
18823
+ exports.VideoExtension = __webpack_exports__.VideoExtension;
18824
18824
  exports.VideomailClient = __webpack_exports__.VideomailClient;
18825
18825
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
18826
- "VideoType",
18826
+ "VideoExtension",
18827
18827
  "VideomailClient"
18828
18828
  ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
18829
18829
  Object.defineProperty(exports, '__esModule', {
@@ -6,14 +6,7 @@ import { FullVideomailErrorData, VideomailErrorData } from "./types/error";
6
6
  import VideomailEvents from "./types/events";
7
7
  import { VideomailClientOptions } from "./types/options";
8
8
  import RecordingStats from "./types/RecordingStats";
9
+ import { VideoExtension, VideoExtensionType } from "./types/VideoExtension";
9
10
  import Videomail, { PartialVideomail } from "./types/Videomail";
10
- import { VideoType } from "./types/VideoType";
11
- export type { Videomail };
12
- export type { VideomailEvents };
13
- export type { RecordingStats };
14
- export type { VideomailClientOptions };
15
- export { VideomailClient, VideoType };
16
- export type { FullVideomailErrorData, PartialVideomail, VideomailErrorData };
17
- export type { Command, CommandArgs };
18
- export type { DeliveryRecord };
19
- export type { EmailAddress, EmailAddresses };
11
+ export type { Command, CommandArgs, DeliveryRecord, EmailAddress, EmailAddresses, FullVideomailErrorData, PartialVideomail, RecordingStats, VideoExtensionType, Videomail, VideomailClientOptions, VideomailErrorData, VideomailEvents, };
12
+ export { VideoExtension, VideomailClient };
package/dist/esm/index.js CHANGED
@@ -3454,9 +3454,9 @@ const constants = {
3454
3454
  }
3455
3455
  };
3456
3456
  var package_namespaceObject = {
3457
- rE: "11.3.2"
3457
+ rE: "11.3.4"
3458
3458
  };
3459
- const VideoType = {
3459
+ const VideoExtension = {
3460
3460
  WebM: "webm",
3461
3461
  MP4: "mp4"
3462
3462
  };
@@ -3466,7 +3466,7 @@ function canPlayType_canPlayType(video, type) {
3466
3466
  return canPlayType;
3467
3467
  }
3468
3468
  const media_canPlayType = canPlayType_canPlayType;
3469
- const FALLBACK_VIDEO_TYPE = VideoType.MP4;
3469
+ const FALLBACK_VIDEO_TYPE = VideoExtension.MP4;
3470
3470
  class Browser {
3471
3471
  options;
3472
3472
  result;
@@ -3513,10 +3513,10 @@ class Browser {
3513
3513
  }
3514
3514
  getVideoType(video) {
3515
3515
  if (!this.videoType) {
3516
- if (media_canPlayType(video, VideoType.MP4)) this.videoType = VideoType.MP4;
3517
- else if (media_canPlayType(video, VideoType.WebM)) this.videoType = VideoType.WebM;
3516
+ if (media_canPlayType(video, VideoExtension.MP4)) this.videoType = VideoExtension.MP4;
3517
+ else if (media_canPlayType(video, VideoExtension.WebM)) this.videoType = VideoExtension.WebM;
3518
3518
  }
3519
- if (this.videoType !== VideoType.WebM && this.videoType !== VideoType.MP4) this.videoType = FALLBACK_VIDEO_TYPE;
3519
+ if (this.videoType !== VideoExtension.WebM && this.videoType !== VideoExtension.MP4) this.videoType = FALLBACK_VIDEO_TYPE;
3520
3520
  if ("" === this.videoType.trim()) this.videoType = FALLBACK_VIDEO_TYPE;
3521
3521
  return this.videoType;
3522
3522
  }
@@ -7307,10 +7307,10 @@ class Replay extends util_Despot {
7307
7307
  }
7308
7308
  }
7309
7309
  setMp4Source(src, bustCache) {
7310
- this.setVideoSource(VideoType.MP4, src, bustCache);
7310
+ this.setVideoSource(VideoExtension.MP4, src, bustCache);
7311
7311
  }
7312
7312
  setWebMSource(src, bustCache) {
7313
- this.setVideoSource(VideoType.WebM, src, bustCache);
7313
+ this.setVideoSource(VideoExtension.WebM, src, bustCache);
7314
7314
  }
7315
7315
  getVideoType() {
7316
7316
  if (!this.replayElement) return;
@@ -8198,4 +8198,4 @@ class VideomailClient extends util_Despot {
8198
8198
  }
8199
8199
  }
8200
8200
  const client = VideomailClient;
8201
- export { VideoType, client as VideomailClient };
8201
+ export { VideoExtension, client as VideomailClient };
@@ -0,0 +1,5 @@
1
+ export declare const VideoExtension: {
2
+ readonly WebM: "webm";
3
+ readonly MP4: "mp4";
4
+ };
5
+ export type VideoExtensionType = (typeof VideoExtension)[keyof typeof VideoExtension];
@@ -1,3 +1,3 @@
1
- import { VideoTypeValue } from "../../../types/VideoType";
2
- declare function canPlayType(video: HTMLVideoElement, type: VideoTypeValue): false | "maybe" | "probably";
1
+ import { VideoExtensionType } from "../../../types/VideoExtension";
2
+ declare function canPlayType(video: HTMLVideoElement, type: VideoExtensionType): false | "maybe" | "probably";
3
3
  export default canPlayType;
package/dist/umd/index.js CHANGED
@@ -10330,8 +10330,8 @@
10330
10330
  "use strict";
10331
10331
  __webpack_require__.r(__webpack_exports__);
10332
10332
  __webpack_require__.d(__webpack_exports__, {
10333
- VideomailClient: ()=>src_client,
10334
- VideoType: ()=>VideoType
10333
+ VideoExtension: ()=>VideoExtension,
10334
+ VideomailClient: ()=>src_client
10335
10335
  });
10336
10336
  const constants = {
10337
10337
  SITE_NAME_LABEL: "x-videomail-site-name",
@@ -10494,7 +10494,7 @@
10494
10494
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10495
10495
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10496
10496
  var package_namespaceObject = {
10497
- rE: "11.3.2"
10497
+ rE: "11.3.4"
10498
10498
  };
10499
10499
  var defined = __webpack_require__("./node_modules/defined/index.js");
10500
10500
  var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
@@ -13630,7 +13630,7 @@
13630
13630
  NAME,
13631
13631
  VERSION
13632
13632
  ]);
13633
- const VideoType = {
13633
+ const VideoExtension = {
13634
13634
  WebM: "webm",
13635
13635
  MP4: "mp4"
13636
13636
  };
@@ -13640,8 +13640,8 @@
13640
13640
  return canPlayType;
13641
13641
  }
13642
13642
  const media_canPlayType = canPlayType_canPlayType;
13643
- const FALLBACK_VIDEO_TYPE = VideoType.MP4;
13644
- class Browser {
13643
+ const FALLBACK_VIDEO_TYPE = VideoExtension.MP4;
13644
+ class Browser_Browser {
13645
13645
  options;
13646
13646
  result;
13647
13647
  videoType;
@@ -13687,10 +13687,10 @@
13687
13687
  }
13688
13688
  getVideoType(video) {
13689
13689
  if (!this.videoType) {
13690
- if (media_canPlayType(video, VideoType.MP4)) this.videoType = VideoType.MP4;
13691
- else if (media_canPlayType(video, VideoType.WebM)) this.videoType = VideoType.WebM;
13690
+ if (media_canPlayType(video, VideoExtension.MP4)) this.videoType = VideoExtension.MP4;
13691
+ else if (media_canPlayType(video, VideoExtension.WebM)) this.videoType = VideoExtension.WebM;
13692
13692
  }
13693
- if (this.videoType !== VideoType.WebM && this.videoType !== VideoType.MP4) this.videoType = FALLBACK_VIDEO_TYPE;
13693
+ if (this.videoType !== VideoExtension.WebM && this.videoType !== VideoExtension.MP4) this.videoType = FALLBACK_VIDEO_TYPE;
13694
13694
  if ("" === this.videoType.trim()) this.videoType = FALLBACK_VIDEO_TYPE;
13695
13695
  return this.videoType;
13696
13696
  }
@@ -13715,10 +13715,10 @@
13715
13715
  };
13716
13716
  }
13717
13717
  }
13718
- const util_Browser = Browser;
13718
+ const Browser = Browser_Browser;
13719
13719
  let getBrowser_browser;
13720
13720
  function getBrowser(localOptions) {
13721
- if (!getBrowser_browser) getBrowser_browser = new util_Browser(localOptions);
13721
+ if (!getBrowser_browser) getBrowser_browser = new Browser(localOptions);
13722
13722
  return getBrowser_browser;
13723
13723
  }
13724
13724
  const util_getBrowser = getBrowser;
@@ -17674,10 +17674,10 @@
17674
17674
  }
17675
17675
  }
17676
17676
  setMp4Source(src, bustCache) {
17677
- this.setVideoSource(VideoType.MP4, src, bustCache);
17677
+ this.setVideoSource(VideoExtension.MP4, src, bustCache);
17678
17678
  }
17679
17679
  setWebMSource(src, bustCache) {
17680
- this.setVideoSource(VideoType.WebM, src, bustCache);
17680
+ this.setVideoSource(VideoExtension.WebM, src, bustCache);
17681
17681
  }
17682
17682
  getVideoType() {
17683
17683
  if (!this.replayElement) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "11.3.2",
3
+ "version": "11.3.4",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -1,5 +0,0 @@
1
- export declare const VideoType: {
2
- readonly WebM: "webm";
3
- readonly MP4: "mp4";
4
- };
5
- export type VideoTypeValue = (typeof VideoType)[keyof typeof VideoType];