@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.
- package/build/module/module.d.mts +1 -1
- package/build/module/module.d.ts +1 -1
- package/build/module/module.json +2 -2
- package/build/module/runtime/plugins/sentry.client.d.ts +2 -0
- package/build/module/runtime/plugins/sentry.server.d.ts +2 -0
- package/build/module/runtime/utils.d.ts +26 -0
- package/build/types/module.d.ts +1 -1
- package/package.json +11 -11
|
@@ -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 };
|
package/build/module/module.d.ts
CHANGED
|
@@ -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 };
|
package/build/module/module.json
CHANGED
|
@@ -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;
|
package/build/types/module.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
46
|
-
"@sentry/browser": "8.
|
|
47
|
-
"@sentry/core": "8.
|
|
48
|
-
"@sentry/node": "8.
|
|
49
|
-
"@sentry/opentelemetry": "8.
|
|
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.
|
|
52
|
-
"@sentry/utils": "8.
|
|
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.
|
|
54
|
+
"@sentry/vue": "8.34.0-internal.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@nuxt/module-builder": "0.8.
|
|
58
|
-
"nuxt": "^3.
|
|
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",
|