@lovrabet/sdk 1.3.0-beta.1 → 1.3.0-beta.2
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.
|
@@ -12,7 +12,7 @@ export declare class OpenApiModel extends AbstractBaseModel {
|
|
|
12
12
|
/**
|
|
13
13
|
* OpenAPI 模式的请求体构建策略
|
|
14
14
|
* 认证信息(token、timeStamp)由 HttpClient 自动添加到请求头(Header)中
|
|
15
|
-
*
|
|
15
|
+
* 请求体格式:{ appCode, datasetCode, paramMap }
|
|
16
16
|
*/
|
|
17
17
|
protected buildRequestBody(method: string, data: any, sortList?: SortList): any;
|
|
18
18
|
/**
|
|
@@ -6,6 +6,15 @@
|
|
|
6
6
|
* @returns {boolean} 如果在浏览器环境中返回 true,否则返回 false
|
|
7
7
|
*/
|
|
8
8
|
export declare function isBrowser(): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* 检测是否为开发环境
|
|
11
|
+
* @returns {boolean} 开发环境返回 true,否则返回 false
|
|
12
|
+
*
|
|
13
|
+
* 判断逻辑:
|
|
14
|
+
* - Node.js 环境:process.env.NODE_ENV !== 'production'
|
|
15
|
+
* - 浏览器环境:dev.lovrabet.com 或 localhost 或 127.* 或 192.168.*
|
|
16
|
+
*/
|
|
17
|
+
export declare function isDevelopment(): boolean;
|
|
9
18
|
/**
|
|
10
19
|
* 在浏览器环境中使用 accessKey 时显示安全警告
|
|
11
20
|
* @param message - 自定义警告消息(可选)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { LovrabetError, createErrorHandler } from "./errors";
|
|
2
|
-
export { isBrowser, warnBrowserAccessKey } from './browser-detection';
|
|
2
|
+
export { isBrowser, isDevelopment, warnBrowserAccessKey } from './browser-detection';
|
|
3
3
|
export { safe } from './safe';
|
|
4
4
|
export type { SafeResult } from './safe';
|
|
5
5
|
export { sqlSafe } from './sql-safe';
|