fix(tracker) - this._debug err, typo
This commit is contained in:
parent
f44f2273a7
commit
e165632f63
5 changed files with 11 additions and 11 deletions
|
|
@ -31,7 +31,7 @@ Options:
|
|||
failuresOnly: boolean; // default: false
|
||||
captureWhen: (AxiosRequestConfig) => boolean; // default: () => true
|
||||
sessionTokenHeader: string; // default: undefined
|
||||
ingoreHeaders: Array<string> | boolean, // default [ 'Cookie', 'Set-Cookie', 'Authorization' ]
|
||||
ignoreHeaders: Array<string> | 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' ]`.
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ export interface Options {
|
|||
instance: AxiosInstance;
|
||||
failuresOnly: boolean;
|
||||
captureWhen: (AxiosRequestConfig) => boolean;
|
||||
ingoreHeaders: Array<string> | boolean;
|
||||
ignoreHeaders: Array<string> | boolean;
|
||||
}
|
||||
|
||||
export default function(opts: Partial<Options> = {}) {
|
||||
|
|
@ -18,7 +18,7 @@ export default function(opts: Partial<Options> = {}) {
|
|||
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<Options> = {}) {
|
|||
return;
|
||||
}
|
||||
|
||||
const ihOpt = options.ingoreHeaders
|
||||
const ihOpt = options.ignoreHeaders
|
||||
const isHIgnoring = Array.isArray(ihOpt)
|
||||
? name => ihOpt.includes(name)
|
||||
: () => ihOpt
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ Options:
|
|||
{
|
||||
failuresOnly: boolean, // default false
|
||||
sessionTokenHeader: string | undefined, // default undefined
|
||||
ingoreHeaders: Array<string> | boolean, // default [ 'Cookie', 'Set-Cookie', 'Authorization' ]
|
||||
ignoreHeaders: Array<string> | 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' ]`.
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ export interface Options {
|
|||
sessionTokenHeader?: string;
|
||||
replaceDefault: boolean; // overrideDefault ?
|
||||
failuresOnly: boolean;
|
||||
ingoreHeaders: Array<string> | boolean;
|
||||
ignoreHeaders: Array<string> | boolean;
|
||||
}
|
||||
|
||||
export default function(opts: Partial<Options> = {}) {
|
||||
|
|
@ -12,7 +12,7 @@ export default function(opts: Partial<Options> = {}) {
|
|||
{
|
||||
replaceDefault: false,
|
||||
failuresOnly: false,
|
||||
ingoreHeaders: [ 'Cookie', 'Set-Cookie', 'Authorization' ],
|
||||
ignoreHeaders: [ 'Cookie', 'Set-Cookie', 'Authorization' ],
|
||||
},
|
||||
opts,
|
||||
);
|
||||
|
|
@ -22,7 +22,7 @@ export default function(opts: Partial<Options> = {}) {
|
|||
return window.fetch;
|
||||
}
|
||||
|
||||
const ihOpt = options.ingoreHeaders
|
||||
const ihOpt = options.ignoreHeaders
|
||||
const isHIgnoring = Array.isArray(ihOpt)
|
||||
? name => ihOpt.includes(name)
|
||||
: () => ihOpt
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue