Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@schibsted/niche-ads

Package Overview
Dependencies
Maintainers
7
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@schibsted/niche-ads - npm Package Compare versions

Comparing version 4.0.4 to 4.1.0

4

lib/AdContext.js

@@ -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));

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc