feat: 添加白名单功能并重构代码结构
新增白名单URL检查功能,当请求参数中的method在白名单中时自动添加sdctag参数 添加Defaults类用于管理请求配置,支持配置合并和继承 重构代码结构,将不同功能拆分为独立模块 更新README文档,添加新功能使用示例 添加相关测试用例和示例代码
Showing
18 changed files
with
1274 additions
and
147 deletions
This diff is collapsed.
Click to expand it.
examples/defaults-demo.js
0 → 100644
examples/whitelist-simple-test.html
0 → 100644
examples/whitelist-test.html
0 → 100644
src/defaults.ts
0 → 100644
src/events.ts
0 → 100644
src/methods.ts
0 → 100644
src/retry.ts
0 → 100644
src/traces.ts
0 → 100644
src/whitelist.ts
0 → 100644
test-defaults.js
0 → 100644
test-full-defaults.js
0 → 100644
test-refactor.js
0 → 100644
-
Please register or sign in to post a comment