@nuux/sentry 0.6.0 → 0.7.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,11 +1,17 @@
1
1
  import * as Sentry from "@sentry/browser"
2
2
 
3
3
  import { config } from "./config"
4
- import { isObject, debug } from "./helper"
4
+
5
+ const isObject = (value) => {
6
+ if (value == null) {
7
+ return false
8
+ } else {
9
+ return value instanceof Object && Object.keys(value).length > 0
10
+ }
11
+ }
5
12
 
6
13
  export const init = () => {
7
14
  if (isObject(config) && config.dsn) {
8
- debug("@nuux/sentry: init", config)
9
15
  Sentry.init(config)
10
16
  }
11
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuux/sentry",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Initialize Sentry from a meta tag",
5
5
  "main": "app/assets/javascript/nuux-sentry/index.js",
6
6
  "scripts": {
@@ -9,8 +9,7 @@
9
9
  "author": "nuux",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@sentry/browser": "^7.47.0",
13
- "@sentry/cli": "^2.17.0"
12
+ "@sentry/browser": "^7.50.0"
14
13
  },
15
14
  "files": [
16
15
  "app/assets/javascript/nuux-sentry/*.js"
@@ -1,13 +0,0 @@
1
- export const isObject = (value) => {
2
- if (value == null) {
3
- return false
4
- }
5
-
6
- return value instanceof Object && Object.keys(value).length > 0
7
- }
8
-
9
- export const debug = (...attributes) => {
10
- if (process.env.NODE_ENV == "development") {
11
- console.debug(...attributes)
12
- }
13
- }