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

Rename idWardRtdProvider to anonymisedRtdProvider #10176

Merged
merged 15 commits into from
Apr 26, 2024
Prev Previous commit
Next Next commit
corrected indentions
  • Loading branch information
Pavlo committed Feb 29, 2024
commit dc66c47717288edc4e368cbfca8a2b99146b3a31
28 changes: 14 additions & 14 deletions modules/anonymisedRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ export function createRtdProvider(moduleName) {
}
}
/**
* Try parsing stringified array of segment IDs.
* @param {String} data
*/
* Try parsing stringified array of segment IDs.
* @param {String} data
*/
function tryParse(data) {
try {
return JSON.parse(data);
Expand All @@ -40,12 +40,12 @@ export function createRtdProvider(moduleName) {
}
}
/**
* Real-time data retrieval from Anonymised
* @param {Object} reqBidsConfigObj
* @param {function} onDone
* @param {Object} rtdConfig
* @param {Object} userConsent
*/
* Real-time data retrieval from Anonymised
* @param {Object} reqBidsConfigObj
* @param {function} onDone
* @param {Object} rtdConfig
* @param {Object} userConsent
*/
function getRealTimeData(reqBidsConfigObj, onDone, rtdConfig, userConsent) {
if (rtdConfig && isPlainObject(rtdConfig.params)) {
const cohortStorageKey = rtdConfig.params.cohortStorageKey;
Expand Down Expand Up @@ -95,11 +95,11 @@ export function createRtdProvider(moduleName) {
}
}
/**
* Module init
* @param {Object} provider
* @param {Object} userConsent
* @return {boolean}
*/
* Module init
* @param {Object} provider
* @param {Object} userConsent
* @return {boolean}
*/
function init(provider, userConsent) {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion modules/idWardRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
*/
import { createRtdProvider } from './anonymisedRtdProvider.js';/* eslint prebid/validate-imports: "off" */

export const { getRealTimeData, rtdSubmodule: idWardRtdSubmodule, storage } = createRtdProvider('idWard');
export const { getRealTimeData, rtdSubmodule: idWardRtdSubmodule, storage } = createRtdProvider('idWard');