@djust-b2b/djust-front-sdk 2.17.2 → 2.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/settings/fetch-instance.js +30 -24
- package/package.json +7 -2
|
@@ -58,30 +58,36 @@ const initialize = (initConfig) => {
|
|
|
58
58
|
"https://39ef5198e24fa0ec7b743c460bd1ca63@o1191347.ingest.us.sentry.io/4508879498575872",
|
|
59
59
|
environment: `${clientConfig.clientName}-${clientConfig.env}`,
|
|
60
60
|
release: `${SDK_VERSION || "unknown"}`,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
61
|
+
tracesSampleRate: 0,
|
|
62
|
+
tracePropagationTargets: [],
|
|
63
|
+
beforeSend(event) {
|
|
64
|
+
if (event.type === "transaction") {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return event;
|
|
68
|
+
},
|
|
69
|
+
integrations: (defaults) => defaults.map((integration) => {
|
|
70
|
+
if (integration.name === "Breadcrumbs") {
|
|
71
|
+
return Sentry.breadcrumbsIntegration({
|
|
72
|
+
console: true,
|
|
73
|
+
dom: false,
|
|
74
|
+
fetch: true,
|
|
75
|
+
history: true,
|
|
76
|
+
xhr: true,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
if (integration.name === "BrowserApiErrors") {
|
|
80
|
+
return Sentry.browserApiErrorsIntegration({
|
|
81
|
+
setTimeout: true,
|
|
82
|
+
setInterval: true,
|
|
83
|
+
requestAnimationFrame: true,
|
|
84
|
+
XMLHttpRequest: true,
|
|
85
|
+
eventTarget: true,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
return integration;
|
|
89
|
+
}),
|
|
90
|
+
sendDefaultPii: false,
|
|
85
91
|
});
|
|
86
92
|
if ((_a = clientConfig.logLevels) === null || _a === void 0 ? void 0 : _a.includes("info")) {
|
|
87
93
|
console.info(`[Djust SDK] Sentry initialized in ${clientConfig.clientName || "unknown"} environment: ${clientConfig.env || "unknown"}.`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djust-b2b/djust-front-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.0",
|
|
4
4
|
"description": "DJUST Front SDK is a versatile JavaScript Software Development Kit (SDK)",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -17,7 +17,12 @@
|
|
|
17
17
|
"commit": "cz",
|
|
18
18
|
"prepack": "npmignore --auto"
|
|
19
19
|
},
|
|
20
|
-
"keywords": [
|
|
20
|
+
"keywords": [
|
|
21
|
+
"djust",
|
|
22
|
+
"b2b",
|
|
23
|
+
"sdk",
|
|
24
|
+
"api-client"
|
|
25
|
+
],
|
|
21
26
|
"author": "sami@djust.io",
|
|
22
27
|
"license": "MIT",
|
|
23
28
|
"devDependencies": {
|