@opentok/client 2.29.1-alpha.5 → 2.29.1-alpha.7

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.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license OpenTok.js 2.29.1 b5eeb44
2
+ * @license OpenTok.js 2.29.1 dd7c9f1
3
3
  *
4
4
  * Copyright (c) 2010-2025 TokBox, Inc.
5
5
  * Subject to the applicable Software Development Kit (SDK) License Agreement:
6
6
  * https://www.vonage.com/legal/communications-apis/terms-of-use/
7
7
  *
8
- * Date: Thu, 13 Feb 2025 22:54:58 GMT
8
+ * Date: Tue, 18 Feb 2025 18:01:57 GMT
9
9
  */
10
10
 
11
11
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -8118,7 +8118,7 @@ const logging = (0, _log.default)('StaticConfig');
8118
8118
  */
8119
8119
 
8120
8120
  /** @type builtInConfig */
8121
- const builtInConfig = (0, _cloneDeep.default)({"version":"v2.29.1","buildHash":"b5eeb44","minimumVersion":{"firefox":52,"chrome":49},"debug":false,"websiteURL":"http://www.tokbox.com","configURL":"https://config.opentok.com","ipWhitelistConfigURL":"","cdnURL":"","loggingURL":"https://hlg.tokbox.com/prod","apiURL":"https://anvil.opentok.com"});
8121
+ const builtInConfig = (0, _cloneDeep.default)({"version":"v2.29.1","buildHash":"dd7c9f1","minimumVersion":{"firefox":52,"chrome":49},"debug":false,"websiteURL":"http://www.tokbox.com","configURL":"https://config.opentok.com","ipWhitelistConfigURL":"","cdnURL":"","loggingURL":"https://hlg.tokbox.com/prod","apiURL":"https://anvil.opentok.com"});
8122
8122
  const whitelistAllowedRuntimeProperties = (0, _pick.default)(['apiURL', 'assetURL', 'cdnURL', 'sessionInfoOverrides', 'loggingURL']);
8123
8123
  const liveConfigMap = {
8124
8124
  apiUrl: 'apiURL',
@@ -28367,9 +28367,8 @@ function Analytics(_ref) {
28367
28367
  logging.debug('Failed to send ClientEvent, moving on to the next item.');
28368
28368
  }
28369
28369
  onComplete(err || undefined);
28370
+ callback();
28370
28371
  });
28371
- // Invoke the callback here to move on to the next item in the queue
28372
- callback();
28373
28372
  });
28374
28373
  };
28375
28374
  const shouldThrottleError = (code, type, partnerId) => {
@@ -81583,6 +81582,8 @@ exports.default = _default;
81583
81582
  var _interopRequireDefault = __webpack_require__(0);
81584
81583
  exports.__esModule = true;
81585
81584
  exports.default = void 0;
81585
+ var _regenerator = _interopRequireDefault(__webpack_require__(4));
81586
+ var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(5));
81586
81587
  var _inheritsLoose2 = _interopRequireDefault(__webpack_require__(23));
81587
81588
  var _events = _interopRequireDefault(__webpack_require__(12));
81588
81589
  const OBSERVER_INTERVAL = 2 * 1000;
@@ -81606,15 +81607,41 @@ let CpuPressureMonitor = /*#__PURE__*/function (_EventEmitter) {
81606
81607
  this._observer = new PressureObserver(pressureChangeCallback);
81607
81608
  }
81608
81609
  };
81609
- _proto.startMonitoring = function startMonitoring() {
81610
- if (this._isMonitoring) {
81611
- return;
81610
+ _proto.startMonitoring = /*#__PURE__*/function () {
81611
+ var _startMonitoring = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
81612
+ return _regenerator.default.wrap(function _callee$(_context) {
81613
+ while (1) switch (_context.prev = _context.next) {
81614
+ case 0:
81615
+ if (!this._isMonitoring) {
81616
+ _context.next = 2;
81617
+ break;
81618
+ }
81619
+ return _context.abrupt("return");
81620
+ case 2:
81621
+ _context.prev = 2;
81622
+ _context.next = 5;
81623
+ return this._observer.observe('cpu', {
81624
+ sampleInterval: OBSERVER_INTERVAL
81625
+ });
81626
+ case 5:
81627
+ _context.next = 9;
81628
+ break;
81629
+ case 7:
81630
+ _context.prev = 7;
81631
+ _context.t0 = _context["catch"](2);
81632
+ case 9:
81633
+ this._isMonitoring = true;
81634
+ case 10:
81635
+ case "end":
81636
+ return _context.stop();
81637
+ }
81638
+ }, _callee, this, [[2, 7]]);
81639
+ }));
81640
+ function startMonitoring() {
81641
+ return _startMonitoring.apply(this, arguments);
81612
81642
  }
81613
- this._observer.observe('cpu', {
81614
- sampleInterval: OBSERVER_INTERVAL
81615
- });
81616
- this._isMonitoring = true;
81617
- };
81643
+ return startMonitoring;
81644
+ }();
81618
81645
  _proto.stopMonitoring = function stopMonitoring() {
81619
81646
  this._isMonitoring = false;
81620
81647
  this._observer.unobserve('cpu');