@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
|
-
|
|
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
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openreceive/browser",
|
|
3
|
-
"version": "0.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.
|
|
35
|
-
"@openreceive/provider-data": "0.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": {
|