@codefresh-io/eventbus 2.1.0 → 2.2.0

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.
Files changed (2) hide show
  1. package/lib/Store.js +8 -1
  2. package/package.json +1 -1
package/lib/Store.js CHANGED
@@ -22,7 +22,14 @@ class Store extends EventEmitter {
22
22
  this.user = options.user;
23
23
  this.password = options.password;
24
24
  this.port = options.port;
25
- this.ssl = options.ssl;
25
+ /**
26
+ * Env variable takes precedence over the options.
27
+ * Temporary hack until dependent services update `service-base`
28
+ * to use the new `ssl` option.
29
+ */
30
+ this.ssl = 'POSTGRES_SSL_ENABLE' in process.env
31
+ ? process.env.POSTGRES_SSL_ENABLE === 'true'
32
+ : options.ssl;
26
33
  this.readyPromise = new Promise((resolve, reject) => {
27
34
  this.readyDeferred = {
28
35
  resolve: () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codefresh-io/eventbus",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {