Skip to content

Commit

Permalink
readme and new version published
Browse files Browse the repository at this point in the history
  • Loading branch information
dawkaka committed Jun 8, 2024
1 parent 72cb8e5 commit 99cb6db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/apitoolkit.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export type Config = {
clientMetadata?: ClientMetadata;
serviceVersion?: string;
tags?: string[];
moitorAxios?: AxiosInstance;
monitorAxios?: AxiosInstance;
};
type ClientMetadata = {
project_id: string;
Expand Down
4 changes: 2 additions & 2 deletions lib/apitoolkit.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ class APIToolkit {
}
}
};
if (config.moitorAxios) {
(0, apitoolkit_js_1.observeAxiosGlobal)(config.moitorAxios);
if (config.monitorAxios) {
(0, apitoolkit_js_1.observeAxiosGlobal)(config.monitorAxios, undefined, config.redactHeaders, config.redactRequestBody, config.redactResponseBody, this);
}
this.expressMiddleware = this.expressMiddleware.bind(this);
}
Expand Down

0 comments on commit 99cb6db

Please sign in to comment.