@frontegg/js 7.41.0-alpha.0 → 7.41.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.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.41.0-alpha.0
1
+ /** @license Frontegg v7.41.0-alpha.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.41.0-alpha.0
1
+ /** @license Frontegg v7.41.0-alpha.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/node/version.js CHANGED
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- cdnVersion: '7.41.0-alpha.0'
8
+ cdnVersion: '7.41.0-alpha.1'
9
9
  };
10
10
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@frontegg/js",
3
- "version": "7.41.0-alpha.0",
3
+ "version": "7.41.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/types": "7.41.0-alpha.0"
9
+ "@frontegg/types": "7.41.0-alpha.1"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -1625,7 +1625,7 @@ __webpack_require__.r(__webpack_exports__);
1625
1625
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1626
1626
  /* harmony export */ });
1627
1627
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1628
- cdnVersion: '7.41.0-alpha.0'
1628
+ cdnVersion: '7.41.0-alpha.1'
1629
1629
  });
1630
1630
 
1631
1631
  /***/ }),
@@ -6298,6 +6298,9 @@ const _excluded = ["callback", "error"],
6298
6298
  loading: false
6299
6299
  }
6300
6300
  });
6301
+ actions.setAuthState({
6302
+ userIp: ip
6303
+ });
6301
6304
  callback == null ? void 0 : callback(true);
6302
6305
  } catch (e) {
6303
6306
  actions.setAuthState({
@@ -11707,8 +11710,8 @@ const _excluded = ["callback"],
11707
11710
  error: null
11708
11711
  });
11709
11712
  try {
11710
- var _store$auth$userIpDat, _store$auth$userIpDat2;
11711
- const userIp = (_store$auth$userIpDat = (_store$auth$userIpDat2 = store.auth.userIpData) == null ? void 0 : _store$auth$userIpDat2.ip) != null ? _store$auth$userIpDat : '';
11713
+ var _ref, _store$auth$userIpDat;
11714
+ const userIp = (_ref = ((_store$auth$userIpDat = store.auth.userIpData) == null ? void 0 : _store$auth$userIpDat.ip) || store.auth.userIp) != null ? _ref : '';
11712
11715
  await Promise.all([api.auth.createIPRestriction({
11713
11716
  ip: userIp,
11714
11717
  isActive: true,
@@ -16010,6 +16013,7 @@ const createAuthState = _overrideState => {
16010
16013
  user: null,
16011
16014
  error: undefined,
16012
16015
  errorByRequest: {},
16016
+ userIp: undefined,
16013
16017
  userIpData: {
16014
16018
  loading: false
16015
16019
  }
@@ -17933,7 +17937,7 @@ __webpack_require__.r(__webpack_exports__);
17933
17937
  /* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
17934
17938
  /* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
17935
17939
  /* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
17936
- /** @license Frontegg v7.41.0-alpha.0
17940
+ /** @license Frontegg v7.41.0-alpha.1
17937
17941
  *
17938
17942
  * This source code is licensed under the MIT license found in the
17939
17943
  * LICENSE file in the root directory of this source tree.
@@ -19240,7 +19244,8 @@ __webpack_require__.r(__webpack_exports__);
19240
19244
  await actions.setAuthState({
19241
19245
  userIpData: {
19242
19246
  ip
19243
- }
19247
+ },
19248
+ userIp: ip
19244
19249
  });
19245
19250
  callback == null ? void 0 : callback(true, ip);
19246
19251
  } catch (e) {
@@ -27947,7 +27952,7 @@ __webpack_require__.r(__webpack_exports__);
27947
27952
  /* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
27948
27953
  /* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
27949
27954
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
27950
- /** @license Frontegg v7.41.0-alpha.0
27955
+ /** @license Frontegg v7.41.0-alpha.1
27951
27956
  *
27952
27957
  * This source code is licensed under the MIT license found in the
27953
27958
  * LICENSE file in the root directory of this source tree.
@@ -30577,7 +30582,7 @@ __webpack_require__.r(__webpack_exports__);
30577
30582
  /* harmony export */ });
30578
30583
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
30579
30584
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
30580
- /** @license Frontegg v7.41.0-alpha.0
30585
+ /** @license Frontegg v7.41.0-alpha.1
30581
30586
  *
30582
30587
  * This source code is licensed under the MIT license found in the
30583
30588
  * LICENSE file in the root directory of this source tree.