@opentok/client 2.30.1-alpha.4 → 2.30.1-alpha.5

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.30.1 b842fa8df
2
+ * @license OpenTok.js 2.30.1 731f57d0a
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: Wed, 28 May 2025 22:09:19 GMT
8
+ * Date: Thu, 29 May 2025 15:38:48 GMT
9
9
  */
10
10
 
11
11
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -8672,7 +8672,7 @@ const logging = (0, _log.default)('StaticConfig');
8672
8672
  */
8673
8673
 
8674
8674
  /** @type builtInConfig */
8675
- const builtInConfig = (0, _cloneDeep.default)({"version":"v2.30.1","buildHash":"b842fa8df","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"});
8675
+ const builtInConfig = (0, _cloneDeep.default)({"version":"v2.30.1","buildHash":"731f57d0a","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"});
8676
8676
  const whitelistAllowedRuntimeProperties = (0, _pick.default)(['apiURL', 'assetURL', 'cdnURL', 'sessionInfoOverrides', 'loggingURL']);
8677
8677
  const liveConfigMap = {
8678
8678
  apiUrl: 'apiURL',
@@ -79336,6 +79336,9 @@ const validateIceConfig = _ref => {
79336
79336
  check(['all', 'relay'].indexOf(config.transportPolicy) !== -1, '.transportPolicy must be all or relay');
79337
79337
  }
79338
79338
  check(Array.isArray(config.customServers), '.customServers must be an array');
79339
+ if (config.includeServers === 'custom' && config.transportPolicy === 'relay') {
79340
+ check(Array.isArray(config.customServers) && config.customServers.length > 0, '.customServers must be a non empty array if .includeServers=custom and .transportPolicy=relay');
79341
+ }
79339
79342
  config.customServers.forEach(server => {
79340
79343
  check(server.urls || !('url' in server), 'ice servers need .urls, not .url');
79341
79344
  check(typeof server.urls === 'string' || Array.isArray(server.urls), 'ice server .urls must be a string or an array');