@mhubcloud/tms_core 1.7.0 → 1.7.2

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.
@@ -68,7 +68,7 @@ async function processMessage(message, context, source, platfromPublisher, trigg
68
68
  continue;
69
69
  }
70
70
 
71
- const mapped = logProp.mapped = prevMappedData = (prevPublisher === eventPublisher ? prevMappedData : eventPublisher.map(data)); //Optimization
71
+ const mapped = logProp.mapped = prevMappedData = (prevPublisher === eventPublisher ? prevMappedData : await eventPublisher.map(data)); //Optimization
72
72
 
73
73
  prevPublisher = eventPublisher;
74
74
 
package/lib/utils.js CHANGED
@@ -6,7 +6,10 @@ const https = require('https');
6
6
  let aiClient;
7
7
  if (process.env.APPINSIGHTS_INSTRUMENTATIONKEY) {
8
8
  const appInsights = require("applicationinsights");
9
- appInsights.setup().start(); //Set einvironmet variable APPINSIGHTS_INSTRUMENTATIONKEY, so setup() can be called w/o parameters
9
+ appInsights
10
+ .setup() //Set einvironmet variable APPINSIGHTS_INSTRUMENTATIONKEY, so setup() can be called w/o parameters
11
+ .setUseDiskRetryCaching(false)
12
+ .start();
10
13
  aiClient = appInsights.defaultClient;
11
14
  }
12
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mhubcloud/tms_core",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "description": "Core function for mHub Cloud TMS publishers",
5
5
  "homepage": "https://mhubcloud.com/",
6
6
  "license": "Apache 2.0",