@opentok/client 2.36.0-alpha.17 → 2.36.0-alpha.19
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/dist/js/opentok.js +13 -6
- package/dist/js/opentok.js.map +1 -1
- package/dist/js/opentok.min.js +3 -3
- package/dist/js/opentok.min.js.map +1 -1
- package/package.json +1 -1
package/dist/js/opentok.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license OpenTok.js 2.36.0
|
|
2
|
+
* @license OpenTok.js 2.36.0 3d5d68ecf
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2010-2026 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:
|
|
8
|
+
* Date: Wed, 05 Aug 2026 09:03:24 GMT
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -34559,6 +34559,7 @@ module.exports = SetCache;
|
|
|
34559
34559
|
|
|
34560
34560
|
exports.__esModule = true;
|
|
34561
34561
|
exports.languageCodesWithLabels = languageCodesWithLabels;
|
|
34562
|
+
exports.validateCaseInsensitiveLanguageCode = validateCaseInsensitiveLanguageCode;
|
|
34562
34563
|
exports.validateLanguageCode = validateLanguageCode;
|
|
34563
34564
|
const languageCodeLabels = {
|
|
34564
34565
|
'af-ZA': 'Afrikaans (South Africa)',
|
|
@@ -34620,6 +34621,11 @@ const languageCodes = Object.keys(languageCodeLabels);
|
|
|
34620
34621
|
function validateLanguageCode(langCode) {
|
|
34621
34622
|
return languageCodes.includes(langCode);
|
|
34622
34623
|
}
|
|
34624
|
+
function validateCaseInsensitiveLanguageCode(langCode) {
|
|
34625
|
+
if (typeof langCode !== 'string') return undefined;
|
|
34626
|
+
const normalized = langCode.toLowerCase();
|
|
34627
|
+
return languageCodes.find(c => c.toLowerCase() === normalized);
|
|
34628
|
+
}
|
|
34623
34629
|
function languageCodesWithLabels() {
|
|
34624
34630
|
return languageCodeLabels;
|
|
34625
34631
|
}
|
|
@@ -39872,7 +39878,7 @@ function staticConfigFactory(_temp) {
|
|
|
39872
39878
|
_ref$axios = _ref.axios,
|
|
39873
39879
|
axios = _ref$axios === void 0 ? _axios.default : _ref$axios,
|
|
39874
39880
|
_ref$properties = _ref.properties,
|
|
39875
|
-
properties = _ref$properties === void 0 ? {"version":"v2.36.0","buildHash":"
|
|
39881
|
+
properties = _ref$properties === void 0 ? {"version":"v2.36.0","buildHash":"3d5d68ecf","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","vonageApiURL":""} : _ref$properties;
|
|
39876
39882
|
/** @type builtInConfig */
|
|
39877
39883
|
const builtInConfig = (0, _cloneDeep.default)(properties);
|
|
39878
39884
|
/**
|
|
@@ -44241,9 +44247,10 @@ function PublisherFactory(_ref) {
|
|
|
44241
44247
|
* @method #setCaptionsInputLanguage
|
|
44242
44248
|
* @memberOf Publisher
|
|
44243
44249
|
*/
|
|
44244
|
-
this.setCaptionsInputLanguage =
|
|
44245
|
-
|
|
44246
|
-
|
|
44250
|
+
this.setCaptionsInputLanguage = rawLangCode => new Promise((resolve, reject) => {
|
|
44251
|
+
const langCode = rawLangCode === null ? null : (0, _languageCodes.validateCaseInsensitiveLanguageCode)(rawLangCode);
|
|
44252
|
+
if (langCode === undefined) {
|
|
44253
|
+
const message = `Invalid captions input language ${rawLangCode}`;
|
|
44247
44254
|
logging.warn(`setCaptionsInputLanguage: ${message}`);
|
|
44248
44255
|
reject(otError(Errors.INVALID_PARAMETER, new Error(`setCaptionsInputLanguage: ${message}`)));
|
|
44249
44256
|
return;
|