@fat-zebra/sdk 2.0.0 → 2.0.1-beta.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/hpp/hpp.js +10 -0
- package/package.json +2 -2
package/dist/hpp/hpp.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
1
7
|
import * as bridge from '../shared/bridge-client';
|
|
2
8
|
import { LocalStorageAccessTokenKey } from '../shared/constants';
|
|
3
9
|
import { emit, off, on } from '../shared/event-manager';
|
|
@@ -5,6 +11,7 @@ import { PostMessageClient } from '../shared/post-message-client';
|
|
|
5
11
|
import { BridgeEvent, PublicEvent, } from '../shared/types';
|
|
6
12
|
import * as util from '../shared/util';
|
|
7
13
|
import { setTransactionReference } from "../logging/logger-context";
|
|
14
|
+
import { logMethod } from "../logging/logMethod";
|
|
8
15
|
import ThreeDSecure from "../three_d_secure";
|
|
9
16
|
const HPP_DEFAULT_OPTIONS = {
|
|
10
17
|
enableSca: false,
|
|
@@ -245,4 +252,7 @@ class Hpp {
|
|
|
245
252
|
this.headless.contentWindow.postMessage(message, '*');
|
|
246
253
|
}
|
|
247
254
|
}
|
|
255
|
+
__decorate([
|
|
256
|
+
logMethod()
|
|
257
|
+
], Hpp.prototype, "createPurchase", null);
|
|
248
258
|
export { Hpp, HPP_DEFAULT_OPTIONS, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fat-zebra/sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1-beta.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"ajv": "^8.17.1",
|
|
64
64
|
"ajv-formats": "^3.0.1",
|
|
65
65
|
"ajv-keywords": "^5.1.0",
|
|
66
|
-
"axios": "1.
|
|
66
|
+
"axios": "1.15.0",
|
|
67
67
|
"custom-event-polyfill": "^1.0.7",
|
|
68
68
|
"glob": "^13.0.6",
|
|
69
69
|
"ts-polyfill": "^3.8.2",
|