@mhubcloud/tms_core 1.7.2 → 1.7.3

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/utils.js CHANGED
@@ -8,6 +8,7 @@ if (process.env.APPINSIGHTS_INSTRUMENTATIONKEY) {
8
8
  const appInsights = require("applicationinsights");
9
9
  appInsights
10
10
  .setup() //Set einvironmet variable APPINSIGHTS_INSTRUMENTATIONKEY, so setup() can be called w/o parameters
11
+ .setAutoCollectDependencies(false)
11
12
  .setUseDiskRetryCaching(false)
12
13
  .start();
13
14
  aiClient = appInsights.defaultClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mhubcloud/tms_core",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "Core function for mHub Cloud TMS publishers",
5
5
  "homepage": "https://mhubcloud.com/",
6
6
  "license": "Apache 2.0",
package/tests/CJ.js CHANGED
@@ -83,86 +83,6 @@ describe('test CJ publisher', function () {
83
83
  ];
84
84
  await test(eventHubMessages);
85
85
  });
86
-
87
- it('purchase', async function () {
88
- var eventHubMessages = [
89
- {
90
- "currencyCode": "CZK",
91
- "event": {
92
- "region": "MAIN",
93
- "id": "115169112-4870.1657003407533",
94
- "code": "purchase"
95
- },
96
- "session": {
97
- "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36",
98
- "ip": "89.177.126.237",
99
- "referrer": "https://crossmasters.com/"
100
- },
101
- "referrer": "https://crossmasters.com/",
102
- "permissions": [],
103
- "identity": {
104
- "piano": {
105
- "id": "1657003393413.319297501"
106
- }
107
- },
108
- "publisher": {
109
- "code": "mhubcloud.com",
110
- "tm": "GTM-N7K9L4X",
111
- "tmv": "494"
112
- },
113
- "$schema": "/mhub/purchase",
114
- "id": "20162351",
115
- "revenue": 440,
116
- "products": [
117
- {
118
- "id": "Car",
119
- "price": 440,
120
- "quantity": 1
121
- }
122
- ],
123
- "enqueuedAt": 1657003409370,
124
- "ads": [{"adPlatform":"cjaffiliate","adCodes":{"cjevent":"816f5670dbf52c3dc27a7e849903c327d705ef643993fbab3"},"visitAt":1658392668000}]
125
- },
126
- {
127
- "currencyCode": "CZK",
128
- "event": {
129
- "region": "MAIN",
130
- "id": "115169112-4870.1657003407533",
131
- "code": "purchase"
132
- },
133
- "session": {
134
- "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36",
135
- "ip": "89.177.126.237",
136
- "referrer": "https://crossmasters.com/"
137
- },
138
- "referrer": "https://crossmasters.com/",
139
- "permissions": [],
140
- "identity": {
141
- "piano": {
142
- "id": "1657003393413.319297501"
143
- }
144
- },
145
- "publisher": {
146
- "code": "mhubcloud.com",
147
- "tm": "GTM-N7K9L4X",
148
- "tmv": "494"
149
- },
150
- "$schema": "/mhub/purchase",
151
- "id": "20162351",
152
- "revenue": 440,
153
- "products": [
154
- {
155
- "id": "Car",
156
- "price": 440,
157
- "quantity": 1
158
- }
159
- ],
160
- "enqueuedAt": 1657003409370,
161
- "ads": [{"adPlatform":"cjaffiliate","adCodes":{"cjevent":"816f5670dbf52c3dc27a7e849903c327d705ef643993fbab3"},"visitAt":1658392668000}]
162
- }
163
- ];
164
- await test(eventHubMessages);
165
- });
166
86
  })
167
87
 
168
88
  /**