@lifefinder/vsm-mqtt-client-open-source 0.0.62 → 0.0.63

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifefinder/vsm-mqtt-client-open-source",
3
- "version": "0.0.62",
3
+ "version": "0.0.63",
4
4
  "description": "MQTT client for vsm sensors",
5
5
  "main": "vsm-mqtt-client.js",
6
6
  "author": "Lars Mats",
@@ -23,7 +23,10 @@ module.exports.api = {
23
23
  headers: {
24
24
  "Accept": "application/json",
25
25
  "Content-type" : "application/json",
26
- "cache-control": "no-cache"
26
+ "cache-control": "no-cache",
27
+ // lfndr-service /push is behind ingress auth (fail-closed): send the
28
+ // shared secret when configured, matching keyfetch/series-processor.
29
+ ...(process.env.INGRESS_SHARED_SECRET && { "X-Ingress-Secret": process.env.INGRESS_SHARED_SECRET })
27
30
  },}).then(response => response.json())
28
31
  .then(data => {console.log(" Response: ", data); return data; })
29
32
  .catch(err => {console.log(" HTTPS Publish Failed: " + err.message);});