@frontegg/redux-store 7.41.0-alpha.0 → 7.41.0-alpha.2
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.
- package/auth/LoginState/actions/index.js +3 -0
- package/auth/Security/RestrictionsState/actions.js +2 -2
- package/auth/index.js +1 -0
- package/auth/interfaces.d.ts +1 -0
- package/index.js +1 -1
- package/mocks/auth-mocks/loginActions.mocks.js +2 -1
- package/node/auth/LoginState/actions/index.js +3 -0
- package/node/auth/Security/RestrictionsState/actions.js +2 -2
- package/node/auth/index.js +1 -0
- package/node/index.js +1 -1
- package/node/mocks/auth-mocks/loginActions.mocks.js +2 -1
- package/package.json +2 -2
|
@@ -245,8 +245,8 @@ export default ((store, api, sharedActions) => {
|
|
|
245
245
|
error: null
|
|
246
246
|
});
|
|
247
247
|
try {
|
|
248
|
-
var
|
|
249
|
-
const userIp = (
|
|
248
|
+
var _ref, _store$auth$userIpDat;
|
|
249
|
+
const userIp = (_ref = ((_store$auth$userIpDat = store.auth.userIpData) == null ? void 0 : _store$auth$userIpDat.ip) || store.auth.userIp) != null ? _ref : '';
|
|
250
250
|
await Promise.all([api.auth.createIPRestriction({
|
|
251
251
|
ip: userIp,
|
|
252
252
|
isActive: true,
|
package/auth/index.js
CHANGED
package/auth/interfaces.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -252,8 +252,8 @@ var _default = (store, api, sharedActions) => {
|
|
|
252
252
|
error: null
|
|
253
253
|
});
|
|
254
254
|
try {
|
|
255
|
-
var
|
|
256
|
-
const userIp = (
|
|
255
|
+
var _ref, _store$auth$userIpDat;
|
|
256
|
+
const userIp = (_ref = ((_store$auth$userIpDat = store.auth.userIpData) == null ? void 0 : _store$auth$userIpDat.ip) || store.auth.userIp) != null ? _ref : '';
|
|
257
257
|
await Promise.all([api.auth.createIPRestriction({
|
|
258
258
|
ip: userIp,
|
|
259
259
|
isActive: true,
|
package/node/auth/index.js
CHANGED
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/redux-store",
|
|
3
|
-
"version": "7.41.0-alpha.
|
|
3
|
+
"version": "7.41.0-alpha.2",
|
|
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
9
|
"@frontegg/entitlements-javascript-commons": "1.1.2",
|
|
10
|
-
"@frontegg/rest-api": "7.41.0-alpha.
|
|
10
|
+
"@frontegg/rest-api": "7.41.0-alpha.2",
|
|
11
11
|
"fast-deep-equal": "3.1.3",
|
|
12
12
|
"get-value": "^3.0.1",
|
|
13
13
|
"proxy-compare": "^3.0.0",
|