sentry-vir 0.2.2 → 0.2.3

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.
@@ -34,6 +34,7 @@ export declare function initSentry({ dsn, releaseEnv, releaseName, sentryConfigO
34
34
  BrowserProfilingIntegration: typeof import("@sentry/browser").BrowserProfilingIntegration;
35
35
  addGlobalEventProcessor: typeof import("@sentry/browser").addGlobalEventProcessor;
36
36
  addBreadcrumb: typeof import("@sentry/browser").addBreadcrumb;
37
+ addIntegration: typeof import("@sentry/browser").addIntegration;
37
38
  captureException: typeof import("@sentry/browser").captureException;
38
39
  captureEvent: typeof import("@sentry/browser").captureEvent;
39
40
  captureMessage: typeof import("@sentry/browser").captureMessage;
@@ -52,7 +53,8 @@ export declare function initSentry({ dsn, releaseEnv, releaseName, sentryConfigO
52
53
  startSpan: typeof import("@sentry/browser").startSpan;
53
54
  startInactiveSpan: typeof import("@sentry/browser").startInactiveSpan;
54
55
  startSpanManual: typeof import("@sentry/browser").startSpanManual;
55
- SDK_VERSION: "7.73.0";
56
+ continueTrace: typeof import("@sentry/browser").continueTrace;
57
+ SDK_VERSION: "7.74.1";
56
58
  setContext: typeof import("@sentry/browser").setContext;
57
59
  setExtra: typeof import("@sentry/browser").setExtra;
58
60
  setExtras: typeof import("@sentry/browser").setExtras;
@@ -9,6 +9,7 @@ export declare function initSentry({ dsn, releaseEnv, releaseName, sentryConfigO
9
9
  default: typeof import("@sentry/node");
10
10
  addGlobalEventProcessor: typeof import("@sentry/node").addGlobalEventProcessor;
11
11
  addBreadcrumb: typeof import("@sentry/node").addBreadcrumb;
12
+ addIntegration: typeof import("@sentry/node").addIntegration;
12
13
  captureException: typeof import("@sentry/node").captureException;
13
14
  captureEvent: typeof import("@sentry/node").captureEvent;
14
15
  captureMessage: typeof import("@sentry/node").captureMessage;
@@ -26,7 +27,7 @@ export declare function initSentry({ dsn, releaseEnv, releaseName, sentryConfigO
26
27
  runWithAsyncContext: typeof import("@sentry/node").runWithAsyncContext;
27
28
  Scope: typeof import("@sentry/node").Scope;
28
29
  startTransaction: typeof import("@sentry/node").startTransaction;
29
- SDK_VERSION: "7.73.0";
30
+ SDK_VERSION: "7.74.1";
30
31
  setContext: typeof import("@sentry/node").setContext;
31
32
  setExtra: typeof import("@sentry/node").setExtra;
32
33
  setExtras: typeof import("@sentry/node").setExtras;
@@ -43,6 +44,7 @@ export declare function initSentry({ dsn, releaseEnv, releaseName, sentryConfigO
43
44
  startActiveSpan: typeof import("@sentry/node").startSpan;
44
45
  startInactiveSpan: typeof import("@sentry/node").startInactiveSpan;
45
46
  startSpanManual: typeof import("@sentry/node").startSpanManual;
47
+ continueTrace: typeof import("@sentry/node").continueTrace;
46
48
  autoDiscoverNodePerformanceMonitoringIntegrations: typeof import("@sentry/node").autoDiscoverNodePerformanceMonitoringIntegrations;
47
49
  NodeClient: typeof import("@sentry/node").NodeClient;
48
50
  makeNodeTransport: typeof import("@sentry/node").makeNodeTransport;
@@ -23,7 +23,8 @@ releaseEnv) {
23
23
  message,
24
24
  event.extra,
25
25
  { event, hint },
26
- ];
26
+ hint.originalException,
27
+ ].filter(common_1.isTruthy);
27
28
  if (releaseEnv === release_env_1.SentryReleaseEnvEnum.Dev) {
28
29
  consoleMethod('Would have sent to Sentry:', ...logArgs);
29
30
  return null;
@@ -34,6 +34,7 @@ export declare function initSentry({ dsn, releaseEnv, releaseName, sentryConfigO
34
34
  BrowserProfilingIntegration: typeof import("@sentry/browser").BrowserProfilingIntegration;
35
35
  addGlobalEventProcessor: typeof import("@sentry/browser").addGlobalEventProcessor;
36
36
  addBreadcrumb: typeof import("@sentry/browser").addBreadcrumb;
37
+ addIntegration: typeof import("@sentry/browser").addIntegration;
37
38
  captureException: typeof import("@sentry/browser").captureException;
38
39
  captureEvent: typeof import("@sentry/browser").captureEvent;
39
40
  captureMessage: typeof import("@sentry/browser").captureMessage;
@@ -52,7 +53,8 @@ export declare function initSentry({ dsn, releaseEnv, releaseName, sentryConfigO
52
53
  startSpan: typeof import("@sentry/browser").startSpan;
53
54
  startInactiveSpan: typeof import("@sentry/browser").startInactiveSpan;
54
55
  startSpanManual: typeof import("@sentry/browser").startSpanManual;
55
- SDK_VERSION: "7.73.0";
56
+ continueTrace: typeof import("@sentry/browser").continueTrace;
57
+ SDK_VERSION: "7.74.1";
56
58
  setContext: typeof import("@sentry/browser").setContext;
57
59
  setExtra: typeof import("@sentry/browser").setExtra;
58
60
  setExtras: typeof import("@sentry/browser").setExtras;
@@ -9,6 +9,7 @@ export declare function initSentry({ dsn, releaseEnv, releaseName, sentryConfigO
9
9
  default: typeof import("@sentry/node");
10
10
  addGlobalEventProcessor: typeof import("@sentry/node").addGlobalEventProcessor;
11
11
  addBreadcrumb: typeof import("@sentry/node").addBreadcrumb;
12
+ addIntegration: typeof import("@sentry/node").addIntegration;
12
13
  captureException: typeof import("@sentry/node").captureException;
13
14
  captureEvent: typeof import("@sentry/node").captureEvent;
14
15
  captureMessage: typeof import("@sentry/node").captureMessage;
@@ -26,7 +27,7 @@ export declare function initSentry({ dsn, releaseEnv, releaseName, sentryConfigO
26
27
  runWithAsyncContext: typeof import("@sentry/node").runWithAsyncContext;
27
28
  Scope: typeof import("@sentry/node").Scope;
28
29
  startTransaction: typeof import("@sentry/node").startTransaction;
29
- SDK_VERSION: "7.73.0";
30
+ SDK_VERSION: "7.74.1";
30
31
  setContext: typeof import("@sentry/node").setContext;
31
32
  setExtra: typeof import("@sentry/node").setExtra;
32
33
  setExtras: typeof import("@sentry/node").setExtras;
@@ -43,6 +44,7 @@ export declare function initSentry({ dsn, releaseEnv, releaseName, sentryConfigO
43
44
  startActiveSpan: typeof import("@sentry/node").startSpan;
44
45
  startInactiveSpan: typeof import("@sentry/node").startInactiveSpan;
45
46
  startSpanManual: typeof import("@sentry/node").startSpanManual;
47
+ continueTrace: typeof import("@sentry/node").continueTrace;
46
48
  autoDiscoverNodePerformanceMonitoringIntegrations: typeof import("@sentry/node").autoDiscoverNodePerformanceMonitoringIntegrations;
47
49
  NodeClient: typeof import("@sentry/node").NodeClient;
48
50
  makeNodeTransport: typeof import("@sentry/node").makeNodeTransport;
@@ -1,4 +1,4 @@
1
- import { extractErrorMessage } from '@augment-vir/common';
1
+ import { extractErrorMessage, isTruthy } from '@augment-vir/common';
2
2
  import { SentryReleaseEnvEnum } from '../env/release-env';
3
3
  import { getConsoleMethodForSeverity } from '../event-context/event-severity';
4
4
  /** Creates a handler for Sentry events based on the given env. */
@@ -20,7 +20,8 @@ releaseEnv) {
20
20
  message,
21
21
  event.extra,
22
22
  { event, hint },
23
- ];
23
+ hint.originalException,
24
+ ].filter(isTruthy);
24
25
  if (releaseEnv === SentryReleaseEnvEnum.Dev) {
25
26
  consoleMethod('Would have sent to Sentry:', ...logArgs);
26
27
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sentry-vir",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "keywords": [
5
5
  "config",
6
6
  "helper",
@@ -39,24 +39,24 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@augment-vir/common": "^20.0.1",
42
- "@sentry/browser": "^7.73.0",
43
- "@sentry/core": "^7.73.0",
44
- "@sentry/node": "^7.73.0",
45
- "@sentry/types": "^7.73.0",
46
- "type-fest": "^4.4.0"
42
+ "@sentry/browser": "^7.74.1",
43
+ "@sentry/core": "^7.74.1",
44
+ "@sentry/node": "^7.74.1",
45
+ "@sentry/types": "^7.74.1",
46
+ "type-fest": "^4.5.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@augment-vir/browser-testing": "^20.0.1",
50
50
  "@open-wc/testing": "^3.2.0",
51
- "@types/mocha": "^10.0.2",
52
- "@web/dev-server-esbuild": "^0.4.1",
53
- "@web/test-runner": "^0.17.1",
54
- "@web/test-runner-commands": "^0.8.0",
51
+ "@types/mocha": "^10.0.3",
52
+ "@web/dev-server-esbuild": "^0.4.2",
53
+ "@web/test-runner": "^0.17.2",
54
+ "@web/test-runner-commands": "^0.8.1",
55
55
  "@web/test-runner-playwright": "^0.10.1",
56
56
  "@web/test-runner-visual-regression": "^0.8.2",
57
- "cspell": "^7.3.7",
58
- "dependency-cruiser": "^14.1.1",
59
- "esbuild": "^0.19.4",
57
+ "cspell": "^7.3.8",
58
+ "dependency-cruiser": "^14.1.2",
59
+ "esbuild": "^0.19.5",
60
60
  "istanbul-smart-text-reporter": "^1.1.2",
61
61
  "markdown-code-example-inserter": "^0.3.2",
62
62
  "npm-check-updates": "~16.12.3",
@@ -69,6 +69,6 @@
69
69
  "prettier-plugin-sort-json": "^2.0.0",
70
70
  "prettier-plugin-toml": "^0.3.5",
71
71
  "typedoc": "^0.25.2",
72
- "virmator": "^9.1.1"
72
+ "virmator": "^9.1.3"
73
73
  }
74
74
  }