@lovrabet/sdk 1.2.6 → 1.2.8

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.
@@ -54,6 +54,8 @@ export declare class LovrabetClient implements ILovrabetClient {
54
54
  * 1. 用户可能需要知道当前使用的 API 地址用于调试
55
55
  * 2. 某些场景可能需要直接使用基础地址构造 URL
56
56
  * 3. 支持自定义服务器地址的覆盖逻辑
57
+ *
58
+ * 透传调用 HttpClient.getBaseUrl(),确保单一数据源
57
59
  */
58
60
  getBaseUrl(): string;
59
61
  /**
@@ -4,7 +4,11 @@ export declare class HttpClient {
4
4
  private authManager;
5
5
  private errorHandler;
6
6
  constructor(config: ClientConfig, authManager: AuthManager);
7
- private getBaseUrl;
7
+ /**
8
+ * 获取 API 基础地址
9
+ * 优先级:serverUrl > window.__GLOBAL__.deploymentConfig.RUNTIME_API_DOMAIN > getApiEndpoint(env)
10
+ */
11
+ getBaseUrl(): string;
8
12
  private getFullUrl;
9
13
  /**
10
14
  * 准备请求的通用逻辑:认证头、Cookie配置等
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/sdk",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",