@xylabs/axios 4.13.3 → 4.13.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.
@@ -1,35 +1,29 @@
1
- import { Axios } from 'axios';
2
- import type { AxiosResponse } from 'axios';
3
- import { gzip } from 'pako';
4
- import type { Logger } from '@xylabs/logger';
5
- import type { RawAxiosRequestConfig } from 'axios';
6
-
7
- export declare const axios: AxiosJson;
8
-
9
- export declare class AxiosJson extends Axios {
10
- static defaultLogger?: Logger;
11
- constructor(config?: RawAxiosJsonRequestConfig);
12
- static finalPath(response: AxiosResponse): any;
13
- private static axiosConfig;
14
- private static buildHeaders;
15
- }
16
-
17
- export 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
- export declare const axiosUncompressed: AxiosJsonUncompressed;
26
-
27
- export { gzip }
28
-
29
- export declare type RawAxiosJsonRequestConfig<D = any> = RawAxiosRequestConfig<D> & {
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",
3
+ "version": "4.13.5",
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.3",
39
+ "@xylabs/logger": "^4.13.5",
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.7",
46
- "@xylabs/tsconfig": "^7.0.0-rc.7",
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": {