@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.
- package/dist/api.es.js +2 -1
- 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
|
|
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