@frontegg/js 7.36.0 → 7.38.0
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/FronteggApp/FronteggApp.js +1 -0
- package/index.js +1 -1
- package/node/FronteggApp/FronteggApp.js +1 -0
- package/node/index.js +1 -1
- package/node/version.js +1 -1
- package/package.json +2 -2
- package/umd/frontegg.development.js +8 -6
- package/umd/frontegg.production.min.js +1 -1
- package/umd/frontegg.production.min.js.LICENSE.txt +1 -1
- package/version.js +1 -1
|
@@ -258,6 +258,7 @@ export var FronteggApp = /*#__PURE__*/function () {
|
|
|
258
258
|
}, {
|
|
259
259
|
key: "dispatchErrorByRequestName",
|
|
260
260
|
value: function dispatchErrorByRequestName(error, requestName) {
|
|
261
|
+
if ((error == null ? void 0 : error.statusCode) < 500) return;
|
|
261
262
|
this.store.dispatch({
|
|
262
263
|
type: 'auth/setErrorByRequestName',
|
|
263
264
|
payload: {
|
package/index.js
CHANGED
|
@@ -265,6 +265,7 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
265
265
|
}, {
|
|
266
266
|
key: "dispatchErrorByRequestName",
|
|
267
267
|
value: function dispatchErrorByRequestName(error, requestName) {
|
|
268
|
+
if ((error == null ? void 0 : error.statusCode) < 500) return;
|
|
268
269
|
this.store.dispatch({
|
|
269
270
|
type: 'auth/setErrorByRequestName',
|
|
270
271
|
payload: {
|
package/node/index.js
CHANGED
package/node/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/js",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.38.0",
|
|
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.
|
|
9
|
+
"@frontegg/types": "7.38.0"
|
|
10
10
|
},
|
|
11
11
|
"browserslist": {
|
|
12
12
|
"production": [
|
|
@@ -599,6 +599,7 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
599
599
|
}, {
|
|
600
600
|
key: "dispatchErrorByRequestName",
|
|
601
601
|
value: function dispatchErrorByRequestName(error, requestName) {
|
|
602
|
+
if ((error == null ? void 0 : error.statusCode) < 500) return;
|
|
602
603
|
this.store.dispatch({
|
|
603
604
|
type: 'auth/setErrorByRequestName',
|
|
604
605
|
payload: {
|
|
@@ -1618,7 +1619,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1618
1619
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1619
1620
|
/* harmony export */ });
|
|
1620
1621
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1621
|
-
cdnVersion: '7.
|
|
1622
|
+
cdnVersion: '7.38.0'
|
|
1622
1623
|
});
|
|
1623
1624
|
|
|
1624
1625
|
/***/ }),
|
|
@@ -5554,7 +5555,7 @@ const _excluded = ["callback", "error"],
|
|
|
5554
5555
|
};
|
|
5555
5556
|
const getRetryWithBlockingCallbackPayload = requestName => {
|
|
5556
5557
|
const callback = (_, error) => {
|
|
5557
|
-
if (!error) return;
|
|
5558
|
+
if (!error || error.statusCode < 500) return;
|
|
5558
5559
|
actions.setErrorByRequestName({
|
|
5559
5560
|
requestName,
|
|
5560
5561
|
traceId: (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.errorTraceId)(error)
|
|
@@ -6639,6 +6640,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6639
6640
|
|
|
6640
6641
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((store, api, _sharedActions) => {
|
|
6641
6642
|
const getMfaRequiredState = async (user, retryConfig, shouldContinueWhenFailing = false) => {
|
|
6643
|
+
var _user$mfaDevices, _user$mfaDevices$emai;
|
|
6642
6644
|
let step = _interfaces__WEBPACK_IMPORTED_MODULE_1__.LoginStep.loginWithTwoFactor;
|
|
6643
6645
|
const mfaState = {
|
|
6644
6646
|
step: _MfaState_interfaces__WEBPACK_IMPORTED_MODULE_2__.MFAStep.verify,
|
|
@@ -6657,7 +6659,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6657
6659
|
throw e;
|
|
6658
6660
|
}
|
|
6659
6661
|
}
|
|
6660
|
-
const isEnrolled = !('mfaEnrolled' in user && !user.mfaEnrolled);
|
|
6662
|
+
const isEnrolled = !('mfaEnrolled' in user && !user.mfaEnrolled) || ((_user$mfaDevices = user.mfaDevices) == null ? void 0 : (_user$mfaDevices$emai = _user$mfaDevices.emails) == null ? void 0 : _user$mfaDevices$emai.length);
|
|
6661
6663
|
if (isEnrolled) {
|
|
6662
6664
|
Object.assign(mfaState, {
|
|
6663
6665
|
mfaDevices: user.mfaDevices,
|
|
@@ -17905,7 +17907,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17905
17907
|
/* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
|
|
17906
17908
|
/* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
|
|
17907
17909
|
/* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
|
|
17908
|
-
/** @license Frontegg v7.
|
|
17910
|
+
/** @license Frontegg v7.38.0
|
|
17909
17911
|
*
|
|
17910
17912
|
* This source code is licensed under the MIT license found in the
|
|
17911
17913
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -27838,7 +27840,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27838
27840
|
/* harmony import */ var _entitlements_interfaces__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./entitlements/interfaces */ "../../dist/@frontegg/rest-api/entitlements/interfaces.js");
|
|
27839
27841
|
/* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
|
|
27840
27842
|
/* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
|
|
27841
|
-
/** @license Frontegg v7.
|
|
27843
|
+
/** @license Frontegg v7.38.0
|
|
27842
27844
|
*
|
|
27843
27845
|
* This source code is licensed under the MIT license found in the
|
|
27844
27846
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -30468,7 +30470,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30468
30470
|
/* harmony export */ });
|
|
30469
30471
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
30470
30472
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
30471
|
-
/** @license Frontegg v7.
|
|
30473
|
+
/** @license Frontegg v7.38.0
|
|
30472
30474
|
*
|
|
30473
30475
|
* This source code is licensed under the MIT license found in the
|
|
30474
30476
|
* LICENSE file in the root directory of this source tree.
|