ouisys-engine 2.1.38 → 2.1.39

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.
@@ -65,8 +65,6 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
65
65
 
66
66
  //ACTION CREATORS
67
67
  function getRedirectUrlAction(_ref) {
68
- var _this = this;
69
-
70
68
  var extraParams = _ref.extraParams,
71
69
  _ref$autoRedirect = _ref.autoRedirect,
72
70
  autoRedirect = _ref$autoRedirect === void 0 ? false : _ref$autoRedirect,
@@ -74,7 +72,7 @@ function getRedirectUrlAction(_ref) {
74
72
  isGetRedirectBupperWay = _ref$isGetRedirectBup === void 0 ? false : _ref$isGetRedirectBup;
75
73
  return /*#__PURE__*/function () {
76
74
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(dispatch, store) {
77
- 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;
78
76
 
79
77
  return regeneratorRuntime.wrap(function _callee$(_context) {
80
78
  while (1) {
@@ -117,9 +115,9 @@ function getRedirectUrlAction(_ref) {
117
115
  if (autoRedirect == true || window.isAutoFraudScreener === true) {
118
116
  if (process.env.NODE_ENV === "production") {
119
117
  // Wait for Evina to Check Fraud First
120
- setInterval(function () {
118
+ timer = setInterval(function () {
121
119
  if (window.isEvinaSessionChecked) {
122
- clearInterval(_this);
120
+ clearInterval(timer);
123
121
 
124
122
  _strategy.tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {
125
123
  redirect_url: redirectUrl
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ouisys-engine",
3
- "version": "2.1.38",
3
+ "version": "2.1.39",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "directories": "dist dev-tools",
@@ -40,9 +40,9 @@ export function getRedirectUrlAction({extraParams, autoRedirect = false, isGetRe
40
40
 
41
41
  if(process.env.NODE_ENV === "production"){
42
42
  // Wait for Evina to Check Fraud First
43
- setInterval(() => {
43
+ const timer = setInterval(() => {
44
44
  if(window.isEvinaSessionChecked){
45
- clearInterval(this);
45
+ clearInterval(timer);
46
46
  tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {redirect_url:redirectUrl});
47
47
  setTimeout(() => {
48
48
  window.location.href = redirectUrl;