@transitive-sdk/clickhouse 0.3.4 → 0.3.5

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.
Files changed (2) hide show
  1. package/index.js +2 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ const URL = require('node:url');
1
2
  const _ = require('lodash');
2
3
  const waitPort = require('wait-port');
3
4
  const { createClient } = require('@clickhouse/client');
@@ -53,11 +54,7 @@ class ClickHouse {
53
54
 
54
55
  const {hostname, port} = URL.parse(_url);
55
56
  const interval = 200;
56
- await waitPort({
57
- host: hostname,
58
- port: port || 80,
59
- interval
60
- }, 10000);
57
+ await waitPort({ host: hostname, port: port || 80, interval }, 10000);
61
58
  await new Promise(done => setTimeout(done, 200));
62
59
 
63
60
  // console.debug(`Creating ClickHouse client for URL: ${_url}, DB: ${_dbName}, User: ${_user}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transitive-sdk/clickhouse",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "A tiny ClickHouse utility class for use in the Transitive framework.",
5
5
  "homepage": "https://transitiverobotics.com",
6
6
  "repository": {