@blotoutio/providers-universal-ads-sdk 1.65.2 → 1.66.1
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/index.cjs.js +4 -0
- package/index.js +4 -0
- package/index.mjs +4 -0
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -609,6 +609,10 @@ const getUrlMapping = (urlMapping, url) => {
|
|
|
609
609
|
}
|
|
610
610
|
const normalizedUrl = normalize(url);
|
|
611
611
|
const match = mapping.find((item) => {
|
|
612
|
+
// Skip incomplete rows rather than firing a pixel with `undefined` params.
|
|
613
|
+
if (!item.url || !item.tagId || !item.segmentKey) {
|
|
614
|
+
return false;
|
|
615
|
+
}
|
|
612
616
|
const normalizedPattern = normalize(item.url);
|
|
613
617
|
if (normalizedPattern.includes('*')) {
|
|
614
618
|
const regex = wildcardToRegex(normalizedPattern);
|
package/index.js
CHANGED
|
@@ -610,6 +610,10 @@ var ProvidersUniversalAdsSdk = (function () {
|
|
|
610
610
|
}
|
|
611
611
|
const normalizedUrl = normalize(url);
|
|
612
612
|
const match = mapping.find((item) => {
|
|
613
|
+
// Skip incomplete rows rather than firing a pixel with `undefined` params.
|
|
614
|
+
if (!item.url || !item.tagId || !item.segmentKey) {
|
|
615
|
+
return false;
|
|
616
|
+
}
|
|
613
617
|
const normalizedPattern = normalize(item.url);
|
|
614
618
|
if (normalizedPattern.includes('*')) {
|
|
615
619
|
const regex = wildcardToRegex(normalizedPattern);
|
package/index.mjs
CHANGED
|
@@ -607,6 +607,10 @@ const getUrlMapping = (urlMapping, url) => {
|
|
|
607
607
|
}
|
|
608
608
|
const normalizedUrl = normalize(url);
|
|
609
609
|
const match = mapping.find((item) => {
|
|
610
|
+
// Skip incomplete rows rather than firing a pixel with `undefined` params.
|
|
611
|
+
if (!item.url || !item.tagId || !item.segmentKey) {
|
|
612
|
+
return false;
|
|
613
|
+
}
|
|
610
614
|
const normalizedPattern = normalize(item.url);
|
|
611
615
|
if (normalizedPattern.includes('*')) {
|
|
612
616
|
const regex = wildcardToRegex(normalizedPattern);
|