Skip to content

Commit 8fdf728

Browse files
committed
feat(js): expose current apiKey on the client instance
This is good for instantiating other information (like insights client) and is consistent with the appId being exposed.
1 parent 07ce2f8 commit 8fdf728

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

templates/javascript/clients/api-single.mustache

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ export function create{{#lambda.titlecase}}{{clientName}}{{/lambda.titlecase}}({
4747
*/
4848
appId: appIdOption,
4949
50+
/**
51+
* The `apiKey` currently in use.
52+
*/
53+
apiKey: apiKeyOption,
54+
5055
/**
5156
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
5257
*/
@@ -177,4 +182,4 @@ export function create{{#lambda.titlecase}}{{clientName}}{{/lambda.titlecase}}({
177182
};
178183
}
179184

180-
{{/operations}}
185+
{{/operations}}

0 commit comments

Comments
 (0)