abbot-http-client 0.0.1 → 0.0.3

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/index.cjs CHANGED
@@ -348,6 +348,9 @@ var CoreHttp = class {
348
348
  const response = await axios2.post(url, formData);
349
349
  return response;
350
350
  }
351
+ getConfig() {
352
+ return this.config;
353
+ }
351
354
  };
352
355
 
353
356
  // src/config/core.ts
package/dist/index.d.cts CHANGED
@@ -18,6 +18,7 @@ declare class CoreHttp {
18
18
  uploadFile<T, U extends credential = credential>(middleware: () => U | null, url: string, file: File[], fileKeys: string[], param?: Record<string, any> | null): Promise<AxiosResponse<T>>;
19
19
  uploadFile<T, U extends credential = credential>(user: U | null, url: string, file: File, param?: Record<string, any> | null): Promise<AxiosResponse<T>>;
20
20
  uploadFile<T, U extends credential = credential>(user: U | null, url: string, file: File[], fileKeys: string[], param?: Record<string, any> | null): Promise<AxiosResponse<T>>;
21
+ getConfig(): AbbotConfig;
21
22
  }
22
23
 
23
24
  interface AbbotConfig {
package/dist/index.d.ts CHANGED
@@ -18,6 +18,7 @@ declare class CoreHttp {
18
18
  uploadFile<T, U extends credential = credential>(middleware: () => U | null, url: string, file: File[], fileKeys: string[], param?: Record<string, any> | null): Promise<AxiosResponse<T>>;
19
19
  uploadFile<T, U extends credential = credential>(user: U | null, url: string, file: File, param?: Record<string, any> | null): Promise<AxiosResponse<T>>;
20
20
  uploadFile<T, U extends credential = credential>(user: U | null, url: string, file: File[], fileKeys: string[], param?: Record<string, any> | null): Promise<AxiosResponse<T>>;
21
+ getConfig(): AbbotConfig;
21
22
  }
22
23
 
23
24
  interface AbbotConfig {
package/dist/index.js CHANGED
@@ -311,6 +311,9 @@ var CoreHttp = class {
311
311
  const response = await axios2.post(url, formData);
312
312
  return response;
313
313
  }
314
+ getConfig() {
315
+ return this.config;
316
+ }
314
317
  };
315
318
 
316
319
  // src/config/core.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abbot-http-client",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "This package helps Abbot team to handle all the axios requests.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -17,18 +17,18 @@
17
17
  "author": "Sahasawat",
18
18
  "license": "MIT",
19
19
  "dependencies": {
20
- "@types/node": "^24.0.1",
20
+ "@types/node": "^24.0.14",
21
21
  "axios": "^1.10.0",
22
22
  "crypto-ts": "^1.0.2",
23
23
  "ts-node": "^10.9.2",
24
24
  "typescript": "^5.8.3"
25
25
  },
26
26
  "devDependencies": {
27
- "@eslint/js": "^9.28.0",
28
- "@eslint/json": "^0.12.0",
29
- "eslint": "^9.28.0",
30
- "globals": "^16.2.0",
27
+ "@eslint/js": "^9.31.0",
28
+ "@eslint/json": "^0.13.0",
29
+ "eslint": "^9.31.0",
30
+ "globals": "^16.3.0",
31
31
  "tsup": "^8.5.0",
32
- "typescript-eslint": "^8.34.0"
32
+ "typescript-eslint": "^8.37.0"
33
33
  }
34
34
  }