@moonpay/platform-sdk-react-native 1.15.0 → 1.15.1
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 +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -439,10 +439,13 @@ var challengeSpec = {
|
|
|
439
439
|
// documentation only — buildUrl below wins
|
|
440
440
|
hidden: false,
|
|
441
441
|
resolveChannelId: (props, generated) => new URL(props.url).searchParams.get("channelId") || generated,
|
|
442
|
-
buildUrl: (
|
|
442
|
+
buildUrl: (ctx, props, channelId) => {
|
|
443
443
|
const url = new URL(props.url);
|
|
444
444
|
url.searchParams.set("channelId", channelId);
|
|
445
|
-
return (0, import_platform_sdk_core.
|
|
445
|
+
return (0, import_platform_sdk_core.applyClientTokenParam)(
|
|
446
|
+
(0, import_platform_sdk_core.applyPresentationParam)(url.toString(), props.presentation),
|
|
447
|
+
ctx.core.context.clientToken
|
|
448
|
+
);
|
|
446
449
|
},
|
|
447
450
|
mapMessage: (msg) => {
|
|
448
451
|
switch (msg.kind) {
|