@sentry/ember 8.10.0 → 8.12.0-beta.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.
- package/addon/index.ts +6 -4
- package/index.d.ts +2 -1
- package/package.json +5 -5
package/addon/index.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, app
|
|
|
9
9
|
import { GLOBAL_OBJ } from '@sentry/utils';
|
|
10
10
|
import Ember from 'ember';
|
|
11
11
|
|
|
12
|
-
import type { TransactionSource } from '@sentry/types';
|
|
12
|
+
import type { Client, TransactionSource } from '@sentry/types';
|
|
13
13
|
import type { EmberSentryConfig, GlobalConfig, OwnConfig } from './types';
|
|
14
14
|
|
|
15
15
|
function _getSentryInitConfig(): EmberSentryConfig['sentry'] {
|
|
@@ -21,7 +21,7 @@ function _getSentryInitConfig(): EmberSentryConfig['sentry'] {
|
|
|
21
21
|
/**
|
|
22
22
|
* Initialize the Sentry SDK for Ember.
|
|
23
23
|
*/
|
|
24
|
-
export function init(_runtimeConfig?: BrowserOptions):
|
|
24
|
+
export function init(_runtimeConfig?: BrowserOptions): Client | undefined {
|
|
25
25
|
const environmentConfig = getOwnConfig<OwnConfig>().sentryConfig;
|
|
26
26
|
|
|
27
27
|
assert('Missing configuration.', environmentConfig);
|
|
@@ -42,11 +42,11 @@ export function init(_runtimeConfig?: BrowserOptions): void {
|
|
|
42
42
|
const sentryInitConfig = _getSentryInitConfig();
|
|
43
43
|
Object.assign(sentryInitConfig, initConfig);
|
|
44
44
|
|
|
45
|
-
Sentry.init(initConfig);
|
|
45
|
+
const client = Sentry.init(initConfig);
|
|
46
46
|
|
|
47
47
|
if (macroCondition(isDevelopingApp())) {
|
|
48
48
|
if (environmentConfig.ignoreEmberOnErrorWarning) {
|
|
49
|
-
return;
|
|
49
|
+
return client;
|
|
50
50
|
}
|
|
51
51
|
next(null, function () {
|
|
52
52
|
warn(
|
|
@@ -58,6 +58,8 @@ export function init(_runtimeConfig?: BrowserOptions): void {
|
|
|
58
58
|
);
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
+
|
|
62
|
+
return client;
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
type RouteConstructor = new (...args: ConstructorParameters<typeof Route>) => Route;
|
package/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type Route from '@ember/routing/route';
|
|
2
2
|
import type { BrowserOptions } from '@sentry/browser';
|
|
3
|
+
import type { Client } from '@sentry/types';
|
|
3
4
|
/**
|
|
4
5
|
* Initialize the Sentry SDK for Ember.
|
|
5
6
|
*/
|
|
6
|
-
export declare function init(_runtimeConfig?: BrowserOptions):
|
|
7
|
+
export declare function init(_runtimeConfig?: BrowserOptions): Client | undefined;
|
|
7
8
|
type RouteConstructor = new (...args: ConstructorParameters<typeof Route>) => Route;
|
|
8
9
|
export declare const instrumentRoutePerformance: <T extends RouteConstructor>(BaseRoute: T) => T;
|
|
9
10
|
export * from '@sentry/browser';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/ember",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.12.0-beta.0",
|
|
4
4
|
"description": "Official Sentry SDK for Ember.js",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/ember",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/core": "^7.24.4",
|
|
35
35
|
"@embroider/macros": "^1.16.0",
|
|
36
|
-
"@sentry/browser": "8.
|
|
37
|
-
"@sentry/core": "8.
|
|
38
|
-
"@sentry/types": "8.
|
|
39
|
-
"@sentry/utils": "8.
|
|
36
|
+
"@sentry/browser": "8.12.0-beta.0",
|
|
37
|
+
"@sentry/core": "8.12.0-beta.0",
|
|
38
|
+
"@sentry/types": "8.12.0-beta.0",
|
|
39
|
+
"@sentry/utils": "8.12.0-beta.0",
|
|
40
40
|
"ember-auto-import": "^2.7.2",
|
|
41
41
|
"ember-cli-babel": "^8.2.0",
|
|
42
42
|
"ember-cli-htmlbars": "^6.1.1",
|