Skip to content

Commit

Permalink
feat(js): expose current apiKey on the client instance
Browse files Browse the repository at this point in the history
This is good for instantiating other information (like insights client) and is consistent with the appId being exposed.
  • Loading branch information
Haroenv committed Dec 24, 2024
1 parent 07ce2f8 commit 8fdf728
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/javascript/clients/api-single.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ export function create{{#lambda.titlecase}}{{clientName}}{{/lambda.titlecase}}({
*/
appId: appIdOption,
/**
* The `apiKey` currently in use.
*/
apiKey: apiKeyOption,
/**
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
*/
Expand Down Expand Up @@ -177,4 +182,4 @@ export function create{{#lambda.titlecase}}{{clientName}}{{/lambda.titlecase}}({
};
}

{{/operations}}
{{/operations}}

0 comments on commit 8fdf728

Please sign in to comment.