@dexteel/mesf-core 3.9.0 → 3.9.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 CHANGED
@@ -1,4 +1,8 @@
1
1
  # CHANGELOG
2
+ ## 3.9.1
3
+ - When creating axiosInstance, add token
4
+ ## 3.9.0
5
+ - Add axiosInstance
2
6
  ## 3.8.0
3
7
  - Fix logout issues
4
8
  - Add uploadFiles method in MES API Service
package/dist/index.esm.js CHANGED
@@ -5980,7 +5980,11 @@ function isUnauthorizedError(error) {
5980
5980
  var _a = error.response, status = _a.status; _a.statusText;
5981
5981
  return status === 401;
5982
5982
  }
5983
- var axiosInstance = axios.create();
5983
+ var axiosInstance = axios.create({
5984
+ headers: {
5985
+ Authorization: "Bearer ".concat(getTokenFromLS())
5986
+ }
5987
+ });
5984
5988
  var refreshingFunc;
5985
5989
  axiosInstance.interceptors.response.use(function (res) { return res; }, function (error) { return __awaiter(void 0, void 0, void 0, function () {
5986
5990
  var originalConfig, token, _a, newToken, newRefreshToken, innerError_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexteel/mesf-core",
3
- "version": "3.9.0",
3
+ "version": "3.9.1",
4
4
  "author": "Dexteel Team",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",