sentry-vir 3.2.3 → 3.2.4

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.
@@ -9,6 +9,8 @@ export function createSentryConfig({ executionEnv, sentryDep, requiredSentryOpti
9
9
  defaultIntegrations: false,
10
10
  enabled: true,
11
11
  maxValueLength: 10_000,
12
+ tracesSampleRate: undefined,
13
+ tracesSampler: undefined,
12
14
  };
13
15
  const envSentryConfig = sentryConfigByEnv[executionEnv](
14
16
  /**
@@ -16,7 +16,7 @@ export type ThrottleCacheEntry = {
16
16
  *
17
17
  * @category Internal
18
18
  */
19
- export declare const throttleCache: Record<string, ThrottleCacheEntry>;
19
+ export declare const throttleCache: Map<string, ThrottleCacheEntry>;
20
20
  /**
21
21
  * Throttling options.
22
22
  *
@@ -1,4 +1,4 @@
1
- import { getOrSet, mergeDefinedProperties } from '@augment-vir/common';
1
+ import { getOrSetFromMap, mergeDefinedProperties, } from '@augment-vir/common';
2
2
  import { calculateRelativeDate, getNowInUtcTimezone, isDateAfter, } from 'date-vir';
3
3
  import { sendLog } from '../logging/send-log.js';
4
4
  import { extractOriginalMessage } from './event-processor.js';
@@ -7,7 +7,7 @@ import { extractOriginalMessage } from './event-processor.js';
7
7
  *
8
8
  * @category Internal
9
9
  */
10
- export const throttleCache = {};
10
+ export const throttleCache = new Map();
11
11
  /**
12
12
  * Default values for {@link ThrottleOptions}.
13
13
  *
@@ -29,14 +29,14 @@ export function shouldThrottleEvent(
29
29
  /** Event from Sentry. */
30
30
  event,
31
31
  /** EventHint generated by Sentry. */
32
- hint = undefined, userOptions = defaultThrottleOptions) {
32
+ hint, userOptions = defaultThrottleOptions) {
33
33
  const options = mergeDefinedProperties(defaultThrottleOptions, userOptions);
34
34
  if (options.disableThrottling) {
35
35
  return false;
36
36
  }
37
37
  const errorKey = extractOriginalMessage(event, hint);
38
38
  const now = getNowInUtcTimezone();
39
- const errorThrottleData = getOrSet(throttleCache, errorKey, () => {
39
+ const errorThrottleData = getOrSetFromMap(throttleCache, errorKey, () => {
40
40
  return {
41
41
  intervalCount: 0,
42
42
  intervalStartAt: now,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sentry-vir",
3
- "version": "3.2.3",
3
+ "version": "3.2.4",
4
4
  "description": "Easily use Sentry.",
5
5
  "keywords": [
6
6
  "config",
@@ -44,55 +44,55 @@
44
44
  "test:update": "npm test update"
45
45
  },
46
46
  "dependencies": {
47
- "@augment-vir/assert": "^31.47.0",
48
- "@augment-vir/common": "^31.47.0",
49
- "@sentry/browser": "^10.22.0",
50
- "@sentry/core": "^10.22.0",
51
- "@sentry/node": "^10.22.0",
52
- "date-vir": "^8.0.0",
53
- "type-fest": "^5.1.0"
47
+ "@augment-vir/assert": "^31.65.0",
48
+ "@augment-vir/common": "^31.65.0",
49
+ "@sentry/browser": "^10.39.0",
50
+ "@sentry/core": "^10.39.0",
51
+ "@sentry/node": "^10.39.0",
52
+ "date-vir": "^8.1.1",
53
+ "type-fest": "^5.4.4"
54
54
  },
55
55
  "devDependencies": {
56
- "@augment-vir/test": "^31.47.0",
57
- "@eslint/eslintrc": "^3.3.1",
58
- "@eslint/js": "^9.38.0",
59
- "@stylistic/eslint-plugin": "^5.5.0",
56
+ "@augment-vir/test": "^31.65.0",
57
+ "@eslint/eslintrc": "^3.3.3",
58
+ "@eslint/js": "^9.39.2",
59
+ "@stylistic/eslint-plugin": "^5.9.0",
60
60
  "@stylistic/eslint-plugin-ts": "^4.4.1",
61
- "@typescript-eslint/eslint-plugin": "^8.46.2",
62
- "@web/dev-server-esbuild": "^1.0.4",
61
+ "@typescript-eslint/eslint-plugin": "^8.56.0",
62
+ "@web/dev-server-esbuild": "^1.0.5",
63
63
  "@web/test-runner": "^0.20.2",
64
64
  "@web/test-runner-commands": "^0.9.0",
65
65
  "@web/test-runner-playwright": "^0.11.1",
66
66
  "@web/test-runner-visual-regression": "^0.10.0",
67
67
  "cspell": "^9.2.2",
68
- "dependency-cruiser": "^17.2.0",
69
- "esbuild": "^0.25.11",
70
- "eslint": "^9.38.0",
68
+ "dependency-cruiser": "^17.3.8",
69
+ "esbuild": "^0.27.3",
70
+ "eslint": "^9.39.2",
71
71
  "eslint-config-prettier": "^10.1.8",
72
- "eslint-plugin-jsdoc": "^61.1.11",
72
+ "eslint-plugin-jsdoc": "^62.7.0",
73
73
  "eslint-plugin-monorepo-cop": "^1.0.2",
74
- "eslint-plugin-playwright": "^2.2.2",
75
- "eslint-plugin-prettier": "^5.5.4",
74
+ "eslint-plugin-playwright": "^2.7.0",
75
+ "eslint-plugin-prettier": "^5.5.5",
76
76
  "eslint-plugin-require-extensions": "^0.1.3",
77
- "eslint-plugin-sonarjs": "^3.0.5",
78
- "eslint-plugin-unicorn": "^62.0.0",
77
+ "eslint-plugin-sonarjs": "^4.0.0",
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",
81
- "npm-check-updates": "^19.1.2",
81
+ "npm-check-updates": "^19.4.1",
82
82
  "prettier": "~3.3.3",
83
83
  "prettier-plugin-interpolated-html-tags": "^2.0.1",
84
- "prettier-plugin-jsdoc": "^1.5.0",
85
- "prettier-plugin-multiline-arrays": "^4.0.3",
84
+ "prettier-plugin-jsdoc": "^1.8.0",
85
+ "prettier-plugin-multiline-arrays": "^4.1.4",
86
86
  "prettier-plugin-organize-imports": "^4.3.0",
87
- "prettier-plugin-packagejson": "^2.5.19",
88
- "prettier-plugin-sort-json": "^4.1.1",
87
+ "prettier-plugin-packagejson": "^3.0.0",
88
+ "prettier-plugin-sort-json": "^4.2.0",
89
89
  "prettier-plugin-toml": "^2.0.6",
90
- "runstorm": "^0.6.2",
91
- "typedoc": "^0.28.14",
90
+ "runstorm": "^1.0.0",
91
+ "typedoc": "^0.28.17",
92
92
  "typescript": "^5.9.3",
93
- "typescript-eslint": "^8.46.2",
94
- "virmator": "^14.2.1",
95
- "vite": "^7.1.12"
93
+ "typescript-eslint": "^8.56.0",
94
+ "virmator": "^14.6.1",
95
+ "vite": "^7.3.1"
96
96
  },
97
97
  "engines": {
98
98
  "node": ">=22"
@@ -1,2 +0,0 @@
1
- import { type AnyObject } from '@augment-vir/common';
2
- export declare function replaceObject<T extends AnyObject>(original: T, replacement: T): void;
@@ -1,6 +0,0 @@
1
- export function replaceObject(original, replacement) {
2
- Object.keys(original).forEach((key) => delete original[key]);
3
- Object.entries(replacement).forEach(([key, value,]) => {
4
- original[key] = value;
5
- });
6
- }