Skip to content

Commit 9da076e

Browse files
UID2 Shared Module: Moved over shared uid2 code from module to library to remove lint error (prebid#13025)
* moved shared code into library * adjusted imports to be from libraries * fixed importws for ajax and utils * renamed folder name
1 parent 3de11a6 commit 9da076e

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

modules/uid2IdSystem_shared.js renamed to libraries/uid2IdSystemShared/uid2IdSystem_shared.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { ajax } from '../src/ajax.js';
2-
import { cyrb53Hash } from '../src/utils.js';
1+
import { ajax } from '../../src/ajax.js'
2+
import { cyrb53Hash } from '../../src/utils.js';
33

44
export const Uid2CodeVersion = '1.1';
55

modules/euidIdSystem.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ import {submodule} from '../src/hook.js';
1010
import {getStorageManager} from '../src/storageManager.js';
1111
import {MODULE_TYPE_UID} from '../src/activities/modules.js';
1212

13-
// RE below lint exception: UID2 and EUID are separate modules, but the protocol is the same and shared code makes sense here.
14-
// eslint-disable-next-line prebid/validate-imports
15-
import { Uid2GetId, Uid2CodeVersion, extractIdentityFromParams } from './uid2IdSystem_shared.js';
13+
import { Uid2GetId, Uid2CodeVersion, extractIdentityFromParams } from '../libraries/uid2IdSystemShared/uid2IdSystem_shared.js';
1614

1715
/**
1816
* @typedef {import('../modules/userId/index.js').Submodule} Submodule

modules/uid2IdSystem.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ import { submodule } from '../src/hook.js';
1010
import {getStorageManager} from '../src/storageManager.js';
1111
import {MODULE_TYPE_UID} from '../src/activities/modules.js';
1212

13-
// RE below lint exception: UID2 and EUID are separate modules, but the protocol is the same and shared code makes sense here.
14-
// eslint-disable-next-line prebid/validate-imports
15-
import { Uid2GetId, Uid2CodeVersion, extractIdentityFromParams } from './uid2IdSystem_shared.js';
13+
import { Uid2GetId, Uid2CodeVersion, extractIdentityFromParams } from '../libraries/uid2IdSystemShared/uid2IdSystem_shared.js';
1614
import {UID2_EIDS} from '../libraries/uid2Eids/uid2Eids.js';
1715

1816
/**

0 commit comments

Comments
 (0)