@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.
- package/dist/{compass-service-DilASlAA.d.ts → compass-service-BzYob9QR.d.ts} +1 -0
- package/dist/{compass-service-CpGcD-yK.d.mts → compass-service-Dz4PTtzj.d.mts} +1 -0
- package/dist/server/core/index.d.mts +1 -1
- package/dist/server/core/index.d.ts +1 -1
- package/dist/server/core/index.js +3 -2
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/core/index.mjs +3 -2
- package/dist/server/core/index.mjs.map +1 -1
- package/dist/server/index.js +3 -2
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +3 -2
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/nestjs/index.d.mts +1 -1
- package/dist/server/nestjs/index.d.ts +1 -1
- package/dist/server/nestjs/index.js +3 -2
- package/dist/server/nestjs/index.js.map +1 -1
- package/dist/server/nestjs/index.mjs +3 -2
- package/dist/server/nestjs/index.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -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-
|
|
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-
|
|
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;
|