ouisys-engine 2.1.37 → 2.1.40
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.
|
@@ -49,8 +49,6 @@ var _utils = require("./utils");
|
|
|
49
49
|
|
|
50
50
|
var _strategy = require("../strategy");
|
|
51
51
|
|
|
52
|
-
var _timers = require("timers");
|
|
53
|
-
|
|
54
52
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
55
53
|
|
|
56
54
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -67,8 +65,6 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
|
67
65
|
|
|
68
66
|
//ACTION CREATORS
|
|
69
67
|
function getRedirectUrlAction(_ref) {
|
|
70
|
-
var _this = this;
|
|
71
|
-
|
|
72
68
|
var extraParams = _ref.extraParams,
|
|
73
69
|
_ref$autoRedirect = _ref.autoRedirect,
|
|
74
70
|
autoRedirect = _ref$autoRedirect === void 0 ? false : _ref$autoRedirect,
|
|
@@ -76,7 +72,7 @@ function getRedirectUrlAction(_ref) {
|
|
|
76
72
|
isGetRedirectBupperWay = _ref$isGetRedirectBup === void 0 ? false : _ref$isGetRedirectBup;
|
|
77
73
|
return /*#__PURE__*/function () {
|
|
78
74
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(dispatch, store) {
|
|
79
|
-
var currentState, _currentState$result, config, subscription_url, redirect_url, redirectUrl, _yield$getRedirectUrl, _redirect_url;
|
|
75
|
+
var currentState, _currentState$result, config, subscription_url, redirect_url, redirectUrl, timer, _yield$getRedirectUrl, _redirect_url;
|
|
80
76
|
|
|
81
77
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
82
78
|
while (1) {
|
|
@@ -117,29 +113,27 @@ function getRedirectUrlAction(_ref) {
|
|
|
117
113
|
});
|
|
118
114
|
|
|
119
115
|
if (autoRedirect == true || window.isAutoFraudScreener === true) {
|
|
120
|
-
if (process.env.NODE_ENV === "production") {
|
|
116
|
+
if (process.env.NODE_ENV === "production" && window?.pac_analytics?.visitor?.offer !== 1) {
|
|
121
117
|
// Wait for Evina to Check Fraud First
|
|
122
|
-
setInterval(function () {
|
|
123
|
-
console.log("here");
|
|
124
|
-
|
|
118
|
+
timer = setInterval(function () {
|
|
125
119
|
if (window.isEvinaSessionChecked) {
|
|
126
|
-
|
|
120
|
+
clearInterval(timer);
|
|
127
121
|
|
|
128
122
|
_strategy.tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {
|
|
129
123
|
redirect_url: redirectUrl
|
|
130
124
|
});
|
|
131
125
|
|
|
132
|
-
|
|
126
|
+
setTimeout(function () {
|
|
133
127
|
window.location.href = redirectUrl;
|
|
134
|
-
},
|
|
128
|
+
}, 3000);
|
|
135
129
|
}
|
|
136
|
-
},
|
|
130
|
+
}, 1000);
|
|
137
131
|
} else {
|
|
138
132
|
_strategy.tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {
|
|
139
133
|
redirect_url: redirectUrl
|
|
140
134
|
});
|
|
141
135
|
|
|
142
|
-
|
|
136
|
+
setTimeout(function () {
|
|
143
137
|
window.location.href = redirectUrl;
|
|
144
138
|
}, 3000);
|
|
145
139
|
}
|
package/package.json
CHANGED
|
@@ -6,7 +6,6 @@ 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 { clearInterval, setTimeout } from "timers";
|
|
10
9
|
|
|
11
10
|
|
|
12
11
|
|
|
@@ -39,18 +38,17 @@ export function getRedirectUrlAction({extraParams, autoRedirect = false, isGetRe
|
|
|
39
38
|
tracker.customEvent('Flow', 'advance-auto', 'redirect-success', {redirect_url:redirectUrl})
|
|
40
39
|
if(autoRedirect == true || window.isAutoFraudScreener === true){
|
|
41
40
|
|
|
42
|
-
if(process.env.NODE_ENV === "production"){
|
|
41
|
+
if(process.env.NODE_ENV === "production" && window?.pac_analytics?.visitor?.offer !== 1){
|
|
43
42
|
// Wait for Evina to Check Fraud First
|
|
44
|
-
setInterval(() => {
|
|
45
|
-
console.log("here")
|
|
43
|
+
const timer = setInterval(() => {
|
|
46
44
|
if(window.isEvinaSessionChecked){
|
|
47
|
-
clearInterval(
|
|
45
|
+
clearInterval(timer);
|
|
48
46
|
tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {redirect_url:redirectUrl});
|
|
49
47
|
setTimeout(() => {
|
|
50
48
|
window.location.href = redirectUrl;
|
|
51
|
-
},
|
|
49
|
+
}, 3000);
|
|
52
50
|
}
|
|
53
|
-
},
|
|
51
|
+
}, 1000);
|
|
54
52
|
}else{
|
|
55
53
|
tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {redirect_url:redirectUrl});
|
|
56
54
|
setTimeout(() => {
|