abbot-http-client 0.0.2 → 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
@@ -31,8 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
33
  catchError: () => catchError,
34
- create: () => create,
35
- getConfig: () => getConfig
34
+ create: () => create
36
35
  });
37
36
  module.exports = __toCommonJS(index_exports);
38
37
 
@@ -349,6 +348,9 @@ var CoreHttp = class {
349
348
  const response = await axios2.post(url, formData);
350
349
  return response;
351
350
  }
351
+ getConfig() {
352
+ return this.config;
353
+ }
352
354
  };
353
355
 
354
356
  // src/config/core.ts
@@ -381,6 +383,5 @@ function create(config) {
381
383
  // Annotate the CommonJS export names for ESM import in node:
382
384
  0 && (module.exports = {
383
385
  catchError,
384
- create,
385
- getConfig
386
+ create
386
387
  });
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 {
@@ -38,7 +39,6 @@ interface AbbotConfig {
38
39
  timezone?: string;
39
40
  };
40
41
  }
41
- declare function getConfig(): AbbotConfig;
42
42
  declare function create(config: AbbotConfig): CoreHttp;
43
43
 
44
- export { type AbbotConfig, catchError, create, getConfig };
44
+ export { type AbbotConfig, catchError, create };
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 {
@@ -38,7 +39,6 @@ interface AbbotConfig {
38
39
  timezone?: string;
39
40
  };
40
41
  }
41
- declare function getConfig(): AbbotConfig;
42
42
  declare function create(config: AbbotConfig): CoreHttp;
43
43
 
44
- export { type AbbotConfig, catchError, create, getConfig };
44
+ export { type AbbotConfig, catchError, create };
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
@@ -342,6 +345,5 @@ function create(config) {
342
345
  }
343
346
  export {
344
347
  catchError,
345
- create,
346
- getConfig
348
+ create
347
349
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abbot-http-client",
3
- "version": "0.0.2",
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
  }