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

Simplify import usage by exporting from current entry points #67

Merged
merged 3 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/euidSdk.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { EventType, Uid2CallbackHandler } from './uid2CallbackManager';
import { CallbackContainer, ProductDetails, UID2SdkBase, UID2Setup } from './sdkBase';

export * from './exports';

export class EUID extends UID2SdkBase {
private static cookieName = '__euid';
// Deprecated. Integrators should never access the cookie directly!
Expand Down
9 changes: 9 additions & 0 deletions src/exports.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export { EventType, Uid2CallbackHandler } from './uid2CallbackManager';
export {
ClientSideIdentityOptions,
isClientSideIdentityOptionsOrThrow,
} from './uid2ClientSideIdentityOptions';
export { isNormalizedPhone } from './uid2DiiNormalization';
export { isBase64Hash } from './uid2HashedDii';
export { hashAndEncodeIdentifier } from './encoding/hash';
export { CallbackContainer, ProductDetails, UID2SdkBase, UID2Setup } from './sdkBase';
2 changes: 2 additions & 0 deletions src/uid2Sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { isBase64Hash } from './uid2HashedDii';
import { hashAndEncodeIdentifier } from './encoding/hash';
import { CallbackContainer, ProductDetails, UID2SdkBase, UID2Setup } from './sdkBase';

export * from './exports';

export class UID2 extends UID2SdkBase {
private static cookieName = '__uid_2';
// Deprecated. Integrators should never access the cookie directly!
Expand Down
Loading