@hastehaul/common 2.0.21 → 2.0.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -109,7 +109,7 @@ class NatsConsumer {
109
109
  }
110
110
  }
111
111
  catch (error) {
112
- console.error(error.message);
112
+ console.error(error);
113
113
  // throw new Error("Failed to consume messages");
114
114
  }
115
115
  });
@@ -36,7 +36,7 @@ class NatsPublisher {
36
36
  return yield jetStreamClient.publish(this.subject, typeof data === "string" ? this.sc.encode(data) : this.jc.encode(data));
37
37
  }
38
38
  catch (error) {
39
- console.error(error.message);
39
+ console.error(error);
40
40
  throw new Error(`Failed to publish message. Error: [${error.message}]`);
41
41
  }
42
42
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hastehaul/common",
3
- "version": "2.0.21",
3
+ "version": "2.0.22",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",