@wix/monitoring-types 0.7.0 → 0.9.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.
package/build/index.d.mts CHANGED
@@ -85,21 +85,21 @@ interface MonitoringClient {
85
85
  * @param captureContext Optional additional data to attach to the Sentry e vent.
86
86
  * @returns the id of the captured Sentry event.
87
87
  */
88
- captureException(error: unknown, captureContext?: CaptureContext): string;
88
+ captureException(error: unknown, captureContext?: CaptureContext): void;
89
89
  /**
90
90
  * Captures a message event and sends it to Sentry.
91
91
  * @param message The message to capture
92
92
  * @param captureContext Define the level of the message or pass in additional data to attach to the message.
93
93
  * @returns the id of the captured message.
94
94
  */
95
- captureMessage(message: string, captureContext?: CaptureContext): string;
95
+ captureMessage(message: string, captureContext?: CaptureContext): void;
96
96
  /**
97
97
  * Wraps a function with a span and finishes the span after the function is done. The created span is the active span and will be used as parent by other spans created inside the function, as long as the function is executed while the scope is active.
98
98
  * @param spanOptions The options for the span
99
99
  * @param callback The function to wrap with a span
100
100
  * @returns The return value of the callback
101
101
  */
102
- startSpan<T>(spanOptions: SpanOptions, callback: (span: Span | undefined) => T): T;
102
+ startSpan<T>(spanOptions: SpanOptions, callback: (span: Span | undefined) => T): Promise<T>;
103
103
  /**
104
104
  * Records a new breadcrumb which will be attached to future events.
105
105
  * Breadcrumbs will be added to subsequent events to provide more context on user's actions prior to an error or crash.
package/build/index.d.ts CHANGED
@@ -85,21 +85,21 @@ interface MonitoringClient {
85
85
  * @param captureContext Optional additional data to attach to the Sentry e vent.
86
86
  * @returns the id of the captured Sentry event.
87
87
  */
88
- captureException(error: unknown, captureContext?: CaptureContext): string;
88
+ captureException(error: unknown, captureContext?: CaptureContext): void;
89
89
  /**
90
90
  * Captures a message event and sends it to Sentry.
91
91
  * @param message The message to capture
92
92
  * @param captureContext Define the level of the message or pass in additional data to attach to the message.
93
93
  * @returns the id of the captured message.
94
94
  */
95
- captureMessage(message: string, captureContext?: CaptureContext): string;
95
+ captureMessage(message: string, captureContext?: CaptureContext): void;
96
96
  /**
97
97
  * Wraps a function with a span and finishes the span after the function is done. The created span is the active span and will be used as parent by other spans created inside the function, as long as the function is executed while the scope is active.
98
98
  * @param spanOptions The options for the span
99
99
  * @param callback The function to wrap with a span
100
100
  * @returns The return value of the callback
101
101
  */
102
- startSpan<T>(spanOptions: SpanOptions, callback: (span: Span | undefined) => T): T;
102
+ startSpan<T>(spanOptions: SpanOptions, callback: (span: Span | undefined) => T): Promise<T>;
103
103
  /**
104
104
  * Records a new breadcrumb which will be attached to future events.
105
105
  * Breadcrumbs will be added to subsequent events to provide more context on user's actions prior to an error or crash.
package/build/index.js CHANGED
@@ -14,5 +14,5 @@ var __copyProps = (to, from, except, desc) => {
14
14
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
15
 
16
16
  // src/index.ts
17
- var src_exports = {};
18
- module.exports = __toCommonJS(src_exports);
17
+ var index_exports = {};
18
+ module.exports = __toCommonJS(index_exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/monitoring-types",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Gili Shohat",
@@ -29,11 +29,11 @@
29
29
  "*.{js,ts}": "yarn lint"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/node": "^20.17.16",
32
+ "@types/node": "^20.17.19",
33
33
  "eslint": "^8.57.1",
34
34
  "eslint-config-sdk": "0.0.0",
35
- "tsup": "^7.3.0",
36
- "type-fest": "^4.33.0",
35
+ "tsup": "^8.3.6",
36
+ "type-fest": "^4.35.0",
37
37
  "typescript": "^5.7.3"
38
38
  },
39
39
  "eslintConfig": {
@@ -53,5 +53,5 @@
53
53
  ]
54
54
  }
55
55
  },
56
- "falconPackageHash": "922d82fb14a8fbee0a2288f4f3079125eb88750ca491fab69a4ffa6f"
56
+ "falconPackageHash": "20a6784fe7596565cccd81bf2cfe6c1a3a27963131b6b00c7218c19b"
57
57
  }