Skip to content

Commit

Permalink
v13.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Jan 31, 2024
1 parent defd5fc commit 100c8ae
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ export namespace Gleap {
function closeBanner(): void;
function setBannerUrl(bannerUrl: string): void;
function setMaxNetworkRequests(maxRequests: number): void;
function startNetworkLogger(): void;
function setNetworkLoggerBlacklist(networkLogBlacklist: string[]): void;
function setNetworkLoggerFilters(filters: string[]): void;
function registerCustomAction(
customAction: (action: { name: string }) => void
): void;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gleap",
"version": "13.2.0",
"version": "13.2.1",
"main": "build/index.js",
"scripts": {
"start": "webpack serve",
Expand Down
1 change: 1 addition & 0 deletions published/13.2.1/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.

23 changes: 23 additions & 0 deletions src/Gleap.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,29 @@ class Gleap {
GleapNetworkIntercepter.getInstance().setMaxRequests(maxRequests);
}

/**
* Sets the maximum network request count.
*/
static startNetworkLogger() {
GleapNetworkIntercepter.getInstance().start();
}

/**
* Sets the network logger blacklist.
* @param {Array} networkLogBlacklist
*/
static setNetworkLoggerBlacklist(networkLogBlacklist) {
GleapNetworkIntercepter.getInstance().setBlacklist(networkLogBlacklist);
}

/**
* Sets the network logger props to ignore.
* @param {Array} filters
*/
static setNetworkLoggerFilters(filters) {
GleapNetworkIntercepter.getInstance().setFilters(filters);
}

/**
* Set custom replay options.
* @param {*} options
Expand Down

0 comments on commit 100c8ae

Please sign in to comment.