@rxap/ngx-sentry 21.0.1 → 22.0.0-dev.0

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,118 +1,70 @@
1
- import { DetermineProductionEnvironmentName } from '@rxap/environment';
2
- import * as Sentry from '@sentry/angular';
3
-
4
- /**
5
- * Determines the sentry environment based on the build info object.
6
- *
7
- * If the tier is local return undefined.
8
- * If the tier is production determine the environment based on the tag and branch name.
9
- *
10
- * @param environment
11
- */
1
+ import { DetermineProductionEnvironmentName } from "@rxap/environment";
2
+ import * as Sentry from "@sentry/angular";
12
3
  function DetermineSentryEnvironment(environment) {
13
- switch (environment['tier']) {
14
- case 'local':
15
- return undefined;
16
- case 'production':
17
- return DetermineProductionEnvironmentName(environment);
18
- default:
19
- return undefined;
20
- }
4
+ switch (environment["tier"]) {
5
+ case "local": return;
6
+ case "production": return DetermineProductionEnvironmentName(environment);
7
+ default: return;
8
+ }
21
9
  }
22
-
23
- /**
24
- * Determines the sentry release based on the build info object.
25
- *
26
- * If the tier is local return undefined.
27
- * If the tier is production return the tag value as release or undefined.
28
- *
29
- * @param environment
30
- */
31
10
  function DetermineSentryRelease(environment) {
32
- switch (environment.tier) {
33
- case 'local':
34
- return undefined;
35
- case 'development':
36
- case 'testing':
37
- case 'staging':
38
- case 'production':
39
- if (environment.tag?.match(/^v\d+\.\d+\.\d+/)) {
40
- // if the tag is a semvar remove the v prefix as sentry does not expect a v as prefix
41
- return environment.tag.replace(/^v/, '');
42
- }
43
- return environment.tag ?? undefined;
44
- default:
45
- return undefined;
46
- }
11
+ switch (environment.tier) {
12
+ case "local": return;
13
+ case "development":
14
+ case "testing":
15
+ case "staging":
16
+ case "production":
17
+ if (environment.tag?.match(/^v\d+\.\d+\.\d+/)) return environment.tag.replace(/^v/, "");
18
+ return environment.tag ?? void 0;
19
+ default: return;
20
+ }
47
21
  }
48
-
49
- function sentryInitBootstrapHook(environment, custom = options => options) {
50
- return (config) => {
51
- const dsn = config.get('sentry.dsn', environment.sentry?.dsn);
52
- if (!dsn) {
53
- console.warn('No sentry dsn provided.');
54
- }
55
- const integrations = [
56
- Sentry.browserTracingIntegration(config.get('sentry.integrations.browserTracing')),
57
- Sentry.browserProfilingIntegration(),
58
- Sentry.browserSessionIntegration(),
59
- Sentry.captureConsoleIntegration(config.get('sentry.integrations.captureConsole', {
60
- levels: ['error'],
61
- })),
62
- Sentry.extraErrorDataIntegration(config.get('sentry.integrations.extraErrorData')),
63
- Sentry.httpClientIntegration(config.get('sentry.integrations.httpClient')),
64
- Sentry.reportingObserverIntegration(config.get('sentry.integrations.reportingObserver')),
65
- ];
66
- if (config.get('sentry.integrations.replay')) {
67
- /**
68
- * {
69
- * // Additional SDK configuration goes in here, for example:
70
- * maskAllText: true,
71
- * blockAllMedia: true,
72
- * maskAllInputs: true,
73
- * networkDetailAllowUrls: [`${location.origin}/api/`]
74
- * }
75
- */
76
- integrations.push(Sentry.replayIntegration(config.get('sentry.integrations.replay')));
77
- }
78
- if (config.get('sentry.integrations.feedback')) {
79
- integrations.push(Sentry.feedbackIntegration(config.get('sentry.integrations.feedback')));
80
- }
81
- Sentry.init(custom({
82
- dsn,
83
- enabled: config.get('sentry.enabled', environment.sentry?.enabled ?? false),
84
- debug: config.get('sentry.debug', environment.sentry?.debug ?? false),
85
- environment: config.get('environment', DetermineSentryEnvironment(environment)),
86
- release: DetermineSentryRelease(environment),
87
- transport: Sentry.makeBrowserOfflineTransport(Sentry.makeFetchTransport),
88
- integrations,
89
- tracesSampleRate: config.get('sentry.tracesSampleRate', 1.0),
90
- profilesSampleRate: config.get('sentry.profilesSampleRate', 1.0),
91
- tracePropagationTargets: ["localhost", new RegExp(`${location.origin}/api/`)],
92
- replaysSessionSampleRate: config.get('sentry.replaysSessionSampleRate', 0.0),
93
- replaysOnErrorSampleRate: config.get('sentry.replaysOnErrorSampleRate', 1.0),
94
- maxValueLength: config.get('sentry.maxValueLength', Number.MAX_SAFE_INTEGER),
95
- sendDefaultPii: config.get('sentry.sendDefaultPii', true),
96
- initialScope: {
97
- user: { ip_address: '{{auto}}' },
98
- tags: {
99
- origin: location.origin,
100
- host: location.host,
101
- },
102
- },
103
- ignoreErrors: [
104
- 'Non-Error exception captured',
105
- ],
106
- }, config));
107
- };
22
+ function sentryInitBootstrapHook(environment, custom = (options) => options) {
23
+ return (config) => {
24
+ const dsn = config.get("sentry.dsn", environment.sentry?.dsn);
25
+ if (!dsn) console.warn("No sentry dsn provided.");
26
+ const integrations = [
27
+ Sentry.browserTracingIntegration(config.get("sentry.integrations.browserTracing")),
28
+ Sentry.browserProfilingIntegration(),
29
+ Sentry.browserSessionIntegration(),
30
+ Sentry.captureConsoleIntegration(config.get("sentry.integrations.captureConsole", { levels: ["error"] })),
31
+ Sentry.extraErrorDataIntegration(config.get("sentry.integrations.extraErrorData")),
32
+ Sentry.httpClientIntegration(config.get("sentry.integrations.httpClient")),
33
+ Sentry.reportingObserverIntegration(config.get("sentry.integrations.reportingObserver"))
34
+ ];
35
+ if (config.get("sentry.integrations.replay")) integrations.push(Sentry.replayIntegration(config.get("sentry.integrations.replay")));
36
+ if (config.get("sentry.integrations.feedback")) integrations.push(Sentry.feedbackIntegration(config.get("sentry.integrations.feedback")));
37
+ Sentry.init(custom({
38
+ dsn,
39
+ enabled: config.get("sentry.enabled", environment.sentry?.enabled ?? false),
40
+ debug: config.get("sentry.debug", environment.sentry?.debug ?? false),
41
+ environment: config.get("environment", DetermineSentryEnvironment(environment)),
42
+ release: DetermineSentryRelease(environment),
43
+ transport: Sentry.makeBrowserOfflineTransport(Sentry.makeFetchTransport),
44
+ integrations,
45
+ tracesSampleRate: config.get("sentry.tracesSampleRate", 1),
46
+ profileSessionSampleRate: config.get("sentry.profileSessionSampleRate", config.get("sentry.profilesSampleRate", 1)),
47
+ profileLifecycle: config.get("sentry.profileLifecycle", "trace"),
48
+ tracePropagationTargets: ["localhost", new RegExp(`${location.origin}/api/`)],
49
+ replaysSessionSampleRate: config.get("sentry.replaysSessionSampleRate", 0),
50
+ replaysOnErrorSampleRate: config.get("sentry.replaysOnErrorSampleRate", 1),
51
+ maxValueLength: config.get("sentry.maxValueLength", Number.MAX_SAFE_INTEGER),
52
+ dataCollection: config.get("sentry.dataCollection", config.get("sentry.sendDefaultPii", true) ? {} : {
53
+ userInfo: false,
54
+ cookies: false,
55
+ httpHeaders: false
56
+ }),
57
+ initialScope: {
58
+ user: { ip_address: "{{auto}}" },
59
+ tags: {
60
+ origin: location.origin,
61
+ host: location.host
62
+ }
63
+ },
64
+ ignoreErrors: ["Non-Error exception captured"]
65
+ }, config));
66
+ };
108
67
  }
109
-
110
- // region
111
- // endregion
112
-
113
- /**
114
- * Generated bundle index. Do not edit.
115
- */
116
-
117
68
  export { DetermineSentryEnvironment, DetermineSentryRelease, sentryInitBootstrapHook };
118
- //# sourceMappingURL=rxap-ngx-sentry.mjs.map
69
+
70
+ //# sourceMappingURL=rxap-ngx-sentry.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rxap-ngx-sentry.mjs","sources":["../../../../../packages/angular/sentry/src/lib/determine-sentry-environment.ts","../../../../../packages/angular/sentry/src/lib/determine-sentry-release.ts","../../../../../packages/angular/sentry/src/lib/sentry-init-bootstrap-hook.ts","../../../../../packages/angular/sentry/src/index.ts","../../../../../packages/angular/sentry/src/rxap-ngx-sentry.ts"],"sourcesContent":["import {\n DetermineProductionEnvironmentName,\n Environment,\n} from '@rxap/environment';\n\n/**\n * Determines the sentry environment based on the build info object.\n *\n * If the tier is local return undefined.\n * If the tier is production determine the environment based on the tag and branch name.\n *\n * @param environment\n */\nexport function DetermineSentryEnvironment(environment: Environment): string | undefined {\n switch (environment['tier']) {\n case 'local':\n return undefined;\n case 'production':\n return DetermineProductionEnvironmentName(environment);\n default:\n return undefined;\n }\n}\n","import { Environment } from '@rxap/environment';\n\n/**\n * Determines the sentry release based on the build info object.\n *\n * If the tier is local return undefined.\n * If the tier is production return the tag value as release or undefined.\n *\n * @param environment\n */\nexport function DetermineSentryRelease(environment: Environment): string | undefined {\n switch (environment.tier) {\n case 'local':\n return undefined;\n case 'development':\n case 'testing':\n case 'staging':\n case 'production':\n if (environment.tag?.match(/^v\\d+\\.\\d+\\.\\d+/)) {\n // if the tag is a semvar remove the v prefix as sentry does not expect a v as prefix\n return environment.tag.replace(/^v/, '');\n }\n return environment.tag ?? undefined;\n default:\n return undefined;\n }\n}\n","import { ConfigService } from '@rxap/config';\nimport { Environment } from '@rxap/environment';\nimport type { BrowserOptions } from '@sentry/browser';\nimport {\n DetermineSentryRelease\n} from './determine-sentry-release';\nimport * as Sentry from '@sentry/angular';\nimport { DetermineSentryEnvironment } from './determine-sentry-environment';\nimport { Integration } from '@sentry/core';\n\nexport function sentryInitBootstrapHook(environment: Environment, custom: (options: BrowserOptions, config: ConfigService) => BrowserOptions = options => options) {\n return (config: ConfigService) => {\n\n const dsn = config.get('sentry.dsn', environment.sentry?.dsn);\n\n if (!dsn) {\n console.warn('No sentry dsn provided.');\n }\n\n const integrations: Integration[] = [\n Sentry.browserTracingIntegration(config.get('sentry.integrations.browserTracing')),\n Sentry.browserProfilingIntegration(),\n Sentry.browserSessionIntegration(),\n Sentry.captureConsoleIntegration(config.get('sentry.integrations.captureConsole', {\n levels: ['error'],\n })),\n Sentry.extraErrorDataIntegration(config.get('sentry.integrations.extraErrorData')),\n Sentry.httpClientIntegration(config.get('sentry.integrations.httpClient')),\n Sentry.reportingObserverIntegration(config.get('sentry.integrations.reportingObserver')),\n ];\n\n if (config.get('sentry.integrations.replay')) {\n /**\n * {\n * // Additional SDK configuration goes in here, for example:\n * maskAllText: true,\n * blockAllMedia: true,\n * maskAllInputs: true,\n * networkDetailAllowUrls: [`${location.origin}/api/`]\n * }\n */\n integrations.push(Sentry.replayIntegration(config.get('sentry.integrations.replay')));\n }\n\n if (config.get('sentry.integrations.feedback')) {\n integrations.push(Sentry.feedbackIntegration(config.get('sentry.integrations.feedback')));\n }\n\n Sentry.init(custom({\n dsn,\n enabled: config.get('sentry.enabled', environment.sentry?.enabled ?? false),\n debug: config.get('sentry.debug', environment.sentry?.debug ?? false),\n environment: config.get('environment', DetermineSentryEnvironment(environment)),\n release: DetermineSentryRelease(environment),\n transport: Sentry.makeBrowserOfflineTransport(Sentry.makeFetchTransport),\n integrations,\n tracesSampleRate: config.get('sentry.tracesSampleRate', 1.0),\n profilesSampleRate: config.get('sentry.profilesSampleRate', 1.0),\n tracePropagationTargets: [\"localhost\", new RegExp(`${location.origin}/api/`)],\n replaysSessionSampleRate: config.get('sentry.replaysSessionSampleRate', 0.0),\n replaysOnErrorSampleRate: config.get('sentry.replaysOnErrorSampleRate', 1.0),\n maxValueLength: config.get('sentry.maxValueLength', Number.MAX_SAFE_INTEGER),\n sendDefaultPii: config.get('sentry.sendDefaultPii', true),\n\n initialScope: {\n user: { ip_address: '{{auto}}' },\n tags: {\n origin: location.origin,\n host: location.host,\n },\n },\n\n ignoreErrors: [\n 'Non-Error exception captured',\n ],\n }, config));\n\n };\n}\n","// region \nexport * from './lib/determine-sentry-environment';\nexport * from './lib/determine-sentry-release';\nexport * from './lib/sentry-init-bootstrap-hook';\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAKA;;;;;;;AAOG;AACG,SAAU,0BAA0B,CAAC,WAAwB,EAAA;AACjE,IAAA,QAAQ,WAAW,CAAC,MAAM,CAAC;AACzB,QAAA,KAAK,OAAO;AACV,YAAA,OAAO,SAAS;AAClB,QAAA,KAAK,YAAY;AACf,YAAA,OAAO,kCAAkC,CAAC,WAAW,CAAC;AACxD,QAAA;AACE,YAAA,OAAO,SAAS;;AAEtB;;ACpBA;;;;;;;AAOG;AACG,SAAU,sBAAsB,CAAC,WAAwB,EAAA;AAC7D,IAAA,QAAQ,WAAW,CAAC,IAAI;AACtB,QAAA,KAAK,OAAO;AACV,YAAA,OAAO,SAAS;AAClB,QAAA,KAAK,aAAa;AAClB,QAAA,KAAK,SAAS;AACd,QA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B,EAAE,MAAM,CAAC,gBAAgB,CAAC;YAC5E,cAAc,EAAE,MAAM,CAAC,GAAG,CAAC,uBAAuB,EAAE,IAAI,CAAC;AAEzD,YAAA,YAAY,EAAE;AACZ,gBAAA,IAAI,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE;AAChC,gBAAA,IAAI,EAAE;oBACJ,MAAM,EAAE,QAAQ,CAAC,MAAM;oBACvB,IAAI,EAAE,QAAQ,CAAC,IAAI;AACpB,iBAAA;AACF,aAAA;AAED,YAAA,YAAY,EAAE;gBACZ,8BAA8B;AAC/B,aAAA;SACF,EAAE,MAAM,CAAC,CAAC;AAEb,IAAA,CAAC;AACH;;AC9EA;AAIA;;ACJA;;AAEG;;;;"}
1
+ {"version":3,"file":"rxap-ngx-sentry.mjs","names":[],"sources":["../../../../../packages/angular/sentry/src/lib/determine-sentry-environment.ts","../../../../../packages/angular/sentry/src/lib/determine-sentry-release.ts","../../../../../packages/angular/sentry/src/lib/sentry-init-bootstrap-hook.ts"],"sourcesContent":["import {\n DetermineProductionEnvironmentName,\n Environment,\n} from '@rxap/environment';\n\n/**\n * Determines the sentry environment based on the build info object.\n *\n * If the tier is local return undefined.\n * If the tier is production determine the environment based on the tag and branch name.\n *\n * @param environment\n */\nexport function DetermineSentryEnvironment(environment: Environment): string | undefined {\n switch (environment['tier']) {\n case 'local':\n return undefined;\n case 'production':\n return DetermineProductionEnvironmentName(environment);\n default:\n return undefined;\n }\n}\n","import { Environment } from '@rxap/environment';\n\n/**\n * Determines the sentry release based on the build info object.\n *\n * If the tier is local return undefined.\n * If the tier is production return the tag value as release or undefined.\n *\n * @param environment\n */\nexport function DetermineSentryRelease(environment: Environment): string | undefined {\n switch (environment.tier) {\n case 'local':\n return undefined;\n case 'development':\n case 'testing':\n case 'staging':\n case 'production':\n if (environment.tag?.match(/^v\\d+\\.\\d+\\.\\d+/)) {\n // if the tag is a semvar remove the v prefix as sentry does not expect a v as prefix\n return environment.tag.replace(/^v/, '');\n }\n return environment.tag ?? undefined;\n default:\n return undefined;\n }\n}\n","import { ConfigService } from '@rxap/config';\nimport { Environment } from '@rxap/environment';\nimport type { BrowserOptions } from '@sentry/browser';\nimport {\n DetermineSentryRelease\n} from './determine-sentry-release';\nimport * as Sentry from '@sentry/angular';\nimport { DetermineSentryEnvironment } from './determine-sentry-environment';\nimport type { DataCollection, Integration } from '@sentry/core';\n\nexport function sentryInitBootstrapHook(environment: Environment, custom: (options: BrowserOptions, config: ConfigService) => BrowserOptions = options => options) {\n return (config: ConfigService) => {\n\n const dsn = config.get('sentry.dsn', environment.sentry?.dsn);\n\n if (!dsn) {\n console.warn('No sentry dsn provided.');\n }\n\n const integrations: Integration[] = [\n Sentry.browserTracingIntegration(config.get('sentry.integrations.browserTracing')),\n Sentry.browserProfilingIntegration(),\n Sentry.browserSessionIntegration(),\n Sentry.captureConsoleIntegration(config.get('sentry.integrations.captureConsole', {\n levels: ['error'],\n })),\n Sentry.extraErrorDataIntegration(config.get('sentry.integrations.extraErrorData')),\n Sentry.httpClientIntegration(config.get('sentry.integrations.httpClient')),\n Sentry.reportingObserverIntegration(config.get('sentry.integrations.reportingObserver')),\n ];\n\n if (config.get('sentry.integrations.replay')) {\n /**\n * {\n * // Additional SDK configuration goes in here, for example:\n * maskAllText: true,\n * blockAllMedia: true,\n * maskAllInputs: true,\n * networkDetailAllowUrls: [`${location.origin}/api/`]\n * }\n */\n integrations.push(Sentry.replayIntegration(config.get('sentry.integrations.replay')));\n }\n\n if (config.get('sentry.integrations.feedback')) {\n integrations.push(Sentry.feedbackIntegration(config.get('sentry.integrations.feedback')));\n }\n\n Sentry.init(custom({\n dsn,\n enabled: config.get('sentry.enabled', environment.sentry?.enabled ?? false),\n debug: config.get('sentry.debug', environment.sentry?.debug ?? false),\n environment: config.get('environment', DetermineSentryEnvironment(environment)),\n release: DetermineSentryRelease(environment),\n transport: Sentry.makeBrowserOfflineTransport(Sentry.makeFetchTransport),\n integrations,\n tracesSampleRate: config.get('sentry.tracesSampleRate', 1.0),\n // Sentry v11 replaced `profilesSampleRate` with the session based `profileSessionSampleRate`.\n // The legacy config key `sentry.profilesSampleRate` is still honored as a fallback.\n profileSessionSampleRate: config.get('sentry.profileSessionSampleRate', config.get('sentry.profilesSampleRate', 1.0)),\n profileLifecycle: config.get('sentry.profileLifecycle', 'trace'),\n tracePropagationTargets: [\"localhost\", new RegExp(`${location.origin}/api/`)],\n replaysSessionSampleRate: config.get('sentry.replaysSessionSampleRate', 0.0),\n replaysOnErrorSampleRate: config.get('sentry.replaysOnErrorSampleRate', 1.0),\n maxValueLength: config.get('sentry.maxValueLength', Number.MAX_SAFE_INTEGER),\n // Sentry v11 removed `sendDefaultPii` in favor of `dataCollection`. The defaults of `dataCollection`\n // collect everything, which matches the former default `sendDefaultPii: true`. The legacy config key\n // `sentry.sendDefaultPii: false` is mapped to the equivalent restrictive `dataCollection` settings.\n dataCollection: config.get<DataCollection>(\n 'sentry.dataCollection',\n config.get('sentry.sendDefaultPii', true) ? {} : { userInfo: false, cookies: false, httpHeaders: false },\n ),\n\n initialScope: {\n user: { ip_address: '{{auto}}' },\n tags: {\n origin: location.origin,\n host: location.host,\n },\n },\n\n ignoreErrors: [\n 'Non-Error exception captured',\n ],\n }, config));\n\n };\n}\n"],"mappings":";;AAaA,SAAgB,2BAA2B,aAAwB;CACjE,QAAQ,YAAY,SAApB;EACE,KAAK,SACH;EACF,KAAK,cACH,OAAO,mCAAmC,WAAW;EACvD,SACE;CACJ;AACF;ACZA,SAAgB,uBAAuB,aAAwB;CAC7D,QAAQ,YAAY,MAApB;EACE,KAAK,SACH;EACF,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;GACH,IAAI,YAAY,KAAK,MAAM,iBAAiB,GAE1C,OAAO,YAAY,IAAI,QAAQ,MAAM,EAAE;GAEzC,OAAO,YAAY,OAAO;EAC5B,SACE;CACJ;AACF;AChBA,SAAgB,wBAAwB,aAA0B,UAA6E,YAAW,SAAO;CAC/J,QAAQ,WAAyB;EAE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IAAI,yBAAyB,OAAO,gBAAgB;GAI3E,gBAAgB,OAAO,IACrB,yBACA,OAAO,IAAI,yBAAyB,IAAI,IAAI,CAAA,IAAK;IAAE,UAAU;IAAO,SAAS;IAAO,aAAa;GAAK,CAAE;GAG1G,cAAc;IACZ,MAAM,EAAE,YAAY,WAAU;IAC9B,MAAM;KACJ,QAAQ,SAAS;KACjB,MAAM,SAAS;IAChB;GACF;GAED,cAAc,CACZ,8BACD;EACF,GAAE,MAAM,CAAC;CAEZ;AACF"}
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
- "version": "21.0.1",
2
+ "version": "22.0.0-dev.0",
3
3
  "name": "@rxap/ngx-sentry",
4
4
  "description": "This package provides utilities for initializing Sentry in Angular applications. It includes functions to determine the Sentry environment and release based on the application's environment, and a function to initialize Sentry with these configurations. It also includes a generator to add peer dependencies to the package.json.\n",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "dependencies": {
7
- "@nx/devkit": "22.7.5",
7
+ "@nx/devkit": "24.0.6",
8
8
  "tslib": "2.6.2"
9
9
  },
10
10
  "peerDependencies": {
11
- "@rxap/config": "^21.0.1",
12
- "@rxap/environment": "^21.0.1",
13
- "@sentry/angular": "^10.10.0"
11
+ "@rxap/config": "^22.0.0-dev.0",
12
+ "@rxap/environment": "^22.0.0-dev.0",
13
+ "@sentry/angular": "^11.16.0"
14
14
  },
15
15
  "author": {
16
16
  "name": "Merzough Münker",
@@ -35,23 +35,23 @@
35
35
  "packageGroup": [
36
36
  {
37
37
  "package": "@angular/common",
38
- "version": "21.2.9"
38
+ "version": "22.3.0"
39
39
  },
40
40
  {
41
41
  "package": "@angular/core",
42
- "version": "21.2.9"
42
+ "version": "22.3.0"
43
43
  },
44
44
  {
45
45
  "package": "@angular/router",
46
- "version": "21.2.9"
46
+ "version": "22.3.0"
47
47
  },
48
48
  {
49
49
  "package": "@rxap/config",
50
- "version": "21.0.1"
50
+ "version": "22.0.0-dev.0"
51
51
  },
52
52
  {
53
53
  "package": "@rxap/environment",
54
- "version": "21.0.1"
54
+ "version": "22.0.0-dev.0"
55
55
  },
56
56
  {
57
57
  "package": "@rxap/utilities",
@@ -59,7 +59,7 @@
59
59
  },
60
60
  {
61
61
  "package": "@sentry/angular",
62
- "version": "10.10.0"
62
+ "version": "11.16.0"
63
63
  }
64
64
  ]
65
65
  },
@@ -1,7 +1,9 @@
1
- import { Environment } from '@rxap/environment';
2
- import { ConfigService } from '@rxap/config';
3
- import { BrowserOptions } from '@sentry/browser';
4
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import { Environment } from "@rxap/environment";
5
+ import { ConfigService } from "@rxap/config";
6
+ import { BrowserOptions } from "@sentry/browser";
5
7
  /**
6
8
  * Determines the sentry environment based on the build info object.
7
9
  *
@@ -10,8 +12,7 @@ import { BrowserOptions } from '@sentry/browser';
10
12
  *
11
13
  * @param environment
12
14
  */
13
- declare function DetermineSentryEnvironment(environment: Environment): string | undefined;
14
-
15
+ export declare function DetermineSentryEnvironment(environment: Environment): string | undefined;
15
16
  /**
16
17
  * Determines the sentry release based on the build info object.
17
18
  *
@@ -20,8 +21,5 @@ declare function DetermineSentryEnvironment(environment: Environment): string |
20
21
  *
21
22
  * @param environment
22
23
  */
23
- declare function DetermineSentryRelease(environment: Environment): string | undefined;
24
-
25
- declare function sentryInitBootstrapHook(environment: Environment, custom?: (options: BrowserOptions, config: ConfigService) => BrowserOptions): (config: ConfigService) => void;
26
-
27
- export { DetermineSentryEnvironment, DetermineSentryRelease, sentryInitBootstrapHook };
24
+ export declare function DetermineSentryRelease(environment: Environment): string | undefined;
25
+ export declare function sentryInitBootstrapHook(environment: Environment, custom?: (options: BrowserOptions, config: ConfigService) => BrowserOptions): (config: ConfigService) => void;