Skip to content

Commit

Permalink
Updates core-js to version 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
barslev committed Mar 16, 2020
1 parent 2db8ecf commit a731dce
Show file tree
Hide file tree
Showing 64 changed files with 96 additions and 100 deletions.
4 changes: 2 additions & 2 deletions modules/1ad4goodBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as utils from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
import find from 'core-js/library/fn/array/find.js';
import includes from 'core-js/library/fn/array/includes.js';
import find from 'core-js-pure/features/array/find';
import includes from 'core-js-pure/features/array/includes';

const BIDDER_CODE = '1ad4good';
const URL = 'https://hb.1ad4good.org/prebid';
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/library/fn/array/find.js';
import find from 'core-js-pure/features/array/find';
import * as utils from '../src/utils.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import { loadExternalScript } from '../src/adloader.js'
Expand Down
4 changes: 2 additions & 2 deletions modules/adkernelBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as utils from '../src/utils.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import find from 'core-js/library/fn/array/find.js';
import includes from 'core-js/library/fn/array/includes.js';
import find from 'core-js-pure/features/array/find';
import includes from 'core-js-pure/features/array/includes';
import {parse as parseUrl} from '../src/url.js';

/*
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/library/fn/array/find.js';
import findIndex from 'core-js/library/fn/array/find-index.js';
import find from 'core-js-pure/features/array/find';
import findIndex from 'core-js-pure/features/array/find-index';

// Events used in adomik analytics adapter
const auctionInit = CONSTANTS.EVENTS.AUCTION_INIT;
Expand Down
6 changes: 3 additions & 3 deletions modules/adpod.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ 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/library/fn/set.js';
import find from 'core-js/library/fn/array/find.js';
import Set from 'core-js-pure/features/set';
import find from 'core-js-pure/features/array/find';
import { auctionManager } from '../src/auctionManager.js';
import CONSTANTS from '../src/constants.json';

const from = require('core-js/library/fn/array/from.js');
const from = require('core-js-pure/features/array/from');

const TARGETING_KEY_PB_CAT_DUR = 'hb_pb_cat_dur';
const TARGETING_KEY_CACHE_ID = 'hb_cache_id';
Expand Down
2 changes: 1 addition & 1 deletion modules/adtelligentBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as utils from '../src/utils.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import {VIDEO, BANNER} from '../src/mediaTypes.js';
import {Renderer} from '../src/Renderer.js';
import find from 'core-js/library/fn/array/find.js';
import find from 'core-js-pure/features/array/find';

const URL = 'https://ghb.adtelligent.com/auction/';
const OUTSTREAM_SRC = 'https://player.adtelligent.com/outstream-unit/2.01/outstream.min.js';
Expand Down
4 changes: 2 additions & 2 deletions modules/advangelistsBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { parse as parseUrl } from '../src/url.js';
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/library/fn/array/find.js';
import includes from 'core-js/library/fn/array/includes.js';
import find from 'core-js-pure/features/array/find';
import includes from 'core-js-pure/features/array/includes';

const ADAPTER_VERSION = '1.0';
const BIDDER_CODE = 'advangelists';
Expand Down
2 changes: 1 addition & 1 deletion modules/adxcgBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as utils from '../src/utils.js'
import * as url from '../src/url.js'
import { registerBidder } from '../src/adapters/bidderFactory.js'
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js'
import includes from 'core-js/library/fn/array/includes.js'
import includes from 'core-js-pure/features/array/includes'

/**
* Adapter for requesting bids from adxcg.net
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 * as utils from '../src/utils.js';
import { format } from '../src/url.js';
// import { config } from '../src/config.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import find from 'core-js/library/fn/array/find.js';
import find from 'core-js-pure/features/array/find';

const VERSION = '1.0';
const BIDDER_CODE = 'adyoulike';
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/library/fn/array/find.js';
import includes from 'core-js/library/fn/array/includes.js';
import find from 'core-js-pure/features/array/find';
import includes from 'core-js-pure/features/array/includes';
import { OUTSTREAM, INSTREAM } from '../src/video.js';

const BIDDER_CODE = 'appnexus';
Expand Down
4 changes: 2 additions & 2 deletions modules/audienceNetworkBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { formatQS } from '../src/url.js';
import { generateUUID, deepAccess, convertTypes } from '../src/utils.js';
import findIndex from 'core-js/library/fn/array/find-index.js';
import includes from 'core-js/library/fn/array/includes.js';
import findIndex from 'core-js-pure/features/array/find-index';
import includes from 'core-js-pure/features/array/includes';

const code = 'audienceNetwork';
const currency = 'USD';
Expand Down
4 changes: 2 additions & 2 deletions modules/beachfrontBidAdapter.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 } from '../src/adapters/bidderFactory.js';
import { Renderer } from '../src/Renderer.js';
import { VIDEO, BANNER } from '../src/mediaTypes.js';
import find from 'core-js/library/fn/array/find.js';
import includes from 'core-js/library/fn/array/includes.js';
import find from 'core-js-pure/features/array/find';
import includes from 'core-js-pure/features/array/includes';

const ADAPTER_VERSION = '1.9';
const ADAPTER_NAME = 'BFIO_PREBID';
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 * as utils from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE } from '../src/mediaTypes.js';
import find from 'core-js/library/fn/array/find.js';
import find from 'core-js-pure/features/array/find';

const BIDDER_CODE = 'bridgewell';
const REQUEST_ENDPOINT = 'https://prebid.scupio.com/recweb/prebid.aspx?cb=' + Math.random();
Expand Down
4 changes: 2 additions & 2 deletions modules/consentManagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import * as utils from '../src/utils.js';
import { config } from '../src/config.js';
import { gdprDataHandler } from '../src/adapterManager.js';
import includes from 'core-js/library/fn/array/includes.js';
import strIncludes from 'core-js/library/fn/string/includes.js';
import includes from 'core-js-pure/features/array/includes';
import strIncludes from 'core-js-pure/features/string/includes';

const DEFAULT_CMP = 'iab';
const DEFAULT_CONSENT_TIMEOUT = 10000;
Expand Down
2 changes: 1 addition & 1 deletion modules/criteoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { config } from '../src/config.js';
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
import { parse } from '../src/url.js';
import * as utils from '../src/utils.js';
import find from 'core-js/library/fn/array/find.js';
import find from 'core-js-pure/features/array/find';
import { verify } from 'criteo-direct-rsa-validate/build/verify.js';

export const ADAPTER_VERSION = 26;
Expand Down
2 changes: 1 addition & 1 deletion modules/emx_digitalBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as utils from '../src/utils.js';
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/library/fn/array/includes.js';
import includes from 'core-js-pure/features/array/includes';
import {parse as parseUrl} from '../src/url.js';

const BIDDER_CODE = 'emx_digital';
Expand Down
2 changes: 1 addition & 1 deletion modules/gumgumBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as utils from '../src/utils.js'

import { config } from '../src/config.js'
import { BANNER, VIDEO } from '../src/mediaTypes.js';
import includes from 'core-js/library/fn/array/includes.js';
import includes from 'core-js-pure/features/array/includes';
import { registerBidder } from '../src/adapters/bidderFactory.js'

const BIDDER_CODE = 'gumgum'
Expand Down
4 changes: 2 additions & 2 deletions modules/ixBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as utils from '../src/utils.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
import { config } from '../src/config.js';
import find from 'core-js/library/fn/array/find.js';
import isInteger from 'core-js/library/fn/number/is-integer.js';
import find from 'core-js-pure/features/array/find';
import isInteger from 'core-js-pure/features/number/is-integer';
import { registerBidder } from '../src/adapters/bidderFactory.js';

const BIDDER_CODE = 'ix';
Expand Down
2 changes: 1 addition & 1 deletion modules/livewrappedBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as utils from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { config } from '../src/config.js';
import find from 'core-js/library/fn/array/find.js';
import find from 'core-js-pure/features/array/find';
import { BANNER, NATIVE } from '../src/mediaTypes.js';

const BIDDER_CODE = 'livewrapped';
Expand Down
2 changes: 1 addition & 1 deletion modules/nextrollBidAdapter.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 { BANNER } from '../src/mediaTypes.js';
import { parse as parseUrl } from '../src/url.js';

import find from 'core-js/library/fn/array/find.js';
import find from 'core-js-pure/features/array/find';

const BIDDER_CODE = 'nextroll';
const BIDDER_ENDPOINT = 'https://d.adroll.com/bid/prebid/';
Expand Down
4 changes: 2 additions & 2 deletions modules/prebidServerBidAdapter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import { VIDEO, NATIVE } from '../../src/mediaTypes.js';
import { processNativeAdUnitParams } from '../../src/native.js';
import { isValid } from '../../src/adapters/bidderFactory.js';
import events from '../../src/events.js';
import includes from 'core-js/library/fn/array/includes.js';
import includes from 'core-js-pure/features/array/includes';
import { S2S_VENDORS } from './config.js';
import { ajax } from '../../src/ajax.js';
import find from 'core-js/library/fn/array/find.js';
import find from 'core-js-pure/features/array/find';

const getConfig = config.getConfig;

Expand Down
2 changes: 1 addition & 1 deletion modules/roxotAnalyticsAdapter.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import adapter from '../src/AnalyticsAdapter.js';
import CONSTANTS from '../src/constants.json';
import adapterManager from '../src/adapterManager.js';
import includes from 'core-js/library/fn/array/includes.js';
import includes from 'core-js-pure/features/array/includes';
import {ajaxBuilder} from '../src/ajax.js';

const utils = require('../src/utils.js');
Expand Down
2 changes: 1 addition & 1 deletion modules/rtbhouseBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as utils from '../src/utils.js';
import { BANNER, NATIVE } from '../src/mediaTypes.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import includes from 'core-js/library/fn/array/includes.js';
import includes from 'core-js-pure/features/array/includes';

const BIDDER_CODE = 'rtbhouse';
const REGIONS = ['prebid-eu', 'prebid-us', 'prebid-asia'];
Expand Down
2 changes: 1 addition & 1 deletion modules/sigmoidAnalyticsAdapter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Sigmoid Analytics Adapter for prebid.js v1.1.0-pre
Updated : 2018-03-28 */
import includes from 'core-js/library/fn/array/includes.js';
import includes from 'core-js-pure/features/array/includes';
import adapter from '../src/AnalyticsAdapter.js';
import CONSTANTS from '../src/constants.json';
import adapterManager from '../src/adapterManager.js';
Expand Down
2 changes: 1 addition & 1 deletion modules/sizeMappingV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import * as utils from '../src/utils.js';
import { processNativeAdUnitParams } from '../src/native.js';
import { adunitCounter } from '../src/adUnits.js';
import includes from 'core-js/library/fn/array/includes.js';
import includes from 'core-js-pure/features/array/includes';
import { getHook } from '../src/hook.js';
import {
adUnitSetupChecks
Expand Down
2 changes: 1 addition & 1 deletion modules/somoBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as utils from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import includes from 'core-js/library/fn/array/includes.js';
import includes from 'core-js-pure/features/array/includes';
import {BANNER, VIDEO} from '../src/mediaTypes.js';

const VIDEO_TARGETING = ['mimes', 'minduration', 'maxduration', 'protocols',
Expand Down
4 changes: 2 additions & 2 deletions modules/sovrnAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import CONSTANTS from '../src/constants.json'
import {ajaxBuilder} from '../src/ajax.js'
import * as utils from '../src/utils.js'
import {config} from '../src/config.js'
import find from 'core-js/library/fn/array/find.js'
import includes from 'core-js/library/fn/array/includes.js'
import find from 'core-js-pure/features/array/find'
import includes from 'core-js-pure/features/array/includes'

const ajax = ajaxBuilder(0)

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

const BID_HOST = 'https://prebid.technoratimedia.com';
const USER_SYNC_HOST = 'https://ad-cdn.technoratimedia.com';
Expand Down
2 changes: 1 addition & 1 deletion modules/userId/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
* @property {(function|undefined)} callback - function that will return an id
*/

import find from 'core-js/library/fn/array/find.js';
import find from 'core-js-pure/features/array/find';
import {config} from '../../src/config.js';
import events from '../../src/events.js';
import * as utils from '../../src/utils.js';
Expand Down
2 changes: 1 addition & 1 deletion modules/viewdeosDXBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as utils from '../src/utils.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import {VIDEO, BANNER} from '../src/mediaTypes.js';
import {Renderer} from '../src/Renderer.js';
import findIndex from 'core-js/library/fn/array/find-index.js';
import findIndex from 'core-js-pure/features/array/find-index';

const URL = 'https://ghb.sync.viewdeos.com/auction/';
const OUTSTREAM_SRC = 'https://player.sync.viewdeos.com/outstream-unit/2.01/outstream.min.js';
Expand Down
4 changes: 2 additions & 2 deletions modules/widespaceBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
parseQueryStringParameters,
parseSizesInput
} from '../src/utils.js';
import includes from 'core-js/library/fn/array/includes.js';
import find from 'core-js/library/fn/array/find.js';
import includes from 'core-js-pure/features/array/includes';
import find from 'core-js-pure/features/array/find';

const BIDDER_CODE = 'widespace';
const WS_ADAPTER_VERSION = '2.0.1';
Expand Down
4 changes: 2 additions & 2 deletions modules/xhbBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Renderer } from '../src/Renderer.js';
import * as utils from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
import find from 'core-js/library/fn/array/find.js';
import includes from 'core-js/library/fn/array/includes.js';
import find from 'core-js-pure/features/array/find';
import includes from 'core-js-pure/features/array/includes';

const BIDDER_CODE = 'xhb';
const URL = 'https://ib.adnxs.com/ut/v3/prebid';
Expand Down
2 changes: 1 addition & 1 deletion modules/yieldlabBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as utils from '../src/utils.js'
import { registerBidder } from '../src/adapters/bidderFactory.js'
import find from 'core-js/library/fn/array/find.js'
import find from 'core-js-pure/features/array/find'
import { VIDEO, BANNER } from '../src/mediaTypes.js'
import { Renderer } from '../src/Renderer.js'

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
},
"dependencies": {
"babel-plugin-transform-object-assign": "^6.22.0",
"core-js": "^2.4.1",
"core-js": "^3.0.0",
"criteo-direct-rsa-validate": "^1.1.0",
"crypto-js": "^3.3.0",
"deep-equal": "^1.0.1",
Expand All @@ -105,6 +105,7 @@
"express": "^4.15.4",
"fun-hooks": "^0.9.8",
"jsencrypt": "^3.0.0-rc.1",
"just-clone": "^1.0.2"
"just-clone": "^1.0.2",
"core-js-pure": "^3.6.4"
}
}
2 changes: 1 addition & 1 deletion src/Renderer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { loadExternalScript } from './adloader.js';
import * as utils from './utils.js';
import find from 'core-js/library/fn/array/find.js';
import find from 'core-js-pure/features/array/find';
const moduleCode = 'outstream';

/**
Expand Down
4 changes: 2 additions & 2 deletions src/adapterManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { newBidder } from './adapters/bidderFactory.js';
import { ajaxBuilder } from './ajax.js';
import { config, RANDOM } from './config.js';
import { hook } from './hook.js';
import includes from 'core-js/library/fn/array/includes.js';
import find from 'core-js/library/fn/array/find.js';
import includes from 'core-js-pure/features/array/includes';
import find from 'core-js-pure/features/array/find';
import { adunitCounter } from './adUnits.js';
import { getRefererInfo } from './refererDetection.js';

Expand Down
2 changes: 1 addition & 1 deletion src/adapters/bidderFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { nativeBidIsValid } from '../native.js';
import { isValidVideoBid } from '../video.js';
import CONSTANTS from '../constants.json';
import events from '../events.js';
import includes from 'core-js/library/fn/array/includes.js';
import includes from 'core-js-pure/features/array/includes';
import { ajax } from '../ajax.js';
import { logWarn, logError, parseQueryStringParameters, delayExecution, parseSizesInput, getBidderRequest, flatten, uniques, timestamp, setDataInLocalStorage, getDataFromLocalStorage, deepAccess, isArray } from '../utils.js';
import { ADPOD } from '../mediaTypes.js';
Expand Down
2 changes: 1 addition & 1 deletion src/adloader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import includes from 'core-js/library/fn/array/includes.js';
import includes from 'core-js-pure/features/array/includes';
import * as utils from './utils.js';

const _requestCache = {};
Expand Down
2 changes: 1 addition & 1 deletion src/auction.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ import { Renderer } from './Renderer.js';
import { config } from './config.js';
import { userSync } from './userSync.js';
import { hook } from './hook.js';
import find from 'core-js/library/fn/array/find.js';
import find from 'core-js-pure/features/array/find';
import { OUTSTREAM } from './video.js';
import { VIDEO } from './mediaTypes.js';

Expand Down
2 changes: 1 addition & 1 deletion src/auctionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import { uniques, flatten, logWarn } from './utils.js';
import { newAuction, getStandardBidderSettings, AUCTION_COMPLETED } from './auction.js';
import find from 'core-js/library/fn/array/find.js';
import find from 'core-js-pure/features/array/find';

const CONSTANTS = require('./constants.json');

Expand Down
Loading

0 comments on commit a731dce

Please sign in to comment.