@frontegg/js 7.16.0 → 7.18.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 +1 -1
- package/node/index.js +1 -1
- package/node/version.js +1 -1
- package/package.json +2 -2
- package/umd/frontegg.development.js +10 -7
- package/umd/frontegg.production.min.js +1 -1
- package/umd/frontegg.production.min.js.LICENSE.txt +1 -1
- package/version.js +1 -1
package/index.js
CHANGED
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.18.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.18.0"
|
|
10
10
|
},
|
|
11
11
|
"browserslist": {
|
|
12
12
|
"production": [
|
|
@@ -1586,7 +1586,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1586
1586
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1587
1587
|
/* harmony export */ });
|
|
1588
1588
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1589
|
-
cdnVersion: '7.
|
|
1589
|
+
cdnVersion: '7.18.0'
|
|
1590
1590
|
});
|
|
1591
1591
|
|
|
1592
1592
|
/***/ }),
|
|
@@ -17727,7 +17727,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17727
17727
|
/* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
|
|
17728
17728
|
/* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
|
|
17729
17729
|
/* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
|
|
17730
|
-
/** @license Frontegg v7.
|
|
17730
|
+
/** @license Frontegg v7.18.0
|
|
17731
17731
|
*
|
|
17732
17732
|
* This source code is licensed under the MIT license found in the
|
|
17733
17733
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -25507,7 +25507,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25507
25507
|
/* harmony export */ });
|
|
25508
25508
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
25509
25509
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
25510
|
-
/** @license Frontegg v7.
|
|
25510
|
+
/** @license Frontegg v7.18.0
|
|
25511
25511
|
*
|
|
25512
25512
|
* This source code is licensed under the MIT license found in the
|
|
25513
25513
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -27395,12 +27395,15 @@ class FetchClient {
|
|
|
27395
27395
|
const context = this.getFronteggContext().getContext();
|
|
27396
27396
|
const headers = await this.buildRequestHeaders(opts.contentType);
|
|
27397
27397
|
const url = await this.prepareUrl(opts.url, opts.params);
|
|
27398
|
-
const
|
|
27398
|
+
const interceptor = context.beforeRequestInterceptor;
|
|
27399
|
+
const initialRequestOptions = {
|
|
27399
27400
|
body: opts.body ? opts.contentType === 'application/json' ? JSON.stringify(opts.body) : opts.body : null,
|
|
27400
27401
|
method: (_opts$method = opts.method) != null ? _opts$method : 'GET',
|
|
27401
27402
|
headers: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, headers, opts.headers),
|
|
27402
27403
|
credentials: (_ref = (_opts$credentials = opts.credentials) != null ? _opts$credentials : context.requestCredentials) != null ? _ref : 'same-origin'
|
|
27403
|
-
}
|
|
27404
|
+
};
|
|
27405
|
+
const requestOptions = interceptor ? interceptor(initialRequestOptions) : initialRequestOptions;
|
|
27406
|
+
const response = await fetch(url, requestOptions);
|
|
27404
27407
|
|
|
27405
27408
|
if (response.status === 302) {
|
|
27406
27409
|
window.location.href = await response.text();
|
|
@@ -30040,7 +30043,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30040
30043
|
/* harmony import */ var _entitlements_interfaces__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./entitlements/interfaces */ "../../node_modules/@frontegg/rest-api/entitlements/interfaces.js");
|
|
30041
30044
|
/* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./security-center/interfaces */ "../../node_modules/@frontegg/rest-api/security-center/interfaces.js");
|
|
30042
30045
|
/* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./applications/interfaces */ "../../node_modules/@frontegg/rest-api/applications/interfaces.js");
|
|
30043
|
-
/** @license Frontegg v3.2.
|
|
30046
|
+
/** @license Frontegg v3.2.4
|
|
30044
30047
|
*
|
|
30045
30048
|
* This source code is licensed under the MIT license found in the
|
|
30046
30049
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -30675,7 +30678,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30675
30678
|
/* harmony export */ });
|
|
30676
30679
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants */ "../../node_modules/@frontegg/rest-api/constants.js");
|
|
30677
30680
|
|
|
30678
|
-
const fronteggAuthApiRoutesRegex = [/^(.*)\/logout$/g, '/logout', /^\/identity\/resources\/auth\/v[0-9]*\/user\/[^\/]*\/postlogin$/g, /^\/identity\/resources\/impersonation\/v[0-9]$/g, /^\/identity\/resources\/auth\/v[0-9]*\/passwordless\/[^\/]*\/postlogin$/g, /^\/identity\/resources\/auth\/v[0-9]*\/webauthn\/postlogin$/g, /^\/identity\/resources\/auth\/v[0-9]*\/user$/g, /^\/identity\/resources\/auth\/v[0-9]*\/user\/token\/refresh$/g, /^\/identity\/resources\/users\/v[0-9]
|
|
30681
|
+
const fronteggAuthApiRoutesRegex = [/^(.*)\/logout$/g, '/logout', /^\/identity\/resources\/auth\/v[0-9]*\/user\/[^\/]*\/postlogin$/g, /^\/identity\/resources\/impersonation\/v[0-9]$/g, /^\/identity\/resources\/auth\/v[0-9]*\/passwordless\/[^\/]*\/postlogin$/g, /^\/identity\/resources\/auth\/v[0-9]*\/webauthn\/postlogin$/g, /^\/identity\/resources\/auth\/v[0-9]*\/user$/g, /^\/identity\/resources\/auth\/v[0-9]*\/user\/token\/refresh$/g, /^\/identity\/resources\/users\/v[0-9]*\/signUp$/g, /^\/identity\/resources\/users\/v[0-9]*\/activate$/g, /^\/identity\/resources\/users\/v[0-9]*\/invitation\/accept$/g, /^\/identity\/resources\/auth\/v[0-9]*\/user\/mfa\/verify$/g, /^\/identity\/resources\/auth\/v[0-9]*\/user\/mfa\/[^\/]*\/[^\/]*\/verify$/g, /^\/oauth\/token$/g, /^\/oauth\/authorize\/silent$/g];
|
|
30679
30682
|
const fronteggRefreshTokenUrl = `${_constants__WEBPACK_IMPORTED_MODULE_0__.urls.identity.auth.v1}/user/token/refresh`;
|
|
30680
30683
|
const fronteggSilentRefreshTokenUrl = `${_constants__WEBPACK_IMPORTED_MODULE_0__.urls.oauth.v1}/authorize/silent`;
|
|
30681
30684
|
const fronteggUsersUrl = `${_constants__WEBPACK_IMPORTED_MODULE_0__.urls.identity.users.v2}/me`;
|