tracker: fixing failuresOnly option in network (15.0.3 beta)

This commit is contained in:
nick-delirium 2024-12-06 10:16:49 +01:00
parent 2f693cd490
commit e2417ef2be
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0
4 changed files with 9 additions and 2 deletions

View file

@ -1,4 +1,8 @@
# 15.0.2
## 15.0.3
- fixing `failuresOnly` option for network
## 15.0.2
- fixing crossdomain access check

View file

@ -1,7 +1,7 @@
{
"name": "@openreplay/tracker",
"description": "The OpenReplay tracker main package",
"version": "15.0.2",
"version": "15.0.3",
"keywords": [
"logging",
"replay"

View file

@ -136,6 +136,9 @@ export default function (app: App, opts: Partial<Options> = {}) {
setSessionTokenHeader,
sanitize,
(message) => {
if (options.failuresOnly && message.status < 400) {
return
}
app.send(
NetworkRequest(
message.requestType,