Socket
Socket
Sign inDemoInstall

@clickhouse/client

Package Overview
Dependencies
Maintainers
4
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 1.6.0 to 1.7.0

1

dist/client.d.ts

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

/// <reference types="node" />
import type { DataFormat, IsSame, QueryParamsWithFormat } from '@clickhouse/client-common';

@@ -3,0 +2,0 @@ import { ClickHouseClient } from '@clickhouse/client-common';

4

dist/client.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createClient = exports.NodeClickHouseClient = void 0;
exports.NodeClickHouseClient = void 0;
exports.createClient = createClient;
const client_common_1 = require("@clickhouse/client-common");

@@ -19,3 +20,2 @@ const config_1 = require("./config");

}
exports.createClient = createClient;
//# sourceMappingURL=client.js.map

@@ -1,5 +0,1 @@

/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
import type { ImplementationDetails } from '@clickhouse/client-common';

@@ -6,0 +2,0 @@ import { type BaseClickHouseClientConfigOptions } from '@clickhouse/client-common';

@@ -1,3 +0,1 @@

/// <reference types="node" />
/// <reference types="node" />
import type Http from 'http';

@@ -4,0 +2,0 @@ import Stream from 'stream';

@@ -6,3 +6,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.isDecompressionError = exports.decompressResponse = void 0;
exports.decompressResponse = decompressResponse;
exports.isDecompressionError = isDecompressionError;
const stream_1 = __importDefault(require("stream"));

@@ -30,7 +31,5 @@ const zlib_1 = __importDefault(require("zlib"));

}
exports.decompressResponse = decompressResponse;
function isDecompressionError(result) {
return result.error !== undefined;
}
exports.isDecompressionError = isDecompressionError;
//# sourceMappingURL=compression.js.map

@@ -1,3 +0,1 @@

/// <reference types="node" />
/// <reference types="node" />
import type { ConnectionParams } from '@clickhouse/client-common';

@@ -4,0 +2,0 @@ import type http from 'http';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createConnection = void 0;
exports.createConnection = createConnection;
const node_custom_agent_connection_1 = require("./node_custom_agent_connection");

@@ -34,3 +34,2 @@ const node_http_connection_1 = require("./node_http_connection");

}
exports.createConnection = createConnection;
//# sourceMappingURL=create_connection.js.map

@@ -1,5 +0,1 @@

/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
import type { BaseQueryParams, ConnBaseQueryParams, ConnCommandResult, Connection, ConnectionParams, ConnExecParams, ConnExecResult, ConnInsertParams, ConnInsertResult, ConnPingResult, ConnQueryResult } from '@clickhouse/client-common';

@@ -6,0 +2,0 @@ import type Http from 'http';

@@ -304,4 +304,4 @@ "use strict";

? // allows to disable stream decompression for the `Exec` operation only
params.decompress_response_stream ??
this.params.compression.decompress_response
(params.decompress_response_stream ??
this.params.compression.decompress_response)
: // there is nothing useful in the response stream for the `Command` operation,

@@ -308,0 +308,0 @@ // and it is immediately destroyed; never decompress it

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

/// <reference types="node" />
import Http from 'http';

@@ -3,0 +2,0 @@ import type { NodeConnectionParams, RequestParams } from './node_base_connection';

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

/// <reference types="node" />
import Http from 'http';

@@ -3,0 +2,0 @@ import type { NodeConnectionParams, RequestParams } from './node_base_connection';

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

/// <reference types="node" />
import type { BaseQueryParams } from '@clickhouse/client-common';

@@ -3,0 +2,0 @@ import type Http from 'http';

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

/// <reference types="node" />
import type Stream from 'stream';

@@ -3,0 +2,0 @@ /** Drains the response stream, as calling `destroy` on a {@link Stream.Readable} response stream

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.drainStream = void 0;
exports.drainStream = drainStream;
/** Drains the response stream, as calling `destroy` on a {@link Stream.Readable} response stream

@@ -35,3 +35,2 @@ * will result in closing the underlying socket, and negate the KeepAlive feature benefits.

}
exports.drainStream = drainStream;
//# sourceMappingURL=stream.js.map

@@ -7,2 +7,2 @@ export { NodeClickHouseClient as ClickHouseClient, type QueryResult, } from './client';

/** Re-export @clickhouse/client-common types */
export { type BaseClickHouseClientConfigOptions, type BaseQueryParams, type QueryParams, type ExecParams, type InsertParams, type InsertValues, type CommandParams, type CommandResult, type ExecResult, type InsertResult, type DataFormat, type RawDataFormat, type JSONDataFormat, type StreamableDataFormat, type StreamableJSONDataFormat, type SingleDocumentJSONFormat, type Logger, type LogParams, type ErrorLogParams, type WarnLogParams, type ClickHouseSettings, type MergeTreeSettings, type Row, type ResponseJSON, type InputJSON, type InputJSONObjectEachRow, type BaseResultSet, type PingResult, ClickHouseError, ClickHouseLogLevel, SettingsMap, SupportedJSONFormats, SupportedRawFormats, StreamableFormats, StreamableJSONFormats, SingleDocumentJSONFormats, RecordsJSONFormats, } from '@clickhouse/client-common';
export { type BaseClickHouseClientConfigOptions, type BaseQueryParams, type QueryParams, type ExecParams, type InsertParams, type InsertValues, type CommandParams, type CommandResult, type ExecResult, type InsertResult, type DataFormat, type RawDataFormat, type JSONDataFormat, type StreamableDataFormat, type StreamableJSONDataFormat, type SingleDocumentJSONFormat, type Logger, type LogParams, type ErrorLogParams, type WarnLogParams, type ClickHouseSettings, type MergeTreeSettings, type Row, type ResponseJSON, type InputJSON, type InputJSONObjectEachRow, type BaseResultSet, type PingResult, ClickHouseError, ClickHouseLogLevel, SettingsMap, SupportedJSONFormats, SupportedRawFormats, StreamableFormats, StreamableJSONFormats, SingleDocumentJSONFormats, RecordsJSONFormats, type SimpleColumnType, type ParsedColumnSimple, type ParsedColumnEnum, type ParsedColumnFixedString, type ParsedColumnNullable, type ParsedColumnDecimal, type ParsedColumnDateTime, type ParsedColumnDateTime64, type ParsedColumnArray, type ParsedColumnTuple, type ParsedColumnMap, type ParsedColumnType, parseColumnType, SimpleColumnTypes, type ProgressRow, isProgressRow, type RowOrProgress, } from '@clickhouse/client-common';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SettingsMap = exports.ClickHouseLogLevel = exports.ClickHouseError = exports.drainStream = exports.ResultSet = exports.createClient = exports.ClickHouseClient = void 0;
exports.isProgressRow = exports.SimpleColumnTypes = exports.parseColumnType = exports.SettingsMap = exports.ClickHouseLogLevel = exports.ClickHouseError = exports.drainStream = exports.ResultSet = exports.createClient = exports.ClickHouseClient = void 0;
var client_1 = require("./client");

@@ -17,2 +17,5 @@ Object.defineProperty(exports, "ClickHouseClient", { enumerable: true, get: function () { return client_1.NodeClickHouseClient; } });

Object.defineProperty(exports, "SettingsMap", { enumerable: true, get: function () { return client_common_1.SettingsMap; } });
Object.defineProperty(exports, "parseColumnType", { enumerable: true, get: function () { return client_common_1.parseColumnType; } });
Object.defineProperty(exports, "SimpleColumnTypes", { enumerable: true, get: function () { return client_common_1.SimpleColumnTypes; } });
Object.defineProperty(exports, "isProgressRow", { enumerable: true, get: function () { return client_common_1.isProgressRow; } });
//# sourceMappingURL=index.js.map

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

/// <reference types="node" />
import type { BaseResultSet, DataFormat, ResponseHeaders, ResultJSONType, ResultStream, Row } from '@clickhouse/client-common';

@@ -3,0 +2,0 @@ import type { Readable } from 'stream';

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

/// <reference types="node" />
import type { DataFormat, InsertValues, ValuesEncoder } from '@clickhouse/client-common';

@@ -3,0 +2,0 @@ import Stream from 'stream';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getProcessVersion = void 0;
exports.getProcessVersion = getProcessVersion;
// for easy mocking in the tests

@@ -8,3 +8,2 @@ function getProcessVersion() {

}
exports.getProcessVersion = getProcessVersion;
//# sourceMappingURL=process.js.map

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

/// <reference types="node" />
import Stream from 'stream';

@@ -3,0 +2,0 @@ export declare function isStream(obj: any): obj is Stream.Readable;

@@ -6,3 +6,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.mapStream = exports.getAsText = exports.isStream = void 0;
exports.isStream = isStream;
exports.getAsText = getAsText;
exports.mapStream = mapStream;
const stream_1 = __importDefault(require("stream"));

@@ -12,3 +14,2 @@ function isStream(obj) {

}
exports.isStream = isStream;
async function getAsText(stream) {

@@ -27,3 +28,2 @@ let text = '';

}
exports.getAsText = getAsText;
function mapStream(mapper) {

@@ -37,3 +37,2 @@ return new stream_1.default.Transform({

}
exports.mapStream = mapStream;
//# sourceMappingURL=stream.js.map

@@ -29,3 +29,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getUserAgent = void 0;
exports.getUserAgent = getUserAgent;
const os = __importStar(require("os"));

@@ -45,3 +45,2 @@ const version_1 = __importDefault(require("../version"));

}
exports.getUserAgent = getUserAgent;
//# sourceMappingURL=user_agent.js.map

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

declare const _default: "1.6.0";
declare const _default: "1.7.0";
export default _default;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = '1.6.0';
exports.default = '1.7.0';
//# sourceMappingURL=version.js.map

@@ -5,3 +5,3 @@ {

"homepage": "https://clickhouse.com",
"version": "1.6.0",
"version": "1.7.0",
"license": "Apache-2.0",

@@ -27,4 +27,4 @@ "keywords": [

"dependencies": {
"@clickhouse/client-common": "1.6.0"
"@clickhouse/client-common": "1.7.0"
}
}

@@ -22,2 +22,4 @@ <p align="center">

<img src="https://sonarcloud.io/api/project_badges/measure?project=ClickHouse_clickhouse-js&metric=coverage">
<img src="https://api.scorecard.dev/projects/github.com/ClickHouse/clickhouse-js/badge">
</p>

@@ -24,0 +26,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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