@bigbinary/neeto-commons-frontend 2.1.39 → 3.0.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/README.md +6 -51
- package/configs/scripts/dead-code-eliminator/index.js +1 -4
- package/configs/scripts/jsdoc-builder/utils.mjs +1 -1
- package/configs/webpack/helpers/customize-default-rules.js +1 -4
- package/initializers.cjs.js +10 -9
- package/initializers.cjs.js.map +1 -1
- package/initializers.js +2 -1
- package/initializers.js.map +1 -1
- package/package.json +3 -7
- package/react-utils.cjs.js +2 -2
- package/react-utils.cjs.js.map +1 -1
- package/react-utils.js +1 -1
- package/react-utils.js.map +1 -1
- package/utils.cjs.js +5 -5
- package/utils.cjs.js.map +1 -1
- package/utils.js +4 -4
- package/utils.js.map +1 -1
- package/pure.cjs.js +0 -1191
- package/pure.cjs.js.map +0 -1
- package/pure.d.ts +0 -1801
- package/pure.js +0 -1115
- package/pure.js.map +0 -1
package/initializers.js
CHANGED
|
@@ -2,7 +2,7 @@ import { useErrorDisplayStore } from '@bigbinary/neeto-commons-frontend/react-ut
|
|
|
2
2
|
export { useDisplayErrorPage } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
3
3
|
import axios from 'axios';
|
|
4
4
|
import i18n from 'i18next';
|
|
5
|
-
import { serializeKeysToSnakeCase, keysToCamelCase, matches, deepFreezeObject } from '@bigbinary/neeto-
|
|
5
|
+
import { serializeKeysToSnakeCase, keysToCamelCase, matches, deepFreezeObject } from '@bigbinary/neeto-cist';
|
|
6
6
|
import { resetAuthTokens } from '@bigbinary/neeto-commons-frontend/utils';
|
|
7
7
|
import { Toastr } from '@bigbinary/neetoui';
|
|
8
8
|
import { evolve, omit, values, mergeDeepLeft } from 'ramda';
|
|
@@ -144,6 +144,7 @@ var handleUnauthorizedErrorResponse = function handleUnauthorizedErrorResponse(e
|
|
|
144
144
|
if (redirectOnError) {
|
|
145
145
|
setTimeout(function () {
|
|
146
146
|
var redirectTo = window.location.pathname === "/login" ? "/login" : "/login?redirect_uri=".concat(encodeURIComponent(window.location.href));
|
|
147
|
+
// eslint-disable-next-line xss/no-location-href-assign
|
|
147
148
|
window.location.href = redirectTo;
|
|
148
149
|
}, 300);
|
|
149
150
|
}
|