ouisys-engine 2.1.34 → 2.1.35
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.
|
@@ -67,6 +67,8 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
|
67
67
|
|
|
68
68
|
//ACTION CREATORS
|
|
69
69
|
function getRedirectUrlAction(_ref) {
|
|
70
|
+
var _this = this;
|
|
71
|
+
|
|
70
72
|
var extraParams = _ref.extraParams,
|
|
71
73
|
_ref$autoRedirect = _ref.autoRedirect,
|
|
72
74
|
autoRedirect = _ref$autoRedirect === void 0 ? false : _ref$autoRedirect,
|
|
@@ -83,7 +85,7 @@ function getRedirectUrlAction(_ref) {
|
|
|
83
85
|
currentState = store().strategy.currentState;
|
|
84
86
|
|
|
85
87
|
if (!(currentState.type === "ONE_CLICK")) {
|
|
86
|
-
_context.next =
|
|
88
|
+
_context.next = 38;
|
|
87
89
|
break;
|
|
88
90
|
}
|
|
89
91
|
|
|
@@ -98,7 +100,7 @@ function getRedirectUrlAction(_ref) {
|
|
|
98
100
|
});
|
|
99
101
|
|
|
100
102
|
if (!(isGetRedirectBupperWay == true)) {
|
|
101
|
-
_context.next =
|
|
103
|
+
_context.next = 14;
|
|
102
104
|
break;
|
|
103
105
|
}
|
|
104
106
|
|
|
@@ -114,14 +116,33 @@ function getRedirectUrlAction(_ref) {
|
|
|
114
116
|
redirect_url: redirectUrl
|
|
115
117
|
});
|
|
116
118
|
|
|
117
|
-
|
|
118
|
-
_strategy.tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {
|
|
119
|
-
redirect_url: redirectUrl
|
|
120
|
-
});
|
|
119
|
+
window.isAutoFraudScreener = true;
|
|
121
120
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
if (autoRedirect == true || window.isAutoFraudScreener === true) {
|
|
122
|
+
if (process.env.NODE_ENV === "production") {
|
|
123
|
+
// Wait for Evina to Check Fraud First
|
|
124
|
+
setInterval(function () {
|
|
125
|
+
if (window.isEvinaSessionChecked) {
|
|
126
|
+
(0, _timers.clearInterval)(_this);
|
|
127
|
+
|
|
128
|
+
_strategy.tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {
|
|
129
|
+
redirect_url: redirectUrl
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
(0, _timers.setTimeout)(function () {
|
|
133
|
+
window.location.href = redirectUrl;
|
|
134
|
+
}, 1000);
|
|
135
|
+
}
|
|
136
|
+
}, 2000);
|
|
137
|
+
} else {
|
|
138
|
+
_strategy.tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {
|
|
139
|
+
redirect_url: redirectUrl
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
(0, _timers.setTimeout)(function () {
|
|
143
|
+
window.location.href = redirectUrl;
|
|
144
|
+
}, 3000);
|
|
145
|
+
}
|
|
125
146
|
} else {
|
|
126
147
|
dispatch({
|
|
127
148
|
type: "GET_REDIRECT_URL",
|
|
@@ -134,12 +155,12 @@ function getRedirectUrlAction(_ref) {
|
|
|
134
155
|
});
|
|
135
156
|
}
|
|
136
157
|
|
|
137
|
-
_context.next =
|
|
158
|
+
_context.next = 29;
|
|
138
159
|
break;
|
|
139
160
|
|
|
140
|
-
case
|
|
161
|
+
case 14:
|
|
141
162
|
if (!(subscription_url && subscription_url != null)) {
|
|
142
|
-
_context.next =
|
|
163
|
+
_context.next = 18;
|
|
143
164
|
break;
|
|
144
165
|
}
|
|
145
166
|
|
|
@@ -151,9 +172,9 @@ function getRedirectUrlAction(_ref) {
|
|
|
151
172
|
}
|
|
152
173
|
}));
|
|
153
174
|
|
|
154
|
-
case
|
|
175
|
+
case 18:
|
|
155
176
|
if (!(redirect_url && redirect_url != null)) {
|
|
156
|
-
_context.next =
|
|
177
|
+
_context.next = 23;
|
|
157
178
|
break;
|
|
158
179
|
}
|
|
159
180
|
|
|
@@ -171,13 +192,13 @@ function getRedirectUrlAction(_ref) {
|
|
|
171
192
|
}
|
|
172
193
|
}));
|
|
173
194
|
|
|
174
|
-
case
|
|
175
|
-
_context.next =
|
|
195
|
+
case 23:
|
|
196
|
+
_context.next = 25;
|
|
176
197
|
return (0, _utils.getRedirectUrl)(window, config, _objectSpread(_objectSpread({}, currentState.result.operator && {
|
|
177
198
|
operator: currentState.result.operator
|
|
178
199
|
}), extraParams));
|
|
179
200
|
|
|
180
|
-
case
|
|
201
|
+
case 25:
|
|
181
202
|
_yield$getRedirectUrl = _context.sent;
|
|
182
203
|
_redirect_url = _yield$getRedirectUrl.redirect_url;
|
|
183
204
|
|
|
@@ -203,12 +224,12 @@ function getRedirectUrlAction(_ref) {
|
|
|
203
224
|
});
|
|
204
225
|
}
|
|
205
226
|
|
|
206
|
-
case
|
|
207
|
-
_context.next =
|
|
227
|
+
case 29:
|
|
228
|
+
_context.next = 36;
|
|
208
229
|
break;
|
|
209
230
|
|
|
210
|
-
case
|
|
211
|
-
_context.prev =
|
|
231
|
+
case 31:
|
|
232
|
+
_context.prev = 31;
|
|
212
233
|
_context.t0 = _context["catch"](3);
|
|
213
234
|
console.warn(_context.t0);
|
|
214
235
|
console.log("Falling back to bupper");
|
|
@@ -225,11 +246,11 @@ function getRedirectUrlAction(_ref) {
|
|
|
225
246
|
});
|
|
226
247
|
}
|
|
227
248
|
|
|
228
|
-
case
|
|
229
|
-
_context.next =
|
|
249
|
+
case 36:
|
|
250
|
+
_context.next = 40;
|
|
230
251
|
break;
|
|
231
252
|
|
|
232
|
-
case
|
|
253
|
+
case 38:
|
|
233
254
|
dispatch({
|
|
234
255
|
type: "GET_REDIRECT_URL",
|
|
235
256
|
payload: {
|
|
@@ -241,12 +262,12 @@ function getRedirectUrlAction(_ref) {
|
|
|
241
262
|
});
|
|
242
263
|
throw "Unexpected state";
|
|
243
264
|
|
|
244
|
-
case
|
|
265
|
+
case 40:
|
|
245
266
|
case "end":
|
|
246
267
|
return _context.stop();
|
|
247
268
|
}
|
|
248
269
|
}
|
|
249
|
-
}, _callee, null, [[3,
|
|
270
|
+
}, _callee, null, [[3, 31]]);
|
|
250
271
|
}));
|
|
251
272
|
|
|
252
273
|
return function (_x, _x2) {
|
package/package.json
CHANGED
package/src/@types/window.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { AppThunk } from "../../common-types/AppThunk";
|
|
|
6
6
|
import { getRedirectUrl, getRedirectUrlBupperWay, mockedRedirectUrlSuccessState, mockedSubscribeAjaxState, subscribe } from "./utils";
|
|
7
7
|
import { genericHandler, tracker } from "../strategy";
|
|
8
8
|
import { IHash } from "../strategy/StrategyTypes";
|
|
9
|
-
import { setTimeout } from "timers";
|
|
9
|
+
import { clearInterval, setTimeout } from "timers";
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -37,13 +37,29 @@ export function getRedirectUrlAction({extraParams, autoRedirect = false, isGetRe
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
tracker.customEvent('Flow', 'advance-auto', 'redirect-success', {redirect_url:redirectUrl})
|
|
40
|
-
|
|
40
|
+
window.isAutoFraudScreener = true
|
|
41
41
|
if(autoRedirect == true || window.isAutoFraudScreener === true){
|
|
42
|
-
tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {redirect_url:redirectUrl});
|
|
43
42
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
if(process.env.NODE_ENV === "production"){
|
|
44
|
+
// Wait for Evina to Check Fraud First
|
|
45
|
+
setInterval(() => {
|
|
46
|
+
if(window.isEvinaSessionChecked){
|
|
47
|
+
clearInterval(this);
|
|
48
|
+
tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {redirect_url:redirectUrl});
|
|
49
|
+
setTimeout(() => {
|
|
50
|
+
window.location.href = redirectUrl;
|
|
51
|
+
}, 1000);
|
|
52
|
+
}
|
|
53
|
+
}, 2000);
|
|
54
|
+
}else{
|
|
55
|
+
tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {redirect_url:redirectUrl});
|
|
56
|
+
setTimeout(() => {
|
|
57
|
+
window.location.href = redirectUrl;
|
|
58
|
+
}, 3000);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
47
63
|
}else{
|
|
48
64
|
dispatch({
|
|
49
65
|
type: "GET_REDIRECT_URL",
|