@arkadiuminc/sdk
Advanced tools
Comparing version 2.11.0 to 2.12.0
import { RpcProvider } from './rpc'; | ||
export interface TimeoutTesterContract { | ||
@@ -3,0 +4,0 @@ timeout(): Promise<void>; |
@@ -1,2 +0,3 @@ | ||
import { ApiEnv } from "../../backend/backend.api"; | ||
import { ApiEnv } from '../../backend/backend.api'; | ||
export declare class VideoAd { | ||
@@ -3,0 +4,0 @@ static getInstance(): VideoAd; |
import { RpcProvider } from '../../core/rpc'; | ||
import { ApiEnv } from '../backend/backend.api'; | ||
import { Auth } from '../auth/'; | ||
export interface GameAdsContract { | ||
@@ -5,0 +6,0 @@ showPrerollAd?(options: { |
@@ -1,2 +0,3 @@ | ||
import { ApiEnv } from "../backend/backend.api"; | ||
import { ApiEnv } from '../backend/backend.api'; | ||
export declare class VideoAd { | ||
@@ -3,0 +4,0 @@ static domain: string; |
@@ -5,2 +5,3 @@ import { RpcProvider } from '../../core/rpc'; | ||
import { IHost } from '../host'; | ||
interface EnvironmentVersion { | ||
@@ -7,0 +8,0 @@ GameKey: string; |
@@ -1,3 +0,4 @@ | ||
import { DimensionsObject } from "../dimensions"; | ||
import { DimensionsObject } from '../dimensions'; | ||
import { IAnalyticConfig } from '../defs'; | ||
declare type EventArr = [string, string, DimensionsObject]; | ||
@@ -17,4 +18,4 @@ declare type PageViewArr = [string, DimensionsObject]; | ||
trackException(exception: Error): void; | ||
getProviderType(): import("../defs").AnalyticsProviderType; | ||
getProviderType(): import('../defs').AnalyticsProviderType; | ||
} | ||
export {}; |
@@ -1,3 +0,4 @@ | ||
import { DimensionsObject } from "../dimensions"; | ||
import { AnalyticsProvider } from "./AnalyticsProvider"; | ||
import { DimensionsObject } from '../dimensions'; | ||
import { AnalyticsProvider } from './AnalyticsProvider'; | ||
declare global { | ||
@@ -4,0 +5,0 @@ interface Window { |
@@ -1,3 +0,4 @@ | ||
import { DimensionsObject } from "../dimensions"; | ||
import { AnalyticsProvider } from "./AnalyticsProvider"; | ||
import { DimensionsObject } from '../dimensions'; | ||
import { AnalyticsProvider } from './AnalyticsProvider'; | ||
/** | ||
@@ -4,0 +5,0 @@ * based on game-core-monorepo/packages/engine/src/Analytics/Provider/ConsoleAnalytic.ts |
@@ -1,3 +0,4 @@ | ||
import { DimensionsObject, Dimension } from "../dimensions"; | ||
import { AnalyticsProvider } from "./AnalyticsProvider"; | ||
import { DimensionsObject, Dimension } from '../dimensions'; | ||
import { AnalyticsProvider } from './AnalyticsProvider'; | ||
/** | ||
@@ -4,0 +5,0 @@ * based on game-core-monorepo/packages/engine/src/Analytics/Provider/GoogleAnalytic.ts |
@@ -5,2 +5,3 @@ import { ApiEnv, Backend } from '../backend/backend.api'; | ||
import { IHost } from '../host'; | ||
interface Image { | ||
@@ -7,0 +8,0 @@ png: string; |
import { ApiGateway as UserApiGateway } from '@arkadium/eagle-user-client'; | ||
import { UserGameDataApi } from '@arkadium/eagle-user-client/dist/types/api/v1/user-game-data.api'; | ||
export declare enum ApiEnv { | ||
@@ -17,8 +18,8 @@ DEV = "DEV", | ||
userGameData: UserGameDataApi | null; | ||
uiOpenRequest: import("../../utils/observable").Observable<boolean>; | ||
authStatus: import("../../utils/observable").Observable<boolean>; | ||
uiOpenRequest: import('../../utils/observable').Observable<boolean>; | ||
authStatus: import('../../utils/observable').Observable<boolean>; | ||
addEventListener(event: number, cb: () => void): void; | ||
init(env: ApiEnv, isGameSide: boolean, sessionStorage?: SessionStorageType | null): Promise<void>; | ||
getAuthToken(): Promise<string> | undefined; | ||
getSessionStorage(): import("@arkadium/eagle-user-client/dist/types/session-storage").SessionStorage | undefined; | ||
getSessionStorage(): import('@arkadium/eagle-user-client/dist/types/session-storage').SessionStorage | undefined; | ||
checkAuth(): void; | ||
@@ -25,0 +26,0 @@ isUserAuthorized(): boolean; |
import { RpcProvider } from '../../core/rpc'; | ||
declare enum LifecycleEvent { | ||
@@ -3,0 +4,0 @@ TEST_READY = 1, |
import { RpcProvider } from '../../core/rpc'; | ||
export interface IHost { | ||
@@ -3,0 +4,0 @@ getQueryParameter(key: string): Promise<string | null>; |
import { RpcProvider } from '../../core/rpc'; | ||
import { NakamaProvider } from '../nakama/nakama-provider'; | ||
import { IHost } from '../host'; | ||
declare type RemoteStorageValueType = string | object; | ||
@@ -32,3 +32,3 @@ export interface IPersistence { | ||
*/ | ||
constructor(rpcProvider: RpcProvider, nakamaProvider: NakamaProvider, host: IHost); | ||
constructor(rpcProvider: RpcProvider, host: IHost); | ||
getLocalStorageItem(key: string): Promise<string | null>; | ||
@@ -40,6 +40,15 @@ setLocalStorageItem(key: string, value: string): Promise<void>; | ||
private isRemoteStorageBlacklisted; | ||
/** | ||
* @deprecated The method should not be used | ||
*/ | ||
getRemoteStorageItem(key: string): Promise<RemoteStorageValueType | null>; | ||
/** | ||
* @deprecated The method should not be used | ||
*/ | ||
setRemoteStorageItem(key: string, value: RemoteStorageValueType): Promise<void>; | ||
/** | ||
* @deprecated The method should not be used | ||
*/ | ||
removeRemoteStorageItem(key: string): Promise<boolean>; | ||
} | ||
export {}; |
@@ -11,2 +11,3 @@ import { ApiEnv, Backend, SessionStorageType } from './api/features/backend/backend.api'; | ||
import { HostArena } from './api/features/host'; | ||
export declare class ArkadiumGameSdk { | ||
@@ -13,0 +14,0 @@ private rpcProvider; |
@@ -5,3 +5,2 @@ import { ApiEnv, Backend, SessionStorageType } from './api/features/backend/backend.api'; | ||
import { Auth } from './api/features/auth/'; | ||
import { NakamaProvider } from './api/features/nakama/nakama-provider'; | ||
import { AnalyticsApiContract } from './api/features/analytics/analytics.api'; | ||
@@ -12,2 +11,3 @@ import { RpcProvider } from './api/core/rpc'; | ||
import { HostGame } from './api/features/host'; | ||
export declare class ArkadiumGameSdk { | ||
@@ -24,7 +24,6 @@ version: string; | ||
auth: Auth; | ||
private nakamaProvider; | ||
analytics: AnalyticsApiContract; | ||
private timeoutTester; | ||
persistence: PersistenceGame; | ||
constructor({ rpcProvider, backendApi, host, lifecycle, ads, auth, nakamaProvider, analytics, timeoutTester, persistence }: { | ||
constructor({ rpcProvider, backendApi, host, lifecycle, ads, auth, analytics, timeoutTester, persistence }: { | ||
rpcProvider: RpcProvider; | ||
@@ -36,3 +35,2 @@ backendApi: Backend; | ||
auth: Auth; | ||
nakamaProvider?: NakamaProvider; | ||
analytics: AnalyticsApiContract; | ||
@@ -39,0 +37,0 @@ timeoutTester: TimeoutTesterContract; |
import { ArkadiumGameSdk } from './arkadium-game-sdk'; | ||
declare type API = ArkadiumGameSdk; | ||
@@ -3,0 +4,0 @@ export declare enum Env { |
import { RpcProvider } from './api/core/rpc'; | ||
export declare class PingModule { | ||
constructor(rpcProvider: RpcProvider); | ||
$ping: import("./api/utils/observable").Observable<number>; | ||
$ping: import('./api/utils/observable').Observable<number>; | ||
ping(): boolean; | ||
@@ -6,0 +7,0 @@ } |
{ | ||
"name": "@arkadiuminc/sdk", | ||
"version": "2.11.0", | ||
"version": "2.12.0", | ||
"description": "", | ||
@@ -98,3 +98,2 @@ "keywords": [], | ||
"dependencies": { | ||
"@heroiclabs/nakama-js": "^2.8.0", | ||
"@microsoft/applicationinsights-web": "^3.0.4", | ||
@@ -101,0 +100,0 @@ "jsonpack": "^1.1.5", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4
45217
42
1023
+ Addednanoid@5.0.8(transitive)
- Removed@heroiclabs/nakama-js@^2.8.0
- Removed@heroiclabs/nakama-js@2.8.0(transitive)
- Removed@scarf/scarf@1.4.0(transitive)
- Removedbase64-arraybuffer@1.0.2(transitive)
- Removedjs-base64@3.7.7(transitive)
- Removednanoid@5.0.9(transitive)
- Removedwhatwg-fetch@3.6.20(transitive)