Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@arkadiuminc/sdk

Package Overview
Dependencies
Maintainers
6
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arkadiuminc/sdk - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

17

dist/pkg/api/features/environment/environment.api.d.ts

@@ -19,2 +19,16 @@ export interface LocalStorageContract {

}
export interface GameIdReaderContract {
readGameId(): Promise<string>;
setGameId(id: string): any;
}
export declare class GameIdReader implements GameIdReaderContract {
private gameIdOverride;
constructor();
readGameId(): Promise<string>;
setGameId(id: string): void;
}
export declare class GameIdReaderProxy implements GameIdReaderContract {
readGameId(): Promise<string>;
setGameId(id: string): Promise<any>;
}
export declare class EnvironmentApi {

@@ -24,3 +38,4 @@ localStorage: LocalStorageContract;

urlParamsReader: UrlParamsReaderContract;
constructor(localStorage: LocalStorageContract, cookieStorage: CookieStorageContract, urlParamsReader: UrlParamsReaderContract);
gameIdReader: GameIdReaderContract;
constructor(localStorage: LocalStorageContract, cookieStorage: CookieStorageContract, urlParamsReader: UrlParamsReaderContract, gameIdReader: GameIdReaderContract);
static getArenaApi(): EnvironmentApi;

@@ -27,0 +42,0 @@ static getGameApi(): EnvironmentApi;

16

dist/pkg/api/features/game-state/game-state.api.d.ts

@@ -1,2 +0,2 @@

import { LocalStorageContract } from '../environment/environment.api';
import { GameIdReaderContract } from '../environment/environment.api';
import { BackendApi } from '../backend/backend.api';

@@ -8,11 +8,15 @@ export interface GameStateContract {

export declare class GameStateApi {
ls: LocalStorageContract;
backendApi: BackendApi;
constructor(backendApi: BackendApi);
private ls;
private backendApi;
private gameIdReader;
constructor(backendApi: BackendApi, gameIdReader: GameIdReaderContract);
private getGameId;
private packData;
private unpackData;
private isUserAuthorized;
loadGameState(key: string): Promise<any>;
loadGameState(key: string): Promise<Record<any, any> | null>;
private getStorageKey;
private loadData;
saveGameState(key: string, state: any): Promise<void>;
saveGameState(key: string, state: Record<any, any>): Promise<void>;
private saveData;
}

@@ -19,0 +23,0 @@ export declare class GameStateApiProxy {

{
"name": "@arkadiuminc/sdk",
"version": "0.0.3",
"version": "0.0.4",
"description": "",

@@ -5,0 +5,0 @@ "keywords": [],

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc