@bigbinary/neeto-commons-frontend 2.1.39 → 3.0.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/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-commons-frontend/pure';
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
  }