@pooflabs/core 0.0.36 → 0.0.38

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
@@ -3842,6 +3842,8 @@ async function setMany(many, options) {
3842
3842
  data,
3843
3843
  });
3844
3844
  })) !== null && _e !== void 0 ? _e : [],
3845
+ // Server co-signed transaction (when CPI tx_data is present)
3846
+ signedTransaction: tx.signedTransaction,
3845
3847
  };
3846
3848
  const transactionResult = await authProvider.runTransaction(undefined, solTransaction, options);
3847
3849
  return transactionResult;
@@ -4375,7 +4377,10 @@ function handleServerMessage(connection, message) {
4375
4377
  }
4376
4378
  function notifyCallbacks(subscription, data) {
4377
4379
  var _a;
4378
- for (const callback of subscription.callbacks) {
4380
+ // Snapshot the callbacks array so that unsubscriptions during
4381
+ // notification don't cause callbacks to be skipped.
4382
+ const callbacks = subscription.callbacks.slice();
4383
+ for (const callback of callbacks) {
4379
4384
  try {
4380
4385
  (_a = callback.onData) === null || _a === void 0 ? void 0 : _a.call(callback, data);
4381
4386
  }