@series-inc/venus-sdk 3.1.2-beta.0 → 3.1.2-beta.1

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.
@@ -827,7 +827,7 @@ declare class RpcSharedAssetsApi implements SharedAssetsApi {
827
827
  private readonly venusApi;
828
828
  private readonly rpcClient;
829
829
  constructor(rpcClient: RpcClient, venusApi: VenusAPI);
830
- loadAssetsBundle(game: string, bundleKey: string): Promise<ArrayBuffer>;
830
+ loadAssetsBundle(game: string, bundleKey: string, fileType?: string): Promise<ArrayBuffer>;
831
831
  loadLibraryCode(libraryKey: string): Promise<string>;
832
832
  }
833
833
  interface LoadEmbeddedAssetsRequest {
@@ -827,7 +827,7 @@ declare class RpcSharedAssetsApi implements SharedAssetsApi {
827
827
  private readonly venusApi;
828
828
  private readonly rpcClient;
829
829
  constructor(rpcClient: RpcClient, venusApi: VenusAPI);
830
- loadAssetsBundle(game: string, bundleKey: string): Promise<ArrayBuffer>;
830
+ loadAssetsBundle(game: string, bundleKey: string, fileType?: string): Promise<ArrayBuffer>;
831
831
  loadLibraryCode(libraryKey: string): Promise<string>;
832
832
  }
833
833
  interface LoadEmbeddedAssetsRequest {
@@ -3422,7 +3422,7 @@ function initializeTime(venusApi, host) {
3422
3422
  }
3423
3423
 
3424
3424
  // src/version.ts
3425
- var SDK_VERSION = "3.1.2-beta.0";
3425
+ var SDK_VERSION = "3.1.2-beta.1";
3426
3426
 
3427
3427
  // src/shared-assets/embeddedLibrariesManifest.ts
3428
3428
  var DEFAULT_SHARED_LIB_CDN_BASE = "https://venus-static-01293ak.web.app/libs";
@@ -3601,7 +3601,7 @@ var RpcSharedAssetsApi = class {
3601
3601
  this.rpcClient = rpcClient;
3602
3602
  this.venusApi = venusApi;
3603
3603
  }
3604
- async loadAssetsBundle(game, bundleKey) {
3604
+ async loadAssetsBundle(game, bundleKey, fileType = "stow") {
3605
3605
  try {
3606
3606
  const response = await this.rpcClient.callT("H5_LOAD_EMBEDDED_ASSET" /* H5_LOAD_EMBEDDED_ASSET */, {
3607
3607
  assetKey: bundleKey
@@ -3609,7 +3609,7 @@ var RpcSharedAssetsApi = class {
3609
3609
  return base64ToArrayBuffer(response.base64Data);
3610
3610
  } catch (err) {
3611
3611
  try {
3612
- const blob = await this.venusApi.cdn.fetchBlob(`${game}/${bundleKey}`);
3612
+ const blob = await this.venusApi.cdn.fetchBlob(`${game}/${bundleKey}.${fileType}`);
3613
3613
  return await blob.arrayBuffer();
3614
3614
  } catch (e) {
3615
3615
  throw new Error(`Failed to load ${bundleKey}`);
@@ -3650,8 +3650,8 @@ var MockSharedAssetsApi = class {
3650
3650
  __publicField(this, "venusApi");
3651
3651
  this.venusApi = venusApi;
3652
3652
  }
3653
- async loadAssetsBundle(game, bundleKey) {
3654
- const blob = await this.venusApi.cdn.fetchBlob(`${game}/${bundleKey}`);
3653
+ async loadAssetsBundle(game, bundleKey, fileType = "stow") {
3654
+ const blob = await this.venusApi.cdn.fetchBlob(`${game}/${bundleKey}.${fileType}`);
3655
3655
  return await blob.arrayBuffer();
3656
3656
  }
3657
3657
  async loadLibraryCode(libraryKey) {
@@ -5145,5 +5145,5 @@ function initializeSocial(venusApi, host) {
5145
5145
  }
5146
5146
 
5147
5147
  export { DEFAULT_SHARED_LIB_CDN_BASE, EMBEDDED_LIBRARIES, EMBEDDED_LIBRARY_BY_KEY, HASH_ALGORITHM_NODE, HASH_ALGORITHM_WEB_CRYPTO, HapticFeedbackStyle, HostCdnApi, HostDeviceApi, HostEnvironmentApi, HostProfileApi, HostSystemApi, HostTimeApi, MODULE_TO_LIBRARY_SPECIFIERS, MockAdsApi, MockAiApi, MockAnalyticsApi, MockAvatarApi, MockCdnApi, MockDeviceApi, MockEnvironmentApi, MockFeaturesApi, MockHapticsApi, MockIapApi, MockLeaderboardApi, MockLifecycleApi, MockLoggingApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockPreloaderApi, MockProfileApi, MockSharedAssetsApi, MockSocialApi, MockStorageApi, MockSystemApi, MockTimeApi, RemoteHost, RpcAdsApi, RpcAiApi, RpcAnalyticsApi, RpcAvatarApi, RpcClient, RpcFeaturesApi, RpcHapticsApi, RpcIapApi, RpcLeaderboardApi, RpcLifecycleApi, RpcLoggingApi, RpcNavigationApi, RpcNotificationsApi, RpcPopupsApi, RpcPreloaderApi, RpcRoomsApi, RpcSharedAssetsApi, RpcSimulationApi, RpcSocialApi, RpcStorageApi, SDK_VERSION, VenusMessageId, VenusRoom, base64ToArrayBuffer, base64ToUtf8, computeScoreHash, createHost, createMockStorageApi, getLibraryDefinition, initializeAds, initializeAi, initializeAnalytics, initializeAvatar3d, initializeCdn, initializeFeaturesApi, initializeHaptics, initializeIap, initializeLeaderboard, initializeLifecycleApi, initializeLocalNotifications, initializeLoggingApi, initializePopups, initializePreloader, initializeProfile, initializeRoomsApi, initializeSimulation, initializeSocial, initializeStackNavigation, initializeStorage, initializeSystem, initializeTime, isPacificDaylightTime, setupRoomNotifications };
5148
- //# sourceMappingURL=chunk-QQTWO5KS.mjs.map
5149
- //# sourceMappingURL=chunk-QQTWO5KS.mjs.map
5148
+ //# sourceMappingURL=chunk-U6NFOU3E.mjs.map
5149
+ //# sourceMappingURL=chunk-U6NFOU3E.mjs.map