@ahoo-wang/fetcher 0.3.6 → 0.3.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.
package/README.md CHANGED
@@ -199,7 +199,7 @@ Core HTTP client class that provides various HTTP methods.
199
199
  #### Constructor
200
200
 
201
201
  ```typescript
202
- new Fetcher(options: FetcherOptions = defaultOptions)
202
+ new Fetcher(defaultOptions);
203
203
  ```
204
204
 
205
205
  **Parameters:**
@@ -227,12 +227,7 @@ name.
227
227
  #### Constructor
228
228
 
229
229
  ```typescript
230
- new NamedFetcher(name
231
- :
232
- string, options
233
- :
234
- FetcherOptions = defaultOptions
235
- )
230
+ new NamedFetcher(name, defaultOptions);
236
231
  ```
237
232
 
238
233
  **Parameters:**
package/README.zh-CN.md CHANGED
@@ -199,7 +199,7 @@ const errorInterceptorId = fetcher.interceptors.error.use({
199
199
  #### 构造函数
200
200
 
201
201
  ```typescript
202
- new Fetcher(options?: FetcherOptions)
202
+ new Fetcher(defaultOptions);
203
203
  ```
204
204
 
205
205
  **参数:**
@@ -226,10 +226,7 @@ Fetcher 类的扩展,它会自动使用提供的名称在全局 fetcherRegistr
226
226
  #### 构造函数
227
227
 
228
228
  ```typescript
229
- new NamedFetcher(name
230
- :
231
- string, options ? : FetcherOptions
232
- )
229
+ new NamedFetcher(name, defaultOptions);
233
230
  ```
234
231
 
235
232
  **参数:**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ahoo-wang/fetcher",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "Core library providing basic HTTP client functionality for Fetcher",
5
5
  "keywords": [
6
6
  "fetch",