@rsdk/cli 3.6.1-next.0 → 3.6.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.6.1](https://github.com/R-Vision/rsdk/compare/v3.6.1-next.1...v3.6.1) (2023-10-24)
7
+
8
+ **Note:** Version bump only for package @rsdk/cli
9
+
10
+ ## [3.6.1-next.1](https://github.com/R-Vision/rsdk/compare/v3.6.1-next.0...v3.6.1-next.1) (2023-10-24)
11
+
12
+ ### Bug Fixes
13
+
14
+ * **cli.kafka:** prefer use process.env variable KAFKA_HOST ([181d5ae](https://github.com/R-Vision/rsdk/commit/181d5ae28fd25e191d58c3931cde04141a4e80c8))
15
+
6
16
  ## [3.6.1-next.0](https://github.com/R-Vision/rsdk/compare/v3.6.0...v3.6.1-next.0) (2023-10-20)
7
17
 
8
18
  **Note:** Version bump only for package @rsdk/cli
@@ -8,13 +8,8 @@ const core_1 = require("@rsdk/core");
8
8
  const dotenv_1 = __importDefault(require("dotenv"));
9
9
  class KafkaCredsProvider {
10
10
  static getKafkaCreds() {
11
- const parsed = dotenv_1.default.config();
12
- if (parsed.error) {
13
- throw new core_1.InternalException('Error read config', {
14
- cause: parsed.error,
15
- });
16
- }
17
- const kafkaHost = parsed.parsed?.KAFKA_HOST;
11
+ dotenv_1.default.config();
12
+ const kafkaHost = process.env.KAFKA_HOST;
18
13
  if (!kafkaHost) {
19
14
  throw new core_1.InternalException('KAFKA_HOST not found');
20
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"kafka.creds-provider.js","sourceRoot":"","sources":["../../../../src/kafka/commands/sync/kafka.creds-provider.ts"],"names":[],"mappings":";;;;;;AAAA,qCAA+C;AAC/C,oDAA4B;AAG5B,MAAa,kBAAkB;IAC7B,MAAM,CAAC,aAAa;QAClB,MAAM,MAAM,GAAG,gBAAM,CAAC,MAAM,EAAE,CAAC;QAC/B,IAAI,MAAM,CAAC,KAAK,EAAE;YAChB,MAAM,IAAI,wBAAiB,CAAC,mBAAmB,EAAE;gBAC/C,KAAK,EAAE,MAAM,CAAC,KAAK;aACpB,CAAC,CAAC;SACJ;QACD,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;QAC5C,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,IAAI,wBAAiB,CAAC,sBAAsB,CAAC,CAAC;SACrD;QACD,OAAO;YACL,OAAO,EAAE,CAAC,SAAS,CAAC;SACrB,CAAC;IACJ,CAAC;CACF;AAhBD,gDAgBC"}
1
+ {"version":3,"file":"kafka.creds-provider.js","sourceRoot":"","sources":["../../../../src/kafka/commands/sync/kafka.creds-provider.ts"],"names":[],"mappings":";;;;;;AAAA,qCAA+C;AAC/C,oDAA4B;AAG5B,MAAa,kBAAkB;IAC7B,MAAM,CAAC,aAAa;QAClB,gBAAM,CAAC,MAAM,EAAE,CAAC;QAChB,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;QACzC,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,IAAI,wBAAiB,CAAC,sBAAsB,CAAC,CAAC;SACrD;QACD,OAAO;YACL,OAAO,EAAE,CAAC,SAAS,CAAC;SACrB,CAAC;IACJ,CAAC;CACF;AAXD,gDAWC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdk/cli",
3
- "version": "3.6.1-next.0",
3
+ "version": "3.6.1",
4
4
  "description": "entry package to cli functions",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -23,7 +23,7 @@
23
23
  "yaml": "^2.3.1"
24
24
  },
25
25
  "peerDependencies": {
26
- "@rsdk/core": "^3.6.1-next.0"
26
+ "@rsdk/core": "^3.6.1"
27
27
  },
28
- "gitHead": "d4ae98e83f9bb8c9fcbb21e4e55fd74c1801a216"
28
+ "gitHead": "c2716058e978bb17c1c4da8c91cdacdc3f329a69"
29
29
  }
@@ -4,13 +4,8 @@ import type { KafkaConfig } from 'kafkajs';
4
4
 
5
5
  export class KafkaCredsProvider {
6
6
  static getKafkaCreds(): KafkaConfig {
7
- const parsed = dotenv.config();
8
- if (parsed.error) {
9
- throw new InternalException('Error read config', {
10
- cause: parsed.error,
11
- });
12
- }
13
- const kafkaHost = parsed.parsed?.KAFKA_HOST;
7
+ dotenv.config();
8
+ const kafkaHost = process.env.KAFKA_HOST;
14
9
  if (!kafkaHost) {
15
10
  throw new InternalException('KAFKA_HOST not found');
16
11
  }