@taphealth/kafka 1.1.1 → 1.1.2

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/client.js CHANGED
@@ -4,6 +4,6 @@ exports.kafka = void 0;
4
4
  const kafkajs_1 = require("kafkajs");
5
5
  const kafka = new kafkajs_1.Kafka({
6
6
  clientId: "taphealth",
7
- brokers: ["kafka.dev.azure.tap.health:9092"],
7
+ brokers: ["dev-cluster-kafka-bootstrap.kafka.svc.cluster.local:9092"],
8
8
  });
9
9
  exports.kafka = kafka;
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
- export {};
1
+ declare function init(): Promise<void>;
2
+ export { init };
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.init = void 0;
3
4
  const client_1 = require("./client");
4
5
  async function init() {
5
6
  const admin = client_1.kafka.admin();
@@ -17,4 +18,4 @@ async function init() {
17
18
  console.log("Created topics");
18
19
  await admin.disconnect();
19
20
  }
20
- init().catch(console.error);
21
+ exports.init = init;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taphealth/kafka",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",