@laboratory-one/api-components 0.0.36 → 0.0.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laboratory-one/api-components",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "description": "API components for Laboratory One",
5
5
  "author": "Laboratory One",
6
6
  "private": false,
@@ -2,6 +2,11 @@ import * as Sentry from '@sentry/node';
2
2
  import { nodeProfilingIntegration } from '@sentry/profiling-node';
3
3
 
4
4
  export const initSentry = (projectName: string) => {
5
+ if (!process.env.SENTRY_DSN) {
6
+ console.log('Sentry disabled: SENTRY_DSN not set');
7
+ return;
8
+ }
9
+
5
10
  // Ensure to call this before requiring any other modules!
6
11
  Sentry.init({
7
12
  dsn: process.env.SENTRY_DSN,