datastake-daf 0.6.488 → 0.6.490

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.
@@ -6103,17 +6103,18 @@ class BaseHTTPService {
6103
6103
  constructor(config = {}) {
6104
6104
  const {
6105
6105
  getHeaders,
6106
- getBaseUrl,
6106
+ getBaseURL,
6107
6107
  onError,
6108
6108
  timeout = 300000,
6109
6109
  customAxiosConfig = {}
6110
6110
  } = config;
6111
6111
  this.getToken = getToken || (() => null);
6112
6112
  this.getHeaders = getHeaders || (() => ({}));
6113
- this.getBaseUrl = getBaseUrl || (() => null);
6113
+ this.getBaseURL = getBaseURL || (() => null);
6114
6114
  this.onError = onError || (() => null);
6115
6115
  this.cleanJSON = cleanJSON;
6116
6116
  this.timeout = timeout;
6117
+ s;
6117
6118
  this.customAxiosConfig = customAxiosConfig;
6118
6119
 
6119
6120
  // Init
@@ -6127,7 +6128,7 @@ class BaseHTTPService {
6127
6128
  ...this.getHeaders()
6128
6129
  };
6129
6130
  this.api = axios$1.create({
6130
- baseURL: this.getBaseUrl(),
6131
+ baseURL: this.getBaseURL(),
6131
6132
  headers,
6132
6133
  timeout: this.timeout,
6133
6134
  ...this.customAxiosConfig
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.488",
3
+ "version": "0.6.490",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -9,14 +9,14 @@ import { getToken } from '../../helpers/Token.js';
9
9
  */
10
10
  export class BaseHTTPService {
11
11
  constructor(config = {}) {
12
- const {getHeaders, getBaseUrl, onError, timeout = 300000, customAxiosConfig = {}} = config;
12
+ const {getHeaders, getBaseURL, onError, timeout = 300000, customAxiosConfig = {}} = config;
13
13
 
14
14
  this.getToken = getToken || (() => null);
15
15
  this.getHeaders = getHeaders || (() => ({}));
16
- this.getBaseUrl = getBaseUrl || (() => null);
16
+ this.getBaseURL = getBaseURL || (() => null);
17
17
  this.onError = onError || (() => null);
18
18
  this.cleanJSON = cleanJSON;
19
- this.timeout = timeout;
19
+ this.timeout = timeout;s
20
20
  this.customAxiosConfig = customAxiosConfig;
21
21
 
22
22
  // Init
@@ -33,7 +33,7 @@ export class BaseHTTPService {
33
33
  };
34
34
 
35
35
  this.api = axios.create({
36
- baseURL: this.getBaseUrl(),
36
+ baseURL: this.getBaseURL(),
37
37
  headers,
38
38
  timeout: this.timeout,
39
39
  ...this.customAxiosConfig,