Skip to content

Commit

Permalink
Merge pull request #259 from tharropoulos/error-logging
Browse files Browse the repository at this point in the history
Enhanced Error Handling with Detailed Payload Information
  • Loading branch information
jasonbosco authored Jan 28, 2025
2 parents a81a0a9 + a48f98c commit b67ded8
Show file tree
Hide file tree
Showing 36 changed files with 674 additions and 614 deletions.
950 changes: 471 additions & 479 deletions dist/typesense.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/typesense.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/typesense.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/typesense.min.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion lib/Typesense/ApiCall.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default class ApiCall {
post<T>(endpoint: string, bodyParameters?: any, queryParameters?: any, additionalHeaders?: any): Promise<T>;
put<T>(endpoint: string, bodyParameters?: any, queryParameters?: any): Promise<T>;
patch<T>(endpoint: string, bodyParameters?: any, queryParameters?: any): Promise<T>;
private getAdapter;
performRequest<T>(requestType: Method, endpoint: string, { queryParameters, bodyParameters, additionalHeaders, abortSignal, responseType, skipConnectionTimeout, enableKeepAlive, }: {
queryParameters?: any;
bodyParameters?: any;
Expand All @@ -43,6 +44,6 @@ export default class ApiCall {
uriFor(endpoint: string, node: any): string;
defaultHeaders(): any;
timer(seconds: any): Promise<void>;
customErrorForResponse(response: AxiosResponse, messageFromServer: string): TypesenseError;
customErrorForResponse(response: AxiosResponse, messageFromServer: string, httpBody?: string): TypesenseError;
}
export {};
98 changes: 54 additions & 44 deletions lib/Typesense/ApiCall.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b67ded8

Please sign in to comment.