@routedock/nulth-sdk 0.2.1 → 0.2.2

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.cjs CHANGED
@@ -331,7 +331,7 @@ function paymentContextFromManifest(manifest, mode, ledgerSequence) {
331
331
  throw new Error(`manifest.pricing.${mode} missing`);
332
332
  }
333
333
  return {
334
- payee: manifest.payee,
334
+ payee: pricing.payee ?? manifest.payee,
335
335
  amountStroops: usdcToStroops(pricing.amount),
336
336
  assetContract: manifest.asset_contract,
337
337
  ledgerSequence
package/dist/index.d.cts CHANGED
@@ -188,9 +188,11 @@ declare function paymentContextFromManifest(manifest: {
188
188
  pricing: {
189
189
  x402?: {
190
190
  amount: string;
191
+ payee?: string;
191
192
  };
192
193
  'mpp-charge'?: {
193
194
  amount: string;
195
+ payee?: string;
194
196
  };
195
197
  };
196
198
  }, mode: 'x402' | 'mpp-charge', ledgerSequence: number): Omit<PaymentAuthContext, 'authEntry'>;
package/dist/index.d.ts CHANGED
@@ -188,9 +188,11 @@ declare function paymentContextFromManifest(manifest: {
188
188
  pricing: {
189
189
  x402?: {
190
190
  amount: string;
191
+ payee?: string;
191
192
  };
192
193
  'mpp-charge'?: {
193
194
  amount: string;
195
+ payee?: string;
194
196
  };
195
197
  };
196
198
  }, mode: 'x402' | 'mpp-charge', ledgerSequence: number): Omit<PaymentAuthContext, 'authEntry'>;
package/dist/index.js CHANGED
@@ -286,7 +286,7 @@ function paymentContextFromManifest(manifest, mode, ledgerSequence) {
286
286
  throw new Error(`manifest.pricing.${mode} missing`);
287
287
  }
288
288
  return {
289
- payee: manifest.payee,
289
+ payee: pricing.payee ?? manifest.payee,
290
290
  amountStroops: usdcToStroops(pricing.amount),
291
291
  assetContract: manifest.asset_contract,
292
292
  ledgerSequence
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routedock/nulth-sdk",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Off-chain ZK proof builder for Nulth smart accounts on Stellar",
5
5
  "license": "MIT",
6
6
  "type": "module",