@highfivve/ad-tag 5.10.2 → 5.10.3

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/lib/ads/moli.js CHANGED
@@ -417,6 +417,17 @@ export const createMoliTag = (window) => {
417
417
  .then(config => {
418
418
  const validation = config.spa?.validateLocation ?? 'href';
419
419
  if (!allowRequestAds(validation, href, window.location)) {
420
+ state = {
421
+ state: 'spa-finished',
422
+ config: config,
423
+ initialized,
424
+ modules,
425
+ href: window.location.href,
426
+ runtimeConfig: currentState.runtimeConfig,
427
+ nextRuntimeConfig: newEmptyRuntimeConfig(state.runtimeConfig, {
428
+ keepTargeting: true
429
+ })
430
+ };
420
431
  return Promise.reject(`You are trying to refresh ads on the same page, which is not allowed. Using ${validation} for validation.`);
421
432
  }
422
433
  return adService.requestAds(config, nextRuntimeConfig).then(() => config);
@@ -1,3 +1,3 @@
1
1
  export const packageJson = {
2
- version: '5.10.2'
2
+ version: '5.10.3'
3
3
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@highfivve/ad-tag",
3
- "version": "5.10.2",
3
+ "version": "5.10.3",
4
4
  "license": "Apache-2.0",
5
5
  "description": "An ad tag implementation called moli",
6
6
  "main": "./lib/index.js",