@xylabs/axios 4.13.4 → 4.13.6
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.
- package/dist/neutral/index.d.ts +29 -35
- package/package.json +4 -4
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,35 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
static
|
|
13
|
-
private static
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
static defaultLogger?: Logger;
|
|
19
|
-
constructor(config?: RawAxiosJsonRequestUncompressedConfig);
|
|
20
|
-
static finalPath(response: AxiosResponse): any;
|
|
21
|
-
private static axiosConfig;
|
|
22
|
-
private static buildHeaders;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export
|
|
30
|
-
compressLength?: number;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export declare type RawAxiosJsonRequestUncompressedConfig<D = any> = RawAxiosRequestConfig<D>;
|
|
34
|
-
|
|
35
|
-
export { }
|
|
1
|
+
import { Logger } from '@xylabs/logger';
|
|
2
|
+
import { Axios, RawAxiosRequestConfig, AxiosResponse } from 'axios';
|
|
3
|
+
export { gzip } from 'pako';
|
|
4
|
+
|
|
5
|
+
type RawAxiosJsonRequestConfig<D = any> = RawAxiosRequestConfig<D> & {
|
|
6
|
+
compressLength?: number;
|
|
7
|
+
};
|
|
8
|
+
declare class AxiosJson extends Axios {
|
|
9
|
+
static defaultLogger?: Logger;
|
|
10
|
+
constructor(config?: RawAxiosJsonRequestConfig);
|
|
11
|
+
static finalPath(response: AxiosResponse): any;
|
|
12
|
+
private static axiosConfig;
|
|
13
|
+
private static buildHeaders;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
type RawAxiosJsonRequestUncompressedConfig<D = any> = RawAxiosRequestConfig<D>;
|
|
17
|
+
declare class AxiosJsonUncompressed extends Axios {
|
|
18
|
+
static defaultLogger?: Logger;
|
|
19
|
+
constructor(config?: RawAxiosJsonRequestUncompressedConfig);
|
|
20
|
+
static finalPath(response: AxiosResponse): any;
|
|
21
|
+
private static axiosConfig;
|
|
22
|
+
private static buildHeaders;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare const axios: AxiosJson;
|
|
26
|
+
declare const axiosUncompressed: AxiosJsonUncompressed;
|
|
27
|
+
|
|
28
|
+
export { AxiosJson, AxiosJsonUncompressed, axios, axiosUncompressed };
|
|
29
|
+
export type { RawAxiosJsonRequestConfig, RawAxiosJsonRequestUncompressedConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xylabs/axios",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.6",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"axios",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"module": "dist/neutral/index.mjs",
|
|
37
37
|
"types": "dist/neutral/index.d.ts",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@xylabs/logger": "^4.13.
|
|
39
|
+
"@xylabs/logger": "^4.13.6",
|
|
40
40
|
"axios": "^1.10.0",
|
|
41
41
|
"pako": "^2.1.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/pako": "^2.0.3",
|
|
45
|
-
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.
|
|
46
|
-
"@xylabs/tsconfig": "^7.0.0-rc.
|
|
45
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.8",
|
|
46
|
+
"@xylabs/tsconfig": "^7.0.0-rc.8",
|
|
47
47
|
"typescript": "^5.8.3"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|