From eae22931523871e3c2fdaa181dd561a895cc82ee Mon Sep 17 00:00:00 2001 From: Jeremy Sadwith Date: Wed, 12 Apr 2023 15:14:16 -0400 Subject: [PATCH 1/3] Resolving getStorageManager invocation issue --- modules/connectIdSystem.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/connectIdSystem.js b/modules/connectIdSystem.js index 569b99124e1..454711feb0d 100644 --- a/modules/connectIdSystem.js +++ b/modules/connectIdSystem.js @@ -12,6 +12,8 @@ import {getRefererInfo} from '../src/refererDetection.js'; import {getStorageManager} from '../src/storageManager.js'; import {formatQS, isPlainObject, logError, parseUrl} from '../src/utils.js'; import {uspDataHandler} from '../src/adapterManager.js'; +import {MODULE_TYPE_UID} from '../src/activities/modules.js'; + const MODULE_NAME = 'connectId'; const STORAGE_EXPIRY_DAYS = 14; @@ -20,7 +22,7 @@ const PLACEHOLDER = '__PIXEL_ID__'; const UPS_ENDPOINT = `https://ups.analytics.yahoo.com/ups/${PLACEHOLDER}/fed`; const OVERRIDE_OPT_OUT_KEY = 'connectIdOptOut'; const INPUT_PARAM_KEYS = ['pixelId', 'he', 'puid']; -export const storage = getStorageManager({gvlid: VENDOR_ID, moduleName: MODULE_NAME}); +export const storage = getStorageManager({MODULE_TYPE: MODULE_TYPE_UID, moduleName: MODULE_NAME}); /** * @function From b486a95b8736142092a525982e54be698e8b8b3d Mon Sep 17 00:00:00 2001 From: Jeremy Sadwith Date: Wed, 12 Apr 2023 15:18:16 -0400 Subject: [PATCH 2/3] Lint --- modules/connectIdSystem.js | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/connectIdSystem.js b/modules/connectIdSystem.js index 454711feb0d..46c1ede7b96 100644 --- a/modules/connectIdSystem.js +++ b/modules/connectIdSystem.js @@ -14,7 +14,6 @@ import {formatQS, isPlainObject, logError, parseUrl} from '../src/utils.js'; import {uspDataHandler} from '../src/adapterManager.js'; import {MODULE_TYPE_UID} from '../src/activities/modules.js'; - const MODULE_NAME = 'connectId'; const STORAGE_EXPIRY_DAYS = 14; const VENDOR_ID = 25; From 9c384fdac667aba4d1c74ae3b9ce0032c3f20c35 Mon Sep 17 00:00:00 2001 From: Jeremy Sadwith Date: Wed, 12 Apr 2023 15:23:43 -0400 Subject: [PATCH 3/3] MODULE_TYPE -> moduleType --- modules/connectIdSystem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/connectIdSystem.js b/modules/connectIdSystem.js index 46c1ede7b96..82669f12623 100644 --- a/modules/connectIdSystem.js +++ b/modules/connectIdSystem.js @@ -21,7 +21,7 @@ const PLACEHOLDER = '__PIXEL_ID__'; const UPS_ENDPOINT = `https://ups.analytics.yahoo.com/ups/${PLACEHOLDER}/fed`; const OVERRIDE_OPT_OUT_KEY = 'connectIdOptOut'; const INPUT_PARAM_KEYS = ['pixelId', 'he', 'puid']; -export const storage = getStorageManager({MODULE_TYPE: MODULE_TYPE_UID, moduleName: MODULE_NAME}); +export const storage = getStorageManager({moduleType: MODULE_TYPE_UID, moduleName: MODULE_NAME}); /** * @function