Skip to content

Commit

Permalink
fixed naming to uid helper
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysmithTTD committed Nov 26, 2024
1 parent 0319500 commit bd95942
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/euidSdk.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EventType, CallbackHandler } from './callbackManager';
import { CallbackContainer, IdHelper, sdkAssertErrorText, SdkBase, SDKSetup } from './sdkBase';
import { CallbackContainer, UIDHelper, sdkAssertErrorText, SdkBase, SDKSetup } from './sdkBase';
import { ProductDetails } from './product';
import { UidSecureSignalProviderType } from './secureSignal_types';
import { loadConfig } from './configManager';
Expand Down Expand Up @@ -55,7 +55,7 @@ export class EUID extends SdkBase {
declare global {
interface Window {
__euid: EUID | SDKSetup | undefined;
__euidHelper: IdHelper | undefined;
__euidHelper: UIDHelper | undefined;
__euidSecureSignalProvider?: UidSecureSignalProviderType;
}
}
Expand All @@ -81,7 +81,7 @@ export function __euidInternalHandleScriptLoad() {
const callbacks = window?.__euid?.callbacks || [];
const callbackContainer: CallbackContainer = {};
window.__euid = new EUID(callbacks, callbackContainer);
window.__euidHelper = new IdHelper();
window.__euidHelper = new UIDHelper();
if (callbackContainer.callback) callbackContainer.callback();
bootstrapInit();
}
Expand Down
2 changes: 1 addition & 1 deletion src/sdkBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type SDKSetup = {
};
export type CallbackContainer = { callback?: () => void };

export class IdHelper {
export class UIDHelper {
public normalizeEmail(email: string) {
return normalizeEmail(email);
}
Expand Down
6 changes: 3 additions & 3 deletions src/uid2Sdk.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EventType, CallbackHandler } from './callbackManager';
import { CallbackContainer, IdHelper, sdkAssertErrorText, SdkBase, SDKSetup } from './sdkBase';
import { CallbackContainer, UIDHelper, sdkAssertErrorText, SdkBase, SDKSetup } from './sdkBase';
import { ProductDetails } from './product';
import { loadConfig } from './configManager';
import { UidSecureSignalProviderType } from './secureSignal_types';
Expand Down Expand Up @@ -55,7 +55,7 @@ export class UID2 extends SdkBase {
declare global {
interface Window {
__uid2: UID2 | SDKSetup | undefined;
__uid2Helper: IdHelper | undefined;
__uid2Helper: UIDHelper | undefined;
__uid2SecureSignalProvider?: UidSecureSignalProviderType;
}
}
Expand All @@ -82,7 +82,7 @@ export function __uid2InternalHandleScriptLoad() {
const callbacks = window?.__uid2?.callbacks || [];
const callbackContainer: CallbackContainer = {};
window.__uid2 = new UID2(callbacks, callbackContainer);
window.__uid2Helper = new IdHelper();
window.__uid2Helper = new UIDHelper();
if (callbackContainer.callback) callbackContainer.callback();
bootstrapInit();
}
Expand Down

0 comments on commit bd95942

Please sign in to comment.