@xifan0/monitor-web 0.0.2-beta.3 → 0.0.2-beta.5

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.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as _xifan0_monitor_core from '@xifan0/monitor-core';
2
+ export { createMonitor } from '@xifan0/monitor-core';
2
3
 
3
4
  declare const Monitor: _xifan0_monitor_core.Monitor;
4
5
  declare const init: (options: any) => any;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as _xifan0_monitor_core from '@xifan0/monitor-core';
2
+ export { createMonitor } from '@xifan0/monitor-core';
2
3
 
3
4
  declare const Monitor: _xifan0_monitor_core.Monitor;
4
5
  declare const init: (options: any) => any;
package/dist/index.js CHANGED
@@ -32,6 +32,7 @@ var index_exports = {};
32
32
  __export(index_exports, {
33
33
  captureException: () => captureException,
34
34
  captureMessage: () => captureMessage,
35
+ createMonitor: () => import_monitor_core2.createMonitor,
35
36
  default: () => index_default,
36
37
  init: () => init,
37
38
  setUser: () => setUser
@@ -39,6 +40,7 @@ __export(index_exports, {
39
40
  module.exports = __toCommonJS(index_exports);
40
41
  var Sentry = __toESM(require("@sentry/react"));
41
42
  var import_monitor_core = require("@xifan0/monitor-core");
43
+ var import_monitor_core2 = require("@xifan0/monitor-core");
42
44
  var Monitor = (0, import_monitor_core.createMonitor)(Sentry);
43
45
  var { init, captureException, captureMessage, setUser } = Monitor;
44
46
  var index_default = Monitor;
@@ -46,6 +48,7 @@ var index_default = Monitor;
46
48
  0 && (module.exports = {
47
49
  captureException,
48
50
  captureMessage,
51
+ createMonitor,
49
52
  init,
50
53
  setUser
51
54
  });
package/dist/index.mjs CHANGED
@@ -1,12 +1,14 @@
1
1
  // src/index.ts
2
2
  import * as Sentry from "@sentry/react";
3
3
  import { createMonitor } from "@xifan0/monitor-core";
4
+ import { createMonitor as createMonitor2 } from "@xifan0/monitor-core";
4
5
  var Monitor = createMonitor(Sentry);
5
6
  var { init, captureException, captureMessage, setUser } = Monitor;
6
7
  var index_default = Monitor;
7
8
  export {
8
9
  captureException,
9
10
  captureMessage,
11
+ createMonitor2 as createMonitor,
10
12
  index_default as default,
11
13
  init,
12
14
  setUser
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@xifan0/monitor-web",
3
- "version": "0.0.2-beta.3",
4
- "main": "./dist/index.js",
5
- "module": "./dist/index.mjs",
6
- "types": "./dist/index.d.ts",
3
+ "version": "0.0.2-beta.5",
4
+ "main": "dist/index.js",
5
+ "module": "dist/index.mjs",
6
+ "types": "dist/index.d.ts",
7
7
  "sideEffects": false,
8
8
  "files": [
9
9
  "dist"
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@sentry/react": "^7",
23
- "@xifan0/monitor-core": "0.0.2-beta.3"
23
+ "@xifan0/monitor-core": "0.0.2-beta.5"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@sentry/react": "^7",