@frontegg/js 6.46.0 → 6.47.0-alpha.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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.46.0
1
+ /** @license Frontegg v6.47.0-alpha.0
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 v6.46.0
1
+ /** @license Frontegg v6.47.0-alpha.0
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": "6.46.0"
8
+ "cdnVersion": "6.47.0-alpha.0"
9
9
  };
10
10
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@frontegg/js",
3
- "version": "6.46.0",
3
+ "version": "6.47.0-alpha.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
7
7
  "@babel/runtime": "^7.18.6",
8
- "@frontegg/types": "6.46.0"
8
+ "@frontegg/types": "6.47.0-alpha.0"
9
9
  },
10
10
  "browserslist": {
11
11
  "production": [
@@ -1312,7 +1312,7 @@ __webpack_require__.r(__webpack_exports__);
1312
1312
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1313
1313
  /* harmony export */ });
1314
1314
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1315
- "cdnVersion": "6.46.0"
1315
+ "cdnVersion": "6.47.0-alpha.0"
1316
1316
  });
1317
1317
 
1318
1318
  /***/ }),
@@ -4344,9 +4344,9 @@ const isMfaRequired = user => {
4344
4344
  };
4345
4345
 
4346
4346
  const getNumberOfMfaDevices = mfaDevices => {
4347
- const numberOfWebAuthnDevices = mfaDevices.webauthn.length;
4348
- const numberOfPhoneDevices = mfaDevices.phones.length;
4349
- const numberOfAuthenticators = mfaDevices.authenticators.length;
4347
+ const numberOfWebAuthnDevices = +Boolean(mfaDevices.webauthn.length);
4348
+ const numberOfPhoneDevices = +Boolean(mfaDevices.phones.length);
4349
+ const numberOfAuthenticators = +Boolean(mfaDevices.authenticators.length);
4350
4350
  const totalDevices = numberOfWebAuthnDevices + numberOfPhoneDevices + numberOfAuthenticators;
4351
4351
  return {
4352
4352
  numberOfWebAuthnDevices,
@@ -4383,9 +4383,9 @@ const getMfaStepForNotEnrolledUsers = mfaStrategies => {
4383
4383
  } else if (strategy === _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_10__.MFAStrategyEnum.SMS) {
4384
4384
  return _MfaState_interfaces__WEBPACK_IMPORTED_MODULE_9__.MFAStep.smsSetPhoneNumber;
4385
4385
  }
4386
-
4387
- return _MfaState_interfaces__WEBPACK_IMPORTED_MODULE_9__.MFAStep.verify;
4388
4386
  }
4387
+
4388
+ return _MfaState_interfaces__WEBPACK_IMPORTED_MODULE_9__.MFAStep.verify;
4389
4389
  };
4390
4390
 
4391
4391
  function* getMfaRequiredState(user) {
@@ -17458,7 +17458,7 @@ __webpack_require__.r(__webpack_exports__);
17458
17458
  /* harmony export */ });
17459
17459
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
17460
17460
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
17461
- /** @license Frontegg v6.46.0
17461
+ /** @license Frontegg v6.47.0-alpha.0
17462
17462
  *
17463
17463
  * This source code is licensed under the MIT license found in the
17464
17464
  * LICENSE file in the root directory of this source tree.