@clickhouse/client
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -84,12 +84,8 @@ "use strict"; | ||
const result = []; | ||
await new Promise((resolve, reject) => { | ||
const stream = this.stream(); | ||
stream.on('data', (rows) => { | ||
for (const row of rows) { | ||
result.push(row.json()); | ||
} | ||
}); | ||
stream.on('end', resolve); | ||
stream.on('error', reject); | ||
}); | ||
const stream = this.stream(); | ||
for await (const rows of stream) { | ||
for (const row of rows) { | ||
result.push(row.json()); | ||
} | ||
} | ||
return result; | ||
@@ -96,0 +92,0 @@ } |
@@ -15,9 +15,5 @@ "use strict"; | ||
const textDecoder = new TextDecoder(); | ||
await new Promise((resolve, reject) => { | ||
stream.on('data', (chunk) => { | ||
text += textDecoder.decode(chunk, { stream: true }); | ||
}); | ||
stream.on('end', resolve); | ||
stream.on('error', reject); | ||
}); | ||
for await (const chunk of stream) { | ||
text += textDecoder.decode(chunk, { stream: true }); | ||
} | ||
// flush | ||
@@ -24,0 +20,0 @@ const last = textDecoder.decode(); |
@@ -1,2 +0,2 @@ | ||
declare const _default: "1.5.0"; | ||
declare const _default: "1.6.0"; | ||
export default _default; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = '1.5.0'; | ||
exports.default = '1.6.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://clickhouse.com", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"license": "Apache-2.0", | ||
@@ -27,4 +27,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@clickhouse/client-common": "1.5.0" | ||
"@clickhouse/client-common": "1.6.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
111958
1488
+ Added@clickhouse/client-common@1.6.0(transitive)
- Removed@clickhouse/client-common@1.5.0(transitive)