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:
Delirium 2024-04-03 11:09:33 +02:00 committed by GitHub
parent edc068ce09
commit 0912c4fb57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -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"

View file

@ -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)
}

View file

@ -7,7 +7,7 @@
"noImplicitThis": true,
"strictNullChecks": true,
"alwaysStrict": true,
"target": "es2017",
"target": "es2020",
"module": "es6",
"moduleResolution": "nodenext",
"esModuleInterop": true