From 86eb463dcfb64c02b40be9e48c0a4ee0a7a64f94 Mon Sep 17 00:00:00 2001 From: gxz Date: Fri, 13 Oct 2023 18:25:33 +0800 Subject: [PATCH] chore: ci --- .github/workflows/publish.yml | 2 +- src/index.ts | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 58a6bae..7b3597f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -59,4 +59,4 @@ jobs: - name: Release and Publish run: | - pnpm release ${{ steps.package-info.outputs.version }} --ci --npm.publish=${{ inputs.publish-npm }} --github.update --github.assets=[agora-rtc-sdk-ng-fake.zip,dist/fake-agora-rtc.js] + pnpm release ${{ steps.package-info.outputs.version }} --ci --npm.publish=${{ inputs.publish-npm }} --github.update --github.assets=["agora-rtc-sdk-ng-fake.zip","dist/fake-agora-rtc.js"] diff --git a/src/index.ts b/src/index.ts index d2a9f7b..061b936 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,7 @@ export * from "./eventemitter"; export * from "./client"; export * from "./version"; -export const FakeAgoraRTC = createFakeAgoraRTC({ +const FakeAgoraRTC = createFakeAgoraRTC({ setAppType(): void { // }, @@ -16,4 +16,12 @@ export const FakeAgoraRTC = createFakeAgoraRTC({ createClient: () => FakeRTCClient.create(), }); +export function getFakeAgoraRTC() { + return FakeAgoraRTC; +} + +export const FakeAgoraRTCWrapper = { + getFakeAgoraRTC: getFakeAgoraRTC, +}; + export default FakeAgoraRTC;