@moonpay/platform-sdk-core 1.26.0 → 1.27.0
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 +10 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -25,6 +25,7 @@ __export(index_exports, {
|
|
|
25
25
|
apiFetch: () => apiFetch,
|
|
26
26
|
applyClientTokenParam: () => applyClientTokenParam,
|
|
27
27
|
applyPresentationParam: () => applyPresentationParam,
|
|
28
|
+
applyResumeParam: () => applyResumeParam,
|
|
28
29
|
applyThemeParam: () => applyThemeParam,
|
|
29
30
|
buildFrameUrl: () => buildFrameUrl,
|
|
30
31
|
createClientContext: () => createClientContext,
|
|
@@ -1706,7 +1707,7 @@ var FRAME_PATHS = {
|
|
|
1706
1707
|
googlePay: "/platform/v1/google-pay",
|
|
1707
1708
|
widget: "/platform/v1/widget",
|
|
1708
1709
|
buy: "/platform/v1/buy",
|
|
1709
|
-
buyButton: "/
|
|
1710
|
+
buyButton: "/v2/buy-button",
|
|
1710
1711
|
challenge: "/platform/v1/challenge",
|
|
1711
1712
|
addCard: "/platform/v1/add-card",
|
|
1712
1713
|
reset: "/platform/v1/reset",
|
|
@@ -1764,6 +1765,14 @@ function applyClientTokenParam(url, clientToken) {
|
|
|
1764
1765
|
}
|
|
1765
1766
|
return parsed.href;
|
|
1766
1767
|
}
|
|
1768
|
+
function applyResumeParam(url, resume) {
|
|
1769
|
+
if (!resume) return url;
|
|
1770
|
+
const parsed = new URL(url);
|
|
1771
|
+
if (!parsed.searchParams.has("resume")) {
|
|
1772
|
+
parsed.searchParams.set("resume", "true");
|
|
1773
|
+
}
|
|
1774
|
+
return parsed.href;
|
|
1775
|
+
}
|
|
1767
1776
|
/*! Bundled license information:
|
|
1768
1777
|
|
|
1769
1778
|
@noble/ciphers/esm/utils.js:
|