From e165632f63917909862e5bef1c7e413e91a3ab2e Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Mon, 4 Oct 2021 15:12:36 +0530 Subject: [PATCH] fix(tracker) - this._debug err, typo --- tracker/tracker-axios/README.md | 4 ++-- tracker/tracker-axios/src/index.ts | 6 +++--- tracker/tracker-fetch/README.md | 4 ++-- tracker/tracker-fetch/src/index.ts | 6 +++--- tracker/tracker/src/main/app/index.ts | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tracker/tracker-axios/README.md b/tracker/tracker-axios/README.md index 3175f3789..068fe3190 100644 --- a/tracker/tracker-axios/README.md +++ b/tracker/tracker-axios/README.md @@ -31,7 +31,7 @@ Options: failuresOnly: boolean; // default: false captureWhen: (AxiosRequestConfig) => boolean; // default: () => true sessionTokenHeader: string; // default: undefined - ingoreHeaders: Array | boolean, // default [ 'Cookie', 'Set-Cookie', 'Authorization' ] + ignoreHeaders: Array | boolean, // default [ 'Cookie', 'Set-Cookie', 'Authorization' ] } ``` By default plugin connects to the static `axios` instance, but you can specify one with the `instance` option. @@ -42,4 +42,4 @@ Set `failuresOnly` option to `true` if you want to record only failed requests, In case you use [OpenReplay integrations (sentry, bugsnag or others)](https://docs.openreplay.com/integrations), you can use `sessionTokenHeader` option to specify the header name. This header will be appended automatically to the each axios request and will contain OpenReplay session identificator value. -You can define list of headers that you don't want to capture with the `ingoreHeaders` options. Set its value to `false` if you want to catch them all (`true` if opposite). By default plugin ignores the list of headers that might be sensetive such as `[ 'Cookie', 'Set-Cookie', 'Authorization' ]`. +You can define list of headers that you don't want to capture with the `ignoreHeaders` options. Set its value to `false` if you want to catch them all (`true` if opposite). By default plugin ignores the list of headers that might be sensetive such as `[ 'Cookie', 'Set-Cookie', 'Authorization' ]`. diff --git a/tracker/tracker-axios/src/index.ts b/tracker/tracker-axios/src/index.ts index 9a7420a26..01eb79dca 100644 --- a/tracker/tracker-axios/src/index.ts +++ b/tracker/tracker-axios/src/index.ts @@ -9,7 +9,7 @@ export interface Options { instance: AxiosInstance; failuresOnly: boolean; captureWhen: (AxiosRequestConfig) => boolean; - ingoreHeaders: Array | boolean; + ignoreHeaders: Array | boolean; } export default function(opts: Partial = {}) { @@ -18,7 +18,7 @@ export default function(opts: Partial = {}) { instance: axios, failuresOnly: false, captureWhen: () => true, - ingoreHeaders: [ 'Cookie', 'Set-Cookie', 'Authorization' ], + ignoreHeaders: [ 'Cookie', 'Set-Cookie', 'Authorization' ], }, opts, ); @@ -27,7 +27,7 @@ export default function(opts: Partial = {}) { return; } - const ihOpt = options.ingoreHeaders + const ihOpt = options.ignoreHeaders const isHIgnoring = Array.isArray(ihOpt) ? name => ihOpt.includes(name) : () => ihOpt diff --git a/tracker/tracker-fetch/README.md b/tracker/tracker-fetch/README.md index e16980efc..b7fca2e4b 100644 --- a/tracker/tracker-fetch/README.md +++ b/tracker/tracker-fetch/README.md @@ -33,7 +33,7 @@ Options: { failuresOnly: boolean, // default false sessionTokenHeader: string | undefined, // default undefined - ingoreHeaders: Array | boolean, // default [ 'Cookie', 'Set-Cookie', 'Authorization' ] + ignoreHeaders: Array | boolean, // default [ 'Cookie', 'Set-Cookie', 'Authorization' ] } ``` @@ -42,5 +42,5 @@ Set `failuresOnly` option to `true` if you want to record only requests with the In case you use [OpenReplay integrations (sentry, bugsnag or others)](https://docs.openreplay.com/integrations), you can use `sessionTokenHeader` option to specify the header name. This header will be appended automatically to the each fetch request and will contain OpenReplay session identificator value. -You can define list of headers that you don't want to capture with the `ingoreHeaders` options. Set its value to `false` if you want to catch them all (`true` if opposite). By default plugin ignores the list of headers that might be sensetive such as `[ 'Cookie', 'Set-Cookie', 'Authorization' ]`. +You can define list of headers that you don't want to capture with the `ignoreHeaders` options. Set its value to `false` if you want to catch them all (`true` if opposite). By default plugin ignores the list of headers that might be sensetive such as `[ 'Cookie', 'Set-Cookie', 'Authorization' ]`. diff --git a/tracker/tracker-fetch/src/index.ts b/tracker/tracker-fetch/src/index.ts index a411d29d6..fbce7ac31 100644 --- a/tracker/tracker-fetch/src/index.ts +++ b/tracker/tracker-fetch/src/index.ts @@ -4,7 +4,7 @@ export interface Options { sessionTokenHeader?: string; replaceDefault: boolean; // overrideDefault ? failuresOnly: boolean; - ingoreHeaders: Array | boolean; + ignoreHeaders: Array | boolean; } export default function(opts: Partial = {}) { @@ -12,7 +12,7 @@ export default function(opts: Partial = {}) { { replaceDefault: false, failuresOnly: false, - ingoreHeaders: [ 'Cookie', 'Set-Cookie', 'Authorization' ], + ignoreHeaders: [ 'Cookie', 'Set-Cookie', 'Authorization' ], }, opts, ); @@ -22,7 +22,7 @@ export default function(opts: Partial = {}) { return window.fetch; } - const ihOpt = options.ingoreHeaders + const ihOpt = options.ignoreHeaders const isHIgnoring = Array.isArray(ihOpt) ? name => ihOpt.includes(name) : () => ihOpt diff --git a/tracker/tracker/src/main/app/index.ts b/tracker/tracker/src/main/app/index.ts index b52359dec..b50bb5731 100644 --- a/tracker/tracker/src/main/app/index.ts +++ b/tracker/tracker/src/main/app/index.ts @@ -164,7 +164,7 @@ export default class App { try { fn.apply(this, args); } catch (e) { - this._debug("safe_fn_call", e) + app._debug("safe_fn_call", e) // time: timestamp(), // name: e.name, // message: e.message,