@xylink/xy-rtc-sdk 4.0.11-beta.1 → 4.0.12

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/xyrtc.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylink/xy-rtc-sdk",
3
- "version": "4.0.11-beta.1",
3
+ "version": "4.0.12",
4
4
  "author": "jinghui-Luo",
5
5
  "email": "luojinghui424@gmail.com",
6
6
  "bugs": {
package/xyrtc.js CHANGED
@@ -92,7 +92,7 @@ var r = ((t7) => (t7.CONTENT = "CONTENT", t7.PIPE = "PIPE", t7.VIDEO = "VIDEO",
92
92
  const _de = class _de {
93
93
  static getPlatform() {
94
94
  const t7 = navigator.userAgent.toLowerCase(), e2 = navigator.platform.toLowerCase(), n2 = /macintosh|mac os x/.test(t7) || /mac/.test(e2), r2 = /linux/.test(e2) && !/harmony/.test(t7), i2 = /win|windows|win32|win64/i.test(t7), s2 = /windows phone/.test(t7), o2 = /symbianos/.test(t7) || s2, a2 = /harmony/.test(t7) && !/pc/.test(t7), c2 = /android/.test(t7) || a2, u2 = /harmony/.test(t7) && /pc/.test(t7), l2 = /firefox/.test(t7), h2 = /chrome|crios/.test(t7) && !/edg/.test(t7), d2 = /edg/.test(t7), f2 = /safari/.test(t7) && !h2 && !d2, p2 = /ipad/.test(t7) || /macintel/.test(t7) && navigator.maxTouchPoints > 1 || /macintosh/.test(t7) && navigator.maxTouchPoints > 1, g2 = /ipad|playbook/.test(t7) || c2 && !/mobile/.test(t7) || l2 && /tablet/.test(t7), m2 = /iphone/.test(t7) && !g2, y2 = m2 || p2, v2 = m2 || c2 || p2 || o2, b2 = !v2, S2 = /baidu|bidubrowser|baiduboxapp/.test(t7), w2 = /tencenttraveler|qqbrowse|qq\/|micromessenger/.test(t7), E2 = /opera|opr/.test(t7), C2 = /huaweibrowser/.test(t7), I2 = /Trident/.test(t7);
95
- return { isTablet: g2, isPhone: m2, isAndroid: c2, isPc: b2, isMac: n2, isWindows: i2, isIPad: p2, isChrome: h2, isLinux: r2, isFirefox: l2, isBaidu: S2, isQQ: w2, isOpera: E2, isZhazha: /qihuubrowser|qhbrowser|360se|360ee|lbbrowser|uc|ubrowser|ucweb|quark|miuibrowser|aliapp\(tb|weibo|iqiyiapp|huaweibrowser|huawei|metasr|sogou|se|maxthon|the world|metasr|2345explorer|tencenttraveler|mb2345browser/.test(t7), isEdge: d2, isSafari: f2, isHuaweiBrowser: C2, isWeixin: /micromessenger/.test(t7) && !/wxwork|windowswechat/.test(t7), isWxwork: /wxwork/.test(t7) && /micromessenger/.test(t7), isAPPHarmony: a2, isPCHarmony: u2, isMiniProgram: /miniprogram/.test(t7), isWindowsWxWechat: /micromessenger.*wxwork.*windowswechat/.test(t7) && !/macintosh/.test(t7), isWindowsWechat: /micromessenger.*windowswechat/.test(t7) && !/wxwork|macintosh/i.test(t7), isTrident: I2, isIOS: y2, isDingDing: /dingtalk/.test(t7), isMobile: v2, isElectron: /electron/.test(t7) };
95
+ return { isTablet: g2, isPhone: m2, isAndroid: c2, isPc: b2, isMac: n2, isWindows: i2, isIPad: p2, isChrome: h2, isLinux: r2, isFirefox: l2, isBaidu: S2, isQQ: w2, isOpera: E2, isZhazha: /qihuubrowser|qhbrowser|360se|360ee|lbbrowser|uc|ubrowser|ucweb|quark|miuibrowser|aliapp\(tb|weibo|iqiyiapp|huaweibrowser|huawei|metasr|sogou|se|maxthon|the world|metasr|2345explorer|tencenttraveler|mb2345browser/.test(t7), isEdge: d2, isSafari: f2, isHuaweiBrowser: C2, isWeixin: /micromessenger/.test(t7) && !/wxwork|windowswechat/.test(t7), isWxwork: /wxwork/.test(t7) && /micromessenger/.test(t7), isAPPHarmony: a2, isPCHarmony: u2, isMiniProgram: /miniprogram/.test(t7), isWindowsWxWechat: /micromessenger.*wxwork.*windowswechat/.test(t7) && !/macintosh/.test(t7), isWindowsWechat: /micromessenger.*windowswechat/.test(t7) && !/wxwork|macintosh/i.test(t7), isTrident: I2, isIOS: y2, isDingDing: /dingtalk/.test(t7), isMobile: v2, isElectron: /(?:^|\s)electron\/\d+(?:\.\d+)*/.test(t7) };
96
96
  }
97
97
  static getOperationSystem() {
98
98
  const { isIPad: t7, isMac: e2, isWindowsWechat: n2, isWindowsWxWechat: r2, isWindows: i2, isPhone: s2, isAndroid: o2, isLinux: a2, isMiniProgram: c2, isAPPHarmony: u2, isPCHarmony: l2 } = _de.getPlatform();
@@ -8547,7 +8547,7 @@ al.Axios = sl, al.CanceledError = wu, al.CancelToken = class t6 {
8547
8547
  }, al.isAxiosError = function(t7) {
8548
8548
  return Fc.isObject(t7) && true === t7.isAxiosError;
8549
8549
  }, al.mergeConfig = Ru, al.AxiosHeaders = vu, al.formToJSON = (t7) => hu(Fc.isHTMLForm(t7) ? new FormData(t7) : t7), al.getAdapter = Ju, al.HttpStatusCode = ol, al.default = al;
8550
- const { Axios: cl, AxiosError: ul, CanceledError: ll, isCancel: hl, CancelToken: dl, VERSION: fl, all: pl, Cancel: gl, isAxiosError: ml, spread: yl, toFormData: vl, AxiosHeaders: bl, HttpStatusCode: Sl, formToJSON: wl, getAdapter: El, mergeConfig: Cl } = al, Il = { version: "4.0.11-beta.1", createTime: "2026-10-08 15:38" }, _l = `${Il.version} - build on ${Il.createTime}`, Tl = window.location, { hostname: Al } = Tl;
8550
+ const { Axios: cl, AxiosError: ul, CanceledError: ll, isCancel: hl, CancelToken: dl, VERSION: fl, all: pl, Cancel: gl, isAxiosError: ml, spread: yl, toFormData: vl, AxiosHeaders: bl, HttpStatusCode: Sl, formToJSON: wl, getAdapter: El, mergeConfig: Cl } = al, Il = { version: "4.0.12", createTime: "2026-11-26 17:13" }, _l = `${Il.version} - build on ${Il.createTime}`, Tl = window.location, { hostname: Al } = Tl;
8551
8551
  let { protocol: Ol = "" } = Tl;
8552
8552
  Ol = Ol.includes("http:") && "localhost" !== Al ? "http:" : "https:";
8553
8553
  const kl = "cloudapi.xylink.com", Rl = "log.xylink.com", Dl = (t7 = "") => ((t8 = "") => t8 ? t8.replace(/^(https?|wss?):\/\//i, "").split("/")[0].split(":")[0].toLowerCase() : "")(t7) === kl, xl = { wssProtocol: { "https:": "wss:", "http:": "ws:" }[Ol], protocol: Ol, host: kl };
@@ -17623,7 +17623,7 @@ class Yw {
17623
17623
  Or.set(t.SENSITIVE_MASK_POLICY, e2);
17624
17624
  }
17625
17625
  }
17626
- const qw = /^[0-9a-zA-Z_-]{1,50}$/, Xw = "extUserId can only contain numbers, letters, _ and -, and the length cannot be greater than 50", Ww = { displayName: { required: true, type: "string" }, extUserId: { required: false, type: "string", pattern: qw, message: Xw } }, $w = { extId: { required: true, type: "string" }, extUserId: { required: true, type: "string", pattern: qw, message: Xw }, oauthCode: { required: true, type: "string" }, channelId: { required: true, type: "string" } }, Jw = { extId: { required: true, type: "string" }, account: { required: true, type: "string" }, password: { required: true, type: "string" } }, Zw = { extId: { required: true, type: "string" }, extUserId: { required: true, type: "string", pattern: qw, message: Xw }, authCode: { required: true, type: "string" }, displayName: { required: true, type: "string" } }, Qw = { extId: { required: true, type: "string" }, authCode: { required: true, type: "string" } }, tE = { account: { required: true, type: "string" }, verificationCode: { required: true, type: "string" } }, eE = { token: { required: true, type: "string" }, thirdPlatform: { required: true, type: "string" } };
17626
+ const qw = /^[0-9a-zA-Z_.@-]{1,50}$/, Xw = "extUserId can only contain numbers, letters, _, -, @ and ., and the length cannot be greater than 50", Ww = { displayName: { required: true, type: "string" }, extUserId: { required: false, type: "string", pattern: qw, message: Xw } }, $w = { extId: { required: true, type: "string" }, extUserId: { required: true, type: "string", pattern: qw, message: Xw }, oauthCode: { required: true, type: "string" }, channelId: { required: true, type: "string" } }, Jw = { extId: { required: true, type: "string" }, account: { required: true, type: "string" }, password: { required: true, type: "string" } }, Zw = { extId: { required: true, type: "string" }, extUserId: { required: true, type: "string", pattern: qw, message: Xw }, authCode: { required: true, type: "string" }, displayName: { required: true, type: "string" } }, Qw = { extId: { required: true, type: "string" }, authCode: { required: true, type: "string" } }, tE = { account: { required: true, type: "string" }, verificationCode: { required: true, type: "string" } }, eE = { token: { required: true, type: "string" }, thirdPlatform: { required: true, type: "string" } };
17627
17627
  class nE {
17628
17628
  constructor(t7) {
17629
17629
  this.handleLoginResult = (t8, e2) => __async(this, null, function* () {