@next-core/brick-kit 2.102.0 → 2.102.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/CHANGELOG.md +11 -0
- package/dist/index.bundle.js +2 -2
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.102.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.102.0...@next-core/brick-kit@2.102.1) (2022-01-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* do not redirect to login page while NO_AUTH_GUARD is enabled ([02b69b1](https://github.com/easyops-cn/next-core/commit/02b69b19b98b1ba4aa4e0d2405d28444f3c05def))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [2.102.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.101.2...@next-core/brick-kit@2.102.0) (2022-01-07)
|
|
7
18
|
|
|
8
19
|
|
package/dist/index.bundle.js
CHANGED
|
@@ -3210,7 +3210,7 @@
|
|
|
3210
3210
|
|
|
3211
3211
|
function handleHttpError(error) {
|
|
3212
3212
|
// Redirect to login page if not logged in.
|
|
3213
|
-
if (isUnauthenticatedError(error)) {
|
|
3213
|
+
if (isUnauthenticatedError(error) && !window.NO_AUTH_GUARD) {
|
|
3214
3214
|
// Do not show multiple confirm modals.
|
|
3215
3215
|
if (unauthenticatedConfirmModal) {
|
|
3216
3216
|
return;
|
|
@@ -10430,7 +10430,7 @@
|
|
|
10430
10430
|
// eslint-disable-next-line no-console
|
|
10431
10431
|
console.error(error); // Redirect to login page if not logged in.
|
|
10432
10432
|
|
|
10433
|
-
if (isUnauthenticatedError(error)) {
|
|
10433
|
+
if (isUnauthenticatedError(error) && !window.NO_AUTH_GUARD) {
|
|
10434
10434
|
mountRoutesResult.flags.unauthenticated = true;
|
|
10435
10435
|
} else {
|
|
10436
10436
|
yield _this3.kernel.layoutBootstrap(layoutType);
|