@dexteel/mesf-core 3.11.3 → 3.11.5

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/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export * from "./MESFMain";
2
1
  export * from "./account";
2
+ export * from "./context/axiosInstance";
3
+ export * from "./MESFMain";
3
4
  export * from "./components/modals/modal.mesf";
4
5
  export * from "./configuration";
5
6
  export * from "./context/UTLSettingContext";
6
7
  export * from "./context/assetContext";
7
- export * from "./context/axiosInstance";
8
8
  export * from "./context/userContext";
9
9
  export * from "./controls";
10
10
  export * from "./services";
package/dist/index.esm.js CHANGED
@@ -1,14 +1,14 @@
1
- import * as React from 'react';
2
- import React__default, { useState, useRef, useEffect, Component, createContext, useContext, useMemo, useCallback, lazy, Suspense } from 'react';
3
- import { Outlet, useNavigate, useSearchParams, Link, useParams, Navigate, Routes, Route, BrowserRouter } from 'react-router-dom';
4
1
  import { Typography, TextField, FormHelperText, CircularProgress as CircularProgress$1, Grid as Grid$1, Snackbar as Snackbar$1, makeStyles as makeStyles$1, createStyles as createStyles$1, Dialog as Dialog$1, DialogTitle as DialogTitle$2, DialogContent as DialogContent$2, List, ListItem, ListItemText, DialogActions as DialogActions$2 } from '@material-ui/core';
5
2
  import { get as get$1, isEmpty } from 'lodash-es';
3
+ import * as React from 'react';
4
+ import React__default, { useState, useRef, useEffect, Component, createContext, useContext, useMemo, useCallback, lazy, Suspense } from 'react';
6
5
  import { Alert as Alert$1, Modal as Modal$2, Navbar, Container, Nav, NavDropdown } from 'react-bootstrap';
7
6
  import DialogTitle$1 from '@material-ui/core/DialogTitle';
8
7
  import DialogContent$1 from '@material-ui/core/DialogContent';
9
8
  import DialogActions$1 from '@material-ui/core/DialogActions';
10
9
  import Dialog from '@material-ui/core/Dialog';
11
10
  import Button from '@material-ui/core/Button';
11
+ import { Outlet, useNavigate, useSearchParams, Link, useParams, Navigate, Routes, Route, BrowserRouter } from 'react-router-dom';
12
12
  import { useMsal, MsalProvider } from '@azure/msal-react';
13
13
  import { LogLevel, PublicClientApplication } from '@azure/msal-browser';
14
14
  import { useComplexState } from 'use-complex-state';
@@ -4707,6 +4707,7 @@ var Configuration$1 = /** @class */ (function () {
4707
4707
  return Configuration;
4708
4708
  }());
4709
4709
 
4710
+ var _a;
4710
4711
  var base$2 = document.getElementsByTagName('base')[0].getAttribute('href') || '/';
4711
4712
  function renewToken() {
4712
4713
  return __awaiter(this, void 0, void 0, function () {
@@ -4748,7 +4749,7 @@ function isUnauthorizedError(error) {
4748
4749
  }
4749
4750
  var axiosInstance = axios.create({
4750
4751
  headers: {
4751
- Authorization: "Bearer ".concat(getTokenFromLS())
4752
+ Authorization: "Bearer ".concat((_a = localStorage.getItem('token')) !== null && _a !== void 0 ? _a : '')
4752
4753
  }
4753
4754
  });
4754
4755
  var refreshingFunc;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexteel/mesf-core",
3
- "version": "3.11.3",
3
+ "version": "3.11.5",
4
4
  "author": "Dexteel Team",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",