sentry-vir 4.0.2 → 4.0.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.
@@ -1,16 +1,17 @@
1
+ import { safeCopyThroughJson, } from '@augment-vir/common';
1
2
  /**
2
3
  * Maps internal EventDetails type to Sentry's required type for event severity, extra context, and
3
4
  * tags.
4
5
  */
5
6
  export function convertEventDetailsToSentryContext(eventDetails, options) {
6
- const extra = {
7
+ const extra = safeCopyThroughJson({
7
8
  ...(options.wasSentPrematurely
8
9
  ? {
9
10
  wasSentPrematurely: true,
10
11
  }
11
12
  : {}),
12
13
  ...eventDetails.extraContext,
13
- };
14
+ });
14
15
  return {
15
16
  extra,
16
17
  level: eventDetails.severity,
@@ -1,4 +1,4 @@
1
- import { extractErrorMessage } from '@augment-vir/common';
1
+ import { extractErrorMessage, safeCopyThroughJson } from '@augment-vir/common';
2
2
  import { convertEventDetailsToSentryContext, } from '../event-context/event-context.js';
3
3
  import { extractEventSeverity } from '../event-context/event-severity.js';
4
4
  import { extractExtraEventContext, extractExtraEventTags, } from '../event-context/extra-event-context.js';
@@ -10,12 +10,12 @@ event,
10
10
  hint,
11
11
  /** Optional callback for creating extra event context. */
12
12
  createUniversalContext) {
13
- const extraContext = {
13
+ const extraContext = safeCopyThroughJson({
14
14
  ...extractExtraEventContext(hint),
15
15
  ...extractExtraEventContext(event),
16
16
  ...createUniversalContext?.(),
17
17
  originalFullMessage: event.message || extractErrorMessage(hint.originalException),
18
- };
18
+ });
19
19
  const extraTags = {
20
20
  ...extractExtraEventTags(hint),
21
21
  ...extractExtraEventTags(event),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sentry-vir",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Easily use Sentry.",
5
5
  "keywords": [
6
6
  "config",
@@ -44,19 +44,19 @@
44
44
  "test:update": "npm test update"
45
45
  },
46
46
  "dependencies": {
47
- "@augment-vir/assert": "^31.67.0",
48
- "@augment-vir/common": "^31.67.0",
49
- "@sentry/browser": "^10.39.0",
50
- "@sentry/core": "^10.39.0",
51
- "@sentry/node": "^10.39.0",
47
+ "@augment-vir/assert": "^31.68.1",
48
+ "@augment-vir/common": "^31.68.1",
49
+ "@sentry/browser": "^10.42.0",
50
+ "@sentry/core": "^10.42.0",
51
+ "@sentry/node": "^10.42.0",
52
52
  "date-vir": "^8.2.0",
53
53
  "type-fest": "^5.4.4"
54
54
  },
55
55
  "devDependencies": {
56
- "@augment-vir/test": "^31.67.0",
56
+ "@augment-vir/test": "^31.68.1",
57
57
  "@eslint/eslintrc": "^3.3.4",
58
58
  "@eslint/js": "^9.39.2",
59
- "@stylistic/eslint-plugin": "^5.9.0",
59
+ "@stylistic/eslint-plugin": "^5.10.0",
60
60
  "@stylistic/eslint-plugin-ts": "^4.4.1",
61
61
  "@typescript-eslint/eslint-plugin": "^8.56.1",
62
62
  "@web/dev-server-esbuild": "^1.0.5",
@@ -71,10 +71,10 @@
71
71
  "eslint-config-prettier": "^10.1.8",
72
72
  "eslint-plugin-jsdoc": "^62.7.1",
73
73
  "eslint-plugin-monorepo-cop": "^1.0.2",
74
- "eslint-plugin-playwright": "^2.7.0",
74
+ "eslint-plugin-playwright": "^2.9.0",
75
75
  "eslint-plugin-prettier": "^5.5.5",
76
76
  "eslint-plugin-require-extensions": "^0.1.3",
77
- "eslint-plugin-sonarjs": "^4.0.0",
77
+ "eslint-plugin-sonarjs": "^4.0.1",
78
78
  "eslint-plugin-unicorn": "^63.0.0",
79
79
  "istanbul-smart-text-reporter": "^1.1.5",
80
80
  "markdown-code-example-inserter": "^3.0.3",
@@ -84,14 +84,14 @@
84
84
  "prettier-plugin-jsdoc": "^1.8.0",
85
85
  "prettier-plugin-multiline-arrays": "^4.1.4",
86
86
  "prettier-plugin-organize-imports": "^4.3.0",
87
- "prettier-plugin-packagejson": "^3.0.0",
87
+ "prettier-plugin-packagejson": "^3.0.2",
88
88
  "prettier-plugin-sort-json": "^4.2.0",
89
89
  "prettier-plugin-toml": "^2.0.6",
90
90
  "runstorm": "^1.0.0",
91
91
  "typedoc": "^0.28.17",
92
92
  "typescript": "^5.9.3",
93
93
  "typescript-eslint": "^8.56.1",
94
- "virmator": "^14.7.2",
94
+ "virmator": "^14.8.3",
95
95
  "vite": "^7.3.1"
96
96
  },
97
97
  "engines": {