@djust-b2b/djust-front-sdk 1.21.11 → 1.21.13

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.
@@ -35,7 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.enhancedFetch = exports.updateConfiguration = exports.initialize = void 0;
37
37
  const qs = __importStar(require("query-string"));
38
- const Sentry = __importStar(require("@sentry/browser"));
38
+ const Sentry = __importStar(require("@sentry/node"));
39
39
  require("isomorphic-fetch");
40
40
  const SDK_VERSION = require("../../package.json").version || "unknown";
41
41
  let clientConfig = {
@@ -56,21 +56,8 @@ const initialize = (initConfig) => {
56
56
  "https://39ef5198e24fa0ec7b743c460bd1ca63@o1191347.ingest.us.sentry.io/4508879498575872",
57
57
  environment: `${clientConfig.clientName}-${clientConfig.env}`,
58
58
  release: `${SDK_VERSION || "unknown"}`,
59
- integrations: [
60
- Sentry.browserTracingIntegration(),
61
- Sentry.replayIntegration(),
62
- Sentry.httpClientIntegration(),
63
- Sentry.browserApiErrorsIntegration({
64
- setTimeout: true,
65
- setInterval: true,
66
- requestAnimationFrame: true,
67
- XMLHttpRequest: true,
68
- eventTarget: true,
69
- }),
70
- ],
59
+ integrations: [Sentry.nativeNodeFetchIntegration()],
71
60
  tracesSampleRate: 1.0,
72
- replaysSessionSampleRate: 0.1,
73
- replaysOnErrorSampleRate: 1.0,
74
61
  profilesSampleRate: 1.0,
75
62
  sendDefaultPii: true,
76
63
  });
@@ -222,7 +209,7 @@ const enhancedFetch = async ({ path, method, params = {}, body, }) => {
222
209
  }
223
210
  catch (error) {
224
211
  Sentry.captureException(error, { tags: { env: clientConfig.env } });
225
- throw new Error(`[Djust SDK] ${error || "Unknown error occurred"}`);
212
+ throw new Error(`${error || "Unknown error occurred"}`);
226
213
  }
227
214
  };
228
215
  exports.enhancedFetch = enhancedFetch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djust-b2b/djust-front-sdk",
3
- "version": "1.21.11",
3
+ "version": "1.21.13",
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",
@@ -50,7 +50,7 @@
50
50
  "lib/**/**.d.ts"
51
51
  ],
52
52
  "dependencies": {
53
- "@sentry/browser": "^9.2.0",
53
+ "@sentry/node": "^9.2.0",
54
54
  "isomorphic-fetch": "^3.0.0",
55
55
  "query-string": "^7.1.1"
56
56
  },