@bagelink/sdk 1.2.81 → 1.2.83

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/utils.ts +2 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/sdk",
3
3
  "type": "module",
4
- "version": "1.2.81",
4
+ "version": "1.2.83",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
package/src/utils.ts CHANGED
@@ -8,10 +8,11 @@ export interface ValidationError {
8
8
 
9
9
  export interface HTTPValidationError {
10
10
  detail: ValidationError[]
11
+ [key: string]: any
11
12
  }
12
13
 
13
14
  export function formatAPIErrorMessage(err: unknown): string {
14
- const error = err as AxiosError<HTTPValidationError & { [key: string]: any }> | undefined
15
+ const error = err as AxiosError<HTTPValidationError> | undefined
15
16
 
16
17
  // Handle case where error or response is undefined
17
18
  if (!error || !error.response) {