@sentry/node 8.0.0-alpha.9 → 8.0.0-beta.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/cjs/index.js +307 -76
- package/cjs/index.js.map +1 -1
- package/esm/index.js +310 -80
- package/esm/index.js.map +1 -1
- package/esm/integrations/anr/worker-script.js +2 -2
- package/esm/integrations/local-variables/worker-script.js +2 -0
- package/package.json +19 -19
- package/types/index.d.ts +2 -2
- package/types/index.d.ts.map +1 -1
- package/types/integrations/anr/index.d.ts +1 -0
- package/types/integrations/anr/index.d.ts.map +1 -1
- package/types/integrations/http.d.ts.map +1 -1
- package/types/integrations/local-variables/common.d.ts +12 -0
- package/types/integrations/local-variables/common.d.ts.map +1 -1
- package/types/integrations/local-variables/index.d.ts +3 -1
- package/types/integrations/local-variables/index.d.ts.map +1 -1
- package/types/integrations/local-variables/local-variables-async.d.ts +7 -0
- package/types/integrations/local-variables/local-variables-async.d.ts.map +1 -0
- package/types/integrations/local-variables/worker.d.ts +2 -0
- package/types/integrations/local-variables/worker.d.ts.map +1 -0
- package/types/integrations/onuncaughtexception.d.ts +1 -1
- package/types/integrations/onuncaughtexception.d.ts.map +1 -1
- package/types/integrations/tracing/express.d.ts.map +1 -1
- package/types/integrations/tracing/fastify.d.ts +2 -2
- package/types/integrations/tracing/fastify.d.ts.map +1 -1
- package/types/integrations/tracing/hapi/index.d.ts.map +1 -1
- package/types/integrations/tracing/koa.d.ts.map +1 -1
- package/types/integrations/tracing/nest.d.ts +22 -5
- package/types/integrations/tracing/nest.d.ts.map +1 -1
- package/types/sdk/initOtel.d.ts.map +1 -1
- package/types/transports/http.d.ts.map +1 -1
- package/types-ts3.8/index.d.ts +2 -2
- package/types-ts3.8/integrations/anr/index.d.ts +1 -0
- package/types-ts3.8/integrations/local-variables/common.d.ts +12 -0
- package/types-ts3.8/integrations/local-variables/index.d.ts +3 -1
- package/types-ts3.8/integrations/local-variables/local-variables-async.d.ts +7 -0
- package/types-ts3.8/integrations/local-variables/worker.d.ts +2 -0
- package/types-ts3.8/integrations/onuncaughtexception.d.ts +1 -1
- package/types-ts3.8/integrations/tracing/fastify.d.ts +2 -2
- package/types-ts3.8/integrations/tracing/nest.d.ts +22 -5
- package/register.mjs +0 -3
- package/types/integrations/anr/worker-script.d.ts +0 -2
- package/types/integrations/anr/worker-script.d.ts.map +0 -1
- package/types-ts3.8/integrations/anr/worker-script.d.ts +0 -2
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const fastifyIntegration: () => import("@sentry/types").Integration;
|
|
7
7
|
interface Fastify {
|
|
8
|
-
register: (plugin:
|
|
9
|
-
addHook: (hook: string, handler: (request:
|
|
8
|
+
register: (plugin: any) => void;
|
|
9
|
+
addHook: (hook: string, handler: (request: any, reply: any, error: Error) => void) => void;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Setup an error handler for Fastify.
|
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
interface MinimalNestJsExecutionContext {
|
|
2
|
+
switchToHttp: () => {
|
|
3
|
+
getRequest: () => {
|
|
4
|
+
route?: {
|
|
5
|
+
path?: string;
|
|
6
|
+
};
|
|
7
|
+
method?: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
interface MinimalNestJsApp {
|
|
12
|
+
useGlobalFilters: (arg0: {
|
|
13
|
+
catch(exception: unknown): void;
|
|
14
|
+
}) => void;
|
|
15
|
+
useGlobalInterceptors: (interceptor: {
|
|
16
|
+
intercept: (context: MinimalNestJsExecutionContext, next: {
|
|
17
|
+
handle: () => void;
|
|
18
|
+
}) => void;
|
|
19
|
+
}) => void;
|
|
20
|
+
}
|
|
1
21
|
/**
|
|
2
22
|
* Nest framework integration
|
|
3
23
|
*
|
|
@@ -7,9 +27,6 @@ export declare const nestIntegration: () => import("@sentry/types").Integration;
|
|
|
7
27
|
/**
|
|
8
28
|
* Setup an error handler for Nest.
|
|
9
29
|
*/
|
|
10
|
-
export declare function setupNestErrorHandler(app:
|
|
11
|
-
|
|
12
|
-
catch(exception: unknown): void;
|
|
13
|
-
}) => void;
|
|
14
|
-
}): void;
|
|
30
|
+
export declare function setupNestErrorHandler(app: MinimalNestJsApp): void;
|
|
31
|
+
export {};
|
|
15
32
|
//# sourceMappingURL=nest.d.ts.map
|
package/register.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worker-script.d.ts","sourceRoot":"","sources":["../../../../src/integrations/anr/worker-script.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,kBAAkB,6BAA6B,CAAC"}
|