@golemio/core 1.2.7-dev.529146882 → 1.2.8-dev.529318188

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.
@@ -8,12 +8,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
11
14
  Object.defineProperty(exports, "__esModule", { value: true });
12
15
  exports.BaseController = void 0;
13
- const errors_1 = require("@golemio/errors");
16
+ const AlternateExchangeCreator_1 = __importDefault(require("../../helpers/data-access/amqp/AlternateExchangeCreator"));
14
17
  const config_1 = require("../config");
15
18
  const connectors_1 = require("../connectors");
16
19
  const sentry_transactions_1 = require("../../monitoring/sentry/sentry-transactions");
20
+ const errors_1 = require("@golemio/errors");
17
21
  /**
18
22
  * Base controller class, defines basic structure of a controller. ProcessData function, mandatory name
19
23
  */
@@ -25,7 +29,10 @@ class BaseController {
25
29
  this.sendMessage = (key, msg, options = {}) => __awaiter(this, void 0, void 0, function* () {
26
30
  try {
27
31
  const ch = yield connectors_1.AMQPConnector.getChannel();
28
- yield ch.assertExchange(config_1.config.rabbit_exchange_name, "topic", { durable: false });
32
+ yield ch.assertExchange(config_1.config.rabbit_exchange_name, "topic", {
33
+ durable: false,
34
+ alternateExchange: AlternateExchangeCreator_1.default.getAltExchangeName(config_1.config.rabbit_exchange_name),
35
+ });
29
36
  yield ch.publish(config_1.config.rabbit_exchange_name, key, Buffer.from(msg), options);
30
37
  }
31
38
  catch (err) {
@@ -1 +1 @@
1
- {"version":3,"file":"BaseController.js","sourceRoot":"","sources":["../../../src/input-gateway/controllers/BaseController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA8C;AAE9C,sCAAoC;AACpC,8CAA+C;AAC/C,qFAAiF;AAEjF;;GAEG;AACH,MAA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EAAE,UAAkB,EAAE,EAAiB,EAAE;YACvF,IAAI;gBACA,MAAM,EAAE,GAAG,MAAM,0BAAa,CAAC,UAAU,EAAE,CAAC;gBAC5C,MAAM,EAAE,CAAC,cAAc,CAAC,eAAM,CAAC,oBAA8B,EAAE,OAAO,EAAE;oBACpE,OAAO,EAAE,KAAK;oBACd,iBAAiB,EAAE,kCAAwB,CAAC,kBAAkB,CAAC,eAAM,CAAC,oBAAqB,CAAC;iBAC/F,CAAC,CAAC;gBACH,MAAM,EAAE,CAAC,OAAO,CAAC,eAAM,CAAC,oBAA8B,EAAE,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;aAC3F;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,IAAI,oBAAW,CAAC,yCAAyC,EAAE,IAAI,EAAE,gBAAgB,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;aACtG;QACL,CAAC,CAAA,CAAC;QAEQ,0BAAqB,GAAG,IAAA,6CAAuB,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QArBxE,IAAI,CAAC,IAAI,GAAG,IAAI,GAAG,YAAY,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,WAAW,GAAG,eAAM,CAAC,oBAAoB,GAAG,GAAG,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;IAC9E,CAAC;CAmBJ;AAjCD,wCAiCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/core",
3
- "version": "1.2.7-dev.529146882",
3
+ "version": "1.2.8-dev.529318188",
4
4
  "description": "Golemio Core Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -70,7 +70,7 @@
70
70
  "dependencies": {
71
71
  "@golemio/errors": "^1.0.1",
72
72
  "@golemio/utils": "^1.0.0",
73
- "@golemio/validator": "0.2.1-dev.524787371",
73
+ "@golemio/validator": "0.2.2",
74
74
  "@google-cloud/storage": "^5.18.0",
75
75
  "@opentelemetry/api": "^1.0.2",
76
76
  "@opentelemetry/exporter-jaeger": "^0.24.0",