@stemy/backend 3.1.5 → 3.1.6

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.
@@ -2596,7 +2596,11 @@
2596
2596
  this.apiPull.on("message", function (name, args) {
2597
2597
  var message = name.toString("utf8");
2598
2598
  var params = JSON.parse((args === null || args === void 0 ? void 0 : args.toString("utf8")) || "{}");
2599
- console.log("Received a message from worker: \"" + colorize(message, exports.ConsoleColor.FgCyan) + "\" with args: " + jsonHighlight(params) + "\n\n");
2599
+ var paramTypes = Object.keys(params).reduce(function (res, key) {
2600
+ res[key] = getType(params[key]);
2601
+ return res;
2602
+ }, {});
2603
+ console.log("Received a message from worker: \"" + colorize(message, exports.ConsoleColor.FgCyan) + "\" with args: " + jsonHighlight(paramTypes) + "\n\n");
2600
2604
  _this.messages.next({ message: message, params: params });
2601
2605
  });
2602
2606
  console.log("API consumer bound to port: " + backPort);
@@ -2604,7 +2608,7 @@
2604
2608
  return this.tryResolve(jobType, params);
2605
2609
  };
2606
2610
  JobManager.prototype.resolveJobInstance = function (jobType, params, uniqueId) {
2607
- if (uniqueId === void 0) { uniqueId = null; }
2611
+ if (uniqueId === void 0) { uniqueId = ""; }
2608
2612
  var container = this.container.createChildContainer();
2609
2613
  Object.keys(params).map(function (name) {
2610
2614
  container.register(name, { useValue: params[name] });