Skip to content

Commit 100c8ae

Browse files
committed
v13.2.1
1 parent defd5fc commit 100c8ae

File tree

6 files changed

+30
-3
lines changed

6 files changed

+30
-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.

index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ export namespace Gleap {
4949
function closeBanner(): void;
5050
function setBannerUrl(bannerUrl: string): void;
5151
function setMaxNetworkRequests(maxRequests: number): void;
52+
function startNetworkLogger(): void;
53+
function setNetworkLoggerBlacklist(networkLogBlacklist: string[]): void;
54+
function setNetworkLoggerFilters(filters: string[]): void;
5255
function registerCustomAction(
5356
customAction: (action: { name: string }) => void
5457
): void;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gleap",
3-
"version": "13.2.0",
3+
"version": "13.2.1",
44
"main": "build/index.js",
55
"scripts": {
66
"start": "webpack serve",

published/13.2.1/index.js

Lines changed: 1 addition & 0 deletions
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/Gleap.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,29 @@ class Gleap {
328328
GleapNetworkIntercepter.getInstance().setMaxRequests(maxRequests);
329329
}
330330

331+
/**
332+
* Sets the maximum network request count.
333+
*/
334+
static startNetworkLogger() {
335+
GleapNetworkIntercepter.getInstance().start();
336+
}
337+
338+
/**
339+
* Sets the network logger blacklist.
340+
* @param {Array} networkLogBlacklist
341+
*/
342+
static setNetworkLoggerBlacklist(networkLogBlacklist) {
343+
GleapNetworkIntercepter.getInstance().setBlacklist(networkLogBlacklist);
344+
}
345+
346+
/**
347+
* Sets the network logger props to ignore.
348+
* @param {Array} filters
349+
*/
350+
static setNetworkLoggerFilters(filters) {
351+
GleapNetworkIntercepter.getInstance().setFilters(filters);
352+
}
353+
331354
/**
332355
* Set custom replay options.
333356
* @param {*} options

0 commit comments

Comments
 (0)