Socket
Socket
Sign inDemoInstall

clickhouse-ts

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clickhouse-ts - npm Package Compare versions

Comparing version 1.3.17 to 1.3.18

6

dist/src/errors/ClickhouseHttpError.d.ts
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
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc