@pooflabs/core 0.0.36 → 0.0.37

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.
@@ -3,7 +3,7 @@ export interface ClientConfig {
3
3
  name: string;
4
4
  logoUrl: string;
5
5
  apiKey: string;
6
- authMethod: 'none' | 'privy' | 'wallet' | 'rainbowkit' | 'coinbase-smart-wallet' | 'onboard' | 'phantom';
6
+ authMethod: 'none' | 'privy' | 'wallet' | 'rainbowkit' | 'coinbase-smart-wallet' | 'onboard' | 'phantom' | 'mobile-wallet-adapter';
7
7
  wsApiUrl: string;
8
8
  apiUrl: string;
9
9
  appId: string;
@@ -27,6 +27,15 @@ export interface ClientConfig {
27
27
  appIcon?: string;
28
28
  enablePrivyFallback?: boolean;
29
29
  };
30
+ mobileWalletConfig?: {
31
+ appIdentity?: {
32
+ name?: string;
33
+ uri?: string;
34
+ icon?: string;
35
+ };
36
+ cluster?: string;
37
+ theme?: 'light' | 'dark';
38
+ };
30
39
  mockAuth?: boolean;
31
40
  }
32
41
  export declare let clientConfig: ClientConfig;
package/dist/index.js CHANGED
@@ -4375,7 +4375,10 @@ function handleServerMessage(connection, message) {
4375
4375
  }
4376
4376
  function notifyCallbacks(subscription, data) {
4377
4377
  var _a;
4378
- for (const callback of subscription.callbacks) {
4378
+ // Snapshot the callbacks array so that unsubscriptions during
4379
+ // notification don't cause callbacks to be skipped.
4380
+ const callbacks = subscription.callbacks.slice();
4381
+ for (const callback of callbacks) {
4379
4382
  try {
4380
4383
  (_a = callback.onData) === null || _a === void 0 ? void 0 : _a.call(callback, data);
4381
4384
  }