@fat-zebra/sdk 2.1.1-beta.1 → 2.1.1-beta.2
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.
|
@@ -4,6 +4,17 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
8
|
+
var t = {};
|
|
9
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
10
|
+
t[p] = s[p];
|
|
11
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
12
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
13
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
14
|
+
t[p[i]] = s[p[i]];
|
|
15
|
+
}
|
|
16
|
+
return t;
|
|
17
|
+
};
|
|
7
18
|
import { BridgeEvent, PublicEvent } from "../shared/types";
|
|
8
19
|
import DeviceDataCollection from "./utility/device-data-collection";
|
|
9
20
|
import { LocalStorageAccessTokenKey } from "../shared/constants";
|
|
@@ -288,7 +299,12 @@ __decorate([
|
|
|
288
299
|
logMethod()
|
|
289
300
|
], ThreeDSecure.prototype, "checkEnrollment", null);
|
|
290
301
|
__decorate([
|
|
291
|
-
logMethod(
|
|
302
|
+
logMethod({
|
|
303
|
+
mapArgs: (args) => {
|
|
304
|
+
const _a = args[0], { access_token } = _a, params = __rest(_a, ["access_token"]);
|
|
305
|
+
return [params];
|
|
306
|
+
},
|
|
307
|
+
})
|
|
292
308
|
], ThreeDSecure.prototype, "enrolmentResponse", null);
|
|
293
309
|
__decorate([
|
|
294
310
|
logMethod()
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { ChallengeWindowSize } from "../../sca/types";
|
|
2
|
+
type ShowChallengeIframeProps = {
|
|
3
|
+
stepUpUrl: string;
|
|
4
|
+
accessToken: string;
|
|
5
|
+
cardToken: string;
|
|
6
|
+
challengeWindowSize?: ChallengeWindowSize;
|
|
7
|
+
};
|
|
2
8
|
declare class ThreeDSecureChallengeWindow {
|
|
3
9
|
static readonly displayName = "ThreeDSecureChallengeWindow";
|
|
4
10
|
private static OVERLAY_ID;
|
|
@@ -8,12 +14,7 @@ declare class ThreeDSecureChallengeWindow {
|
|
|
8
14
|
private static windowSizeToDims;
|
|
9
15
|
private static ensureOverlay;
|
|
10
16
|
static hide(): void;
|
|
11
|
-
static showChallengeIframe({ stepUpUrl, accessToken, cardToken, challengeWindowSize, }:
|
|
12
|
-
stepUpUrl: string;
|
|
13
|
-
accessToken: string;
|
|
14
|
-
cardToken: string;
|
|
15
|
-
challengeWindowSize?: ChallengeWindowSize;
|
|
16
|
-
}): void;
|
|
17
|
+
static showChallengeIframe({ stepUpUrl, accessToken, cardToken, challengeWindowSize, }: ShowChallengeIframeProps): void;
|
|
17
18
|
private static reportChallengeIframeLoaded;
|
|
18
19
|
private static reportChallengeIframeError;
|
|
19
20
|
}
|
|
@@ -182,7 +182,18 @@ ThreeDSecureChallengeWindow.CONTENT_ID = "three_d_secure_challenge_content";
|
|
|
182
182
|
ThreeDSecureChallengeWindow.FRAME_WRAP_ID = "three_d_secure_challenge_frame_wrap";
|
|
183
183
|
ThreeDSecureChallengeWindow.CHALLENGE_FORM_ID = "three_d_secure_challenge_form";
|
|
184
184
|
__decorate([
|
|
185
|
-
logMethod(
|
|
185
|
+
logMethod({
|
|
186
|
+
mapArgs: (args) => {
|
|
187
|
+
const params = args[0];
|
|
188
|
+
return [
|
|
189
|
+
{
|
|
190
|
+
card_token: params.cardToken,
|
|
191
|
+
challenge_window_size: params.challengeWindowSize,
|
|
192
|
+
step_up_url: params.stepUpUrl,
|
|
193
|
+
},
|
|
194
|
+
];
|
|
195
|
+
},
|
|
196
|
+
})
|
|
186
197
|
], ThreeDSecureChallengeWindow, "showChallengeIframe", null);
|
|
187
198
|
__decorate([
|
|
188
199
|
logMethod()
|
package/dist/version.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! fatzebra-sdk-commit:
|
|
1
|
+
/*! fatzebra-sdk-commit: 058224c622e8fbff2bd14a9b64d79a602e336aba */
|
|
2
2
|
export const version = '1.5.9';
|
|
3
3
|
// Placeholder replaced at build time by .github/scripts/stamp-version.js with the
|
|
4
4
|
// deployed commit hash (`git rev-parse HEAD`). Stays as the placeholder for builds
|
|
5
5
|
// that don't run the stamp step (e.g. local/package builds).
|
|
6
|
-
export const commitHash = '
|
|
6
|
+
export const commitHash = '058224c622e8fbff2bd14a9b64d79a602e336aba';
|