Skip to content

Commit

Permalink
return methods only instead of entire class
Browse files Browse the repository at this point in the history
  • Loading branch information
mchoun committed Oct 18, 2024
1 parent c718c95 commit 295d091
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/three-domain-secure/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ import {

export const ThreeDomainSecureClient: LazyExport<ThreeDomainSecureComponentInterface> =
{
__get__: () =>
protectedExport(
new ThreeDomainSecureComponent({
logger: getLogger(),
sdkConfig: {
sdkToken: getSDKToken(),
},
})
),
__get__: () => {
const threeDomainSecureInstance = new ThreeDomainSecureComponent({
logger: getLogger(),
sdkConfig: {
sdkToken: getSDKToken(),
},
});
return protectedExport({
isEligible: () => threeDomainSecureInstance.isEligible(),
show: () => threeDomainSecureInstance.show(),
});
},
};

0 comments on commit 295d091

Please sign in to comment.