@openreceive/browser 0.2.2 → 0.2.3

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.
@@ -2357,7 +2357,11 @@ function checkoutLockSnapshotFromPrepareBody(body, fallbackReference) {
2357
2357
  function checkoutSnapshotFromResponseBody(body) {
2358
2358
  const record = recordOrEmpty(body);
2359
2359
  const wrapped = recordOrEmpty(record.checkout);
2360
- return checkoutSnapshot(wrapped);
2360
+ const paymentMethods2 = normalizePaymentMethods(record.payment_methods);
2361
+ return {
2362
+ ...checkoutSnapshot(wrapped),
2363
+ ...paymentMethods2 === void 0 ? {} : { payment_methods: paymentMethods2 }
2364
+ };
2361
2365
  }
2362
2366
  function checkoutSnapshot(checkout) {
2363
2367
  const paymentHash = requiredString(checkout.payment_hash, "payment_hash");
package/dist/headless.js CHANGED
@@ -111,7 +111,7 @@ import {
111
111
  updatePaymentWizardSelection,
112
112
  updateSelectedSwapNetworks,
113
113
  wizardNetworkGroupIds
114
- } from "./chunk-WLLNZH26.js";
114
+ } from "./chunk-JFJBHGR4.js";
115
115
 
116
116
  // src/internal/checkout-props.ts
117
117
  var CREATE_MODE_ONLY_PROPS = [
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  openWallet,
14
14
  prepareCheckout,
15
15
  requestCheckout
16
- } from "./chunk-WLLNZH26.js";
16
+ } from "./chunk-JFJBHGR4.js";
17
17
  export {
18
18
  BrowserRequestError,
19
19
  copyInvoice,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openreceive/browser",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Framework-free browser helpers for OpenReceive checkout: prepare/create calls, status polling, QR and wallet helpers.",
5
5
  "keywords": [
6
6
  "bitcoin",
@@ -31,8 +31,8 @@
31
31
  "./assets/*": "./dist/assets/*"
32
32
  },
33
33
  "dependencies": {
34
- "@openreceive/core": "0.2.2",
35
- "@openreceive/provider-data": "0.2.2",
34
+ "@openreceive/core": "0.2.3",
35
+ "@openreceive/provider-data": "0.2.3",
36
36
  "qrcode": "^1.5.4"
37
37
  },
38
38
  "devDependencies": {