@clickhouse/client-web 1.11.2 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/connection/web_connection.js +12 -6
- package/dist/connection/web_connection.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
<img src="https://github.com/ClickHouse/clickhouse-js/actions/workflows/tests.yml/badge.svg?branch=main">
|
|
17
17
|
</a>
|
|
18
18
|
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
<a href="https://codecov.io/gh/ClickHouse/clickhouse-js">
|
|
20
|
+
<img src="https://codecov.io/gh/ClickHouse/clickhouse-js/graph/badge.svg?token=B832WB00WJ">
|
|
21
|
+
</a>
|
|
22
22
|
|
|
23
23
|
<img src="https://api.scorecard.dev/projects/github.com/ClickHouse/clickhouse-js/badge">
|
|
24
24
|
</p>
|
|
@@ -39,7 +39,7 @@ class WebConnection {
|
|
|
39
39
|
query_id,
|
|
40
40
|
});
|
|
41
41
|
const response = await this.request({
|
|
42
|
-
|
|
42
|
+
body: params.query,
|
|
43
43
|
params,
|
|
44
44
|
searchParams,
|
|
45
45
|
});
|
|
@@ -76,7 +76,7 @@ class WebConnection {
|
|
|
76
76
|
query_id,
|
|
77
77
|
});
|
|
78
78
|
const response = await this.request({
|
|
79
|
-
|
|
79
|
+
body: params.values,
|
|
80
80
|
params,
|
|
81
81
|
searchParams,
|
|
82
82
|
});
|
|
@@ -93,7 +93,13 @@ class WebConnection {
|
|
|
93
93
|
// so we are using a simple SELECT as a workaround
|
|
94
94
|
try {
|
|
95
95
|
const response = await this.request({
|
|
96
|
-
|
|
96
|
+
body: null,
|
|
97
|
+
searchParams: (0, client_common_1.toSearchParams)({
|
|
98
|
+
database: undefined,
|
|
99
|
+
query: `SELECT 'ping'`,
|
|
100
|
+
query_id: getQueryId(undefined),
|
|
101
|
+
}),
|
|
102
|
+
method: 'GET',
|
|
97
103
|
});
|
|
98
104
|
if (response.body !== null) {
|
|
99
105
|
await response.body.cancel();
|
|
@@ -113,7 +119,7 @@ class WebConnection {
|
|
|
113
119
|
async close() {
|
|
114
120
|
return;
|
|
115
121
|
}
|
|
116
|
-
async request({
|
|
122
|
+
async request({ body, params, searchParams, pathname, method, }) {
|
|
117
123
|
const url = (0, client_common_1.transformUrl)({
|
|
118
124
|
url: this.params.url,
|
|
119
125
|
pathname,
|
|
@@ -142,7 +148,7 @@ class WebConnection {
|
|
|
142
148
|
// avoiding "fetch called on an object that does not implement interface Window" error
|
|
143
149
|
const fetchFn = this.params.fetch ?? fetch;
|
|
144
150
|
const response = await fetchFn(url, {
|
|
145
|
-
body
|
|
151
|
+
body,
|
|
146
152
|
headers,
|
|
147
153
|
keepalive: this.params.keep_alive.enabled,
|
|
148
154
|
method: method ?? 'POST',
|
|
@@ -183,7 +189,7 @@ class WebConnection {
|
|
|
183
189
|
query_id,
|
|
184
190
|
});
|
|
185
191
|
const response = await this.request({
|
|
186
|
-
|
|
192
|
+
body: params.query,
|
|
187
193
|
params,
|
|
188
194
|
searchParams,
|
|
189
195
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web_connection.js","sourceRoot":"","sources":["../../../../packages/client-web/src/connection/web_connection.ts"],"names":[],"mappings":";;;AAWA,6DASkC;AAClC,oCAAoC;AAapC,MAAa,aAAa;IAExB,YAA6B,MAA2B;QAA5C;;;;mBAAiB,MAAM;WAAqB;QADvC;;;;;WAAyB;QAExC,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,KAAK,EAAE,CAAC;YAC/B,IAAI,CAAC,iBAAiB,GAAG,UAAU,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,CAAA;QAC/D,CAAC;aAAM,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,aAAa,EAAE,CAAC;YAC9C,IAAI,CAAC,iBAAiB,GAAG,SAAS,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;QAC7F,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,KAAK,CAAC,sBAAuB,MAAM,CAAC,IAAY,CAAC,IAAI,EAAE,CAAC,CAAA;QACpE,CAAC;IACH,CAAC;IAED,KAAK,CAAC,KAAK,CACT,MAA2B;QAE3B,MAAM,QAAQ,GAAG,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;QAC5C,MAAM,mBAAmB,GAAG,IAAA,gCAAgB,EAC1C,MAAM,CAAC,mBAAmB,EAC1B,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,mBAAmB,CAC5C,CAAA;QACD,MAAM,YAAY,GAAG,IAAA,8BAAc,EAAC;YAClC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ;YAC9B,mBAAmB;YACnB,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,QAAQ;SACT,CAAC,CAAA;QACF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAClC,
|
|
1
|
+
{"version":3,"file":"web_connection.js","sourceRoot":"","sources":["../../../../packages/client-web/src/connection/web_connection.ts"],"names":[],"mappings":";;;AAWA,6DASkC;AAClC,oCAAoC;AAapC,MAAa,aAAa;IAExB,YAA6B,MAA2B;QAA5C;;;;mBAAiB,MAAM;WAAqB;QADvC;;;;;WAAyB;QAExC,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,KAAK,EAAE,CAAC;YAC/B,IAAI,CAAC,iBAAiB,GAAG,UAAU,MAAM,CAAC,IAAI,CAAC,YAAY,E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S,EAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC;YAC5B,UAAU,GAAG,UAAU,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,CAAA;QACpD,CAAC;aAAM,IAAI,IAAA,iCAAiB,EAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC;YAC3C,UAAU,GAAG,SAAS,IAAI,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC,QAAQ,IAAI,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAA;QACnF,CAAC;aAAM,CAAC;YACN,UAAU,GAAG,IAAI,CAAC,iBAAiB,CAAA;QACrC,CAAC;QACD,OAAO;YACL,oDAAoD;YACpD,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,IAAI,EAAE,CAAC;YACnC,gHAAgH;YAChH,GAAG,CAAC,MAAM,EAAE,YAAY,IAAI,EAAE,CAAC;YAC/B,aAAa,EAAE,UAAU;SAC1B,CAAA;IACH,CAAC;CACF;AA/OD,sCA+OC;AAED,SAAS,UAAU,CAAC,QAA4B;IAC9C,OAAO,QAAQ,IAAI,MAAM,CAAC,UAAU,EAAE,CAAA;AACxC,CAAC;AAED,SAAS,kBAAkB,CAAC,QAAkB;IAC5C,MAAM,OAAO,GAAoB,EAAE,CAAA;IACnC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QACtC,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;IACtB,CAAC,CAAC,CAAA;IACF,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export { createClient } from './client';
|
|
|
3
3
|
export { type WebClickHouseClientConfigOptions as ClickHouseClientConfigOptions } from './config';
|
|
4
4
|
export { ResultSet } from './result_set';
|
|
5
5
|
/** Re-export @clickhouse/client-common types */
|
|
6
|
-
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, type ClickHouseAuth, type ClickHouseJWTAuth, type ClickHouseCredentialsAuth, TupleParam, } from '@clickhouse/client-common';
|
|
6
|
+
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, parseError, 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, isRow, isException, type RowOrProgress, type ClickHouseAuth, type ClickHouseJWTAuth, type ClickHouseCredentialsAuth, TupleParam, } from '@clickhouse/client-common';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TupleParam = exports.isProgressRow = exports.SimpleColumnTypes = exports.parseColumnType = exports.SettingsMap = exports.ClickHouseLogLevel = exports.ClickHouseError = exports.ResultSet = exports.createClient = void 0;
|
|
3
|
+
exports.TupleParam = exports.isException = exports.isRow = exports.isProgressRow = exports.SimpleColumnTypes = exports.parseColumnType = exports.SettingsMap = exports.ClickHouseLogLevel = exports.parseError = exports.ClickHouseError = exports.ResultSet = exports.createClient = void 0;
|
|
4
4
|
var client_1 = require("./client");
|
|
5
5
|
Object.defineProperty(exports, "createClient", { enumerable: true, get: function () { return client_1.createClient; } });
|
|
6
6
|
var result_set_1 = require("./result_set");
|
|
@@ -8,10 +8,13 @@ Object.defineProperty(exports, "ResultSet", { enumerable: true, get: function ()
|
|
|
8
8
|
/** Re-export @clickhouse/client-common types */
|
|
9
9
|
var client_common_1 = require("@clickhouse/client-common");
|
|
10
10
|
Object.defineProperty(exports, "ClickHouseError", { enumerable: true, get: function () { return client_common_1.ClickHouseError; } });
|
|
11
|
+
Object.defineProperty(exports, "parseError", { enumerable: true, get: function () { return client_common_1.parseError; } });
|
|
11
12
|
Object.defineProperty(exports, "ClickHouseLogLevel", { enumerable: true, get: function () { return client_common_1.ClickHouseLogLevel; } });
|
|
12
13
|
Object.defineProperty(exports, "SettingsMap", { enumerable: true, get: function () { return client_common_1.SettingsMap; } });
|
|
13
14
|
Object.defineProperty(exports, "parseColumnType", { enumerable: true, get: function () { return client_common_1.parseColumnType; } });
|
|
14
15
|
Object.defineProperty(exports, "SimpleColumnTypes", { enumerable: true, get: function () { return client_common_1.SimpleColumnTypes; } });
|
|
15
16
|
Object.defineProperty(exports, "isProgressRow", { enumerable: true, get: function () { return client_common_1.isProgressRow; } });
|
|
17
|
+
Object.defineProperty(exports, "isRow", { enumerable: true, get: function () { return client_common_1.isRow; } });
|
|
18
|
+
Object.defineProperty(exports, "isException", { enumerable: true, get: function () { return client_common_1.isException; } });
|
|
16
19
|
Object.defineProperty(exports, "TupleParam", { enumerable: true, get: function () { return client_common_1.TupleParam; } });
|
|
17
20
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/client-web/src/index.ts"],"names":[],"mappings":";;;AAIA,mCAAuC;AAA9B,sGAAA,YAAY,OAAA;AAErB,2CAAwC;AAA/B,uGAAA,SAAS,OAAA;AAElB,gDAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/client-web/src/index.ts"],"names":[],"mappings":";;;AAIA,mCAAuC;AAA9B,sGAAA,YAAY,OAAA;AAErB,2CAAwC;AAA/B,uGAAA,SAAS,OAAA;AAElB,gDAAgD;AAChD,2DA8DkC;AAjChC,gHAAA,eAAe,OAAA;AACf,2GAAA,UAAU,OAAA;AACV,mHAAA,kBAAkB,OAAA;AAClB,4GAAA,WAAW,OAAA;AAmBX,gHAAA,eAAe,OAAA;AACf,kHAAA,iBAAiB,OAAA;AAEjB,8GAAA,aAAa,OAAA;AACb,sGAAA,KAAK,OAAA;AACL,4GAAA,WAAW,OAAA;AAKX,2GAAA,UAAU,OAAA"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.
|
|
1
|
+
declare const _default: "1.12.0";
|
|
2
2
|
export default _default;
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@clickhouse/client-web",
|
|
3
3
|
"description": "Official JS client for ClickHouse DB - Web API implementation",
|
|
4
4
|
"homepage": "https://clickhouse.com",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.12.0",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"clickhouse",
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@clickhouse/client-common": "1.
|
|
23
|
+
"@clickhouse/client-common": "1.12.0"
|
|
24
24
|
}
|
|
25
25
|
}
|