@compass-labs/widgets 0.1.45 → 0.1.47

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,6 +1,6 @@
1
1
  import { DynamicModule, ExceptionFilter, ArgumentsHost } from '@nestjs/common';
2
2
  import { C as CompassHandlerConfig } from '../../types-BOSq6TbU.mjs';
3
- import { C as CompassCoreService } from '../../compass-service-CpGcD-yK.mjs';
3
+ import { C as CompassCoreService } from '../../compass-service-Dz4PTtzj.mjs';
4
4
  import * as _compass_labs_api_sdk_models_components from '@compass-labs/api-sdk/models/components';
5
5
  import 'viem';
6
6
  import '@compass-labs/api-sdk';
@@ -1,6 +1,6 @@
1
1
  import { DynamicModule, ExceptionFilter, ArgumentsHost } from '@nestjs/common';
2
2
  import { C as CompassHandlerConfig } from '../../types-BOSq6TbU.js';
3
- import { C as CompassCoreService } from '../../compass-service-DilASlAA.js';
3
+ import { C as CompassCoreService } from '../../compass-service-BzYob9QR.js';
4
4
  import * as _compass_labs_api_sdk_models_components from '@compass-labs/api-sdk/models/components';
5
5
  import 'viem';
6
6
  import '@compass-labs/api-sdk';
@@ -317,7 +317,7 @@ var CompassCoreService = class {
317
317
  }
318
318
  }
319
319
  async transferPrepare(body) {
320
- const { owner, chain = "base", token, amount, action, product } = body;
320
+ const { owner, chain = "base", token, amount, action, product, recipient } = body;
321
321
  const { gasSponsorPrivateKey } = this.config;
322
322
  if (!owner || !token || !amount || !action) {
323
323
  throw new CompassServiceError("Missing required parameters", 400);
@@ -346,7 +346,8 @@ var CompassCoreService = class {
346
346
  amount,
347
347
  action,
348
348
  gasSponsorship: true,
349
- ...spender && { spender }
349
+ ...spender && { spender },
350
+ ...recipient && action === "WITHDRAW" && { recipient }
350
351
  });
351
352
  }
352
353
  const eip712 = response.eip712;