@sentry/ember 6.18.0 → 6.18.1

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.
@@ -2,6 +2,7 @@ import ApplicationInstance from '@ember/application/instance';
2
2
  import Ember from 'ember';
3
3
  import { run, _backburner, scheduleOnce } from '@ember/runloop';
4
4
  import * as Sentry from '@sentry/browser';
5
+ import { ExtendedBackburner } from "@sentry/ember/runloop";
5
6
  import { Span, Transaction, Integration } from '@sentry/types';
6
7
  import { EmberRunQueues } from '@ember/runloop/-private/types';
7
8
  import { getActiveTransaction } from '..';
@@ -28,11 +29,19 @@ export function initialize(appInstance: ApplicationInstance): void {
28
29
  }
29
30
  }
30
31
 
31
- function getBackburner() {
32
+ function getBackburner(): Pick<ExtendedBackburner, "on" | "off"> {
33
+ if (_backburner) {
34
+ return _backburner;
35
+ }
36
+
32
37
  if (run.backburner) {
33
38
  return run.backburner;
34
39
  }
35
- return _backburner;
40
+
41
+ return {
42
+ on() {},
43
+ off() {}
44
+ }
36
45
  }
37
46
 
38
47
  function getTransitionInformation(transition: any, router: any) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/ember",
3
- "version": "6.18.0",
3
+ "version": "6.18.1",
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",
@@ -31,10 +31,10 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@embroider/macros": "~0.47.2",
34
- "@sentry/browser": "6.18.0",
35
- "@sentry/tracing": "6.18.0",
36
- "@sentry/types": "6.18.0",
37
- "@sentry/utils": "6.18.0",
34
+ "@sentry/browser": "6.18.1",
35
+ "@sentry/tracing": "6.18.1",
36
+ "@sentry/types": "6.18.1",
37
+ "@sentry/utils": "6.18.1",
38
38
  "ember-auto-import": "^1.12.0 || ^2.2.0",
39
39
  "ember-cli-babel": "~7.26.6",
40
40
  "ember-cli-htmlbars": "^6.0.1",