@be-link/request 1.3.0 → 1.3.3

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.
@@ -0,0 +1,2 @@
1
+ import request from './request';
2
+ export default request;
@@ -0,0 +1,12 @@
1
+ import { Method } from 'axios';
2
+ interface IConfig {
3
+ method?: Method;
4
+ data?: any;
5
+ url: string;
6
+ headers?: Record<string, any>;
7
+ params?: Record<string, any>;
8
+ requestInterceptors?: any;
9
+ responseInterceptors?: any;
10
+ }
11
+ declare function request(config: IConfig): Promise<unknown>;
12
+ export default request;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/request",
3
- "version": "1.3.0",
3
+ "version": "1.3.3",
4
4
  "type": "module",
5
5
  "description": "共比邻 request 库",
6
6
  "author": "zhuifeng <yangyiboys@163.com>",
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "64618687fd2aea60db4d94eb10da64c560978836"
34
+ "gitHead": "b4b78c2352d460fac469eb79f23b7ae7b8b062fb"
35
35
  }