Skip to content

Commit 21a33c9

Browse files
committed
v6.4.7
1 parent ee3d2b7 commit 21a33c9

File tree

5 files changed

+39
-3
lines changed

5 files changed

+39
-3
lines changed

build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/main.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,35 @@ setTimeout(() => {
3434
});
3535
request.send();
3636
}, 2000);
37+
38+
Gleap.setNetworkLogFilters(["Authentication", "pragma"]);
39+
40+
Gleap.attachNetworkLogs([
41+
{
42+
type: "GET",
43+
url: "https://jsonplaceholder.typicode.com/todos/1",
44+
date: "2021-12-15T16:41:37.786",
45+
request: {
46+
payload: "",
47+
headers: {
48+
"cache-control": ["no-cache"],
49+
"content-type": ["application/json; charset=utf-8"],
50+
expires: ["-1"],
51+
pragma: ["no-cache"],
52+
Authentication: ["asdfasdfasdfasdf"],
53+
},
54+
},
55+
duration: 0,
56+
success: null,
57+
response: {
58+
status: 200,
59+
statusText: "",
60+
responseText: {
61+
userId: 1,
62+
id: 1,
63+
title: "delectus aut autem",
64+
completed: false,
65+
},
66+
},
67+
},
68+
]);

published/6.4.7/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

published/latest/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/NetworkInterception.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class GleapNetworkIntercepter {
1212
Object.values(this.requests)
1313
);
1414

15+
console.log(requests);
16+
1517
if (!this.filters || this.filters.length === 0) {
1618
return requests;
1719
}
@@ -37,6 +39,8 @@ class GleapNetworkIntercepter {
3739
}
3840
}
3941

42+
console.log(requests);
43+
4044
return requests;
4145
}
4246

0 commit comments

Comments
 (0)