@arkadiuminc/sdk 2.4.0 → 2.5.0

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.
@@ -24,7 +24,9 @@ export interface GameLifecycleContract {
24
24
  export declare class GameLifecycle implements GameLifecycleContract {
25
25
  private rpcProvider;
26
26
  private cb;
27
+ private subscribers;
27
28
  constructor(rpcProvider: RpcProvider);
29
+ private processLifecycleEvent;
28
30
  onTestReady(): Promise<void>;
29
31
  onGameStart(): Promise<void>;
30
32
  onInteract(): Promise<void>;
@@ -39,7 +39,7 @@ export declare class GameApi {
39
39
  static version: string;
40
40
  private static sdk;
41
41
  private static envDiscoverer;
42
- static onGameSDKLoaded(): void;
42
+ static onGameSDKLoaded(): Promise<void>;
43
43
  static getInstance(): Promise<ArkadiumGameSdk>;
44
44
  static setEnvDiscoverer(d: EnvDiscoverer): void;
45
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkadiuminc/sdk",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/pkg/arkadium-sdk.umd.js",
@@ -38,6 +38,7 @@
38
38
  "precommit": "lint-staged",
39
39
  "release": "standard-version --skip.tag",
40
40
  "ci-release": "standard-version && git push origin && git push origin $(git tag --sort=creatordate | tail -n 1)",
41
+ "test:coverage": "jest --collectCoverage --coverageReporters lcov cobertura html --colors",
41
42
  "prepare": "husky"
42
43
  },
43
44
  "lint-staged": {
@@ -64,7 +65,7 @@
64
65
  "@arkadium/eagle-user-client": "^0.0.90",
65
66
  "@commitlint/cli": "^17.8.1",
66
67
  "@commitlint/config-conventional": "^17.8.1",
67
- "@types/jest": "^28.1.6",
68
+ "@types/jest": "^29.5.11",
68
69
  "@types/node": "^18.0.6",
69
70
  "colors": "^1.4.0",
70
71
  "coveralls": "^3.1.1",