vineanova-redux-artifacts 1.85.0 → 1.86.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/CHANGELOG.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ## 1.85.0 (2022-10-17)
5
+ ## 1.86.0 (2022-10-17)
6
6
 
7
7
 
8
8
  ### Features
@@ -102,7 +102,13 @@ var ServiceConfigClass = /*#__PURE__*/function () {
102
102
  client.interceptors.request.use(function (config) {
103
103
  // Do something before request is sent
104
104
  var appCode = isTest ? process.env.REACT_APP_FUNCTION_CODE : process.env.REACT_APP_PROD_FUNCTION_CODE;
105
- config.params.code = appCode;
105
+ if (config.params) {
106
+ config.params.code = appCode;
107
+ } else {
108
+ config.params = {
109
+ code: appCode
110
+ };
111
+ }
106
112
  config.headers.Authorization = "Bearer ".concat(accessToken);
107
113
  config.headers["x-orgname"] = displayName;
108
114
  config.headers["x-tid"] = id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vineanova-redux-artifacts",
3
- "version": "1.85.0",
3
+ "version": "1.86.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "browser": "lib/index.js",
@@ -90,7 +90,13 @@ class ServiceConfigClass {
90
90
  const appCode = isTest
91
91
  ? process.env.REACT_APP_FUNCTION_CODE
92
92
  : process.env.REACT_APP_PROD_FUNCTION_CODE;
93
- config.params.code = appCode;
93
+ if (config.params) {
94
+ config.params.code = appCode;
95
+ } else {
96
+ config.params = {
97
+ code: appCode,
98
+ };
99
+ }
94
100
  config.headers.Authorization = `Bearer ${accessToken}`;
95
101
  config.headers["x-orgname"] = displayName;
96
102
  config.headers["x-tid"] = id;