ouisys-engine 2.1.37 → 2.1.38

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; }
@@ -120,26 +118,24 @@ function getRedirectUrlAction(_ref) {
120
118
  if (process.env.NODE_ENV === "production") {
121
119
  // Wait for Evina to Check Fraud First
122
120
  setInterval(function () {
123
- console.log("here");
124
-
125
121
  if (window.isEvinaSessionChecked) {
126
- (0, _timers.clearInterval)(_this);
122
+ clearInterval(_this);
127
123
 
128
124
  _strategy.tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {
129
125
  redirect_url: redirectUrl
130
126
  });
131
127
 
132
- (0, _timers.setTimeout)(function () {
128
+ setTimeout(function () {
133
129
  window.location.href = redirectUrl;
134
- }, 1000);
130
+ }, 3000);
135
131
  }
136
- }, 2000);
132
+ }, 1000);
137
133
  } else {
138
134
  _strategy.tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {
139
135
  redirect_url: redirectUrl
140
136
  });
141
137
 
142
- (0, _timers.setTimeout)(function () {
138
+ setTimeout(function () {
143
139
  window.location.href = redirectUrl;
144
140
  }, 3000);
145
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ouisys-engine",
3
- "version": "2.1.37",
3
+ "version": "2.1.38",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "directories": "dist dev-tools",
@@ -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
 
@@ -42,15 +41,14 @@ export function getRedirectUrlAction({extraParams, autoRedirect = false, isGetRe
42
41
  if(process.env.NODE_ENV === "production"){
43
42
  // Wait for Evina to Check Fraud First
44
43
  setInterval(() => {
45
- console.log("here")
46
44
  if(window.isEvinaSessionChecked){
47
45
  clearInterval(this);
48
46
  tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {redirect_url:redirectUrl});
49
47
  setTimeout(() => {
50
48
  window.location.href = redirectUrl;
51
- }, 1000);
49
+ }, 3000);
52
50
  }
53
- }, 2000);
51
+ }, 1000);
54
52
  }else{
55
53
  tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {redirect_url:redirectUrl});
56
54
  setTimeout(() => {