@aliyun-obv/api 0.3.43 → 0.3.44

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.
Files changed (2) hide show
  1. package/dist/api.es.js +2 -1
  2. package/package.json +1 -1
package/dist/api.es.js CHANGED
@@ -1025,7 +1025,8 @@ class SSEClient {
1025
1025
  }
1026
1026
  buildFinalUrl() {
1027
1027
  const domainUrl = getSLSdomain();
1028
- const finalUrl = `${domainUrl}${this.api}`;
1028
+ const hasDomainUrl = domainUrl && typeof domainUrl === "string" && domainUrl.trim().length > 0;
1029
+ const finalUrl = hasDomainUrl ? `${domainUrl}${this.api}` : this.api;
1029
1030
  if (this.options.method === "POST") return finalUrl;
1030
1031
  const params = new URLSearchParams();
1031
1032
  Object.entries(this.params).forEach(([key, value]) => {
package/package.json CHANGED
@@ -15,5 +15,5 @@
15
15
  "styled-components": "^5.2.0",
16
16
  "urijs": "^1.19.1"
17
17
  },
18
- "version": "0.3.43"
18
+ "version": "0.3.44"
19
19
  }