curtain-web-api 1.0.46 → 1.0.47

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.
@@ -105,7 +105,8 @@ class CurtainWebAPI {
105
105
  config.url === this.logoutURL ||
106
106
  config.url === this.userInfoURL ||
107
107
  config.url.startsWith(this.curtainURL) ||
108
- config.url.startsWith(this.baseURL + "data_filter_list/")) {
108
+ config.url.startsWith(this.baseURL + "data_filter_list/") ||
109
+ config.url.startsWith(this.baseURL + "api_key/")) {
109
110
  if (this.user.loginStatus) {
110
111
  config.headers["Authorization"] = "Bearer " + this.user.access_token;
111
112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "curtain-web-api",
3
- "version": "1.0.46",
3
+ "version": "1.0.47",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -78,7 +78,8 @@ export class CurtainWebAPI {
78
78
  config.url === this.logoutURL ||
79
79
  config.url === this.userInfoURL ||
80
80
  config.url.startsWith(this.curtainURL) ||
81
- config.url.startsWith(this.baseURL + "data_filter_list/")) {
81
+ config.url.startsWith(this.baseURL + "data_filter_list/") ||
82
+ config.url.startsWith(this.baseURL + "api_key/")) {
82
83
  if (this.user.loginStatus) {
83
84
  config.headers["Authorization"] = "Bearer " + this.user.access_token;
84
85
  }