From 1e8ae1baa9f3525736901bbcd02918edd24f7c84 Mon Sep 17 00:00:00 2001 From: gxz Date: Thu, 22 Feb 2024 16:49:46 +0800 Subject: [PATCH] chore: optimize --- package.json | 2 +- src/client.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ab0181c..f0bed45 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@agoraio-extensions/agora-rtc-sdk-ng-fake", - "version": "1.0.11", + "version": "1.0.12", "private": true, "description": "Fake Agora Web RTC for testing", "repository": { diff --git a/src/client.ts b/src/client.ts index 981f9e7..b04178c 100644 --- a/src/client.ts +++ b/src/client.ts @@ -146,7 +146,7 @@ export class FakeRTCClient extends FakeAgoraEventEmitter { this.uid = randUuid(); // eslint-disable-next-line @typescript-eslint/ban-ts-comment //@ts-ignore websdk的私有属性 - this._joinInfo.uid = this.uid; + this._joinInfo = { uid: this.uid }; this.channelName = FAKE_CHANNEL_NAME; return Promise.resolve(this.uid); }