Skip to content

Commit 913ae68

Browse files
committed
v7.0.16
1 parent d7eea7e commit 913ae68

File tree

8 files changed

+44
-5
lines changed

8 files changed

+44
-5
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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@ export namespace Gleap {
33
sdkKey: string
44
): void;
55
function sendSilentCrashReport(
6+
description: string,
7+
priority?: "LOW" | "MEDIUM" | "HIGH",
8+
excludeData?: {
9+
customData: Boolean;
10+
metaData: Boolean;
11+
attachments: Boolean;
12+
consoleLog: Boolean;
13+
networkLogs: Boolean;
14+
customEventLog: Boolean;
15+
screenshot: Boolean;
16+
replays: Boolean;
17+
}
18+
): void;
19+
function sendSilentCrashReportWithFormData(
620
formData: {
721
[key: string]: string;
822
},

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": "7.0.15",
3+
"version": "7.0.16",
44
"main": "build/index.js",
55
"scripts": {
66
"start": "webpack serve",

published/7.0.16/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: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,30 @@ class Gleap {
354354
* @param {*} excludeData
355355
*/
356356
static sendSilentCrashReport(
357+
description = "",
358+
priority = "MEDIUM",
359+
excludeData = {
360+
screenshot: true,
361+
replays: true,
362+
attachments: true,
363+
}
364+
) {
365+
return Gleap.sendSilentCrashReportWithFormData(
366+
{
367+
description
368+
},
369+
priority,
370+
excludeData
371+
);
372+
}
373+
374+
/**
375+
* Sends a silent feedback report
376+
* @param {*} formData
377+
* @param {*} priority
378+
* @param {*} excludeData
379+
*/
380+
static sendSilentCrashReportWithFormData(
357381
formData,
358382
priority = "MEDIUM",
359383
excludeData = {

src/GleapCrashDetector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default class GleapCrashDetector {
3030
const flowConfig = GleapConfigManager.getInstance().getFlowConfig();
3131
if (flowConfig && typeof flowConfig.enableCrashDetector !== "undefined" && flowConfig.enableCrashDetector) {
3232
if (flowConfig.crashDetectorIsSilent) {
33-
Gleap.sendSilentCrashReport(
33+
Gleap.sendSilentCrashReportWithFormData(
3434
{
3535
errorMessage: message,
3636
url: filename,

src/GleapRageClickDetector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default class GleapRageClickDetector {
5252
const flowConfig = GleapConfigManager.getInstance().getFlowConfig();
5353
if (flowConfig && typeof flowConfig.enableRageClickDetector !== "undefined" && flowConfig.enableRageClickDetector) {
5454
if (flowConfig.rageClickDetectorIsSilent) {
55-
Gleap.sendSilentCrashReport(
55+
Gleap.sendSilentCrashReportWithFormData(
5656
{
5757
description: `Rage click detected.`,
5858
element: elementDescription,

0 commit comments

Comments
 (0)