api-core-lib 2.1.1 → 2.2.1

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.d.mts CHANGED
@@ -87,12 +87,13 @@ interface RequestConfig extends AxiosRequestConfig {
87
87
  * الواجهة الرئيسية لتهيئة عميل الـ API.
88
88
  */
89
89
  interface ApiClientConfig {
90
- baseURL: string;
90
+ baseURL?: string;
91
91
  tokenManager: TokenManager;
92
92
  timeout?: number;
93
93
  headers?: Record<string, string>;
94
94
  withCredentials?: boolean;
95
95
  responseType?: ResponseType;
96
+ pathRefreshToken?: string;
96
97
  onRefreshError?: (error: any) => void;
97
98
  }
98
99
  /**
package/dist/index.d.ts CHANGED
@@ -87,12 +87,13 @@ interface RequestConfig extends AxiosRequestConfig {
87
87
  * الواجهة الرئيسية لتهيئة عميل الـ API.
88
88
  */
89
89
  interface ApiClientConfig {
90
- baseURL: string;
90
+ baseURL?: string;
91
91
  tokenManager: TokenManager;
92
92
  timeout?: number;
93
93
  headers?: Record<string, string>;
94
94
  withCredentials?: boolean;
95
95
  responseType?: ResponseType;
96
+ pathRefreshToken?: string;
96
97
  onRefreshError?: (error: any) => void;
97
98
  }
98
99
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "api-core-lib",
3
- "version": "2.1.1",
3
+ "version": "2.2.1",
4
4
  "description": "A flexible and powerful API client library for modern web applications.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",