@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.
Files changed (44) hide show
  1. package/cjs/index.js +307 -76
  2. package/cjs/index.js.map +1 -1
  3. package/esm/index.js +310 -80
  4. package/esm/index.js.map +1 -1
  5. package/esm/integrations/anr/worker-script.js +2 -2
  6. package/esm/integrations/local-variables/worker-script.js +2 -0
  7. package/package.json +19 -19
  8. package/types/index.d.ts +2 -2
  9. package/types/index.d.ts.map +1 -1
  10. package/types/integrations/anr/index.d.ts +1 -0
  11. package/types/integrations/anr/index.d.ts.map +1 -1
  12. package/types/integrations/http.d.ts.map +1 -1
  13. package/types/integrations/local-variables/common.d.ts +12 -0
  14. package/types/integrations/local-variables/common.d.ts.map +1 -1
  15. package/types/integrations/local-variables/index.d.ts +3 -1
  16. package/types/integrations/local-variables/index.d.ts.map +1 -1
  17. package/types/integrations/local-variables/local-variables-async.d.ts +7 -0
  18. package/types/integrations/local-variables/local-variables-async.d.ts.map +1 -0
  19. package/types/integrations/local-variables/worker.d.ts +2 -0
  20. package/types/integrations/local-variables/worker.d.ts.map +1 -0
  21. package/types/integrations/onuncaughtexception.d.ts +1 -1
  22. package/types/integrations/onuncaughtexception.d.ts.map +1 -1
  23. package/types/integrations/tracing/express.d.ts.map +1 -1
  24. package/types/integrations/tracing/fastify.d.ts +2 -2
  25. package/types/integrations/tracing/fastify.d.ts.map +1 -1
  26. package/types/integrations/tracing/hapi/index.d.ts.map +1 -1
  27. package/types/integrations/tracing/koa.d.ts.map +1 -1
  28. package/types/integrations/tracing/nest.d.ts +22 -5
  29. package/types/integrations/tracing/nest.d.ts.map +1 -1
  30. package/types/sdk/initOtel.d.ts.map +1 -1
  31. package/types/transports/http.d.ts.map +1 -1
  32. package/types-ts3.8/index.d.ts +2 -2
  33. package/types-ts3.8/integrations/anr/index.d.ts +1 -0
  34. package/types-ts3.8/integrations/local-variables/common.d.ts +12 -0
  35. package/types-ts3.8/integrations/local-variables/index.d.ts +3 -1
  36. package/types-ts3.8/integrations/local-variables/local-variables-async.d.ts +7 -0
  37. package/types-ts3.8/integrations/local-variables/worker.d.ts +2 -0
  38. package/types-ts3.8/integrations/onuncaughtexception.d.ts +1 -1
  39. package/types-ts3.8/integrations/tracing/fastify.d.ts +2 -2
  40. package/types-ts3.8/integrations/tracing/nest.d.ts +22 -5
  41. package/register.mjs +0 -3
  42. package/types/integrations/anr/worker-script.d.ts +0 -2
  43. package/types/integrations/anr/worker-script.d.ts.map +0 -1
  44. 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: unknown) => void;
9
- addHook: (hook: string, handler: (request: unknown, reply: unknown, error: Error) => void) => void;
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
- useGlobalFilters: (arg0: {
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,3 +0,0 @@
1
- import { register } from 'module';
2
-
3
- register('@opentelemetry/instrumentation/hook.mjs', import.meta.url);
@@ -1,2 +0,0 @@
1
- export declare const base64WorkerScript = "###base64WorkerScript###";
2
- //# sourceMappingURL=worker-script.d.ts.map
@@ -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"}
@@ -1,2 +0,0 @@
1
- export declare const base64WorkerScript = "###base64WorkerScript###";
2
- //# sourceMappingURL=worker-script.d.ts.map