@sentry/nuxt 8.33.0 → 8.34.0-internal.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.
@@ -108,6 +108,6 @@ type SentryNuxtModuleOptions = {
108
108
  };
109
109
 
110
110
  type ModuleOptions = SentryNuxtModuleOptions;
111
- declare const _default: _nuxt_schema.NuxtModule<SentryNuxtModuleOptions>;
111
+ declare const _default: _nuxt_schema.NuxtModule<SentryNuxtModuleOptions, SentryNuxtModuleOptions, false>;
112
112
 
113
113
  export { type ModuleOptions, _default as default };
@@ -108,6 +108,6 @@ type SentryNuxtModuleOptions = {
108
108
  };
109
109
 
110
110
  type ModuleOptions = SentryNuxtModuleOptions;
111
- declare const _default: _nuxt_schema.NuxtModule<SentryNuxtModuleOptions>;
111
+ declare const _default: _nuxt_schema.NuxtModule<SentryNuxtModuleOptions, SentryNuxtModuleOptions, false>;
112
112
 
113
113
  export { type ModuleOptions, _default as default };
@@ -4,9 +4,9 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "8.33.0",
7
+ "version": "8.34.0-internal.0",
8
8
  "builder": {
9
- "@nuxt/module-builder": "0.8.1",
9
+ "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "2.0.0"
11
11
  }
12
12
  }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("nitropack/runtime").NitroAppPlugin;
2
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import type { Context } from '@sentry/types';
2
+ import type { CapturedErrorContext } from 'nitropack';
3
+ import type { NuxtRenderHTMLContext } from 'nuxt/app';
4
+ import type { ComponentPublicInstance } from 'vue';
5
+ /**
6
+ * Extracts the relevant context information from the error context (H3Event in Nitro Error)
7
+ * and created a structured context object.
8
+ */
9
+ export declare function extractErrorContext(errorContext: CapturedErrorContext): Context;
10
+ /**
11
+ * Adds Sentry tracing <meta> tags to the returned html page.
12
+ *
13
+ * Exported only for testing
14
+ */
15
+ export declare function addSentryTracingMetaTags(head: NuxtRenderHTMLContext['head']): void;
16
+ /**
17
+ * Reports an error to Sentry. This function is similar to `attachErrorHandler` in `@sentry/vue`.
18
+ * The Nuxt SDK does not register an error handler, but uses the Nuxt error hooks to report errors.
19
+ *
20
+ * We don't want to use the error handling from `@sentry/vue` as it wraps the existing error handler, which leads to a 500 error: https://github.com/getsentry/sentry-javascript/issues/12515
21
+ */
22
+ export declare function reportNuxtError(options: {
23
+ error: unknown;
24
+ instance?: ComponentPublicInstance | null;
25
+ info?: string;
26
+ }): void;
@@ -1,5 +1,5 @@
1
1
  import type { SentryNuxtModuleOptions } from './common/types';
2
2
  export type ModuleOptions = SentryNuxtModuleOptions;
3
- declare const _default: import("@nuxt/schema").NuxtModule<SentryNuxtModuleOptions>;
3
+ declare const _default: import("@nuxt/schema").NuxtModule<SentryNuxtModuleOptions, SentryNuxtModuleOptions, false>;
4
4
  export default _default;
5
5
  //# sourceMappingURL=module.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/nuxt",
3
- "version": "8.33.0",
3
+ "version": "8.34.0-internal.0",
4
4
  "description": "Official Sentry SDK for Nuxt (EXPERIMENTAL)",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/nuxt",
@@ -42,20 +42,20 @@
42
42
  "nuxt": "3.x"
43
43
  },
44
44
  "dependencies": {
45
- "@nuxt/kit": "^3.12.2",
46
- "@sentry/browser": "8.33.0",
47
- "@sentry/core": "8.33.0",
48
- "@sentry/node": "8.33.0",
49
- "@sentry/opentelemetry": "8.33.0",
45
+ "@nuxt/kit": "^3.13.2",
46
+ "@sentry/browser": "8.34.0-internal.0",
47
+ "@sentry/core": "8.34.0-internal.0",
48
+ "@sentry/node": "8.34.0-internal.0",
49
+ "@sentry/opentelemetry": "8.34.0-internal.0",
50
50
  "@sentry/rollup-plugin": "2.22.3",
51
- "@sentry/types": "8.33.0",
52
- "@sentry/utils": "8.33.0",
51
+ "@sentry/types": "8.34.0-internal.0",
52
+ "@sentry/utils": "8.34.0-internal.0",
53
53
  "@sentry/vite-plugin": "2.22.3",
54
- "@sentry/vue": "8.33.0"
54
+ "@sentry/vue": "8.34.0-internal.0"
55
55
  },
56
56
  "devDependencies": {
57
- "@nuxt/module-builder": "0.8.1",
58
- "nuxt": "^3.12.2"
57
+ "@nuxt/module-builder": "^0.8.4",
58
+ "nuxt": "^3.13.2"
59
59
  },
60
60
  "scripts": {
61
61
  "build": "run-s build:types build:transpile",