@stvor/sdk 2.2.0 → 2.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.
@@ -21,7 +21,9 @@ export declare class StvorApp {
21
21
  disconnect(userId?: UserId): Promise<void>;
22
22
  }
23
23
  export declare function init(config: StvorAppConfig): Promise<StvorApp>;
24
+ export declare const createApp: typeof init;
24
25
  export declare const Stvor: {
25
26
  init: typeof init;
27
+ createApp: typeof init;
26
28
  };
27
29
  export {};
@@ -85,4 +85,9 @@ export async function init(config) {
85
85
  }
86
86
  return new StvorApp(config);
87
87
  }
88
- export const Stvor = { init };
88
+ // Alias for createApp
89
+ export const createApp = init;
90
+ export const Stvor = {
91
+ init,
92
+ createApp,
93
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stvor/sdk",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Stvor DX Facade - Simple E2EE SDK for client-side encryption",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",