@fat-zebra/sdk 2.0.2-beta.2 → 2.0.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.
- package/dist/hpp/hpp.d.ts +1 -0
- package/dist/hpp/hpp.js +1 -0
- package/dist/logging/logMethod.js +4 -5
- package/dist/main.d.ts +1 -0
- package/dist/main.js +3 -1
- package/dist/sca/index.d.ts +1 -0
- package/dist/sca/index.js +1 -0
- package/dist/three_d_secure/index.d.ts +1 -0
- package/dist/three_d_secure/index.js +1 -0
- package/dist/three_d_secure/utility/device-data-collection.d.ts +1 -0
- package/dist/three_d_secure/utility/device-data-collection.js +1 -0
- package/dist/three_d_secure/utility/three_d_secure_challenge_window.d.ts +1 -0
- package/dist/three_d_secure/utility/three_d_secure_challenge_window.js +1 -0
- package/package.json +1 -1
package/dist/hpp/hpp.d.ts
CHANGED
package/dist/hpp/hpp.js
CHANGED
|
@@ -31,16 +31,15 @@ import { instrumentFunction } from "./instrument";
|
|
|
31
31
|
// Decorator factory
|
|
32
32
|
export function logMethod(opts = {}) {
|
|
33
33
|
return function (target, propertyKey, descriptor) {
|
|
34
|
-
var _a
|
|
34
|
+
var _a;
|
|
35
35
|
const original = descriptor.value;
|
|
36
36
|
if (typeof original !== "function") {
|
|
37
37
|
console.error(`@logMethod can only decorate methods (${propertyKey})`);
|
|
38
38
|
return descriptor;
|
|
39
39
|
}
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
descriptor.value = instrumentFunction(propertyKey, original, Object.assign(Object.assign({}, opts), { className, mapArgs: (_b = opts.mapArgs) !== null && _b !== void 0 ? _b : ((args) => args.map((a) => {
|
|
40
|
+
const ctor = typeof target === "function" ? target : target === null || target === void 0 ? void 0 : target.constructor;
|
|
41
|
+
const className = (ctor === null || ctor === void 0 ? void 0 : ctor.displayName) || (ctor === null || ctor === void 0 ? void 0 : ctor.name) || "UnknownClass";
|
|
42
|
+
descriptor.value = instrumentFunction(propertyKey, original, Object.assign(Object.assign({}, opts), { className, mapArgs: (_a = opts.mapArgs) !== null && _a !== void 0 ? _a : ((args) => args.map((a) => {
|
|
44
43
|
if (!a || typeof a !== "object")
|
|
45
44
|
return a;
|
|
46
45
|
return Object.assign(Object.assign({}, a), { js_sdk: true });
|
package/dist/main.d.ts
CHANGED
package/dist/main.js
CHANGED
|
@@ -28,7 +28,7 @@ import { ApplePay } from './applepay';
|
|
|
28
28
|
import { setLoggerUsername, setTransactionReference } from './logging/logger-context';
|
|
29
29
|
import { logMethod } from './logging/logMethod';
|
|
30
30
|
import ThreeDSecure from './three_d_secure';
|
|
31
|
-
|
|
31
|
+
class FatZebra {
|
|
32
32
|
constructor(config) {
|
|
33
33
|
var _a;
|
|
34
34
|
this.threeDSecureListenersBound = false;
|
|
@@ -323,6 +323,8 @@ export default class FatZebra {
|
|
|
323
323
|
onOnce(event, callback);
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
+
FatZebra.displayName = "FatZebra";
|
|
327
|
+
export default FatZebra;
|
|
326
328
|
__decorate([
|
|
327
329
|
logMethod({
|
|
328
330
|
mapArgs: (args) => {
|
package/dist/sca/index.d.ts
CHANGED
package/dist/sca/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export interface DeviceDataCollectionMessage {
|
|
|
6
6
|
reference_id: string;
|
|
7
7
|
}
|
|
8
8
|
export default class DeviceDataCollection {
|
|
9
|
+
static readonly displayName = "DeviceDataCollection";
|
|
9
10
|
private static readonly IFRAME_ID;
|
|
10
11
|
private static readonly IFRAME_NAME;
|
|
11
12
|
private static readonly FORM_ID;
|
|
@@ -117,6 +117,7 @@ class DeviceDataCollection {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
+
DeviceDataCollection.displayName = "DeviceDataCollection";
|
|
120
121
|
// Shared IDs so other classes can query the DOM directly too
|
|
121
122
|
DeviceDataCollection.IFRAME_ID = "cardinal_collection_iframe";
|
|
122
123
|
DeviceDataCollection.IFRAME_NAME = "collectionIframe";
|
|
@@ -173,6 +173,7 @@ class ThreeDSecureChallengeWindow {
|
|
|
173
173
|
console.log("❌ step-up iframe error");
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
+
ThreeDSecureChallengeWindow.displayName = "ThreeDSecureChallengeWindow";
|
|
176
177
|
ThreeDSecureChallengeWindow.OVERLAY_ID = "three_d_secure_challenge_overlay";
|
|
177
178
|
ThreeDSecureChallengeWindow.CONTENT_ID = "three_d_secure_challenge_content";
|
|
178
179
|
ThreeDSecureChallengeWindow.FRAME_WRAP_ID = "three_d_secure_challenge_frame_wrap";
|