clickhouse-ts
Advanced tools
Comparing version 1.3.17 to 1.3.18
import { AxiosError } from "axios"; | ||
export declare class ClickhouseHttpError extends Error { | ||
status: number; | ||
statusText: string; | ||
status?: number; | ||
statusText?: string; | ||
headers: Record<string, any>; | ||
config: Record<string, any>; | ||
config?: Record<string, any>; | ||
constructor(error: AxiosError['response']); | ||
} |
@@ -7,10 +7,9 @@ "use strict"; | ||
super(); | ||
const { data, status, statusText, headers, config } = error; | ||
this.message = data; | ||
this.status = status; | ||
this.statusText = statusText; | ||
this.headers = headers; | ||
this.config = config; | ||
this.message = error?.data; | ||
this.status = error?.status; | ||
this.statusText = error?.statusText; | ||
this.headers = error?.headers; | ||
this.config = error?.config; | ||
} | ||
} | ||
exports.ClickhouseHttpError = ClickhouseHttpError; |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "1.3.17", | ||
"version": "1.3.18", | ||
"license": "ISC", | ||
@@ -15,0 +15,0 @@ "description": "Clickhouse client on TypeScript using redis caching queries", |
import { AxiosError } from "axios"; | ||
export class ClickhouseHttpError extends Error { | ||
status: number | ||
statusText: string | ||
status?: number | ||
statusText?: string | ||
headers: Record<string, any> | ||
config: Record<string, any> | ||
config?: Record<string, any> | ||
constructor(error: AxiosError['response']) { | ||
super() | ||
const { data, status, statusText, headers, config } = error! | ||
this.message = data | ||
this.status = status | ||
this.statusText = statusText | ||
this.headers = headers | ||
this.config = config | ||
this.message = error?.data | ||
this.status = error?.status | ||
this.statusText = error?.statusText | ||
this.headers = error?.headers | ||
this.config = error?.config | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69453
1307