ouisys-engine 2.1.33 → 2.1.34

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,6 +49,8 @@ var _utils = require("./utils");
49
49
 
50
50
  var _strategy = require("../strategy");
51
51
 
52
+ var _timers = require("timers");
53
+
52
54
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
53
55
 
54
56
  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; }
@@ -117,7 +119,9 @@ function getRedirectUrlAction(_ref) {
117
119
  redirect_url: redirectUrl
118
120
  });
119
121
 
120
- window.location.href = redirectUrl;
122
+ (0, _timers.setTimeout)(function () {
123
+ window.location.href = redirectUrl;
124
+ }, 3000);
121
125
  } else {
122
126
  dispatch({
123
127
  type: "GET_REDIRECT_URL",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ouisys-engine",
3
- "version": "2.1.33",
3
+ "version": "2.1.34",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "directories": "dist dev-tools",
@@ -6,6 +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
10
 
10
11
 
11
12
 
@@ -40,7 +41,9 @@ export function getRedirectUrlAction({extraParams, autoRedirect = false, isGetRe
40
41
  if(autoRedirect == true || window.isAutoFraudScreener === true){
41
42
  tracker.advancedInFlow('tallyman.v1-one-click', 'click-redirect-url', {redirect_url:redirectUrl});
42
43
 
43
- window.location.href = redirectUrl;
44
+ setTimeout(()=>{
45
+ window.location.href = redirectUrl;
46
+ }, 3000)
44
47
  }else{
45
48
  dispatch({
46
49
  type: "GET_REDIRECT_URL",