Skip to content

Commit

Permalink
Bundle release 6.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
clementFrancon committed Aug 26, 2024
1 parent b33a21e commit c85dcdd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 22 deletions.
12 changes: 2 additions & 10 deletions dist/vast-client-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -2328,6 +2328,7 @@ class VASTParser extends EventEmitter {
- Inline sequence 2,
- Inline sequence 3
*/

if (ads.length === 1 && wrapperSequence !== undefined && wrapperSequence !== null) {
ads[0].sequence = wrapperSequence;
}
Expand Down Expand Up @@ -2366,16 +2367,7 @@ class VASTParser extends EventEmitter {
resolveWrappersPromises.push(resolveWrappersPromise);
});
return Promise.all(resolveWrappersPromises).then(unwrappedAds => {
const resolvedAds = util.flatten(unwrappedAds);
if (!resolvedAds.length && this.remainingAds.length > 0) {
const remainingAdsToResolve = this.remainingAds.shift();
return this.resolveAds(remainingAdsToResolve, {
wrapperDepth,
previousUrl,
url
});
}
return resolvedAds;
return util.flatten(unwrappedAds);
});
}

Expand Down
2 changes: 1 addition & 1 deletion dist/vast-client-node.min.js

Large diffs are not rendered by default.

12 changes: 2 additions & 10 deletions dist/vast-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2324,6 +2324,7 @@ class VASTParser extends EventEmitter {
- Inline sequence 2,
- Inline sequence 3
*/

if (ads.length === 1 && wrapperSequence !== undefined && wrapperSequence !== null) {
ads[0].sequence = wrapperSequence;
}
Expand Down Expand Up @@ -2362,16 +2363,7 @@ class VASTParser extends EventEmitter {
resolveWrappersPromises.push(resolveWrappersPromise);
});
return Promise.all(resolveWrappersPromises).then(unwrappedAds => {
const resolvedAds = util.flatten(unwrappedAds);
if (!resolvedAds.length && this.remainingAds.length > 0) {
const remainingAdsToResolve = this.remainingAds.shift();
return this.resolveAds(remainingAdsToResolve, {
wrapperDepth,
previousUrl,
url
});
}
return resolvedAds;
return util.flatten(unwrappedAds);
});
}

Expand Down
2 changes: 1 addition & 1 deletion dist/vast-client.min.js

Large diffs are not rendered by default.

0 comments on commit c85dcdd

Please sign in to comment.