datastake-daf 0.6.488 → 0.6.489

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,14 +6103,14 @@ 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;
@@ -6127,7 +6127,7 @@ class BaseHTTPService {
6127
6127
  ...this.getHeaders()
6128
6128
  };
6129
6129
  this.api = axios$1.create({
6130
- baseURL: this.getBaseUrl(),
6130
+ baseURL: this.getBaseURL(),
6131
6131
  headers,
6132
6132
  timeout: this.timeout,
6133
6133
  ...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.489",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -9,11 +9,11 @@ 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
19
  this.timeout = timeout;
@@ -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,