Skip to content

Commit ba87bf4

Browse files
committed
Deprecate PUBLIC_DOMAINS in favor of PUBLIC_DOMAINS_SET and update exports
1 parent 60d1820 commit ba87bf4

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

lib/CONST.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -989,8 +989,11 @@ const UI = {
989989
DIALOG_Z_INDEX: 4000,
990990
} as const;
991991

992-
// List of most frequently used public domains
993-
const PUBLIC_DOMAINS_SET = new Set<string>([
992+
/**
993+
* List of most frequently used public domains
994+
* @deprecated use PUBLIC_DOMAINS_SET instead
995+
*/
996+
const PUBLIC_DOMAINS = [
994997
'accountant.com',
995998
'afis.ch',
996999
'aol.com',
@@ -1062,6 +1065,8 @@ const PUBLIC_DOMAINS_SET = new Set<string>([
10621065
'yahoo.com',
10631066
'yahoo.com.br',
10641067
'ymail.com',
1065-
]);
1068+
];
1069+
1070+
const PUBLIC_DOMAINS_SET = new Set<string>(PUBLIC_DOMAINS);
10661071

1067-
export {g_cloudFront, g_cloudFrontImg, CONST, UI, PUBLIC_DOMAINS_SET};
1072+
export {g_cloudFront, g_cloudFrontImg, CONST, UI, PUBLIC_DOMAINS_SET, PUBLIC_DOMAINS};

lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export {default as API} from './API';
33
export {default as APIDeferred} from './APIDeferred';
44
export {default as BrowserDetect} from './BrowserDetect';
5-
export {g_cloudFront, g_cloudFrontImg, CONST, UI, PUBLIC_DOMAINS_SET} from './CONST';
5+
export {g_cloudFront, g_cloudFrontImg, CONST, UI, PUBLIC_DOMAINS_SET, PUBLIC_DOMAINS} from './CONST';
66

77
export {default as Cookie} from './Cookie';
88
export {default as CredentialsWrapper, LOGIN_PARTNER_DETAILS} from './CredentialsWrapper';

0 commit comments

Comments
 (0)