kbfetch 0.0.16 → 0.0.17

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.
Files changed (2) hide show
  1. package/README.md +0 -10
  2. package/package.json +5 -1
package/README.md CHANGED
@@ -12,16 +12,6 @@ npm install kbfetch
12
12
  import kbfetch from 'kbfetch'
13
13
  ```
14
14
 
15
- ## 接口和方法
16
-
17
- `kbfetch` 提供了以下方法:
18
-
19
- - `baseUrl`: 字符串,表示默认的基本 URL。
20
- - `before(init: kbfetchInit): kbfetchInit`: 对请求初始化对象进行预处理的函数。
21
- - `after(res: Promise<Response & { data: any }>): any`: 对响应结果进行后处理的函数。
22
- - `parser(res: Response): any`: 对响应数据进行解析的函数。
23
- - `timeout: number`: 请求超时时间(毫秒)。
24
-
25
15
  ## 使用示例
26
16
 
27
17
  发起 GET 请求的示例:
package/package.json CHANGED
@@ -2,8 +2,12 @@
2
2
  "name": "kbfetch",
3
3
  "main": "./dist/index.js",
4
4
  "module": "./dist/index.js",
5
+ "keywords": [
6
+ "fetch",
7
+ "ajax"
8
+ ],
5
9
  "type": "module",
6
- "version": "0.0.16",
10
+ "version": "0.0.17",
7
11
  "license": "MIT",
8
12
  "types": "./dist/typings/index.d.ts",
9
13
  "files": [