@gopowerteam/request 0.1.14 → 0.1.15

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.
@@ -1,4 +1,4 @@
1
- import { c as RequestAdapter, R as RequestSetupConfig, d as RequestAdapterOptions, A as AdapterResponse } from '../request-plugin.interface-3436b618.js';
1
+ import { c as RequestAdapter, R as RequestSetupConfig, d as RequestAdapterOptions, A as AdapterResponse } from '../request-plugin.interface-8152139f.js';
2
2
  import { AxiosResponse, AxiosError } from 'axios';
3
3
  import 'qs';
4
4
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RequestSetupConfig, a as RequestSendOptions, b as RequestPlugin } from './request-plugin.interface-3436b618.js';
2
- export { A as AdapterResponse, e as AdapterResponseHeaders, P as PluginLifecycle, c as RequestAdapter, d as RequestAdapterOptions, f as RequestLifecycle, h as RequestMethod, i as ResponseInterceptor, g as ResponseLifecycle } from './request-plugin.interface-3436b618.js';
1
+ import { R as RequestSetupConfig, a as RequestSendOptions, b as RequestPlugin } from './request-plugin.interface-8152139f.js';
2
+ export { A as AdapterResponse, e as AdapterResponseHeaders, P as PluginLifecycle, c as RequestAdapter, d as RequestAdapterOptions, f as RequestLifecycle, h as RequestMethod, i as ResponseInterceptor, g as ResponseLifecycle } from './request-plugin.interface-8152139f.js';
3
3
  import 'qs';
4
4
 
5
5
  declare class RequestService {
@@ -83,7 +83,7 @@ type AdapterResponseHeaders = Record<string, string | string[] | number | boolea
83
83
  * 请求插件
84
84
  */
85
85
  interface RequestPlugin {
86
- before?: (options: RequestSendOptions, appendParams?: (params: Record<string, any>) => void) => void;
86
+ before?: (options: RequestSendOptions, appendParams: (params: Record<string, any>) => void) => void;
87
87
  after?: (response: AdapterResponse, options: RequestSendOptions) => void;
88
88
  catch?: (response: AdapterResponse, options: RequestSendOptions) => void;
89
89
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gopowerteam/request",
3
3
  "private": false,
4
- "version": "0.1.14",
4
+ "version": "0.1.15",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",