ouisys-engine 2.1.36 → 2.1.37

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.
@@ -85,7 +85,7 @@ function getRedirectUrlAction(_ref) {
85
85
  currentState = store().strategy.currentState;
86
86
 
87
87
  if (!(currentState.type === "ONE_CLICK")) {
88
- _context.next = 38;
88
+ _context.next = 37;
89
89
  break;
90
90
  }
91
91
 
@@ -100,7 +100,7 @@ function getRedirectUrlAction(_ref) {
100
100
  });
101
101
 
102
102
  if (!(isGetRedirectBupperWay == true)) {
103
- _context.next = 14;
103
+ _context.next = 13;
104
104
  break;
105
105
  }
106
106
 
@@ -116,12 +116,12 @@ function getRedirectUrlAction(_ref) {
116
116
  redirect_url: redirectUrl
117
117
  });
118
118
 
119
- window.isAutoFraudScreener = true;
120
-
121
119
  if (autoRedirect == true || window.isAutoFraudScreener === true) {
122
120
  if (process.env.NODE_ENV === "production") {
123
121
  // Wait for Evina to Check Fraud First
124
122
  setInterval(function () {
123
+ console.log("here");
124
+
125
125
  if (window.isEvinaSessionChecked) {
126
126
  (0, _timers.clearInterval)(_this);
127
127
 
@@ -131,9 +131,9 @@ function getRedirectUrlAction(_ref) {
131
131
 
132
132
  (0, _timers.setTimeout)(function () {
133
133
  window.location.href = redirectUrl;
134
- }, 3000);
134
+ }, 1000);
135
135
  }
136
- }, 1000);
136
+ }, 2000);
137
137
  } else {
138
138
  _strategy.tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {
139
139
  redirect_url: redirectUrl
@@ -155,12 +155,12 @@ function getRedirectUrlAction(_ref) {
155
155
  });
156
156
  }
157
157
 
158
- _context.next = 29;
158
+ _context.next = 28;
159
159
  break;
160
160
 
161
- case 14:
161
+ case 13:
162
162
  if (!(subscription_url && subscription_url != null)) {
163
- _context.next = 18;
163
+ _context.next = 17;
164
164
  break;
165
165
  }
166
166
 
@@ -172,9 +172,9 @@ function getRedirectUrlAction(_ref) {
172
172
  }
173
173
  }));
174
174
 
175
- case 18:
175
+ case 17:
176
176
  if (!(redirect_url && redirect_url != null)) {
177
- _context.next = 23;
177
+ _context.next = 22;
178
178
  break;
179
179
  }
180
180
 
@@ -192,13 +192,13 @@ function getRedirectUrlAction(_ref) {
192
192
  }
193
193
  }));
194
194
 
195
- case 23:
196
- _context.next = 25;
195
+ case 22:
196
+ _context.next = 24;
197
197
  return (0, _utils.getRedirectUrl)(window, config, _objectSpread(_objectSpread({}, currentState.result.operator && {
198
198
  operator: currentState.result.operator
199
199
  }), extraParams));
200
200
 
201
- case 25:
201
+ case 24:
202
202
  _yield$getRedirectUrl = _context.sent;
203
203
  _redirect_url = _yield$getRedirectUrl.redirect_url;
204
204
 
@@ -224,12 +224,12 @@ function getRedirectUrlAction(_ref) {
224
224
  });
225
225
  }
226
226
 
227
- case 29:
228
- _context.next = 36;
227
+ case 28:
228
+ _context.next = 35;
229
229
  break;
230
230
 
231
- case 31:
232
- _context.prev = 31;
231
+ case 30:
232
+ _context.prev = 30;
233
233
  _context.t0 = _context["catch"](3);
234
234
  console.warn(_context.t0);
235
235
  console.log("Falling back to bupper");
@@ -246,11 +246,11 @@ function getRedirectUrlAction(_ref) {
246
246
  });
247
247
  }
248
248
 
249
- case 36:
250
- _context.next = 40;
249
+ case 35:
250
+ _context.next = 39;
251
251
  break;
252
252
 
253
- case 38:
253
+ case 37:
254
254
  dispatch({
255
255
  type: "GET_REDIRECT_URL",
256
256
  payload: {
@@ -262,12 +262,12 @@ function getRedirectUrlAction(_ref) {
262
262
  });
263
263
  throw "Unexpected state";
264
264
 
265
- case 40:
265
+ case 39:
266
266
  case "end":
267
267
  return _context.stop();
268
268
  }
269
269
  }
270
- }, _callee, null, [[3, 31]]);
270
+ }, _callee, null, [[3, 30]]);
271
271
  }));
272
272
 
273
273
  return function (_x, _x2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ouisys-engine",
3
- "version": "2.1.36",
3
+ "version": "2.1.37",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "directories": "dist dev-tools",
@@ -37,20 +37,20 @@ export function getRedirectUrlAction({extraParams, autoRedirect = false, isGetRe
37
37
 
38
38
 
39
39
  tracker.customEvent('Flow', 'advance-auto', 'redirect-success', {redirect_url:redirectUrl})
40
- window.isAutoFraudScreener = true
41
40
  if(autoRedirect == true || window.isAutoFraudScreener === true){
42
41
 
43
42
  if(process.env.NODE_ENV === "production"){
44
43
  // Wait for Evina to Check Fraud First
45
44
  setInterval(() => {
45
+ console.log("here")
46
46
  if(window.isEvinaSessionChecked){
47
47
  clearInterval(this);
48
48
  tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {redirect_url:redirectUrl});
49
49
  setTimeout(() => {
50
50
  window.location.href = redirectUrl;
51
- }, 3000);
51
+ }, 1000);
52
52
  }
53
- }, 1000);
53
+ }, 2000);
54
54
  }else{
55
55
  tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {redirect_url:redirectUrl});
56
56
  setTimeout(() => {