Skip to content

Commit

Permalink
rename and fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
peixunzhang committed Aug 22, 2024
1 parent ff5ac24 commit a9d23c2
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { logError } from '../../src/utils.js';
import { gdprDataHandler, uspDataHandler, gppDataHandler } from '../../src/adapterManager.js';
import { submodule } from '../../src/hook.js';
import { DEFAULT_AJAX_TIMEOUT, MODULE_NAME, parseRequestedAttributes, composeIdObject, eids, GVLID } from './liveIntentIdSystemShared.js'
import { DEFAULT_AJAX_TIMEOUT, MODULE_NAME, parseRequestedAttributes, composeIdObject, eids, GVLID } from './shared.js'

// reference to the client for the liQHub
let cachedClientRef
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This module adds LiveIntentId to the User ID module
* The {@link module:modules/userId} module is required
* @module modules/liveIntentIdSystem
* @module modules/idSystem
* @requires module:modules/userId
*/
import { triggerPixel, logError } from '../../src/utils.js';
Expand All @@ -11,7 +11,7 @@ import { submodule } from '../../src/hook.js';
import { LiveConnect } from 'live-connect-js'; // eslint-disable-line prebid/validate-imports
import { getStorageManager } from '../../src/storageManager.js';
import { MODULE_TYPE_UID } from '../../src/activities/modules.js';
import { DEFAULT_AJAX_TIMEOUT, MODULE_NAME, composeIdObject, eids, DEFAULT_DELAY, GVLID, parseRequestedAttributes } from './liveIntentIdSystemShared.js'
import { DEFAULT_AJAX_TIMEOUT, MODULE_NAME, composeIdObject, eids, DEFAULT_DELAY, GVLID, parseRequestedAttributes } from './shared.js'

/**
* @typedef {import('../modules/userId/index.js').Submodule} Submodule
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions modules/liveIntentIdSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ function loadModule() {
// eslint-disable-next-line no-constant-condition
if ('$$LIVE_INTENT_MODULE_MODE$$' === 'external') {
// eslint-disable-next-line no-restricted-globals
return require('../libraries/liveIntentIdSystem/liveIntentExternalIdSystem.js')
return require('../libraries/liveIntentId/externalIdSystem.js')
} else {
// eslint-disable-next-line no-restricted-globals
return require('../libraries/liveIntentIdSystem/liveIntentIdSystem.js')
return require('../libraries/liveIntentId/idSystem.js')
}
}

Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/liveIntentExternalIdSystem_spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { liveIntentExternalIdSubmodule, resetSubmodule } from 'libraries/liveIntentIdSystem/liveIntentExternalIdSystem.js';
import { liveIntentExternalIdSubmodule, resetSubmodule } from 'libraries/liveIntentId/externalIdSystem.js';
import { gdprDataHandler, uspDataHandler, gppDataHandler, coppaDataHandler } from '../../../src/adapterManager.js';
import * as refererDetection from '../../../src/refererDetection.js';
const DEFAULT_AJAX_TIMEOUT = 5000
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/liveIntentIdMinimalSystem_spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as utils from 'src/utils.js';
import { gdprDataHandler, uspDataHandler } from '../../../src/adapterManager.js';
import { server } from 'test/mocks/xhr.js';
import { liveIntentIdSubmodule, reset as resetLiveIntentIdSubmodule, storage } from 'modules/liveIntentIdSystem.js';
import { liveIntentIdSubmodule, reset as resetLiveIntentIdSubmodule, storage } from '../../../libraries/liveIntentId/idSystem.js';
import * as refererDetection from '../../../src/refererDetection.js';

const PUBLISHER_ID = '89899';
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/liveIntentIdSystem_spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { liveIntentIdSubmodule, reset as resetLiveIntentIdSubmodule, storage } from 'libraries/liveIntentIdSystem/liveIntentIdSystem.js';
import { liveIntentIdSubmodule, reset as resetLiveIntentIdSubmodule, storage } from 'libraries/liveIntentId/idSystem.js';
import * as utils from 'src/utils.js';
import { gdprDataHandler, uspDataHandler, gppDataHandler, coppaDataHandler } from '../../../src/adapterManager.js';
import { server } from 'test/mocks/xhr.js';
Expand Down

0 comments on commit a9d23c2

Please sign in to comment.