@xifan0/monitor-web 0.0.2-beta.10 → 0.0.2-beta.12

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/dist/index.js CHANGED
@@ -37,7 +37,7 @@ __export(index_exports, {
37
37
  setUser: () => setUser
38
38
  });
39
39
  module.exports = __toCommonJS(index_exports);
40
- var Sentry = __toESM(require("@sentry/react"));
40
+ var SentryModule = __toESM(require("@sentry/react"));
41
41
 
42
42
  // ../monitor-core/src/createMonitor.ts
43
43
  function createMonitor(sentry) {
@@ -86,6 +86,7 @@ function createMonitor(sentry) {
86
86
  }
87
87
 
88
88
  // src/index.ts
89
+ var Sentry = SentryModule.default || SentryModule;
89
90
  var Monitor = createMonitor(Sentry);
90
91
  var { init, captureException, captureMessage, setUser } = Monitor;
91
92
  var index_default = Monitor;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/index.ts
2
- import * as Sentry from "@sentry/react";
2
+ import * as SentryModule from "@sentry/react";
3
3
 
4
4
  // ../monitor-core/src/createMonitor.ts
5
5
  function createMonitor(sentry) {
@@ -48,6 +48,7 @@ function createMonitor(sentry) {
48
48
  }
49
49
 
50
50
  // src/index.ts
51
+ var Sentry = SentryModule.default || SentryModule;
51
52
  var Monitor = createMonitor(Sentry);
52
53
  var { init, captureException, captureMessage, setUser } = Monitor;
53
54
  var index_default = Monitor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xifan0/monitor-web",
3
- "version": "0.0.2-beta.10",
3
+ "version": "0.0.2-beta.12",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@sentry/react": "^7",
23
- "@xifan0/monitor-core": "0.0.2-beta.10"
23
+ "@xifan0/monitor-core": "0.0.2-beta.12"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@sentry/react": "^7",