youtil 2.0.1 → 2.0.2

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/esm/request.d.ts +1 -1
  2. package/package.json +1 -1
package/esm/request.d.ts CHANGED
@@ -37,7 +37,7 @@ export interface IRequestOptions {
37
37
  */
38
38
  export declare const request: <T = any>(url: string, options?: IRequestOptions) => Promise<T>;
39
39
  interface RequestConstructor {
40
- new (overrideDefaultOptions: IRequestOptions): typeof request;
40
+ new (overrideDefaultOptions: IRequestOptions, req?: typeof request): typeof request;
41
41
  }
42
42
  /**
43
43
  * 支持实例化一个新的request方法,覆盖默认的部分配置项
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "youtil",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "油梯,一个与框架、环境无关的小巧、精简、实用的JavaScript工具库",
5
5
  "files": [
6
6
  "esm",