@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.
- package/lib/defaultPublisher.js +1 -1
- package/lib/utils.js +4 -1
- package/package.json +1 -1
package/lib/defaultPublisher.js
CHANGED
|
@@ -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
|
|
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
|
|