node-consul-service 1.0.47 → 1.0.49

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/dist/index.cjs.js CHANGED
@@ -16,11 +16,11 @@ var events = require('events');
16
16
  // src/lib/client.ts
17
17
  let consulClient = null;
18
18
  function initClient({ host = "127.0.0.1", port = 8500, secure = false, }) {
19
- var _a;
19
+ console.log("🚀 ~ secure:", secure, typeof secure, Boolean(secure), typeof Boolean(secure));
20
20
  consulClient = new Consul({
21
21
  host: host !== null && host !== void 0 ? host : "127.0.0.1",
22
22
  port: port !== null && port !== void 0 ? port : 8500,
23
- secure: (_a = Boolean(secure)) !== null && _a !== void 0 ? _a : false,
23
+ secure: Boolean(secure),
24
24
  });
25
25
  consulClient.agent.self((err) => {
26
26
  if (err) {
package/dist/index.esm.js CHANGED
@@ -14,11 +14,11 @@ import { EventEmitter } from 'events';
14
14
  // src/lib/client.ts
15
15
  let consulClient = null;
16
16
  function initClient({ host = "127.0.0.1", port = 8500, secure = false, }) {
17
- var _a;
17
+ console.log("🚀 ~ secure:", secure, typeof secure, Boolean(secure), typeof Boolean(secure));
18
18
  consulClient = new Consul({
19
19
  host: host !== null && host !== void 0 ? host : "127.0.0.1",
20
20
  port: port !== null && port !== void 0 ? port : 8500,
21
- secure: (_a = Boolean(secure)) !== null && _a !== void 0 ? _a : false,
21
+ secure: Boolean(secure),
22
22
  });
23
23
  consulClient.agent.self((err) => {
24
24
  if (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-consul-service",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",