@mhubcloud/tms_core 3.2.0-beta.0 → 3.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.
- package/dist/index.js +3 -0
- package/package.json +1 -1
- package/src/defaultPublisher.ts +4 -1
- package/tests/UniversalAnalytics.js +1 -1
package/dist/index.js
CHANGED
|
@@ -267,6 +267,9 @@ function parseErrorMessage(error) {
|
|
|
267
267
|
|
|
268
268
|
// src/defaultPublisher.ts
|
|
269
269
|
async function defaultPublisher(azureFunctionContext, serviceBusMessage, source, platformPublisher, trigger) {
|
|
270
|
+
if (serviceBusMessage.$schema === "mhub/pingtest") {
|
|
271
|
+
return;
|
|
272
|
+
}
|
|
270
273
|
const processMessagePromises = [];
|
|
271
274
|
processMessagePromises.push(
|
|
272
275
|
processMessage(
|
package/package.json
CHANGED
package/src/defaultPublisher.ts
CHANGED
|
@@ -11,7 +11,7 @@ import * as utils from './utils/utils';
|
|
|
11
11
|
* Implements the Azure Function, called for set of events received via Event Hub
|
|
12
12
|
* @deprecated Udelat novou metodu, ktera bude spravne a bude inicializovat classu
|
|
13
13
|
* @param azureFunctionContext Azure Function Context
|
|
14
|
-
* @param serviceBusMessage
|
|
14
|
+
* @param serviceBusMessage Message received from Service Bus
|
|
15
15
|
* @param source Name of the publisher (name of the folder in which it is implemented)
|
|
16
16
|
* @param platformPublisher Publisher implementation instance (from <publisher>/publisher.js)
|
|
17
17
|
* @param trigger
|
|
@@ -23,6 +23,9 @@ export async function defaultPublisher(
|
|
|
23
23
|
platformPublisher: PlatformPublisher,
|
|
24
24
|
trigger: (a: unknown) => EventPublisher[],
|
|
25
25
|
) {
|
|
26
|
+
if (serviceBusMessage.$schema === 'mhub/pingtest') {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
26
29
|
const processMessagePromises = [];
|
|
27
30
|
processMessagePromises.push(
|
|
28
31
|
processMessage(
|