From 99cb6dba8008d52879de9bf0b1f7d467602cfe75 Mon Sep 17 00:00:00 2001 From: dawkaka Date: Sat, 8 Jun 2024 16:20:49 +0000 Subject: [PATCH] readme and new version published --- lib/apitoolkit.d.ts | 2 +- lib/apitoolkit.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/apitoolkit.d.ts b/lib/apitoolkit.d.ts index fbe052d..13467da 100644 --- a/lib/apitoolkit.d.ts +++ b/lib/apitoolkit.d.ts @@ -45,7 +45,7 @@ export type Config = { clientMetadata?: ClientMetadata; serviceVersion?: string; tags?: string[]; - moitorAxios?: AxiosInstance; + monitorAxios?: AxiosInstance; }; type ClientMetadata = { project_id: string; diff --git a/lib/apitoolkit.js b/lib/apitoolkit.js index 41e5ca8..bac6728 100644 --- a/lib/apitoolkit.js +++ b/lib/apitoolkit.js @@ -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); }