Skip to content

Commit

Permalink
feat: [allow SDK to switch between obfuscation modes] (FF-2455) (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoromanovsky committed Jun 20, 2024
1 parent 058b7b2 commit 2215ac8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/client/eppo-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export default class EppoClient implements IEppoClient {
constructor(
private configurationStore: IConfigurationStore<Flag | ObfuscatedFlag>,
private configurationRequestParameters?: FlagConfigurationRequestParameters,
private readonly isObfuscated = false,
private isObfuscated = false,
) {}

public setConfigurationRequestParameters(
Expand All @@ -185,6 +185,10 @@ export default class EppoClient implements IEppoClient {
this.configurationStore = configurationStore;
}

public setIsObfuscated(isObfuscated: boolean) {
this.isObfuscated = isObfuscated;
}

public async fetchFlagConfigurations() {
if (!this.configurationRequestParameters) {
throw new Error(
Expand Down

0 comments on commit 2215ac8

Please sign in to comment.