@jokio/sdk 0.1.12 → 0.2.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.
@@ -1,5 +1,7 @@
1
+ import { AuthService } from './auth.service';
1
2
  type Config = {
2
3
  natsUrl: string;
4
+ auth: AuthService;
3
5
  };
4
6
  export declare class NatsService<TApi> {
5
7
  private config;
@@ -10,6 +12,7 @@ export declare class NatsService<TApi> {
10
12
  private globalPrefix;
11
13
  private resolveConnected;
12
14
  isConnected: Promise<unknown>;
15
+ get url(): string;
13
16
  constructor(config: Config);
14
17
  connect(opts?: {
15
18
  natsWsServerUrls?: string[];
@@ -0,0 +1,5 @@
1
+ export declare class StorageService {
2
+ setItem<T>(key: string, value: T): Promise<void>;
3
+ getItem<T>(key: string): Promise<T | null>;
4
+ removeItem(key: string): Promise<void>;
5
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jokio/sdk",
3
3
  "description": "pure js/ts sdk for building decentralised localfirst web apps. Provides tts ai model integrations, realtime p2p communication & crypto encryptions.",
4
- "version": "0.1.12",
4
+ "version": "0.2.1",
5
5
  "license": "MIT",
6
6
  "main": "dist/jokio.sdk.umd.js",
7
7
  "module": "dist/jokio.sdk.es.js",