Skip to content

Commit

Permalink
v7.0.16
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Jun 7, 2022
1 parent d7eea7e commit 913ae68
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@ export namespace Gleap {
sdkKey: string
): void;
function sendSilentCrashReport(
description: string,
priority?: "LOW" | "MEDIUM" | "HIGH",
excludeData?: {
customData: Boolean;
metaData: Boolean;
attachments: Boolean;
consoleLog: Boolean;
networkLogs: Boolean;
customEventLog: Boolean;
screenshot: Boolean;
replays: Boolean;
}
): void;
function sendSilentCrashReportWithFormData(
formData: {
[key: string]: string;
},
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": "7.0.15",
"version": "7.0.16",
"main": "build/index.js",
"scripts": {
"start": "webpack serve",
Expand Down
1 change: 1 addition & 0 deletions published/7.0.16/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.

24 changes: 24 additions & 0 deletions src/Gleap.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,30 @@ class Gleap {
* @param {*} excludeData
*/
static sendSilentCrashReport(
description = "",
priority = "MEDIUM",
excludeData = {
screenshot: true,
replays: true,
attachments: true,
}
) {
return Gleap.sendSilentCrashReportWithFormData(
{
description
},
priority,
excludeData
);
}

/**
* Sends a silent feedback report
* @param {*} formData
* @param {*} priority
* @param {*} excludeData
*/
static sendSilentCrashReportWithFormData(
formData,
priority = "MEDIUM",
excludeData = {
Expand Down
2 changes: 1 addition & 1 deletion src/GleapCrashDetector.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class GleapCrashDetector {
const flowConfig = GleapConfigManager.getInstance().getFlowConfig();
if (flowConfig && typeof flowConfig.enableCrashDetector !== "undefined" && flowConfig.enableCrashDetector) {
if (flowConfig.crashDetectorIsSilent) {
Gleap.sendSilentCrashReport(
Gleap.sendSilentCrashReportWithFormData(
{
errorMessage: message,
url: filename,
Expand Down
2 changes: 1 addition & 1 deletion src/GleapRageClickDetector.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class GleapRageClickDetector {
const flowConfig = GleapConfigManager.getInstance().getFlowConfig();
if (flowConfig && typeof flowConfig.enableRageClickDetector !== "undefined" && flowConfig.enableRageClickDetector) {
if (flowConfig.rageClickDetectorIsSilent) {
Gleap.sendSilentCrashReport(
Gleap.sendSilentCrashReportWithFormData(
{
description: `Rage click detected.`,
element: elementDescription,
Expand Down

0 comments on commit 913ae68

Please sign in to comment.