@nuux/sentry 0.7.0 → 0.8.2

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/README.md CHANGED
@@ -31,6 +31,7 @@ $ yarn add @nuux/sentry
31
31
  Define `SENTRY_DSN` as environment variable.
32
32
 
33
33
  #### Default configuration
34
+
34
35
  ```ruby
35
36
  Nuux::Sentry.configure do |config|
36
37
  config.environments = %w[staging production]
@@ -50,4 +51,5 @@ end
50
51
  - Add `import "@nuux/sentry"` in `javascripts/packs/application.js` as first line.
51
52
 
52
53
  ## License
54
+
53
55
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -16,6 +16,6 @@ export const init = () => {
16
16
  }
17
17
  }
18
18
 
19
- if (Sentry.getCurrentHub().getClient() == null) {
19
+ if (!Sentry.isInitialized()) {
20
20
  init()
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuux/sentry",
3
- "version": "0.7.0",
3
+ "version": "0.8.2",
4
4
  "description": "Initialize Sentry from a meta tag",
5
5
  "main": "app/assets/javascript/nuux-sentry/index.js",
6
6
  "scripts": {
@@ -9,7 +9,7 @@
9
9
  "author": "nuux",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@sentry/browser": "^7.50.0"
12
+ "@sentry/browser": "^9.3.0"
13
13
  },
14
14
  "files": [
15
15
  "app/assets/javascript/nuux-sentry/*.js"