Skip to content

Commit

Permalink
fix(js-sdk): dynamic config
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh committed Apr 30, 2024
1 parent e83d5c1 commit 94258f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/clients/js/template/configuration.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ export class Configuration {
* @type {string}
* @memberof Configuration
*/
private static sdkVersion = "0.3.5";
private static sdkVersion = "{{packageVersion}}";

/**
* provide the full api URL (e.g. `https://api.fga.example`)
* provide the full api URL (e.g. `https://api.{{sampleApiDomain}}`)
*
* @type {string}
* @memberof Configuration
Expand Down Expand Up @@ -178,7 +178,7 @@ export class Configuration {
);
}

if (this.retryParams?.maxRetry && this.retryParams.maxRetry > 15) {
if (this.retryParams?.maxRetry && this.retryParams.maxRetry > {{retryMaxAllowedNumber}}) {
throw new FgaValidationError("Configuration.retryParams.maxRetry exceeds maximum allowed limit of 15");
}

Expand Down

0 comments on commit 94258f7

Please sign in to comment.