@dev-coindcx/network 1.0.0 → 1.0.1-test

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,12 +1,12 @@
1
- import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
2
- import { ApiServiceInterface, ApiServiceOptions } from '../utils/api.interface';
1
+ import { AxiosInstance } from 'axios';
2
+ import { ApiServiceInterface, ApiServiceConfig, ApiServiceResponse } from '../utils/api.interface';
3
3
  export declare class AxiosServiceClass implements ApiServiceInterface {
4
4
  private axiosInstance;
5
- constructor(options?: ApiServiceOptions);
6
- get(url: string, config: AxiosRequestConfig): Promise<AxiosResponse>;
7
- post(url: string, config: AxiosRequestConfig): Promise<AxiosResponse>;
8
- patch(url: string, config: AxiosRequestConfig): Promise<AxiosResponse>;
9
- put(url: string, config: AxiosRequestConfig): Promise<AxiosResponse>;
10
- delete(url: string, config: AxiosRequestConfig): Promise<AxiosResponse>;
5
+ constructor();
6
+ get(url: string, config: ApiServiceConfig): Promise<ApiServiceResponse>;
7
+ post(url: string, config: ApiServiceConfig): Promise<ApiServiceResponse>;
8
+ patch(url: string, config: ApiServiceConfig): Promise<ApiServiceResponse>;
9
+ put(url: string, config: ApiServiceConfig): Promise<ApiServiceResponse>;
10
+ delete(url: string, config: ApiServiceConfig): Promise<ApiServiceResponse>;
11
11
  getInstance(): AxiosInstance;
12
12
  }
@@ -1,4 +1,4 @@
1
- import { AxiosRequestConfig, AxiosResponse } from 'axios';
1
+ import { AxiosRequestConfig, AxiosResponse } from "axios";
2
2
  export interface ApiServiceInterface {
3
3
  get(url: string, config: ApiServiceConfig): Promise<ApiServiceResponse>;
4
4
  post(url: string, config: ApiServiceConfig): Promise<ApiServiceResponse>;
@@ -7,9 +7,6 @@ export interface ApiServiceInterface {
7
7
  delete(url: string, config: ApiServiceConfig): Promise<ApiServiceResponse>;
8
8
  getInstance(): any;
9
9
  }
10
- export interface ApiServiceOptions {
11
- timeout?: number;
12
- }
13
10
  export interface ApiServiceConfig extends AxiosRequestConfig {
14
11
  }
15
12
  export interface ApiServiceResponse extends AxiosResponse {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-coindcx/network",
3
- "version": "1.0.0",
3
+ "version": "1.0.1-test",
4
4
  "private": false,
5
5
  "description": "A networking library for seamless API calls and efficient data handling",
6
6
  "type": "module",
@@ -16,12 +16,12 @@
16
16
  "license": "ISC",
17
17
  "devDependencies": {
18
18
  "@types/node": "^18.15.11",
19
- "typescript": "^4.9.5",
20
19
  "vite": "^4.2.0",
21
- "vite-plugin-dts": "^2.2.0"
20
+ "vite-plugin-dts": "^2.2.0",
21
+ "typescript": "^4.9.5"
22
22
  },
23
23
  "author": "Manushivam Maheshwari",
24
24
  "dependencies": {
25
- "axios": "^1.7.4"
25
+ "axios": "^1.4.0"
26
26
  }
27
27
  }