@schibsted/niche-ads
Advanced tools
Comparing version 4.0.4 to 4.1.0
@@ -12,3 +12,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { createContext, useMemo, useRef, useEffect, useCallback } from 'react'; | ||
import { getEventTarget } from '@schibsted/niche-utils'; | ||
import { getEventTarget } from '@schibsted/niche-utils/lib/eventTarget'; | ||
import splitEvery from './utils/splitEvery'; | ||
@@ -23,3 +23,3 @@ import { APPNEXUS_EVENT_TYPES, clearRequest, defineTag, getAdId, getUserId, isASTLoaded, loadTags, offEvent, onEvent, setPageOpts, setUpAPNObject, subscribeToASTLoad, } from './utils/appnexus'; | ||
const AdContext = createContext({}); | ||
const APPNEXUS_PLACEMENTS_PER_REQUEST_LIMIT = 12; | ||
const APPNEXUS_PLACEMENTS_PER_REQUEST_LIMIT = 6; | ||
const buildKeywords = (cfg, device, pageType) => (Object.assign(Object.assign(Object.assign({}, cfg.common), cfg[device].common), cfg[device][pageType])); | ||
@@ -26,0 +26,0 @@ function cleanUpPlacement(targetId) { |
@@ -19,3 +19,3 @@ export namespace APPNEXUS_EVENT_TYPES { | ||
export function clearRequest(): any; | ||
export function loadTags(): void; | ||
export function loadTags(): any; | ||
export function refresh(targetIds: any): any; | ||
@@ -22,0 +22,0 @@ export function showTag(targetId: any): any; |
@@ -52,5 +52,3 @@ const apntagLoadSubscribers = []; | ||
export const clearRequest = () => addToQueue(() => apntag.clearRequest()); | ||
export const loadTags = () => { | ||
setTimeout(() => addToQueue(() => apntag.loadTags()), 0); | ||
}; | ||
export const loadTags = () => addToQueue(() => apntag.loadTags()); | ||
export const refresh = (targetIds) => addToQueue(() => apntag.refresh(targetIds)); | ||
@@ -57,0 +55,0 @@ export const showTag = (targetId) => addToQueue(() => apntag.showTag(targetId)); |
{ | ||
"name": "@schibsted/niche-ads", | ||
"version": "4.0.4", | ||
"version": "4.1.0", | ||
"description": "Package containing ads logic reappearing across our projects", | ||
@@ -32,6 +32,6 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@schibsted/niche-utils": "^0.0.8", | ||
"@schibsted/niche-utils": "^0.1.0", | ||
"glimr-sdk": "^3.3.3" | ||
}, | ||
"gitHead": "bb60de81463d219aa458a091869788232986e092" | ||
"gitHead": "f59461556030b3d9fa02f11eea523e6da05a59c7" | ||
} |
import { createContext, useMemo, useRef, useEffect, useCallback } from 'react'; | ||
import { getEventTarget } from '@schibsted/niche-utils'; | ||
import { getEventTarget } from '@schibsted/niche-utils/lib/eventTarget'; | ||
import splitEvery from './utils/splitEvery'; | ||
@@ -27,3 +27,3 @@ import { | ||
const AdContext = createContext({}); | ||
const APPNEXUS_PLACEMENTS_PER_REQUEST_LIMIT = 12; | ||
const APPNEXUS_PLACEMENTS_PER_REQUEST_LIMIT = 6; | ||
@@ -30,0 +30,0 @@ const buildKeywords = (cfg, device, pageType) => ({ |
@@ -68,5 +68,3 @@ const apntagLoadSubscribers = []; | ||
export const clearRequest = () => addToQueue(() => apntag.clearRequest()); | ||
export const loadTags = () => { | ||
setTimeout(() => addToQueue(() => apntag.loadTags()), 0); | ||
}; | ||
export const loadTags = () => addToQueue(() => apntag.loadTags()); | ||
export const refresh = (targetIds) => addToQueue(() => apntag.refresh(targetIds)); | ||
@@ -73,0 +71,0 @@ export const showTag = (targetId) => addToQueue(() => apntag.showTag(targetId)); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57156
1124
+ Added@schibsted/niche-utils@0.1.2(transitive)
- Removed@schibsted/niche-utils@0.0.8(transitive)