@betarena/ad-engine 0.0.46 → 0.0.48
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
|
@@ -321,8 +321,7 @@
|
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
// ╭─────
|
|
324
|
-
// │
|
|
325
|
-
// │ ➤ inject of 'global' placements ads (based on global page data)
|
|
324
|
+
// │ CHECK |:| for injection of 'global' placements ads (based on global page data)
|
|
326
325
|
// ╰─────
|
|
327
326
|
if (authorId || authorArticleTagIds.length > 0)
|
|
328
327
|
{
|
|
@@ -454,6 +453,25 @@
|
|
|
454
453
|
}
|
|
455
454
|
}
|
|
456
455
|
}
|
|
456
|
+
// ╭─────
|
|
457
|
+
// │ CHECK |:| for case where no author or tag ids are present (global ads), but the ads are still fetched
|
|
458
|
+
// ╰─────
|
|
459
|
+
else
|
|
460
|
+
{
|
|
461
|
+
for (const [adId, adData] of creativeDataMap)
|
|
462
|
+
{
|
|
463
|
+
new WidgetAdvertSlide
|
|
464
|
+
(
|
|
465
|
+
{
|
|
466
|
+
target: document.body,
|
|
467
|
+
props:
|
|
468
|
+
{
|
|
469
|
+
adData
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
);
|
|
473
|
+
}
|
|
474
|
+
}
|
|
457
475
|
|
|
458
476
|
return;
|
|
459
477
|
}
|
|
@@ -553,7 +571,7 @@
|
|
|
553
571
|
│ ➤ Testing Configuration(s)
|
|
554
572
|
╰─────
|
|
555
573
|
-->
|
|
556
|
-
|
|
574
|
+
<DevInfoBox>
|
|
557
575
|
<p>
|
|
558
576
|
[detected] Device Type :|: {deviceType}
|
|
559
577
|
</p>
|
|
@@ -572,7 +590,7 @@
|
|
|
572
590
|
<p>
|
|
573
591
|
[data] Adverts Fetched Number :|: {creativeDataMap.size}
|
|
574
592
|
</p>
|
|
575
|
-
</DevInfoBox>
|
|
593
|
+
</DevInfoBox>
|
|
576
594
|
|
|
577
595
|
<!--
|
|
578
596
|
╭─────
|
|
@@ -8,8 +8,6 @@ export const
|
|
|
8
8
|
* "http://192.168.1.236:58749"
|
|
9
9
|
* ➤ dev|:|live|:|staging
|
|
10
10
|
* "https://betarena-test-e2748dab12f5.herokuapp.com"
|
|
11
|
-
* ➤ prod|:|live
|
|
12
|
-
* "http://49.13.201.19:8500"
|
|
13
11
|
*/
|
|
14
|
-
betarenaEndpoint = '
|
|
12
|
+
betarenaEndpoint = 'https://betarena-test-e2748dab12f5.herokuapp.com'
|
|
15
13
|
;
|