@ahoo-wang/fetcher 0.9.6 → 0.10.0
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/README.md +2 -3
- package/README.zh-CN.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,12 +8,11 @@
|
|
|
8
8
|
[](https://www.npmjs.com/package/@ahoo-wang/fetcher)
|
|
9
9
|
[](https://deepwiki.com/Ahoo-Wang/fetcher)
|
|
10
10
|
|
|
11
|
-
A modern, ultra-lightweight
|
|
12
|
-
83% smaller than Axios while providing the same powerful features.
|
|
11
|
+
A modern, ultra-lightweight HTTP client with built-in path parameters, query parameters, and Axios-like API.
|
|
13
12
|
|
|
14
13
|
## 🌟 Features
|
|
15
14
|
|
|
16
|
-
- **⚡ Ultra-Lightweight**: Only 2.
|
|
15
|
+
- **⚡ Ultra-Lightweight**: Only 2.7KiB min+gzip
|
|
17
16
|
- **🧭 Path & Query Parameters**: Built-in support for path (`{id}`) and query parameters
|
|
18
17
|
- **🔗 Interceptor System**: Request, response, and error interceptors for middleware patterns
|
|
19
18
|
- **⏱️ Timeout Control**: Configurable request timeouts with proper error handling
|
package/README.zh-CN.md
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
[](https://www.npmjs.com/package/@ahoo-wang/fetcher)
|
|
9
9
|
[](https://deepwiki.com/Ahoo-Wang/fetcher)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
一个现代、超轻量级的 HTTP 客户端,内置路径参数、查询参数和类似 Axios 的 API。
|
|
12
12
|
|
|
13
13
|
## 🌟 特性
|
|
14
14
|
|
|
15
|
-
- **⚡ 超轻量级**:仅 2.
|
|
15
|
+
- **⚡ 超轻量级**:仅 2.7KiB min+gzip
|
|
16
16
|
- **🧭 路径和查询参数**:内置支持路径(`{id}`)和查询参数
|
|
17
17
|
- **🔗 拦截器系统**:请求、响应和错误拦截器的中间件模式
|
|
18
18
|
- **⏱️ 超时控制**:可配置的请求超时和适当的错误处理
|