@exagent/sdk 0.1.14 → 0.1.15

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/index.js CHANGED
@@ -2280,6 +2280,10 @@ var ExagentClient = class {
2280
2280
  const key = `${approval.token.toLowerCase()}:${approval.spender.toLowerCase()}`;
2281
2281
  if (seen.has(key)) continue;
2282
2282
  seen.add(key);
2283
+ if (!approval.amount) {
2284
+ console.warn(`Skipping approval with missing amount for token ${approval.token} \u2014 0x did not return expected allowance`);
2285
+ continue;
2286
+ }
2283
2287
  const amount = BigInt(approval.amount);
2284
2288
  const existing = await this.getAllowance(
2285
2289
  approval.token,
package/dist/index.mjs CHANGED
@@ -2244,6 +2244,10 @@ var ExagentClient = class {
2244
2244
  const key = `${approval.token.toLowerCase()}:${approval.spender.toLowerCase()}`;
2245
2245
  if (seen.has(key)) continue;
2246
2246
  seen.add(key);
2247
+ if (!approval.amount) {
2248
+ console.warn(`Skipping approval with missing amount for token ${approval.token} \u2014 0x did not return expected allowance`);
2249
+ continue;
2250
+ }
2247
2251
  const amount = BigInt(approval.amount);
2248
2252
  const existing = await this.getAllowance(
2249
2253
  approval.token,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exagent/sdk",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "TypeScript SDK for Exagent",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",