@frontegg/redux-store 6.72.0 → 6.73.0-alpha.1
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
const _excluded = ["callback", "events"];
|
|
3
3
|
import { api } from '@frontegg/rest-api';
|
|
4
|
-
import { call, put, takeLeading } from 'redux-saga/effects';
|
|
4
|
+
import { call, delay, put, takeLeading } from 'redux-saga/effects';
|
|
5
|
+
import { afterAuthNavigation } from '../LoginState/saga';
|
|
5
6
|
import { actions } from '../reducer';
|
|
6
7
|
import { ImpersonateStep } from './interfaces';
|
|
7
8
|
function* impersonate(_ref) {
|
|
@@ -19,6 +20,8 @@ function* impersonate(_ref) {
|
|
|
19
20
|
yield put(actions.setImpersonateState({
|
|
20
21
|
step: ImpersonateStep.success
|
|
21
22
|
}));
|
|
23
|
+
yield delay(1000);
|
|
24
|
+
yield afterAuthNavigation();
|
|
22
25
|
yield put(actions.resetImpersonateState());
|
|
23
26
|
callback == null ? void 0 : callback(true);
|
|
24
27
|
} catch (e) {
|
package/index.js
CHANGED
|
@@ -8,6 +8,7 @@ exports.impersonateSagas = impersonateSagas;
|
|
|
8
8
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
9
9
|
var _restApi = require("@frontegg/rest-api");
|
|
10
10
|
var _effects = require("redux-saga/effects");
|
|
11
|
+
var _saga = require("../LoginState/saga");
|
|
11
12
|
var _reducer = require("../reducer");
|
|
12
13
|
var _interfaces = require("./interfaces");
|
|
13
14
|
const _excluded = ["callback", "events"];
|
|
@@ -26,6 +27,8 @@ function* impersonate(_ref) {
|
|
|
26
27
|
yield (0, _effects.put)(_reducer.actions.setImpersonateState({
|
|
27
28
|
step: _interfaces.ImpersonateStep.success
|
|
28
29
|
}));
|
|
30
|
+
yield (0, _effects.delay)(1000);
|
|
31
|
+
yield (0, _saga.afterAuthNavigation)();
|
|
29
32
|
yield (0, _effects.put)(_reducer.actions.resetImpersonateState());
|
|
30
33
|
callback == null ? void 0 : callback(true);
|
|
31
34
|
} catch (e) {
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/redux-store",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.73.0-alpha.1",
|
|
4
4
|
"main": "./node/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Frontegg LTD",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/runtime": "^7.18.6",
|
|
9
|
-
"@frontegg/rest-api": "3.0.
|
|
9
|
+
"@frontegg/rest-api": "3.0.77",
|
|
10
10
|
"@reduxjs/toolkit": "^1.8.5",
|
|
11
11
|
"redux-saga": "^1.2.1",
|
|
12
12
|
"uuid": "^8.3.2"
|