Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CM-610: Update the NPM LiveConnect module version in Prebid #6

Closed
wants to merge 12 commits into from
5 changes: 2 additions & 3 deletions modules/liveIntentIdSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { submodule } from '../src/hook.js';
import { LiveConnect } from 'live-connect-js/esm/initializer.js';
import { gdprDataHandler, uspDataHandler } from '../src/adapterManager.js';
import { getStorageManager } from '../src/storageManager.js';
import { MinimalLiveConnect } from 'live-connect-js/esm/minimal-live-connect.js';

const MODULE_NAME = 'liveIntentId';
export const storage = getStorageManager({gvlid: null, moduleName: MODULE_NAME});
Expand Down Expand Up @@ -113,7 +112,7 @@ function initializeLiveConnect(configParams) {

// The second param is the storage object, LS & Cookie manipulation uses PBJS
// The third param is the ajax and pixel object, the ajax and pixel use PBJS
liveConnect = liveIntentIdSubmodule.getInitializer()(liveConnectConfig, storage, calls);
liveConnect = liveIntentIdSubmodule.getInitializer()(liveConnectConfig, storage, calls, liveIntentIdSubmodule.moduleMode);
if (configParams.emailHash) {
liveConnect.push({ hash: configParams.emailHash })
}
Expand All @@ -140,7 +139,7 @@ export const liveIntentIdSubmodule = {
this.moduleMode = mode
},
getInitializer() {
wi101 marked this conversation as resolved.
Show resolved Hide resolved
return this.moduleMode === 'minimal' ? MinimalLiveConnect : LiveConnect
return LiveConnect
},

/**
Expand Down
30 changes: 16 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"express": "^4.15.4",
"fun-hooks": "^0.9.9",
"just-clone": "^1.0.2",
"live-connect-js": "2.4.0"
"live-connect-js": "file:.yalc/live-connect-js"
},
"optionalDependencies": {
"fsevents": "^2.3.2"
Expand Down