@airpower/web 1.4.4 → 1.4.5

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.
@@ -117,7 +117,7 @@ export declare class Http {
117
117
  * @param request.params 请求参数
118
118
  * @returns 响应的JSON
119
119
  */
120
- send(request: {
120
+ send(request?: {
121
121
  body?: unknown;
122
122
  params?: unknown;
123
123
  }): Promise<IJson | IJson[]>;
package/dist/main.js CHANGED
@@ -15172,7 +15172,10 @@ class Http {
15172
15172
  * @param request.params 请求参数
15173
15173
  */
15174
15174
  async axiosRequest(request) {
15175
- const { body, params } = request;
15175
+ if (!request) {
15176
+ request = {};
15177
+ }
15178
+ const { body = void 0, params = void 0 } = request;
15176
15179
  const axiosConfig = {};
15177
15180
  axiosConfig.url = this.url;
15178
15181
  axiosConfig.headers = this.headers;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airpower/web",
3
3
  "type": "module",
4
- "version": "1.4.4",
4
+ "version": "1.4.5",
5
5
  "description": "AirPower-Web",
6
6
  "author": {
7
7
  "name": "Hamm",