@moonpay/platform-sdk-core 1.26.1 → 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 +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +9 -0
- 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,
|
|
@@ -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:
|