@arkadiuminc/sdk 0.0.27 → 0.0.29

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.
@@ -6,6 +6,8 @@ interface RpcRequest {
6
6
  declare class RpcPublisher {
7
7
  private rpcCallbacks;
8
8
  private target;
9
+ private instanceId;
10
+ constructor(instanceId: string);
9
11
  init(target: any): void;
10
12
  sendMessage(message: RpcRequest): Promise<any>;
11
13
  private genId;
@@ -14,7 +16,8 @@ declare class RpcPublisher {
14
16
  private unregisterCB;
15
17
  }
16
18
  declare class RpcSubscriber {
17
- constructor();
19
+ private instanceId;
20
+ constructor(instanceId: string);
18
21
  private registry;
19
22
  private target;
20
23
  init(target: any): void;
@@ -16,6 +16,7 @@ export declare class ArkadiumGameSdk {
16
16
  constructor(backendApi: BackendApi, environment: EnvironmentApi, gameState: GameStateContract, lifecycle: GameLifecycleContract, ads: AdsApi, userStateApi: UserStateApi, analytics: AnalyticsApiContract);
17
17
  initialize(env: ApiEnv, isGameSide: boolean, sessionStorage?: SessionStorageType | null): Promise<void>;
18
18
  updateWinReference(target: any): void;
19
+ debugMode(enabled: boolean): void;
19
20
  }
20
21
  export { ApiEnv };
21
22
  export declare class GameApi {
@@ -16,6 +16,7 @@ export declare class ArkadiumGameSdk {
16
16
  constructor(backendApi: BackendApi, environment: EnvironmentApi, gameState: GameStateContract, lifecycle: GameLifecycleContract, ads: AdsApi, userStateApi: UserStateApi, analytics: AnalyticsApiContract);
17
17
  initialize(env: ApiEnv, isGameSide: boolean, sessionStorage?: SessionStorageType | null): Promise<void>;
18
18
  updateWinReference(target: any): void;
19
+ debugMode(enabled: boolean): void;
19
20
  }
20
21
  export { ApiEnv };
21
22
  export declare class GameApi {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkadiuminc/sdk",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/pkg/arkadium-sdk.umd.js",
@@ -127,6 +127,7 @@
127
127
  "vite-plugin-dts": "^3.6.3"
128
128
  },
129
129
  "dependencies": {
130
- "jsonpack": "^1.1.5"
130
+ "jsonpack": "^1.1.5",
131
+ "nanoid": "^5.0.4"
131
132
  }
132
133
  }