Skip to content

Commit

Permalink
Multiple Adapters & Modules: replace corejs polyfills with simpler st…
Browse files Browse the repository at this point in the history
…ubs (prebid#7942)

* Replace core-js polyfills with simpler stubs

* Update allowedModules / validateImports

* Move stubs to their own package to keep npm imports working without changes
  • Loading branch information
dgirardi authored Jan 28, 2022
1 parent 61d1f9f commit e75dadd
Show file tree
Hide file tree
Showing 139 changed files with 6,660 additions and 15,188 deletions.
11 changes: 4 additions & 7 deletions allowedModules.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@

const sharedWhiteList = [
'core-js-pure/features/array/find', // no ie11
'core-js-pure/features/array/includes', // no ie11
'core-js-pure/features/set', // ie11 supports Set but not Set#values
'core-js-pure/features/string/includes', // no ie11
'core-js-pure/features/number/is-integer', // no ie11,
'core-js-pure/features/array/from', // no ie11
'core-js-pure/web/url-search-params' // no ie11
'prebidjs-polyfill/arrayFrom',
'prebidjs-polyfill/find',
'prebidjs-polyfill/findIndex',
'prebidjs-polyfill/includes',
];

module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion modules/adagioBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import find from 'core-js-pure/features/array/find.js';
import find from 'prebidjs-polyfill/find.js';
import {
isInteger, isArray, deepAccess, mergeDeep, logWarn, logInfo, logError, getWindowTop, getWindowSelf, generateUUID, _map,
getDNT, parseUrl, getUniqueIdentifierStr, isNumber, cleanObj, isFn, inIframe, deepClone, getGptSlotInfoForAdUnitCode
Expand Down
4 changes: 2 additions & 2 deletions modules/adbookpspBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import includes from 'core-js-pure/features/array/includes.js';
import find from 'core-js-pure/features/array/find';
import includes from 'prebidjs-polyfill/includes.js';
import find from 'prebidjs-polyfill/find.js';
import { config } from '../src/config.js';
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
import { getStorageManager } from '../src/storageManager.js';
Expand Down
2 changes: 1 addition & 1 deletion modules/adhashBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { registerBidder } from '../src/adapters/bidderFactory.js';
import includes from 'core-js-pure/features/array/includes.js';
import includes from 'prebidjs-polyfill/includes.js';
import { BANNER } from '../src/mediaTypes.js';

const VERSION = '1.0';
Expand Down
4 changes: 2 additions & 2 deletions modules/adkernelBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {
} from '../src/utils.js';
import {BANNER, NATIVE, VIDEO} from '../src/mediaTypes.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import find from 'core-js-pure/features/array/find.js';
import includes from 'core-js-pure/features/array/includes.js';
import find from 'prebidjs-polyfill/find.js';
import includes from 'prebidjs-polyfill/includes.js';
import {config} from '../src/config.js';

/*
Expand Down
2 changes: 1 addition & 1 deletion modules/adlooxAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { loadExternalScript } from '../src/adloader.js';
import { auctionManager } from '../src/auctionManager.js';
import { AUCTION_COMPLETED } from '../src/auction.js';
import CONSTANTS from '../src/constants.json';
import find from 'core-js-pure/features/array/find.js';
import find from 'prebidjs-polyfill/find.js';
import {
deepAccess, logInfo, isPlainObject, logError, isStr, isNumber, getGptSlotInfoForAdUnitCode,
isFn, mergeDeep, logMessage, insertElement, logWarn, getUniqueIdentifierStr, parseUrl
Expand Down
2 changes: 1 addition & 1 deletion modules/adlooxRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
getAdUnitSizes, logInfo, isPlainObject, logError, isStr, isInteger, isArray, isBoolean, mergeDeep, deepAccess,
_each, deepSetValue, logWarn, getGptSlotInfoForAdUnitCode
} from '../src/utils.js';
import includes from 'core-js-pure/features/array/includes.js';
import includes from 'prebidjs-polyfill/includes.js';

const MODULE_NAME = 'adloox';
const MODULE = `${MODULE_NAME}RtdProvider`;
Expand Down
2 changes: 1 addition & 1 deletion modules/adnowBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { NATIVE, BANNER } from '../src/mediaTypes.js';
import { parseSizesInput, deepAccess, parseQueryStringParameters } from '../src/utils.js';
import includes from 'core-js-pure/features/array/includes.js';
import includes from 'prebidjs-polyfill/includes.js';

const BIDDER_CODE = 'adnow';
const ENDPOINT = 'https://n.ads3-adnow.com/a';
Expand Down
4 changes: 2 additions & 2 deletions modules/adomikAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import adapter from '../src/AnalyticsAdapter.js';
import CONSTANTS from '../src/constants.json';
import adapterManager from '../src/adapterManager.js';
import { logInfo } from '../src/utils.js';
import find from 'core-js-pure/features/array/find.js';
import findIndex from 'core-js-pure/features/array/find-index.js';
import find from 'prebidjs-polyfill/find.js';
import findIndex from 'prebidjs-polyfill/findIndex.js';

// Events used in adomik analytics adapter
const auctionInit = CONSTANTS.EVENTS.AUCTION_INIT;
Expand Down
2 changes: 1 addition & 1 deletion modules/adotBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Renderer} from '../src/Renderer.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import {BANNER, NATIVE, VIDEO} from '../src/mediaTypes.js';
import {isStr, isArray, isNumber, isPlainObject, isBoolean, logError, replaceAuctionPrice} from '../src/utils.js';
import find from 'core-js-pure/features/array/find.js';
import find from 'prebidjs-polyfill/find.js';
import { config } from '../src/config.js';

const ADAPTER_VERSION = 'v1.0.0';
Expand Down
5 changes: 2 additions & 3 deletions modules/adpod.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ import { setupBeforeHookFnOnce, module } from '../src/hook.js';
import { store } from '../src/videoCache.js';
import { config } from '../src/config.js';
import { ADPOD } from '../src/mediaTypes.js';
import Set from 'core-js-pure/features/set';
import find from 'core-js-pure/features/array/find.js';
import find from 'prebidjs-polyfill/find.js';
import { auctionManager } from '../src/auctionManager.js';
import CONSTANTS from '../src/constants.json';

const from = require('core-js-pure/features/array/from.js');
const from = require('prebidjs-polyfill/arrayFrom.js');

const TARGETING_KEY_PB_CAT_DUR = 'hb_pb_cat_dur';
const TARGETING_KEY_CACHE_ID = 'hb_cache_id';
Expand Down
4 changes: 2 additions & 2 deletions modules/adrelevantisBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
import { config } from '../src/config.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
import find from 'core-js-pure/features/array/find.js';
import includes from 'core-js-pure/features/array/includes.js';
import find from 'prebidjs-polyfill/find.js';
import includes from 'prebidjs-polyfill/includes.js';
import { OUTSTREAM, INSTREAM } from '../src/video.js';

const BIDDER_CODE = 'adrelevantis';
Expand Down
2 changes: 1 addition & 1 deletion modules/adtargetBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { deepAccess, isArray, chunk, _map, flatten, logError, parseSizesInput }
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
import { config } from '../src/config.js';
import find from 'core-js-pure/features/array/find.js';
import find from 'prebidjs-polyfill/find.js';

const ENDPOINT = 'https://ghb.console.adtarget.com.tr/v2/auction/';
const BIDDER_CODE = 'adtarget';
Expand Down
2 changes: 1 addition & 1 deletion modules/adtelligentBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { registerBidder } from '../src/adapters/bidderFactory.js';
import { ADPOD, BANNER, VIDEO } from '../src/mediaTypes.js';
import { config } from '../src/config.js';
import { Renderer } from '../src/Renderer.js';
import find from 'core-js-pure/features/array/find.js';
import find from 'prebidjs-polyfill/find.js';

const subdomainSuffixes = ['', 1, 2];
const AUCTION_PATH = '/v2/auction/';
Expand Down
4 changes: 2 additions & 2 deletions modules/advangelistsBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { isEmpty, deepAccess, isFn, parseSizesInput, generateUUID, parseUrl } fr
import { config } from '../src/config.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { VIDEO, BANNER } from '../src/mediaTypes.js';
import find from 'core-js-pure/features/array/find.js';
import includes from 'core-js-pure/features/array/includes.js';
import find from 'prebidjs-polyfill/find.js';
import includes from 'prebidjs-polyfill/includes.js';

const ADAPTER_VERSION = '1.0';
const BIDDER_CODE = 'advangelists';
Expand Down
2 changes: 1 addition & 1 deletion modules/adxpremiumAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ajax } from '../src/ajax.js';
import adapter from '../src/AnalyticsAdapter.js';
import adapterManager from '../src/adapterManager.js';
import CONSTANTS from '../src/constants.json';
import includes from 'core-js-pure/features/array/includes.js';
import includes from 'prebidjs-polyfill/includes.js';

const analyticsType = 'endpoint';
const defaultUrl = 'https://adxpremium.services/graphql';
Expand Down
2 changes: 1 addition & 1 deletion modules/adyoulikeBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { deepAccess, buildUrl, parseSizesInput } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { config } from '../src/config.js';
import { createEidsArray } from './userId/eids.js';
import find from 'core-js-pure/features/array/find.js';
import find from 'prebidjs-polyfill/find.js';
import {BANNER, NATIVE, VIDEO} from '../src/mediaTypes.js';

const VERSION = '1.0';
Expand Down
2 changes: 1 addition & 1 deletion modules/afpBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import includes from 'core-js-pure/features/array/includes.js'
import includes from 'prebidjs-polyfill/includes.js'
import { registerBidder } from '../src/adapters/bidderFactory.js'
import { Renderer } from '../src/Renderer.js'
import { BANNER, VIDEO } from '../src/mediaTypes.js'
Expand Down
4 changes: 2 additions & 2 deletions modules/appnexusBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { config } from '../src/config.js';
import { registerBidder, getIabSubCategory } from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE, VIDEO, ADPOD } from '../src/mediaTypes.js';
import { auctionManager } from '../src/auctionManager.js';
import find from 'core-js-pure/features/array/find.js';
import includes from 'core-js-pure/features/array/includes.js';
import find from 'prebidjs-polyfill/find.js';
import includes from 'prebidjs-polyfill/includes.js';
import { OUTSTREAM, INSTREAM } from '../src/video.js';
import { getStorageManager } from '../src/storageManager.js';
import { bidderSettings } from '../src/bidderSettings.js';
Expand Down
4 changes: 2 additions & 2 deletions modules/beachfrontBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { config } from '../src/config.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { Renderer } from '../src/Renderer.js';
import { VIDEO, BANNER } from '../src/mediaTypes.js';
import find from 'core-js-pure/features/array/find.js';
import includes from 'core-js-pure/features/array/includes.js';
import find from 'prebidjs-polyfill/find.js';
import includes from 'prebidjs-polyfill/includes.js';

const ADAPTER_VERSION = '1.19';
const ADAPTER_NAME = 'BFIO_PREBID';
Expand Down
2 changes: 1 addition & 1 deletion modules/betweenBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const BIDDER_CODE = 'between';
let ENDPOINT = 'https://ads.betweendigital.com/adjson?t=prebid';
const CODE_TYPES = ['inpage', 'preroll', 'midroll', 'postroll'];

const includes = require('core-js-pure/features/array/includes.js');
const includes = require('prebidjs-polyfill/includes.js');
export const spec = {
code: BIDDER_CODE,
aliases: ['btw'],
Expand Down
2 changes: 1 addition & 1 deletion modules/bidViewability.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import CONSTANTS from '../src/constants.json';
import { logWarn, isFn, triggerPixel } from '../src/utils.js';
import { getGlobal } from '../src/prebidGlobal.js';
import adapterManager, { gdprDataHandler, uspDataHandler } from '../src/adapterManager.js';
import find from 'core-js-pure/features/array/find.js';
import find from 'prebidjs-polyfill/find.js';

const MODULE_NAME = 'bidViewability';
const CONFIG_ENABLED = 'enabled';
Expand Down
2 changes: 1 addition & 1 deletion modules/bluebillywigBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { deepAccess, deepSetValue, deepClone, logWarn, logError } from '../src/utils.js';
import find from 'core-js-pure/features/array/find.js';
import find from 'prebidjs-polyfill/find.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { VIDEO } from '../src/mediaTypes.js';
import { config } from '../src/config.js';
Expand Down
2 changes: 1 addition & 1 deletion modules/bridgewellBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { _each, inIframe, deepSetValue } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE } from '../src/mediaTypes.js';
import find from 'core-js-pure/features/array/find.js';
import find from 'prebidjs-polyfill/find.js';

const BIDDER_CODE = 'bridgewell';
const REQUEST_ENDPOINT = 'https://prebid.scupio.com/recweb/prebid.aspx?cb=';
Expand Down
4 changes: 2 additions & 2 deletions modules/browsiRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import {submodule} from '../src/hook.js';
import {ajaxBuilder} from '../src/ajax.js';
import {loadExternalScript} from '../src/adloader.js';
import {getStorageManager} from '../src/storageManager.js';
import find from 'core-js-pure/features/array/find.js';
import find from 'prebidjs-polyfill/find.js';
import {getGlobal} from '../src/prebidGlobal.js';
import includes from 'core-js-pure/features/array/includes.js';
import includes from 'prebidjs-polyfill/includes.js';

const storage = getStorageManager();

Expand Down
2 changes: 1 addition & 1 deletion modules/cleanmedianetBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {registerBidder} from '../src/adapters/bidderFactory.js';
import {config} from '../src/config.js';
import {Renderer} from '../src/Renderer.js';
import {BANNER, VIDEO} from '../src/mediaTypes.js';
import includes from 'core-js-pure/features/array/includes.js';
import includes from 'prebidjs-polyfill/includes.js';

export const helper = {
getTopWindowDomain: function (url) {
Expand Down
2 changes: 1 addition & 1 deletion modules/connectIdSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import {ajax} from '../src/ajax.js';
import {submodule} from '../src/hook.js';
import {logError, formatQS} from '../src/utils.js';
import includes from 'core-js-pure/features/array/includes.js';
import includes from 'prebidjs-polyfill/includes.js';

const MODULE_NAME = 'connectId';
const VENDOR_ID = 25;
Expand Down
5 changes: 2 additions & 3 deletions modules/consentManagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
import { logInfo, isFn, getAdUnitSizes, logWarn, isStr, isPlainObject, logError, isNumber } from '../src/utils.js';
import { config } from '../src/config.js';
import { gdprDataHandler } from '../src/adapterManager.js';
import includes from 'core-js-pure/features/array/includes.js';
import strIncludes from 'core-js-pure/features/string/includes.js';
import includes from 'prebidjs-polyfill/includes.js';

const DEFAULT_CMP = 'iab';
const DEFAULT_CONSENT_TIMEOUT = 10000;
Expand Down Expand Up @@ -249,7 +248,7 @@ function lookupIabConsent(cmpSuccess, cmpError, hookConfig) {

function readPostMessageResponse(event) {
let cmpDataPkgName = `${apiName}Return`;
let json = (typeof event.data === 'string' && strIncludes(event.data, cmpDataPkgName)) ? JSON.parse(event.data) : event.data;
let json = (typeof event.data === 'string' && includes(event.data, cmpDataPkgName)) ? JSON.parse(event.data) : event.data;
if (json[cmpDataPkgName] && json[cmpDataPkgName].callId) {
let payload = json[cmpDataPkgName];
// TODO - clean up this logic (move listeners?); we have duplicate messages responses because 2 eventlisteners are active from the 2 cmp requests running in parallel
Expand Down
4 changes: 2 additions & 2 deletions modules/craftBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { logError, convertTypes, convertCamelToUnderscore, isArray, deepAccess,
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
import { auctionManager } from '../src/auctionManager.js';
import find from 'core-js-pure/features/array/find.js';
import includes from 'core-js-pure/features/array/includes.js';
import find from 'prebidjs-polyfill/find.js';
import includes from 'prebidjs-polyfill/includes.js';
import { getStorageManager } from '../src/storageManager.js';
import {ajax} from '../src/ajax.js';

Expand Down
2 changes: 1 addition & 1 deletion modules/criteoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {loadExternalScript} from '../src/adloader.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import {config} from '../src/config.js';
import {BANNER, NATIVE, VIDEO} from '../src/mediaTypes.js';
import find from 'core-js-pure/features/array/find.js';
import find from 'prebidjs-polyfill/find.js';
import { verify } from 'criteo-direct-rsa-validate/build/verify.js'; // ref#2
import { getStorageManager } from '../src/storageManager.js';

Expand Down
2 changes: 1 addition & 1 deletion modules/cwireBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
logWarn,
} from '../src/utils.js';
import { Renderer } from '../src/Renderer.js';
import find from 'core-js-pure/features/array/find.js';
import find from 'prebidjs-polyfill/find.js';

// ------------------------------------
const BIDDER_CODE = 'cwire';
Expand Down
2 changes: 1 addition & 1 deletion modules/dailyhuntBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { registerBidder } from '../src/adapters/bidderFactory.js';
import * as mediaTypes from '../src/mediaTypes.js';
import {deepAccess, _map, isEmpty} from '../src/utils.js';
import { ajax } from '../src/ajax.js';
import find from 'core-js-pure/features/array/find.js';
import find from 'prebidjs-polyfill/find.js';
import { OUTSTREAM, INSTREAM } from '../src/video.js';

const BIDDER_CODE = 'dailyhunt';
Expand Down
2 changes: 1 addition & 1 deletion modules/dchain.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import includes from 'core-js-pure/features/array/includes.js';
import includes from 'prebidjs-polyfill/includes.js';
import { config } from '../src/config.js';
import { getHook } from '../src/hook.js';
import { _each, isStr, isArray, isPlainObject, hasOwn, deepClone, deepAccess, logWarn, logError } from '../src/utils.js';
Expand Down
4 changes: 2 additions & 2 deletions modules/emx_digitalBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { isArray, logWarn, logError, parseUrl, deepAccess, isStr, _each, getBidI
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
import { Renderer } from '../src/Renderer.js';
import includes from 'core-js-pure/features/array/includes.js';
import find from 'core-js-pure/features/array/find.js';
import includes from 'prebidjs-polyfill/includes.js';
import find from 'prebidjs-polyfill/find.js';

const BIDDER_CODE = 'emx_digital';
const ENDPOINT = 'hb.emxdgt.com';
Expand Down
1 change: 0 additions & 1 deletion modules/fluctBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { _each, isEmpty } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import URLSearchParams from 'core-js-pure/web/url-search-params'

const BIDDER_CODE = 'fluct';
const END_POINT = 'https://hb.adingo.jp/prebid';
Expand Down
2 changes: 1 addition & 1 deletion modules/gamoshiBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {registerBidder} from '../src/adapters/bidderFactory.js';
import {config} from '../src/config.js';
import {Renderer} from '../src/Renderer.js';
import {BANNER, VIDEO} from '../src/mediaTypes.js';
import includes from 'core-js-pure/features/array/includes.js';
import includes from 'prebidjs-polyfill/includes.js';

const ENDPOINTS = {
'gamoshi': 'https://rtb.gamoshi.io'
Expand Down
4 changes: 2 additions & 2 deletions modules/gdprEnforcement.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import { deepAccess, logWarn, isArray, hasDeviceAccess } from '../src/utils.js';
import { config } from '../src/config.js';
import adapterManager, { gdprDataHandler } from '../src/adapterManager.js';
import find from 'core-js-pure/features/array/find.js';
import includes from 'core-js-pure/features/array/includes.js';
import find from 'prebidjs-polyfill/find.js';
import includes from 'prebidjs-polyfill/includes.js';
import { registerSyncInner } from '../src/adapters/bidderFactory.js';
import { getHook } from '../src/hook.js';
import { validateStorageEnforcement } from '../src/storageManager.js';
Expand Down
2 changes: 1 addition & 1 deletion modules/glomexBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { registerBidder } from '../src/adapters/bidderFactory.js'
import find from 'core-js-pure/features/array/find.js'
import find from 'prebidjs-polyfill/find.js'
import { BANNER } from '../src/mediaTypes.js'

const ENDPOINT = 'https://prebid.mes.glomex.cloud/request-bid'
Expand Down
4 changes: 2 additions & 2 deletions modules/goldbachBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import { config } from '../src/config.js';
import { registerBidder, getIabSubCategory } from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE, VIDEO, ADPOD } from '../src/mediaTypes.js';
import { auctionManager } from '../src/auctionManager.js';
import find from 'core-js-pure/features/array/find.js';
import includes from 'core-js-pure/features/array/includes.js';
import find from 'prebidjs-polyfill/find.js';
import includes from 'prebidjs-polyfill/includes.js';
import { OUTSTREAM, INSTREAM } from '../src/video.js';

const BIDDER_CODE = 'goldbach';
Expand Down
2 changes: 1 addition & 1 deletion modules/gptPreAuction.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { isGptPubadsDefined, isAdUnitCodeMatchingSlot, deepAccess, pick, logInfo } from '../src/utils.js';
import { config } from '../src/config.js';
import { getHook } from '../src/hook.js';
import find from 'core-js-pure/features/array/find.js';
import find from 'prebidjs-polyfill/find.js';

const MODULE_NAME = 'GPT Pre-Auction';
export let _currentConfig = {};
Expand Down
2 changes: 1 addition & 1 deletion modules/gumgumBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { _each, deepAccess, logError, logWarn, parseSizesInput } from '../src/ut

import { config } from '../src/config.js'
import { getStorageManager } from '../src/storageManager.js';
import includes from 'core-js-pure/features/array/includes';
import includes from 'prebidjs-polyfill/includes.js';
import { registerBidder } from '../src/adapters/bidderFactory.js'

const storage = getStorageManager();
Expand Down
Loading

0 comments on commit e75dadd

Please sign in to comment.