@rxap/nest-sentry 11.0.0-dev.7 → 11.0.0-dev.8
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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [11.0.0-dev.8](https://gitlab.com/rxap/packages/compare/@rxap/nest-sentry@11.0.0-dev.7...@rxap/nest-sentry@11.0.0-dev.8) (2025-09-08)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **nest-sentry:** set default value for sentryInitHook options ([db26f24](https://gitlab.com/rxap/packages/commit/db26f24ca7e5d52b3f8ef37aa2d224ca26d3d754))
|
|
11
|
+
|
|
6
12
|
# [11.0.0-dev.7](https://gitlab.com/rxap/packages/compare/@rxap/nest-sentry@11.0.0-dev.6...@rxap/nest-sentry@11.0.0-dev.7) (2025-09-08)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "11.0.0-dev.
|
|
2
|
+
"version": "11.0.0-dev.8",
|
|
3
3
|
"name": "@rxap/nest-sentry",
|
|
4
4
|
"description": "This package provides a Sentry integration for NestJS applications. It includes a logger, interceptor, and module to simplify error tracking and performance monitoring with Sentry. It offers configurable options for setting up Sentry in your NestJS application.\n",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@nestjs/config": "^4.0.2",
|
|
15
15
|
"@nestjs/core": "^11.1.1",
|
|
16
16
|
"@rxap/nest-logger": "^11.0.0-dev.3",
|
|
17
|
-
"@rxap/nest-utilities": "^11.0.0-dev.
|
|
17
|
+
"@rxap/nest-utilities": "^11.0.0-dev.6",
|
|
18
18
|
"@sentry/core": "^8.55.0",
|
|
19
19
|
"@sentry/nestjs": "^8.55.0",
|
|
20
20
|
"@sentry/node": "^8.55.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"package": "@rxap/nest-utilities",
|
|
88
|
-
"version": "11.0.0-dev.
|
|
88
|
+
"version": "11.0.0-dev.6"
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
"package": "@rxap/utilities",
|
|
@@ -93,23 +93,23 @@
|
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
"package": "@sentry/core",
|
|
96
|
-
"version": "
|
|
96
|
+
"version": "10.10.0"
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
"package": "@sentry/nestjs",
|
|
100
|
-
"version": "
|
|
100
|
+
"version": "10.10.0"
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"package": "@sentry/node",
|
|
104
|
-
"version": "
|
|
104
|
+
"version": "10.10.0"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
"package": "@sentry/profiling-node",
|
|
108
|
-
"version": "
|
|
108
|
+
"version": "10.10.0"
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
"package": "@sentry/types",
|
|
112
|
-
"version": "
|
|
112
|
+
"version": "10.10.0"
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
"package": "@sentry/utils",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
},
|
|
129
129
|
"schematics": "./generators.json",
|
|
130
130
|
"type": "commonjs",
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "0475a784cc9348a8c62037f3239b7d9af7695190",
|
|
132
132
|
"types": "./src/index.d.ts",
|
|
133
133
|
"main": "./src/index.js"
|
|
134
134
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Environment } from '@rxap/nest-utilities';
|
|
2
2
|
import type { NodeOptions } from '@sentry/node/build/types/types';
|
|
3
|
-
export declare function sentryInitHook(options
|
|
3
|
+
export declare function sentryInitHook(options?: Partial<NodeOptions>): (_: any, environment: Environment) => void;
|
|
@@ -5,7 +5,7 @@ const Sentry = require("@sentry/nestjs");
|
|
|
5
5
|
const profiling_node_1 = require("@sentry/profiling-node");
|
|
6
6
|
const determine_sentry_environment_1 = require("./determine-sentry-environment");
|
|
7
7
|
const determine_sentry_release_1 = require("./determine-sentry-release");
|
|
8
|
-
function sentryInitHook(options) {
|
|
8
|
+
function sentryInitHook(options = {}) {
|
|
9
9
|
return (_, environment) => {
|
|
10
10
|
const dsn = process.env['SENTRY_DSN'] ?? environment.sentry?.dsn;
|
|
11
11
|
if (!dsn) {
|