axios 1.2.3 → 1.2.4
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.
Potentially problematic release.
This version of axios might be problematic. Click here for more details.
- package/CHANGELOG.md +14 -1
- package/dist/axios.js +2 -2
- package/dist/axios.js.map +1 -1
- package/dist/axios.min.js +1 -1
- package/dist/axios.min.js.map +1 -1
- package/dist/browser/axios.cjs +2 -2
- package/dist/browser/axios.cjs.map +1 -1
- package/dist/esm/axios.js +2 -2
- package/dist/esm/axios.js.map +1 -1
- package/dist/esm/axios.min.js +1 -1
- package/dist/esm/axios.min.js.map +1 -1
- package/dist/node/axios.cjs +2 -2
- package/dist/node/axios.cjs.map +1 -1
- package/index.d.cts +56 -40
- package/index.d.ts +57 -41
- package/lib/env/data.js +1 -1
- package/package.json +1 -1
- package/lib/.DS_Store +0 -0
package/index.d.cts
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
|
2
|
-
type RawAxiosHeaders = Record<string, AxiosHeaderValue>;
|
3
2
|
|
4
|
-
|
5
|
-
[
|
6
|
-
};
|
7
|
-
|
8
|
-
interface CommonHeaders {
|
9
|
-
common: AxiosHeaders;
|
3
|
+
interface RawAxiosHeaders {
|
4
|
+
[key: string]: AxiosHeaderValue;
|
10
5
|
}
|
11
6
|
|
7
|
+
type MethodsHeaders = Partial<{
|
8
|
+
[Key in axios.Method as Lowercase<Key>]: AxiosHeaders;
|
9
|
+
} & {common: AxiosHeaders}>;
|
10
|
+
|
12
11
|
type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean;
|
13
12
|
|
14
13
|
type AxiosHeaderSetter = (value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher) => AxiosHeaders;
|
@@ -23,6 +22,8 @@ declare class AxiosHeaders {
|
|
23
22
|
headers?: RawAxiosHeaders | AxiosHeaders
|
24
23
|
);
|
25
24
|
|
25
|
+
[key: string]: any;
|
26
|
+
|
26
27
|
set(headerName?: string, value?: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
27
28
|
set(headers?: RawAxiosHeaders | AxiosHeaders, rewrite?: boolean): AxiosHeaders;
|
28
29
|
|
@@ -66,18 +67,20 @@ declare class AxiosHeaders {
|
|
66
67
|
setContentEncoding: AxiosHeaderSetter;
|
67
68
|
getContentEncoding: AxiosHeaderGetter;
|
68
69
|
hasContentEncoding: AxiosHeaderTester;
|
70
|
+
|
71
|
+
[Symbol.iterator](): IterableIterator<[string, AxiosHeaderValue]>;
|
69
72
|
}
|
70
73
|
|
71
74
|
declare class AxiosError<T = unknown, D = any> extends Error {
|
72
75
|
constructor(
|
73
76
|
message?: string,
|
74
77
|
code?: string,
|
75
|
-
config?: axios.
|
78
|
+
config?: axios.InternalAxiosRequestConfig<D>,
|
76
79
|
request?: any,
|
77
80
|
response?: axios.AxiosResponse<T, D>
|
78
81
|
);
|
79
82
|
|
80
|
-
config?: axios.
|
83
|
+
config?: axios.InternalAxiosRequestConfig<D>;
|
81
84
|
code?: string;
|
82
85
|
request?: any;
|
83
86
|
response?: axios.AxiosResponse<T, D>;
|
@@ -103,24 +106,24 @@ declare class CanceledError<T> extends AxiosError<T> {
|
|
103
106
|
}
|
104
107
|
|
105
108
|
declare class Axios {
|
106
|
-
constructor(config?: axios.
|
109
|
+
constructor(config?: axios.AxiosRequestConfig);
|
107
110
|
defaults: axios.AxiosDefaults;
|
108
111
|
interceptors: {
|
109
|
-
request: axios.AxiosInterceptorManager<axios.
|
112
|
+
request: axios.AxiosInterceptorManager<axios.InternalAxiosRequestConfig>;
|
110
113
|
response: axios.AxiosInterceptorManager<axios.AxiosResponse>;
|
111
114
|
};
|
112
|
-
getUri(config?: axios.
|
113
|
-
request<T = any, R = axios.AxiosResponse<T>, D = any>(config: axios.
|
114
|
-
get<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, config?: axios.
|
115
|
-
delete<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, config?: axios.
|
116
|
-
head<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, config?: axios.
|
117
|
-
options<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, config?: axios.
|
118
|
-
post<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, data?: D, config?: axios.
|
119
|
-
put<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, data?: D, config?: axios.
|
120
|
-
patch<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, data?: D, config?: axios.
|
121
|
-
postForm<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, data?: D, config?: axios.
|
122
|
-
putForm<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, data?: D, config?: axios.
|
123
|
-
patchForm<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, data?: D, config?: axios.
|
115
|
+
getUri(config?: axios.AxiosRequestConfig): string;
|
116
|
+
request<T = any, R = axios.AxiosResponse<T>, D = any>(config: axios.AxiosRequestConfig<D>): Promise<R>;
|
117
|
+
get<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, config?: axios.AxiosRequestConfig<D>): Promise<R>;
|
118
|
+
delete<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, config?: axios.AxiosRequestConfig<D>): Promise<R>;
|
119
|
+
head<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, config?: axios.AxiosRequestConfig<D>): Promise<R>;
|
120
|
+
options<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, config?: axios.AxiosRequestConfig<D>): Promise<R>;
|
121
|
+
post<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, data?: D, config?: axios.AxiosRequestConfig<D>): Promise<R>;
|
122
|
+
put<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, data?: D, config?: axios.AxiosRequestConfig<D>): Promise<R>;
|
123
|
+
patch<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, data?: D, config?: axios.AxiosRequestConfig<D>): Promise<R>;
|
124
|
+
postForm<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, data?: D, config?: axios.AxiosRequestConfig<D>): Promise<R>;
|
125
|
+
putForm<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, data?: D, config?: axios.AxiosRequestConfig<D>): Promise<R>;
|
126
|
+
patchForm<T = any, R = axios.AxiosResponse<T>, D = any>(url: string, data?: D, config?: axios.AxiosRequestConfig<D>): Promise<R>;
|
124
127
|
}
|
125
128
|
|
126
129
|
declare enum HttpStatusCode {
|
@@ -194,26 +197,36 @@ type InternalAxiosError<T = unknown, D = any> = AxiosError<T, D>;
|
|
194
197
|
declare namespace axios {
|
195
198
|
type AxiosError<T = unknown, D = any> = InternalAxiosError<T, D>;
|
196
199
|
|
197
|
-
type
|
200
|
+
type CommonRequestHeadersList = 'Accept' | 'Content-Type' | 'Content-Length' | 'User-Agent'| 'Content-Encoding';
|
201
|
+
|
202
|
+
type RawAxiosRequestHeaders = Partial<RawAxiosHeaders & {
|
203
|
+
[Key in CommonRequestHeadersList]: AxiosHeaderValue;
|
204
|
+
}>;
|
198
205
|
|
199
206
|
type AxiosRequestHeaders = RawAxiosRequestHeaders & AxiosHeaders;
|
200
207
|
|
201
|
-
type
|
202
|
-
|
203
|
-
|
208
|
+
type CommonResponseHeadersList = 'Server' | 'Content-Type' | 'Content-Length' | 'Cache-Control'| 'Content-Encoding';
|
209
|
+
|
210
|
+
type RawCommonResponseHeaders = {
|
211
|
+
[Key in CommonResponseHeadersList]: AxiosHeaderValue;
|
212
|
+
} & {
|
213
|
+
"set-cookie": string[];
|
214
|
+
};
|
215
|
+
|
216
|
+
type RawAxiosResponseHeaders = Partial<RawAxiosHeaders & RawCommonResponseHeaders>;
|
204
217
|
|
205
218
|
type AxiosResponseHeaders = RawAxiosResponseHeaders & AxiosHeaders;
|
206
219
|
|
207
220
|
interface AxiosRequestTransformer {
|
208
|
-
(this:
|
221
|
+
(this: InternalAxiosRequestConfig, data: any, headers: AxiosRequestHeaders): any;
|
209
222
|
}
|
210
223
|
|
211
224
|
interface AxiosResponseTransformer {
|
212
|
-
(this:
|
225
|
+
(this: InternalAxiosRequestConfig, data: any, headers: AxiosResponseHeaders, status?: number): any;
|
213
226
|
}
|
214
227
|
|
215
228
|
interface AxiosAdapter {
|
216
|
-
(config:
|
229
|
+
(config: InternalAxiosRequestConfig): AxiosPromise;
|
217
230
|
}
|
218
231
|
|
219
232
|
interface AxiosBasicCredentials {
|
@@ -342,13 +355,13 @@ declare namespace axios {
|
|
342
355
|
|
343
356
|
type AxiosAdapterConfig = AxiosAdapter | AxiosAdapterName;
|
344
357
|
|
345
|
-
interface
|
358
|
+
interface AxiosRequestConfig<D = any> {
|
346
359
|
url?: string;
|
347
360
|
method?: Method | string;
|
348
361
|
baseURL?: string;
|
349
362
|
transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[];
|
350
363
|
transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];
|
351
|
-
headers?: RawAxiosRequestHeaders | AxiosHeaders;
|
364
|
+
headers?: (RawAxiosRequestHeaders & MethodsHeaders) | AxiosHeaders;
|
352
365
|
params?: any;
|
353
366
|
paramsSerializer?: ParamsSerializerOptions;
|
354
367
|
data?: D;
|
@@ -384,7 +397,10 @@ declare namespace axios {
|
|
384
397
|
formSerializer?: FormSerializerOptions;
|
385
398
|
}
|
386
399
|
|
387
|
-
|
400
|
+
// Alias
|
401
|
+
type RawAxiosRequestConfig<D = any> = AxiosRequestConfig<D>;
|
402
|
+
|
403
|
+
interface InternalAxiosRequestConfig<D = any> extends AxiosRequestConfig {
|
388
404
|
headers: AxiosRequestHeaders;
|
389
405
|
}
|
390
406
|
|
@@ -402,11 +418,11 @@ declare namespace axios {
|
|
402
418
|
unlink?: RawAxiosRequestHeaders;
|
403
419
|
}
|
404
420
|
|
405
|
-
interface AxiosDefaults<D = any> extends Omit<
|
421
|
+
interface AxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'headers'> {
|
406
422
|
headers: HeadersDefaults;
|
407
423
|
}
|
408
424
|
|
409
|
-
interface CreateAxiosDefaults<D = any> extends Omit<
|
425
|
+
interface CreateAxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'headers'> {
|
410
426
|
headers?: RawAxiosRequestHeaders | AxiosHeaders | Partial<HeadersDefaults>;
|
411
427
|
}
|
412
428
|
|
@@ -415,7 +431,7 @@ declare namespace axios {
|
|
415
431
|
status: number;
|
416
432
|
statusText: string;
|
417
433
|
headers: RawAxiosResponseHeaders | AxiosResponseHeaders;
|
418
|
-
config:
|
434
|
+
config: InternalAxiosRequestConfig<D>;
|
419
435
|
request?: any;
|
420
436
|
}
|
421
437
|
|
@@ -430,7 +446,7 @@ declare namespace axios {
|
|
430
446
|
}
|
431
447
|
|
432
448
|
interface Canceler {
|
433
|
-
(message?: string, config?:
|
449
|
+
(message?: string, config?: AxiosRequestConfig, request?: any): void;
|
434
450
|
}
|
435
451
|
|
436
452
|
interface CancelTokenStatic {
|
@@ -451,7 +467,7 @@ declare namespace axios {
|
|
451
467
|
|
452
468
|
interface AxiosInterceptorOptions {
|
453
469
|
synchronous?: boolean;
|
454
|
-
runWhen?: (config:
|
470
|
+
runWhen?: (config: InternalAxiosRequestConfig) => boolean;
|
455
471
|
}
|
456
472
|
|
457
473
|
interface AxiosInterceptorManager<V> {
|
@@ -461,8 +477,8 @@ declare namespace axios {
|
|
461
477
|
}
|
462
478
|
|
463
479
|
interface AxiosInstance extends Axios {
|
464
|
-
<T = any, R = AxiosResponse<T>, D = any>(config:
|
465
|
-
<T = any, R = AxiosResponse<T>, D = any>(url: string, config?:
|
480
|
+
<T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): Promise<R>;
|
481
|
+
<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
|
466
482
|
|
467
483
|
defaults: Omit<AxiosDefaults, 'headers'> & {
|
468
484
|
headers: HeadersDefaults & {
|
package/index.d.ts
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
// TypeScript Version: 4.7
|
2
2
|
type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
|
3
|
-
type RawAxiosHeaders = Record<string, AxiosHeaderValue>;
|
4
3
|
|
5
|
-
|
6
|
-
[
|
7
|
-
};
|
8
|
-
|
9
|
-
interface CommonHeaders {
|
10
|
-
common: AxiosHeaders;
|
4
|
+
interface RawAxiosHeaders {
|
5
|
+
[key: string]: AxiosHeaderValue;
|
11
6
|
}
|
12
7
|
|
8
|
+
type MethodsHeaders = Partial<{
|
9
|
+
[Key in Method as Lowercase<Key>]: AxiosHeaders;
|
10
|
+
} & {common: AxiosHeaders}>;
|
11
|
+
|
13
12
|
type AxiosHeaderMatcher = (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean;
|
14
13
|
|
15
14
|
type AxiosHeaderSetter = (value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher) => AxiosHeaders;
|
@@ -24,6 +23,8 @@ export class AxiosHeaders {
|
|
24
23
|
headers?: RawAxiosHeaders | AxiosHeaders
|
25
24
|
);
|
26
25
|
|
26
|
+
[key: string]: any;
|
27
|
+
|
27
28
|
set(headerName?: string, value?: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
28
29
|
set(headers?: RawAxiosHeaders | AxiosHeaders, rewrite?: boolean): AxiosHeaders;
|
29
30
|
|
@@ -67,28 +68,40 @@ export class AxiosHeaders {
|
|
67
68
|
setContentEncoding: AxiosHeaderSetter;
|
68
69
|
getContentEncoding: AxiosHeaderGetter;
|
69
70
|
hasContentEncoding: AxiosHeaderTester;
|
71
|
+
|
72
|
+
[Symbol.iterator](): IterableIterator<[string, AxiosHeaderValue]>;
|
70
73
|
}
|
71
74
|
|
72
|
-
|
75
|
+
type CommonRequestHeadersList = 'Accept' | 'Content-Type' | 'Content-Length' | 'User-Agent'| 'Content-Encoding';
|
76
|
+
|
77
|
+
export type RawAxiosRequestHeaders = Partial<RawAxiosHeaders & {
|
78
|
+
[Key in CommonRequestHeadersList]: AxiosHeaderValue;
|
79
|
+
}>;
|
73
80
|
|
74
81
|
export type AxiosRequestHeaders = RawAxiosRequestHeaders & AxiosHeaders;
|
75
82
|
|
76
|
-
|
77
|
-
|
78
|
-
|
83
|
+
type CommonResponseHeadersList = 'Server' | 'Content-Type' | 'Content-Length' | 'Cache-Control'| 'Content-Encoding';
|
84
|
+
|
85
|
+
type RawCommonResponseHeaders = {
|
86
|
+
[Key in CommonResponseHeadersList]: AxiosHeaderValue;
|
87
|
+
} & {
|
88
|
+
"set-cookie": string[];
|
89
|
+
};
|
90
|
+
|
91
|
+
export type RawAxiosResponseHeaders = Partial<RawAxiosHeaders & RawCommonResponseHeaders>;
|
79
92
|
|
80
93
|
export type AxiosResponseHeaders = RawAxiosResponseHeaders & AxiosHeaders;
|
81
94
|
|
82
95
|
export interface AxiosRequestTransformer {
|
83
|
-
(this:
|
96
|
+
(this: InternalAxiosRequestConfig, data: any, headers: AxiosRequestHeaders): any;
|
84
97
|
}
|
85
98
|
|
86
99
|
export interface AxiosResponseTransformer {
|
87
|
-
(this:
|
100
|
+
(this: InternalAxiosRequestConfig, data: any, headers: AxiosResponseHeaders, status?: number): any;
|
88
101
|
}
|
89
102
|
|
90
103
|
export interface AxiosAdapter {
|
91
|
-
(config:
|
104
|
+
(config: InternalAxiosRequestConfig): AxiosPromise;
|
92
105
|
}
|
93
106
|
|
94
107
|
export interface AxiosBasicCredentials {
|
@@ -283,13 +296,13 @@ type AxiosAdapterName = 'xhr' | 'http' | string;
|
|
283
296
|
|
284
297
|
type AxiosAdapterConfig = AxiosAdapter | AxiosAdapterName;
|
285
298
|
|
286
|
-
export interface
|
299
|
+
export interface AxiosRequestConfig<D = any> {
|
287
300
|
url?: string;
|
288
301
|
method?: Method | string;
|
289
302
|
baseURL?: string;
|
290
303
|
transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[];
|
291
304
|
transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];
|
292
|
-
headers?: RawAxiosRequestHeaders | AxiosHeaders;
|
305
|
+
headers?: (RawAxiosRequestHeaders & MethodsHeaders) | AxiosHeaders;
|
293
306
|
params?: any;
|
294
307
|
paramsSerializer?: ParamsSerializerOptions;
|
295
308
|
data?: D;
|
@@ -325,7 +338,10 @@ export interface RawAxiosRequestConfig<D = any> {
|
|
325
338
|
formSerializer?: FormSerializerOptions;
|
326
339
|
}
|
327
340
|
|
328
|
-
|
341
|
+
// Alias
|
342
|
+
export type RawAxiosRequestConfig<D = any> = AxiosRequestConfig<D>;
|
343
|
+
|
344
|
+
export interface InternalAxiosRequestConfig<D = any> extends AxiosRequestConfig<D> {
|
329
345
|
headers: AxiosRequestHeaders;
|
330
346
|
}
|
331
347
|
|
@@ -343,11 +359,11 @@ export interface HeadersDefaults {
|
|
343
359
|
unlink?: RawAxiosRequestHeaders;
|
344
360
|
}
|
345
361
|
|
346
|
-
export interface AxiosDefaults<D = any> extends Omit<
|
362
|
+
export interface AxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'headers'> {
|
347
363
|
headers: HeadersDefaults;
|
348
364
|
}
|
349
365
|
|
350
|
-
export interface CreateAxiosDefaults<D = any> extends Omit<
|
366
|
+
export interface CreateAxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'headers'> {
|
351
367
|
headers?: RawAxiosRequestHeaders | AxiosHeaders | Partial<HeadersDefaults>;
|
352
368
|
}
|
353
369
|
|
@@ -356,7 +372,7 @@ export interface AxiosResponse<T = any, D = any> {
|
|
356
372
|
status: number;
|
357
373
|
statusText: string;
|
358
374
|
headers: RawAxiosResponseHeaders | AxiosResponseHeaders;
|
359
|
-
config:
|
375
|
+
config: InternalAxiosRequestConfig<D>;
|
360
376
|
request?: any;
|
361
377
|
}
|
362
378
|
|
@@ -364,12 +380,12 @@ export class AxiosError<T = unknown, D = any> extends Error {
|
|
364
380
|
constructor(
|
365
381
|
message?: string,
|
366
382
|
code?: string,
|
367
|
-
config?:
|
383
|
+
config?: InternalAxiosRequestConfig<D>,
|
368
384
|
request?: any,
|
369
385
|
response?: AxiosResponse<T, D>
|
370
386
|
);
|
371
387
|
|
372
|
-
config?:
|
388
|
+
config?: InternalAxiosRequestConfig<D>;
|
373
389
|
code?: string;
|
374
390
|
request?: any;
|
375
391
|
response?: AxiosResponse<T, D>;
|
@@ -380,7 +396,7 @@ export class AxiosError<T = unknown, D = any> extends Error {
|
|
380
396
|
static from<T = unknown, D = any>(
|
381
397
|
error: Error | unknown,
|
382
398
|
code?: string,
|
383
|
-
config?:
|
399
|
+
config?: InternalAxiosRequestConfig<D>,
|
384
400
|
request?: any,
|
385
401
|
response?: AxiosResponse<T, D>,
|
386
402
|
customProps?: object,
|
@@ -413,7 +429,7 @@ export interface Cancel {
|
|
413
429
|
}
|
414
430
|
|
415
431
|
export interface Canceler {
|
416
|
-
(message?: string, config?:
|
432
|
+
(message?: string, config?: AxiosRequestConfig, request?: any): void;
|
417
433
|
}
|
418
434
|
|
419
435
|
export interface CancelTokenStatic {
|
@@ -434,7 +450,7 @@ export interface CancelTokenSource {
|
|
434
450
|
|
435
451
|
export interface AxiosInterceptorOptions {
|
436
452
|
synchronous?: boolean;
|
437
|
-
runWhen?: (config:
|
453
|
+
runWhen?: (config: InternalAxiosRequestConfig) => boolean;
|
438
454
|
}
|
439
455
|
|
440
456
|
export interface AxiosInterceptorManager<V> {
|
@@ -444,29 +460,29 @@ export interface AxiosInterceptorManager<V> {
|
|
444
460
|
}
|
445
461
|
|
446
462
|
export class Axios {
|
447
|
-
constructor(config?:
|
463
|
+
constructor(config?: AxiosRequestConfig);
|
448
464
|
defaults: AxiosDefaults;
|
449
465
|
interceptors: {
|
450
|
-
request: AxiosInterceptorManager<
|
466
|
+
request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
|
451
467
|
response: AxiosInterceptorManager<AxiosResponse>;
|
452
468
|
};
|
453
|
-
getUri(config?:
|
454
|
-
request<T = any, R = AxiosResponse<T>, D = any>(config:
|
455
|
-
get<T = any, R = AxiosResponse<T>, D = any>(url: string, config?:
|
456
|
-
delete<T = any, R = AxiosResponse<T>, D = any>(url: string, config?:
|
457
|
-
head<T = any, R = AxiosResponse<T>, D = any>(url: string, config?:
|
458
|
-
options<T = any, R = AxiosResponse<T>, D = any>(url: string, config?:
|
459
|
-
post<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?:
|
460
|
-
put<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?:
|
461
|
-
patch<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?:
|
462
|
-
postForm<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?:
|
463
|
-
putForm<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?:
|
464
|
-
patchForm<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?:
|
469
|
+
getUri(config?: AxiosRequestConfig): string;
|
470
|
+
request<T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): Promise<R>;
|
471
|
+
get<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
|
472
|
+
delete<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
|
473
|
+
head<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
|
474
|
+
options<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
|
475
|
+
post<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
|
476
|
+
put<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
|
477
|
+
patch<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
|
478
|
+
postForm<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
|
479
|
+
putForm<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
|
480
|
+
patchForm<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
|
465
481
|
}
|
466
482
|
|
467
483
|
export interface AxiosInstance extends Axios {
|
468
|
-
<T = any, R = AxiosResponse<T>, D = any>(config:
|
469
|
-
<T = any, R = AxiosResponse<T>, D = any>(url: string, config?:
|
484
|
+
<T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): Promise<R>;
|
485
|
+
<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
|
470
486
|
|
471
487
|
defaults: Omit<AxiosDefaults, 'headers'> & {
|
472
488
|
headers: HeadersDefaults & {
|
package/lib/env/data.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const VERSION = "1.2.
|
1
|
+
export const VERSION = "1.2.4";
|
package/package.json
CHANGED
package/lib/.DS_Store
DELETED
Binary file
|