@betarena/ad-engine 0.0.39 → 0.0.41

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": "@betarena/ad-engine",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "private": false,
5
5
  "description": "Betarena ad-engine widget",
6
6
  "keywords": [
@@ -320,7 +320,7 @@
320
320
  {
321
321
  for (const [zoneId, authorIds] of mapZoneToAuthorIds)
322
322
  {
323
- if (!authorId || !authorIds.includes(authorId))
323
+ if (!authorId || (authorIds.length > 0 && !authorIds.includes(authorId)))
324
324
  continue;
325
325
  ;
326
326
 
@@ -384,7 +384,7 @@
384
384
 
385
385
  for (const [zoneId, tagIds] of mapZoneToTagIds)
386
386
  {
387
- if (authorArticleTagIds.filter(x => { return tagIds.includes(x) } ).length == 0)
387
+ if (tagIds.length > 0 && authorArticleTagIds.filter(x => { return tagIds.includes(x) } ).length == 0)
388
388
  continue;
389
389
  ;
390
390
 
@@ -235,6 +235,19 @@
235
235
  noopener
236
236
  noreferrer
237
237
  "
238
+ on:click=
239
+ {
240
+ () =>
241
+ {
242
+ postMod
243
+ (
244
+ `${betarenaEndpoint}/ad/update/click`,
245
+ {
246
+ creativeId: adData.id
247
+ }
248
+ );
249
+ }
250
+ }
238
251
  >
239
252
  <!--
240
253
  <iframe
@@ -317,7 +330,7 @@
317
330
  {
318
331
  creativeId: adData.id
319
332
  }
320
- )
333
+ );
321
334
  }
322
335
  }
323
336
  >