api-core-lib 11.4.4 → 11.5.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.
- package/dist/index.d.mts +5 -7
- package/dist/index.d.ts +5 -7
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -88,7 +88,6 @@ interface MiddlewareContext {
|
|
|
88
88
|
req: InternalAxiosRequestConfig;
|
|
89
89
|
res?: AxiosResponse;
|
|
90
90
|
error?: any;
|
|
91
|
-
logger: Logger;
|
|
92
91
|
custom?: Record<string, any>;
|
|
93
92
|
}
|
|
94
93
|
/**
|
|
@@ -230,28 +229,27 @@ interface ApiClientConfig {
|
|
|
230
229
|
/** A callback function executed if the token refresh process fails. */
|
|
231
230
|
onRefreshError?: (error: any) => void;
|
|
232
231
|
/** A custom logger instance. Defaults to the browser `console`. */
|
|
233
|
-
logger?: Logger;
|
|
234
232
|
/** An array of middleware functions to be executed with every request. */
|
|
235
233
|
middleware?: Middleware[];
|
|
236
234
|
/**
|
|
237
235
|
* Sets the verbosity of the internal logger.
|
|
238
236
|
* @default 'info'
|
|
239
237
|
*/
|
|
240
|
-
logLevel?: LogLevel;
|
|
241
238
|
/**
|
|
242
239
|
* If true, all requests will be treated as public by default.
|
|
243
240
|
* A request can override this by explicitly setting `isPublic: false`.
|
|
244
241
|
* @default false
|
|
245
242
|
*/
|
|
243
|
+
logRequests?: boolean;
|
|
246
244
|
defaultIsPublic?: boolean;
|
|
247
245
|
}
|
|
248
246
|
|
|
249
247
|
/**
|
|
250
248
|
* @file src/core/client.ts
|
|
251
|
-
* @description
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
*
|
|
249
|
+
* @description The heart of the API client library.
|
|
250
|
+
* This file contains the `createApiClient` factory function which constructs and
|
|
251
|
+
* configures a sophisticated Axios instance with features like automatic token
|
|
252
|
+
* management, middleware support, and simplified console logging.
|
|
255
253
|
*/
|
|
256
254
|
|
|
257
255
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -88,7 +88,6 @@ interface MiddlewareContext {
|
|
|
88
88
|
req: InternalAxiosRequestConfig;
|
|
89
89
|
res?: AxiosResponse;
|
|
90
90
|
error?: any;
|
|
91
|
-
logger: Logger;
|
|
92
91
|
custom?: Record<string, any>;
|
|
93
92
|
}
|
|
94
93
|
/**
|
|
@@ -230,28 +229,27 @@ interface ApiClientConfig {
|
|
|
230
229
|
/** A callback function executed if the token refresh process fails. */
|
|
231
230
|
onRefreshError?: (error: any) => void;
|
|
232
231
|
/** A custom logger instance. Defaults to the browser `console`. */
|
|
233
|
-
logger?: Logger;
|
|
234
232
|
/** An array of middleware functions to be executed with every request. */
|
|
235
233
|
middleware?: Middleware[];
|
|
236
234
|
/**
|
|
237
235
|
* Sets the verbosity of the internal logger.
|
|
238
236
|
* @default 'info'
|
|
239
237
|
*/
|
|
240
|
-
logLevel?: LogLevel;
|
|
241
238
|
/**
|
|
242
239
|
* If true, all requests will be treated as public by default.
|
|
243
240
|
* A request can override this by explicitly setting `isPublic: false`.
|
|
244
241
|
* @default false
|
|
245
242
|
*/
|
|
243
|
+
logRequests?: boolean;
|
|
246
244
|
defaultIsPublic?: boolean;
|
|
247
245
|
}
|
|
248
246
|
|
|
249
247
|
/**
|
|
250
248
|
* @file src/core/client.ts
|
|
251
|
-
* @description
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
*
|
|
249
|
+
* @description The heart of the API client library.
|
|
250
|
+
* This file contains the `createApiClient` factory function which constructs and
|
|
251
|
+
* configures a sophisticated Axios instance with features like automatic token
|
|
252
|
+
* management, middleware support, and simplified console logging.
|
|
255
253
|
*/
|
|
256
254
|
|
|
257
255
|
/**
|