Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tencentcloud/call-uikit-vue

Package Overview
Dependencies
Maintainers
7
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tencentcloud/call-uikit-vue - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

dist/types/src/utils/checkVueVersion.d.ts

1

dist/types/src/index.d.ts

@@ -0,1 +1,2 @@

/**TUICallKit-CheckVueEnv-import**/
import Server from "./server";

@@ -2,0 +3,0 @@ import TUICallKit from "./components/TUICallKit.vue";

@@ -5,1 +5,2 @@ /**

export declare const isMobile: boolean;
export declare const getLanguage: () => "zh-cn" | "en";

11

package.json
{
"name": "@tencentcloud/call-uikit-vue",
"version": "2.2.0",
"version": "2.2.1",
"main": "dist/tuicall-uikit-vue.umd.js",

@@ -43,7 +43,10 @@ "module": "dist/tuicall-uikit-vue.es.js",

],
"peerDependencies": {
"vue": "^3.2.0"
},
"dependencies": {
"tim-js-sdk": "^2.26.6",
"trtc-js-sdk": "^4.15.6",
"tim-js-sdk": "^2.27.4",
"trtc-js-sdk": "^4.15.10",
"tsignaling": "^1.0.5",
"tuicall-engine-webrtc": "^1.3.9"
"tuicall-engine-webrtc": "^1.4.6"
},

@@ -50,0 +53,0 @@ "devDependencies": {

/* eslint-disable @typescript-eslint/no-explicit-any */
// 下面这行主要用来发布vue2版本时候替换添加环境监测代码,请勿删除!
/**TUICallKit-CheckVueEnv-import**/
import Server from "./server";

@@ -3,0 +5,0 @@ import TUICallKit from "./components/TUICallKit.vue";

@@ -59,2 +59,5 @@ export const languageData: languageDataType = {

"call-error": "Start call failed",
"not-found-vue2": "Vue@2 not detected, please install Vue@2.7 or above.",
"not-match-vue2-version": "Detected that you have installed a version of Vue below 2.7, please install version 2.7 or above.",
"confirm-tip": "OK",
},

@@ -117,3 +120,6 @@ "zh-cn": {

"accept-device-error": "接通失败,通话设备获取失败",
"call-error": "发起通话失败"
"call-error": "发起通话失败",
"not-found-vue2": "未检测到 Vue@2,请先安装 Vue@2.7 及以上的版本",
"not-match-vue2-version": "检测到您安装了 Vue@2.7 以下的版本,请安装 2.7 及以上的版本",
"confirm-tip": "好的",
}

@@ -120,0 +126,0 @@ };

@@ -85,3 +85,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

store.changeIsFromGroup(false);
store.changeStatus(STATUS.DIALING_C2C);
await store.changeStatus(STATUS.DIALING_C2C);
await this.tuiCallEngine.call(params);

@@ -125,3 +125,3 @@ await this.setDefaultDevice({ camera: type === TUICallType.VIDEO_CALL });

store.changeIsFromGroup(true);
store.changeStatus(STATUS.DIALING_GROUP);
await store.changeStatus(STATUS.DIALING_GROUP);
await this.tuiCallEngine.groupCall(params);

@@ -136,3 +136,3 @@ await this.setDefaultDevice({ camera: type === TUICallType.VIDEO_CALL });

this.error = null;
store.changeStatus(STATUS.IDLE);
await store.changeStatus(STATUS.IDLE);
console.error("[TUICallKit] groupCall error: " + error?.message);

@@ -147,3 +147,3 @@ throw error;

this.beforeCalling && this.beforeCalling("groupCall");
store.changeStatus(STATUS.DIALING_GROUP);
await store.changeStatus(STATUS.DIALING_GROUP);
store.changeCallType(type);

@@ -272,3 +272,3 @@ store.changeIsFromGroup(true);

}
store.changeStatus(STATUS.IDLE);
await store.changeStatus(STATUS.IDLE);
}

@@ -322,3 +322,3 @@

}
store.changeStatus(STATUS.IDLE);
await store.changeStatus(STATUS.IDLE);
}

@@ -536,3 +536,3 @@

private handleError(event: any) {
private async handleError(event: any) {
const { code } = event;

@@ -574,3 +574,3 @@ this.error = {

}
store.changeStatus(STATUS.IDLE);
await store.changeStatus(STATUS.IDLE);
}

@@ -583,7 +583,7 @@

private handleKickedOut(event: any) {
private async handleKickedOut(event: any) {
console.error("[TUICallKit] Kicked Out", event);
this.unbindTIMEvent();
store.triggerEvents("kicked-out", event);
store.changeStatus(STATUS.IDLE);
await store.changeStatus(STATUS.IDLE);
}

@@ -616,3 +616,3 @@

private handleInvited(event: any) {
private async handleInvited(event: any) {
console.log("[TUICallKit] handleInvited", event);

@@ -627,3 +627,3 @@ this.beforeCalling && this.beforeCalling("invited", this.error);

const { callType } = inviteData;
store.changeStatus(STATUS.BE_INVITED);
await store.changeStatus(STATUS.BE_INVITED);
store.changeRemoteList([{ userID: sponsor, isEntered: false }]);

@@ -656,3 +656,3 @@ store.changeCallType(callType);

private handleReject(event: any) {
private async handleReject(event: any) {
console.log("[TUICallKit] handleReject", event);

@@ -665,11 +665,11 @@ const { userID } = event;

}
store.changeStatus(STATUS.IDLE, CHANGE_STATUS_REASON.REJECT, 1000);
await store.changeStatus(STATUS.IDLE, CHANGE_STATUS_REASON.REJECT, 1000);
}
private handleNoResponse(event: any) {
private handleNoResponse(event: any) {
console.log("[TUICallKit] handleNoResponse", event);
const { userIDList } = event;
userIDList.forEach((userID: string) => {
userIDList.forEach(async (userID: string) => {
if (store.removeRemoteListByUserID(userID) <= 0) {
store.changeStatus(STATUS.IDLE, CHANGE_STATUS_REASON.NO_RESPONSE, store.isFromGroup.value ? 0 : 1000);
await store.changeStatus(STATUS.IDLE, CHANGE_STATUS_REASON.NO_RESPONSE, store.isFromGroup.value ? 0 : 1000);
}

@@ -679,13 +679,13 @@ });

private handleLineBusy(event: any) {
private async handleLineBusy(event: any) {
console.log("[TUICallKit] handleLineBusy", event);
const { userID } = event;
if (store.removeRemoteListByUserID(userID) <= 0) {
store.changeStatus(STATUS.IDLE, CHANGE_STATUS_REASON.LINE_BUSY, store.isFromGroup.value ? 0 : 1000);
await store.changeStatus(STATUS.IDLE, CHANGE_STATUS_REASON.LINE_BUSY, store.isFromGroup.value ? 0 : 1000);
}
}
private handleCallingCancel(event: any) {
private async handleCallingCancel(event: any) {
console.log("[TUICallKit] handleCallingCancel", event);
store.changeStatus(STATUS.IDLE, CHANGE_STATUS_REASON.CALLING_CANCEL, 1000);
await store.changeStatus(STATUS.IDLE, CHANGE_STATUS_REASON.CALLING_CANCEL, 1000);
}

@@ -696,5 +696,5 @@

const { userIDList } = event;
userIDList.forEach((userID: string) => {
userIDList.forEach(async(userID: string) => {
if (store.removeRemoteListByUserID(userID) <= 0 || userID === store.profile.value.userID) {
store.changeStatus(STATUS.IDLE, CHANGE_STATUS_REASON.CALLING_TIMEOUT, store.isFromGroup.value ? 0 : 1000);
await store.changeStatus(STATUS.IDLE, CHANGE_STATUS_REASON.CALLING_TIMEOUT, store.isFromGroup.value ? 0 : 1000);
}

@@ -704,5 +704,5 @@ });

private handleCallingEnd(event: any) {
private async handleCallingEnd(event: any) {
console.log("[TUICallKit] handleCallingEnd", event);
store.changeStatus(STATUS.IDLE);
await store.changeStatus(STATUS.IDLE);
}

@@ -709,0 +709,0 @@

@@ -5,1 +5,13 @@ /**

export const isMobile: boolean = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
/*
* 获取浏览器语言
* @export
* @return {zh-cn | en}
*/
export const getLanguage = () => {
// @ts-ignore
let lang = navigator.language || navigator.userLanguage;
lang = lang.substr(0, 2);
return lang === 'zh' ? 'zh-cn' : 'en';
};

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc