@kushki/js 1.31.2 → 1.31.4

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.
@@ -47,6 +47,7 @@ export declare class CardService implements ICardService {
47
47
  requestBinInfo(binBody: BinBody, mid: string, isTest: boolean, regional: boolean): Observable<BinInfoResponse>;
48
48
  validate3DS(body: Validate3DSRequest, mid: string, isTest: boolean, regional: boolean, callback: (value: Validate3DsResponse | ErrorResponse) => void): void;
49
49
  requestSecureInit(request: SecureInitRequest, mid: string, isTest: boolean, regional: boolean): Observable<SecureInitResponse>;
50
+ private _getCreateSubscriptionDataToTransform;
50
51
  private _request3DSToken;
51
52
  private _setupCompleteCardinal;
52
53
  private _requestTokenGateway;
@@ -181,9 +181,7 @@ var CardService = /** @class */ (function () {
181
181
  }), operators_1.concatMap(function (_a) {
182
182
  var sift_object = _a[0], jwt = _a[1];
183
183
  _this._checkRequestBody(subscriptionTokenRequest);
184
- var data_to_transform = __assign({}, subscriptionTokenRequest);
185
- if (sift_object.userId === null || sift_object.sessionId === null)
186
- data_to_transform.siftObject = __assign({}, sift_object);
184
+ var data_to_transform = _this._getCreateSubscriptionDataToTransform(sift_object, subscriptionTokenRequest);
187
185
  if (jwt !== undefined)
188
186
  data_to_transform.jwt = jwt;
189
187
  return rxjs_1.forkJoin([
@@ -248,6 +246,11 @@ var CardService = /** @class */ (function () {
248
246
  jwt: jwt
249
247
  }); }));
250
248
  };
249
+ CardService.prototype._getCreateSubscriptionDataToTransform = function (siftObject, subscriptionTokenRequest) {
250
+ if (siftObject.userId === null || siftObject.sessionId === null)
251
+ return __assign({}, subscriptionTokenRequest);
252
+ return __assign(__assign({}, subscriptionTokenRequest), siftObject);
253
+ };
251
254
  CardService.prototype._request3DSToken = function (body, mid, isTest, regional, callback, authorization) {
252
255
  var _this = this;
253
256
  if (isTest)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kushki/js",
3
- "version": "1.31.2",
3
+ "version": "1.31.4",
4
4
  "description": "kushki-js",
5
5
  "main": "lib/lib.js",
6
6
  "types": "lib/lib.d.ts",
@@ -99,7 +99,7 @@
99
99
  "@kushki/cardinal-sandbox-js": "1.0.4",
100
100
  "acorn": "6.4.1",
101
101
  "aws-amplify": "4.3.30",
102
- "axios": "0.21.1",
102
+ "axios": "0.21.3",
103
103
  "ci": "^2.1.1",
104
104
  "dot-object": "2.1.4",
105
105
  "inversify": "5.0.1",