@sentry/nuxt 8.16.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.
Files changed (54) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +98 -0
  3. package/build/cjs/client/index.js +19 -0
  4. package/build/cjs/client/index.js.map +1 -0
  5. package/build/cjs/client/sdk.js +22 -0
  6. package/build/cjs/client/sdk.js.map +1 -0
  7. package/build/cjs/index.client.js +19 -0
  8. package/build/cjs/index.client.js.map +1 -0
  9. package/build/cjs/index.server.js +19 -0
  10. package/build/cjs/index.server.js.map +1 -0
  11. package/build/cjs/server/index.js +19 -0
  12. package/build/cjs/server/index.js.map +1 -0
  13. package/build/cjs/server/sdk.js +22 -0
  14. package/build/cjs/server/sdk.js.map +1 -0
  15. package/build/esm/client/index.js +3 -0
  16. package/build/esm/client/index.js.map +1 -0
  17. package/build/esm/client/sdk.js +20 -0
  18. package/build/esm/client/sdk.js.map +1 -0
  19. package/build/esm/index.client.js +3 -0
  20. package/build/esm/index.client.js.map +1 -0
  21. package/build/esm/index.server.js +3 -0
  22. package/build/esm/index.server.js.map +1 -0
  23. package/build/esm/package.json +1 -0
  24. package/build/esm/server/index.js +3 -0
  25. package/build/esm/server/index.js.map +1 -0
  26. package/build/esm/server/sdk.js +20 -0
  27. package/build/esm/server/sdk.js.map +1 -0
  28. package/build/types/client/index.d.ts +3 -0
  29. package/build/types/client/index.d.ts.map +1 -0
  30. package/build/types/client/sdk.d.ts +9 -0
  31. package/build/types/client/sdk.d.ts.map +1 -0
  32. package/build/types/common/debug-build.d.ts +7 -0
  33. package/build/types/common/debug-build.d.ts.map +1 -0
  34. package/build/types/common/types.d.ts +3 -0
  35. package/build/types/common/types.d.ts.map +1 -0
  36. package/build/types/index.client.d.ts +2 -0
  37. package/build/types/index.client.d.ts.map +1 -0
  38. package/build/types/index.server.d.ts +2 -0
  39. package/build/types/index.server.d.ts.map +1 -0
  40. package/build/types/index.types.d.ts +13 -0
  41. package/build/types/index.types.d.ts.map +1 -0
  42. package/build/types/module.d.ts +5 -0
  43. package/build/types/module.d.ts.map +1 -0
  44. package/build/types/runtime/plugins/sentry.client.d.ts +3 -0
  45. package/build/types/runtime/plugins/sentry.client.d.ts.map +1 -0
  46. package/build/types/runtime/plugins/sentry.server.d.ts +3 -0
  47. package/build/types/runtime/plugins/sentry.server.d.ts.map +1 -0
  48. package/build/types/runtime/utils.d.ts +8 -0
  49. package/build/types/runtime/utils.d.ts.map +1 -0
  50. package/build/types/server/index.d.ts +3 -0
  51. package/build/types/server/index.d.ts.map +1 -0
  52. package/build/types/server/sdk.d.ts +9 -0
  53. package/build/types/server/sdk.d.ts.map +1 -0
  54. package/package.json +96 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-2024 Functional Software, Inc. dba Sentry
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9
+ of the Software, and to permit persons to whom the Software is furnished to do
10
+ so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,98 @@
1
+ <p align="center">
2
+ <a href="https://sentry.io/?utm_source=github&utm_medium=logo" target="_blank">
3
+ <img src="https://sentry-brand.storage.googleapis.com/sentry-wordmark-dark-280x84.png" alt="Sentry" width="280" height="84">
4
+ </a>
5
+ </p>
6
+
7
+ # Official Sentry SDK for Nuxt (EXPERIMENTAL)
8
+
9
+ [![npm version](https://img.shields.io/npm/v/@sentry/nuxt.svg)](https://www.npmjs.com/package/@sentry/nuxt)
10
+ [![npm dm](https://img.shields.io/npm/dm/@sentry/nuxt.svg)](https://www.npmjs.com/package/@sentry/nuxt)
11
+ [![npm dt](https://img.shields.io/npm/dt/@sentry/nuxt.svg)](https://www.npmjs.com/package/@sentry/nuxt)
12
+
13
+ **This SDK is under active development! Feel free to already try it but expect breaking changes**
14
+
15
+ ## Links
16
+
17
+ todo: link official SDK docs
18
+
19
+ - [Official Browser SDK Docs](https://docs.sentry.io/platforms/javascript/)
20
+ - [Official Node SDK Docs](https://docs.sentry.io/platforms/node/)
21
+
22
+ ## Compatibility
23
+
24
+ The minimum supported version of Nuxt is `3.0.0`.
25
+
26
+ ## General
27
+
28
+ This package is a wrapper around `@sentry/node` for the server and `@sentry/vue` for the client side, with added
29
+ functionality related to Nuxt.
30
+
31
+ ## Automatic Setup
32
+
33
+ todo: add wizard instructions
34
+
35
+ Take a look at the sections below if you want to customize your SDK configuration.
36
+
37
+ ## Manual Setup
38
+
39
+ If the setup through the wizard doesn't work for you, you can also set up the SDK manually.
40
+
41
+ ### 1. Prerequisites & Installation
42
+
43
+ 1. Install the Sentry Nuxt SDK:
44
+
45
+ ```bash
46
+ # Using npm
47
+ npm install @sentry/nuxt
48
+
49
+ # Using yarn
50
+ yarn add @sentry/nuxt
51
+ ```
52
+
53
+ ### 2. Nuxt Module Setup
54
+
55
+ The Sentry Nuxt SDK is based on [Nuxt Modules](https://nuxt.com/docs/api/kit/modules).
56
+
57
+ 1. Add `@sentry/nuxt/module` to the modules section of `nuxt.config.ts`:
58
+
59
+ ```javascript
60
+ // nuxt.config.ts
61
+ export default defineNuxtConfig({
62
+ modules: ['@sentry/nuxt/module'],
63
+ });
64
+ ```
65
+
66
+ ### 3. Client-side setup
67
+
68
+ Add a `sentry.client.config.(js|ts)` file to the root of your project:
69
+
70
+ ```javascript
71
+ import * as Sentry from '@sentry/nuxt';
72
+
73
+ Sentry.init({
74
+ dsn: env.DSN,
75
+ });
76
+ ```
77
+
78
+ ### 4. Server-side setup
79
+
80
+ Add a `sentry.server.config.(js|ts)` file to the root of your project:
81
+
82
+ ```javascript
83
+ import * as Sentry from '@sentry/nuxt';
84
+
85
+ Sentry.init({
86
+ dsn: env.DSN,
87
+ });
88
+ ```
89
+
90
+ ### 5. Vite Setup
91
+
92
+ todo: add vite setup
93
+
94
+ ---
95
+
96
+ ## Uploading Source Maps
97
+
98
+ todo: add source maps instructions
@@ -0,0 +1,19 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ const vue = require('@sentry/vue');
4
+ const sdk = require('./sdk.js');
5
+
6
+
7
+
8
+ exports.init = sdk.init;
9
+ Object.prototype.hasOwnProperty.call(vue, '__proto__') &&
10
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
11
+ Object.defineProperty(exports, '__proto__', {
12
+ enumerable: true,
13
+ value: vue['__proto__']
14
+ });
15
+
16
+ Object.keys(vue).forEach(k => {
17
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = vue[k];
18
+ });
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,22 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ const browser = require('@sentry/browser');
4
+ const core = require('@sentry/core');
5
+
6
+ /**
7
+ * Initializes the client-side of the Nuxt SDK
8
+ *
9
+ * @param options Configuration options for the SDK.
10
+ */
11
+ function init(options) {
12
+ const sentryOptions = {
13
+ ...options,
14
+ };
15
+
16
+ core.applySdkMetadata(sentryOptions, 'nuxt', ['nuxt', 'vue']);
17
+
18
+ return browser.init(sentryOptions);
19
+ }
20
+
21
+ exports.init = init;
22
+ //# sourceMappingURL=sdk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk.js","sources":["../../../src/client/sdk.ts"],"sourcesContent":["import { init as initBrowser } from '@sentry/browser';\nimport { applySdkMetadata } from '@sentry/core';\nimport type { Client } from '@sentry/types';\nimport type { SentryNuxtOptions } from '../common/types';\n\n/**\n * Initializes the client-side of the Nuxt SDK\n *\n * @param options Configuration options for the SDK.\n */\nexport function init(options: SentryNuxtOptions): Client | undefined {\n const sentryOptions = {\n ...options,\n };\n\n applySdkMetadata(sentryOptions, 'nuxt', ['nuxt', 'vue']);\n\n return initBrowser(sentryOptions);\n}\n"],"names":["applySdkMetadata","initBrowser"],"mappings":";;;;;AAKA;AACA;AACA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,EAAyC;AACrE,EAAE,MAAM,gBAAgB;AACxB,IAAI,GAAG,OAAO;AACd,GAAG,CAAA;AACH;AACA,EAAEA,qBAAgB,CAAC,aAAa,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAA;AAC1D;AACA,EAAE,OAAOC,YAAW,CAAC,aAAa,CAAC,CAAA;AACnC;;;;"}
@@ -0,0 +1,19 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ const vue = require('@sentry/vue');
4
+ const sdk = require('./client/sdk.js');
5
+
6
+
7
+
8
+ exports.init = sdk.init;
9
+ Object.prototype.hasOwnProperty.call(vue, '__proto__') &&
10
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
11
+ Object.defineProperty(exports, '__proto__', {
12
+ enumerable: true,
13
+ value: vue['__proto__']
14
+ });
15
+
16
+ Object.keys(vue).forEach(k => {
17
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = vue[k];
18
+ });
19
+ //# sourceMappingURL=index.client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.client.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,19 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ const node = require('@sentry/node');
4
+ const sdk = require('./server/sdk.js');
5
+
6
+
7
+
8
+ exports.init = sdk.init;
9
+ Object.prototype.hasOwnProperty.call(node, '__proto__') &&
10
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
11
+ Object.defineProperty(exports, '__proto__', {
12
+ enumerable: true,
13
+ value: node['__proto__']
14
+ });
15
+
16
+ Object.keys(node).forEach(k => {
17
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = node[k];
18
+ });
19
+ //# sourceMappingURL=index.server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.server.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,19 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ const node = require('@sentry/node');
4
+ const sdk = require('./sdk.js');
5
+
6
+
7
+
8
+ exports.init = sdk.init;
9
+ Object.prototype.hasOwnProperty.call(node, '__proto__') &&
10
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
11
+ Object.defineProperty(exports, '__proto__', {
12
+ enumerable: true,
13
+ value: node['__proto__']
14
+ });
15
+
16
+ Object.keys(node).forEach(k => {
17
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = node[k];
18
+ });
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,22 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ const core = require('@sentry/core');
4
+ const node = require('@sentry/node');
5
+
6
+ /**
7
+ * Initializes the server-side of the Nuxt SDK
8
+ *
9
+ * @param options Configuration options for the SDK.
10
+ */
11
+ function init(options) {
12
+ const sentryOptions = {
13
+ ...options,
14
+ };
15
+
16
+ core.applySdkMetadata(sentryOptions, 'nuxt', ['nuxt', 'node']);
17
+
18
+ return node.init(sentryOptions);
19
+ }
20
+
21
+ exports.init = init;
22
+ //# sourceMappingURL=sdk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk.js","sources":["../../../src/server/sdk.ts"],"sourcesContent":["import { applySdkMetadata } from '@sentry/core';\nimport { init as initNode } from '@sentry/node';\nimport type { Client } from '@sentry/types';\nimport type { SentryNuxtOptions } from '../common/types';\n\n/**\n * Initializes the server-side of the Nuxt SDK\n *\n * @param options Configuration options for the SDK.\n */\nexport function init(options: SentryNuxtOptions): Client | undefined {\n const sentryOptions = {\n ...options,\n };\n\n applySdkMetadata(sentryOptions, 'nuxt', ['nuxt', 'node']);\n\n return initNode(sentryOptions);\n}\n"],"names":["applySdkMetadata","initNode"],"mappings":";;;;;AAKA;AACA;AACA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,EAAyC;AACrE,EAAE,MAAM,gBAAgB;AACxB,IAAI,GAAG,OAAO;AACd,GAAG,CAAA;AACH;AACA,EAAEA,qBAAgB,CAAC,aAAa,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;AAC3D;AACA,EAAE,OAAOC,SAAQ,CAAC,aAAa,CAAC,CAAA;AAChC;;;;"}
@@ -0,0 +1,3 @@
1
+ export * from '@sentry/vue';
2
+ export { init } from './sdk.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,20 @@
1
+ import { init as init$1 } from '@sentry/browser';
2
+ import { applySdkMetadata } from '@sentry/core';
3
+
4
+ /**
5
+ * Initializes the client-side of the Nuxt SDK
6
+ *
7
+ * @param options Configuration options for the SDK.
8
+ */
9
+ function init(options) {
10
+ const sentryOptions = {
11
+ ...options,
12
+ };
13
+
14
+ applySdkMetadata(sentryOptions, 'nuxt', ['nuxt', 'vue']);
15
+
16
+ return init$1(sentryOptions);
17
+ }
18
+
19
+ export { init };
20
+ //# sourceMappingURL=sdk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk.js","sources":["../../../src/client/sdk.ts"],"sourcesContent":["import { init as initBrowser } from '@sentry/browser';\nimport { applySdkMetadata } from '@sentry/core';\nimport type { Client } from '@sentry/types';\nimport type { SentryNuxtOptions } from '../common/types';\n\n/**\n * Initializes the client-side of the Nuxt SDK\n *\n * @param options Configuration options for the SDK.\n */\nexport function init(options: SentryNuxtOptions): Client | undefined {\n const sentryOptions = {\n ...options,\n };\n\n applySdkMetadata(sentryOptions, 'nuxt', ['nuxt', 'vue']);\n\n return initBrowser(sentryOptions);\n}\n"],"names":["initBrowser"],"mappings":";;;AAKA;AACA;AACA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,EAAyC;AACrE,EAAE,MAAM,gBAAgB;AACxB,IAAI,GAAG,OAAO;AACd,GAAG,CAAA;AACH;AACA,EAAE,gBAAgB,CAAC,aAAa,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAA;AAC1D;AACA,EAAE,OAAOA,MAAW,CAAC,aAAa,CAAC,CAAA;AACnC;;;;"}
@@ -0,0 +1,3 @@
1
+ export * from '@sentry/vue';
2
+ export { init } from './client/sdk.js';
3
+ //# sourceMappingURL=index.client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.client.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,3 @@
1
+ export * from '@sentry/node';
2
+ export { init } from './server/sdk.js';
3
+ //# sourceMappingURL=index.server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.server.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,3 @@
1
+ export * from '@sentry/node';
2
+ export { init } from './sdk.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,20 @@
1
+ import { applySdkMetadata } from '@sentry/core';
2
+ import { init as init$1 } from '@sentry/node';
3
+
4
+ /**
5
+ * Initializes the server-side of the Nuxt SDK
6
+ *
7
+ * @param options Configuration options for the SDK.
8
+ */
9
+ function init(options) {
10
+ const sentryOptions = {
11
+ ...options,
12
+ };
13
+
14
+ applySdkMetadata(sentryOptions, 'nuxt', ['nuxt', 'node']);
15
+
16
+ return init$1(sentryOptions);
17
+ }
18
+
19
+ export { init };
20
+ //# sourceMappingURL=sdk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk.js","sources":["../../../src/server/sdk.ts"],"sourcesContent":["import { applySdkMetadata } from '@sentry/core';\nimport { init as initNode } from '@sentry/node';\nimport type { Client } from '@sentry/types';\nimport type { SentryNuxtOptions } from '../common/types';\n\n/**\n * Initializes the server-side of the Nuxt SDK\n *\n * @param options Configuration options for the SDK.\n */\nexport function init(options: SentryNuxtOptions): Client | undefined {\n const sentryOptions = {\n ...options,\n };\n\n applySdkMetadata(sentryOptions, 'nuxt', ['nuxt', 'node']);\n\n return initNode(sentryOptions);\n}\n"],"names":["initNode"],"mappings":";;;AAKA;AACA;AACA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,EAAyC;AACrE,EAAE,MAAM,gBAAgB;AACxB,IAAI,GAAG,OAAO;AACd,GAAG,CAAA;AACH;AACA,EAAE,gBAAgB,CAAC,aAAa,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;AAC3D;AACA,EAAE,OAAOA,MAAQ,CAAC,aAAa,CAAC,CAAA;AAChC;;;;"}
@@ -0,0 +1,3 @@
1
+ export * from '@sentry/vue';
2
+ export { init } from './sdk';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAE5B,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { Client } from '@sentry/types';
2
+ import type { SentryNuxtOptions } from '../common/types';
3
+ /**
4
+ * Initializes the client-side of the Nuxt SDK
5
+ *
6
+ * @param options Configuration options for the SDK.
7
+ */
8
+ export declare function init(options: SentryNuxtOptions): Client | undefined;
9
+ //# sourceMappingURL=sdk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../src/client/sdk.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAQnE"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.
3
+ *
4
+ * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.
5
+ */
6
+ export declare const DEBUG_BUILD: boolean;
7
+ //# sourceMappingURL=debug-build.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-build.d.ts","sourceRoot":"","sources":["../../../src/common/debug-build.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,WAAW,SAAkB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { init } from '@sentry/vue';
2
+ export type SentryNuxtOptions = Omit<Parameters<typeof init>[0] & object, 'app'>;
3
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/common/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGxC,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './client';
2
+ //# sourceMappingURL=index.client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.client.d.ts","sourceRoot":"","sources":["../../src/index.client.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './server';
2
+ //# sourceMappingURL=index.server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../../src/index.server.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { Integration, Options, StackParser } from '@sentry/types';
2
+ import type * as clientSdk from './index.client';
3
+ import type * as serverSdk from './index.server';
4
+ export * from './index.client';
5
+ export * from './index.server';
6
+ export declare function init(options: Options | clientSdk.BrowserOptions | serverSdk.NodeOptions): void;
7
+ export declare const linkedErrorsIntegration: typeof clientSdk.linkedErrorsIntegration;
8
+ export declare const contextLinesIntegration: typeof clientSdk.contextLinesIntegration;
9
+ export declare const getDefaultIntegrations: (options: Options) => Integration[];
10
+ export declare const defaultStackParser: StackParser;
11
+ export declare const continueTrace: typeof clientSdk.continueTrace;
12
+ export declare const metrics: typeof clientSdk.metrics & typeof serverSdk.metrics;
13
+ //# sourceMappingURL=index.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.types.d.ts","sourceRoot":"","sources":["../../src/index.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,KAAK,KAAK,SAAS,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAIjD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAG/B,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC,cAAc,GAAG,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC;AACxG,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,OAAO,SAAS,CAAC,uBAAuB,CAAC;AACvF,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,OAAO,SAAS,CAAC,uBAAuB,CAAC;AACvF,MAAM,CAAC,OAAO,CAAC,MAAM,sBAAsB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,WAAW,EAAE,CAAC;AACjF,MAAM,CAAC,OAAO,CAAC,MAAM,kBAAkB,EAAE,WAAW,CAAC;AACrD,MAAM,CAAC,OAAO,CAAC,MAAM,aAAa,EAAE,OAAO,SAAS,CAAC,aAAa,CAAC;AACnE,MAAM,CAAC,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,SAAS,CAAC,OAAO,GAAG,OAAO,SAAS,CAAC,OAAO,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { SentryNuxtOptions } from './common/types';
2
+ export type ModuleOptions = SentryNuxtOptions;
3
+ declare const _default: import("@nuxt/schema").NuxtModule<SentryNuxtOptions>;
4
+ export default _default;
5
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC;;AAE9C,wBA2CG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
2
+ export default _default;
3
+ //# sourceMappingURL=sentry.client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sentry.client.d.ts","sourceRoot":"","sources":["../../../../src/runtime/plugins/sentry.client.ts"],"names":[],"mappings":";AAIA,wBAQG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("nitropack/runtime").NitroAppPlugin;
2
+ export default _default;
3
+ //# sourceMappingURL=sentry.server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sentry.server.d.ts","sourceRoot":"","sources":["../../../../src/runtime/plugins/sentry.server.ts"],"names":[],"mappings":";AAKA,wBAiBG"}
@@ -0,0 +1,8 @@
1
+ import type { Context } from '@sentry/types';
2
+ import type { CapturedErrorContext } from 'nitropack';
3
+ /**
4
+ * Extracts the relevant context information from the error context (H3Event in Nitro Error)
5
+ * and created a structured context object.
6
+ */
7
+ export declare function extractErrorContext(errorContext: CapturedErrorContext): Context;
8
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/runtime/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAEtD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,oBAAoB,GAAG,OAAO,CAmB/E"}
@@ -0,0 +1,3 @@
1
+ export * from '@sentry/node';
2
+ export { init } from './sdk';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { Client } from '@sentry/types';
2
+ import type { SentryNuxtOptions } from '../common/types';
3
+ /**
4
+ * Initializes the server-side of the Nuxt SDK
5
+ *
6
+ * @param options Configuration options for the SDK.
7
+ */
8
+ export declare function init(options: SentryNuxtOptions): Client | undefined;
9
+ //# sourceMappingURL=sdk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../src/server/sdk.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAQnE"}
package/package.json ADDED
@@ -0,0 +1,96 @@
1
+ {
2
+ "name": "@sentry/nuxt",
3
+ "version": "8.16.0",
4
+ "description": "Official Sentry SDK for Nuxt (EXPERIMENTAL)",
5
+ "repository": "git://github.com/getsentry/sentry-javascript.git",
6
+ "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/nuxt",
7
+ "author": "Sentry",
8
+ "license": "MIT",
9
+ "engines": {
10
+ "node": ">=16"
11
+ },
12
+ "files": [
13
+ "/build"
14
+ ],
15
+ "main": "build/cjs/index.server.js",
16
+ "module": "build/esm/index.server.js",
17
+ "browser": "build/esm/index.client.js",
18
+ "types": "build/types/index.types.d.ts",
19
+ "exports": {
20
+ "./package.json": "./package.json",
21
+ ".": {
22
+ "types": "./build/types/index.types.d.ts",
23
+ "browser": {
24
+ "import": "./build/esm/index.client.js",
25
+ "require": "./build/cjs/index.client.js"
26
+ },
27
+ "node": {
28
+ "import": "./build/esm/index.server.js",
29
+ "require": "./build/cjs/index.server.js"
30
+ }
31
+ },
32
+ "./module": {
33
+ "types": "./build/module/types.d.ts",
34
+ "import": "./build/module/module.mjs",
35
+ "require": "./build/module/module.cjs"
36
+ }
37
+ },
38
+ "publishConfig": {
39
+ "access": "public"
40
+ },
41
+ "peerDependencies": {
42
+ "nuxt": "3.x"
43
+ },
44
+ "dependencies": {
45
+ "@nuxt/kit": "^3.12.2",
46
+ "@sentry/browser": "8.16.0",
47
+ "@sentry/core": "8.16.0",
48
+ "@sentry/node": "8.16.0",
49
+ "@sentry/opentelemetry": "8.16.0",
50
+ "@sentry/types": "8.16.0",
51
+ "@sentry/utils": "8.16.0",
52
+ "@sentry/vite-plugin": "2.20.1",
53
+ "@sentry/vue": "8.16.0"
54
+ },
55
+ "devDependencies": {
56
+ "@nuxt/module-builder": "0.8.0",
57
+ "nuxt": "^3.12.2"
58
+ },
59
+ "scripts": {
60
+ "build": "run-p build:transpile build:types build:nuxt-module",
61
+ "build:dev": "yarn build",
62
+ "build:nuxt-module": "nuxt-module-build build --outDir build/module",
63
+ "build:transpile": "rollup -c rollup.npm.config.mjs",
64
+ "build:types": "tsc -p tsconfig.types.json",
65
+ "build:watch": "run-p build:transpile:watch build:types:watch",
66
+ "build:dev:watch": "yarn build:watch",
67
+ "build:transpile:watch": "rollup -c rollup.npm.config.mjs --watch",
68
+ "build:types:watch": "tsc -p tsconfig.types.json --watch",
69
+ "build:tarball": "npm pack",
70
+ "circularDepCheck": "madge --circular src/index.client.ts && madge --circular src/index.server.ts && madge --circular src/index.types.ts",
71
+ "clean": "rimraf build coverage sentry-nuxt-*.tgz",
72
+ "fix": "eslint . --format stylish --fix",
73
+ "lint": "eslint . --format stylish",
74
+ "test": "yarn test:unit",
75
+ "test:unit": "vitest run",
76
+ "test:watch": "vitest --watch",
77
+ "yalc:publish": "yalc publish --push --sig"
78
+ },
79
+ "volta": {
80
+ "extends": "../../package.json"
81
+ },
82
+ "nx": {
83
+ "targets": {
84
+ "build:transpile": {
85
+ "dependsOn": [
86
+ "^build:transpile",
87
+ "^build:types"
88
+ ],
89
+ "outputs": [
90
+ "{projectRoot}/build",
91
+ "{projectRoot}/build/module"
92
+ ]
93
+ }
94
+ }
95
+ }
96
+ }