Xhr open catch (#2023)
* fix tracker fix xhr open event without url object * fix fix up for url objects * beta v up * feat ui add dnd to event filters in search and dashboards (#2024) * feat ui add dnd to event filters in search and dashboards * rm console * fix tracker fix xhr open event without url object * fix fix up for url objects * beta v up
This commit is contained in:
parent
edc068ce09
commit
0912c4fb57
3 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@openreplay/tracker",
|
||||
"description": "The OpenReplay tracker main package",
|
||||
"version": "12.0.6",
|
||||
"version": "12.0.7-beta.1",
|
||||
"keywords": [
|
||||
"logging",
|
||||
"replay"
|
||||
|
|
|
|||
|
|
@ -124,8 +124,8 @@ export class XHRProxyHandler<T extends XMLHttpRequest> implements ProxyHandler<T
|
|||
const method = args[0]
|
||||
const url = args[1]
|
||||
this.item.method = method ? method.toUpperCase() : 'GET'
|
||||
this.item.url = url || ''
|
||||
this.item.name = this.item.url.replace(new RegExp('/*$'), '').split('/').pop() || ''
|
||||
this.item.url = url.toString?.() || ''
|
||||
this.item.name = this.item.url?.replace(new RegExp('/*$'), '').split('/').pop() ?? ''
|
||||
this.item.getData = genGetDataByUrl(this.item.url, {})
|
||||
return targetFunction.apply(target, args)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"alwaysStrict": true,
|
||||
"target": "es2017",
|
||||
"target": "es2020",
|
||||
"module": "es6",
|
||||
"moduleResolution": "nodenext",
|
||||
"esModuleInterop": true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue