sentry-vir 3.0.0 → 3.0.1

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,4 +1,5 @@
1
- import { check } from '@augment-vir/assert';
1
+ import { check, checkWrap } from '@augment-vir/assert';
2
+ import { omitObjectKeys } from '@augment-vir/common';
2
3
  import { consoleLogMethodPerSeverity, extractEventSeverity, } from '../event-context/event-severity.js';
3
4
  import { extractOriginalMessage } from './event-processor.js';
4
5
  export var LoggingState;
@@ -22,15 +23,15 @@ hint, loggingState) {
22
23
  }
23
24
  export function logToConsoleWithoutSentry(severity, loggingState, logData) {
24
25
  const consoleMethod = consoleLogMethodPerSeverity[severity];
25
- const eventLogArg = {
26
- ...(logData.event ? { event: logData.event } : undefined),
27
- ...(logData.hint ? { hint: logData.hint } : undefined),
28
- };
26
+ const includedExtra = logData.extra
27
+ ? checkWrap.isNotEmpty(omitObjectKeys(logData.extra, ['originalFullMessage']))
28
+ : undefined;
29
29
  const logArgs = [
30
30
  logData.message,
31
- logData.extra,
32
- Object.keys(eventLogArg).length ? eventLogArg : undefined,
33
- logData.originalException,
31
+ includedExtra,
32
+ logData.originalException instanceof Error
33
+ ? logData.originalException.stack
34
+ : logData.originalException,
34
35
  ].filter(check.isTruthy);
35
36
  if (loggingState === LoggingState.Dev) {
36
37
  consoleMethod('Would have sent to Sentry:', ...logArgs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sentry-vir",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Easily use Sentry.",
5
5
  "keywords": [
6
6
  "config",
@@ -44,37 +44,37 @@
44
44
  "test:update": "npm test update"
45
45
  },
46
46
  "dependencies": {
47
- "@augment-vir/assert": "^31.15.0",
48
- "@augment-vir/common": "^31.15.0",
49
- "@sentry/browser": "^9.15.0",
50
- "@sentry/core": "^9.15.0",
51
- "@sentry/node": "^9.15.0",
52
- "type-fest": "^4.40.1"
47
+ "@augment-vir/assert": "^31.23.3",
48
+ "@augment-vir/common": "^31.23.3",
49
+ "@sentry/browser": "^9.27.0",
50
+ "@sentry/core": "^9.27.0",
51
+ "@sentry/node": "^9.27.0",
52
+ "type-fest": "^4.41.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@augment-vir/test": "^31.15.0",
55
+ "@augment-vir/test": "^31.23.3",
56
56
  "@eslint/eslintrc": "^3.3.1",
57
- "@eslint/js": "^9.25.1",
58
- "@stylistic/eslint-plugin": "^4.2.0",
59
- "@stylistic/eslint-plugin-ts": "^4.2.0",
60
- "@typescript-eslint/eslint-plugin": "^8.31.1",
57
+ "@eslint/js": "^9.28.0",
58
+ "@stylistic/eslint-plugin": "^4.4.1",
59
+ "@stylistic/eslint-plugin-ts": "^4.4.1",
60
+ "@typescript-eslint/eslint-plugin": "^8.33.1",
61
61
  "@web/dev-server-esbuild": "^1.0.4",
62
- "@web/test-runner": "^0.20.1",
62
+ "@web/test-runner": "^0.20.2",
63
63
  "@web/test-runner-commands": "^0.9.0",
64
64
  "@web/test-runner-playwright": "^0.11.0",
65
65
  "@web/test-runner-visual-regression": "^0.10.0",
66
- "cspell": "^8.19.3",
67
- "dependency-cruiser": "^16.10.1",
68
- "esbuild": "^0.25.3",
69
- "eslint": "^9.25.1",
70
- "eslint-config-prettier": "^10.1.2",
71
- "eslint-plugin-jsdoc": "^50.6.11",
66
+ "cspell": "^9.0.2",
67
+ "dependency-cruiser": "^16.10.2",
68
+ "esbuild": "^0.25.5",
69
+ "eslint": "^9.28.0",
70
+ "eslint-config-prettier": "^10.1.5",
71
+ "eslint-plugin-jsdoc": "^50.7.1",
72
72
  "eslint-plugin-monorepo-cop": "^1.0.2",
73
73
  "eslint-plugin-playwright": "^2.2.0",
74
- "eslint-plugin-prettier": "^5.2.6",
74
+ "eslint-plugin-prettier": "^5.4.1",
75
75
  "eslint-plugin-require-extensions": "^0.1.3",
76
76
  "eslint-plugin-sonarjs": "^3.0.2",
77
- "eslint-plugin-unicorn": "^59.0.0",
77
+ "eslint-plugin-unicorn": "^59.0.1",
78
78
  "istanbul-smart-text-reporter": "^1.1.5",
79
79
  "markdown-code-example-inserter": "^3.0.3",
80
80
  "npm-check-updates": "^18.0.1",
@@ -83,14 +83,14 @@
83
83
  "prettier-plugin-jsdoc": "^1.3.2",
84
84
  "prettier-plugin-multiline-arrays": "^4.0.3",
85
85
  "prettier-plugin-organize-imports": "^4.1.0",
86
- "prettier-plugin-packagejson": "^2.5.10",
86
+ "prettier-plugin-packagejson": "^2.5.15",
87
87
  "prettier-plugin-sort-json": "^4.1.1",
88
- "prettier-plugin-toml": "^2.0.4",
89
- "typedoc": "^0.28.3",
88
+ "prettier-plugin-toml": "^2.0.5",
89
+ "typedoc": "^0.28.5",
90
90
  "typescript": "^5.8.3",
91
- "typescript-eslint": "^8.31.1",
92
- "virmator": "^13.14.1",
93
- "vite": "^6.3.4"
91
+ "typescript-eslint": "^8.33.1",
92
+ "virmator": "^13.15.3",
93
+ "vite": "^6.3.5"
94
94
  },
95
95
  "engines": {
96
96
  "node": ">=22"