@huanban/rulego-editor-core 1.2.0 → 1.3.1
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/RuleChainAPI.d.ts +1 -0
- package/dist/api/types.d.ts +2 -2
- package/dist/index.cjs.js +423 -384
- package/dist/index.esm.js +9955 -9874
- package/dist/index.umd.js +498 -459
- package/package.json +1 -1
package/dist/api/types.d.ts
CHANGED
|
@@ -291,8 +291,8 @@ export interface RuleChainAPIOptions {
|
|
|
291
291
|
apiBase: string;
|
|
292
292
|
/** 请求超时毫秒数,默认 8000 */
|
|
293
293
|
timeout?: number;
|
|
294
|
-
/**
|
|
295
|
-
headers?: Record<string, string
|
|
294
|
+
/** 自定义请求头;支持函数形式以便每次请求读取最新 token */
|
|
295
|
+
headers?: Record<string, string> | (() => Record<string, string>);
|
|
296
296
|
/** 认证 Token */
|
|
297
297
|
authToken?: string;
|
|
298
298
|
/**
|