@brndts/brndts-ads 1.14.0 → 1.14.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/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -83873,8 +83873,9 @@ var VideoRegionsMaxDurationDecorator = /*#__PURE__*/ function(VideoRegionsDataMa
|
|
83873
83873
|
var regionIds = frame.regions.map(function(r3) {
|
83874
83874
|
return r3.id;
|
83875
83875
|
});
|
83876
|
+
var filtered = void 0;
|
83876
83877
|
if (persistentRegionIds === null) {
|
83877
|
-
|
83878
|
+
filtered = new Set(regionIds);
|
83878
83879
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
83879
83880
|
try {
|
83880
83881
|
for(var _iterator = frame.regions[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
@@ -83896,13 +83897,14 @@ var VideoRegionsMaxDurationDecorator = /*#__PURE__*/ function(VideoRegionsDataMa
|
|
83896
83897
|
}
|
83897
83898
|
}
|
83898
83899
|
} else {
|
83899
|
-
|
83900
|
+
filtered = new Set(regionIds.filter(function(id) {
|
83900
83901
|
return persistentRegionIds.has(id);
|
83901
83902
|
}));
|
83902
83903
|
}
|
83903
|
-
if (
|
83904
|
+
if (filtered.size === 0) {
|
83904
83905
|
break;
|
83905
83906
|
}
|
83907
|
+
persistentRegionIds = new Set(filtered);
|
83906
83908
|
accumulatedDuration += frame.timestamp_end - frame.timestamp_start;
|
83907
83909
|
currentTimestamp = frame.timestamp_end + 1e-3;
|
83908
83910
|
}
|