Skip to content

Commit

Permalink
v6.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Dec 15, 2021
1 parent ee3d2b7 commit 21a33c9
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions demo/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,35 @@ setTimeout(() => {
});
request.send();
}, 2000);

Gleap.setNetworkLogFilters(["Authentication", "pragma"]);

Gleap.attachNetworkLogs([
{
type: "GET",
url: "https://jsonplaceholder.typicode.com/todos/1",
date: "2021-12-15T16:41:37.786",
request: {
payload: "",
headers: {
"cache-control": ["no-cache"],
"content-type": ["application/json; charset=utf-8"],
expires: ["-1"],
pragma: ["no-cache"],
Authentication: ["asdfasdfasdfasdf"],
},
},
duration: 0,
success: null,
response: {
status: 200,
statusText: "",
responseText: {
userId: 1,
id: 1,
title: "delectus aut autem",
completed: false,
},
},
},
]);
2 changes: 1 addition & 1 deletion published/6.4.7/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion published/latest/index.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/NetworkInterception.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class GleapNetworkIntercepter {
Object.values(this.requests)
);

console.log(requests);

if (!this.filters || this.filters.length === 0) {
return requests;
}
Expand All @@ -37,6 +39,8 @@ class GleapNetworkIntercepter {
}
}

console.log(requests);

return requests;
}

Expand Down

0 comments on commit 21a33c9

Please sign in to comment.