Socket
Socket
Sign inDemoInstall

@clickhouse/client

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clickhouse/client - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

2

dist/data_formatter/formatter.d.ts

@@ -1,2 +0,2 @@

declare const supportedJSONFormats: readonly ["JSON", "JSONObjectEachRow", "JSONEachRow", "JSONStringsEachRow", "JSONCompactEachRow", "JSONCompactStringsEachRow", "JSONCompactEachRowWithNames", "JSONCompactEachRowWithNamesAndTypes", "JSONCompactStringsEachRowWithNames", "JSONCompactStringsEachRowWithNamesAndTypes"];
declare const supportedJSONFormats: readonly ["JSON", "JSONStrings", "JSONCompact", "JSONCompactStrings", "JSONColumnsWithMetadata", "JSONObjectEachRow", "JSONEachRow", "JSONStringsEachRow", "JSONCompactEachRow", "JSONCompactStringsEachRow", "JSONCompactEachRowWithNames", "JSONCompactEachRowWithNamesAndTypes", "JSONCompactStringsEachRowWithNames", "JSONCompactStringsEachRowWithNamesAndTypes"];
declare const supportedRawFormats: readonly ["CSV", "CSVWithNames", "CSVWithNamesAndTypes", "TabSeparated", "TabSeparatedRaw", "TabSeparatedWithNames", "TabSeparatedWithNamesAndTypes", "CustomSeparated", "CustomSeparatedWithNames", "CustomSeparatedWithNamesAndTypes"];

@@ -3,0 +3,0 @@ export type JSONDataFormat = (typeof supportedJSONFormats)[number];

@@ -14,5 +14,12 @@ "use strict";

];
const supportedJSONFormats = [
const singleDocumentJSONFormats = [
'JSON',
'JSONStrings',
'JSONCompact',
'JSONCompactStrings',
'JSONColumnsWithMetadata',
'JSONObjectEachRow',
];
const supportedJSONFormats = [
...singleDocumentJSONFormats,
...streamableJSONFormats,

@@ -37,2 +44,6 @@ ];

];
function isNotStreamableJSONFamily(format) {
// @ts-expect-error JSON is not assignable to notStreamableJSONFormats
return singleDocumentJSONFormats.includes(format);
}
function isStreamableJSONFamily(format) {

@@ -59,3 +70,3 @@ // @ts-expect-error JSON is not assignable to streamableJSONFormats

function decode(text, format) {
if (format === 'JSON') {
if (isNotStreamableJSONFamily(format)) {
return JSON.parse(text);

@@ -62,0 +73,0 @@ }

@@ -1,2 +0,2 @@

declare const _default: "0.0.13";
declare const _default: "0.0.14";
export default _default;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = '0.0.13';
exports.default = '0.0.14';
//# sourceMappingURL=version.js.map
{
"name": "@clickhouse/client",
"version": "0.0.13",
"version": "0.0.14",
"description": "Official JS client for ClickHouse DB",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

Sorry, the diff of this file is not supported yet

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