@frontegg/js 6.49.0 → 6.50.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.49.0
1
+ /** @license Frontegg v6.50.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.49.0
1
+ /** @license Frontegg v6.50.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.49.0"
8
+ "cdnVersion": "6.50.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.49.0",
3
+ "version": "6.50.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.49.0"
8
+ "@frontegg/types": "6.50.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.49.0"
1315
+ "cdnVersion": "6.50.0"
1316
1316
  });
1317
1317
 
1318
1318
  /***/ }),
@@ -17861,7 +17861,7 @@ __webpack_require__.r(__webpack_exports__);
17861
17861
  /* harmony export */ });
17862
17862
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
17863
17863
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
17864
- /** @license Frontegg v6.49.0
17864
+ /** @license Frontegg v6.50.0
17865
17865
  *
17866
17866
  * This source code is licensed under the MIT license found in the
17867
17867
  * LICENSE file in the root directory of this source tree.
@@ -19405,7 +19405,7 @@ __webpack_require__.r(__webpack_exports__);
19405
19405
 
19406
19406
 
19407
19407
 
19408
- function getBaseUrl(context, url, withFronteggSuffix = true) {
19408
+ function getBaseUrl(context, url, withFronteggPrefix = true) {
19409
19409
  let baseUrl;
19410
19410
 
19411
19411
  if (typeof context.baseUrl === 'function') {
@@ -19414,13 +19414,14 @@ function getBaseUrl(context, url, withFronteggSuffix = true) {
19414
19414
  baseUrl = context.baseUrl;
19415
19415
  }
19416
19416
 
19417
- const prefix = context.urlPrefix || withFronteggSuffix ? 'frontegg' : '';
19417
+ const prefix = context.urlPrefix || 'frontegg';
19418
+ const removePrefix = prefix === 'frontegg' && !withFronteggPrefix;
19418
19419
 
19419
19420
  if (!baseUrl.endsWith('/')) {
19420
19421
  baseUrl += '/';
19421
19422
  }
19422
19423
 
19423
- if (!baseUrl.endsWith(prefix)) {
19424
+ if (!baseUrl.endsWith(prefix) && !removePrefix) {
19424
19425
  baseUrl += prefix;
19425
19426
  }
19426
19427
 
@@ -19672,7 +19673,7 @@ __webpack_require__.r(__webpack_exports__);
19672
19673
  /* harmony import */ var _directory_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./directory/interfaces */ "../../node_modules/@frontegg/rest-api/directory/interfaces.js");
19673
19674
  /* harmony import */ var _auth__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./auth */ "../../node_modules/@frontegg/rest-api/auth/enums.js");
19674
19675
  /* harmony import */ var _subscriptions__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./subscriptions */ "../../node_modules/@frontegg/rest-api/subscriptions/enums.js");
19675
- /** @license Frontegg v3.0.48
19676
+ /** @license Frontegg v3.0.49
19676
19677
  *
19677
19678
  * This source code is licensed under the MIT license found in the
19678
19679
  * LICENSE file in the root directory of this source tree.