@sentry/nuxt 10.73.0 → 10.75.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/cjs/module.js +1 -1
- package/build/cjs/module.js.map +1 -1
- package/build/cjs/vite/addServerConfig.js +33 -10
- package/build/cjs/vite/addServerConfig.js.map +1 -1
- package/build/cjs/vite/utils.js +31 -6
- package/build/cjs/vite/utils.js.map +1 -1
- package/build/esm/module.js +1 -1
- package/build/esm/module.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/vite/addServerConfig.js +34 -12
- package/build/esm/vite/addServerConfig.js.map +1 -1
- package/build/esm/vite/utils.js +31 -7
- package/build/esm/vite/utils.js.map +1 -1
- package/build/module/module.json +1 -1
- package/build/module/module.mjs +62 -17
- package/build/module/vite/addServerConfig.d.ts +13 -0
- package/build/module/vite/utils.d.ts +20 -3
- package/build/types/vite/addServerConfig.d.ts +13 -0
- package/build/types/vite/addServerConfig.d.ts.map +1 -1
- package/build/types/vite/utils.d.ts +20 -3
- package/build/types/vite/utils.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import type { Nuxt } from '@nuxt/schema';
|
|
2
2
|
import type { SentryNuxtModuleOptions } from '../common/types';
|
|
3
3
|
/**
|
|
4
|
-
* Gets the major version of the
|
|
5
|
-
* Returns 2 as the default if
|
|
4
|
+
* Gets the major version of the Nitro package used by the app's Nuxt installation.
|
|
5
|
+
* Returns 2 as the default if the version cannot be determined.
|
|
6
|
+
*
|
|
7
|
+
* Nitro v2 is published as `nitropack`, v3 as `nitro`. Resolving `nitro` directly is
|
|
8
|
+
* unreliable: module resolution walks up the directory tree, so in a monorepo an
|
|
9
|
+
* unrelated `nitro` v3 above the app wins even when the app's Nuxt uses `nitropack` v2.
|
|
10
|
+
* Instead, follow the dependency chain Nuxt itself imports Nitro through:
|
|
11
|
+
* `nuxt` -> (`@nuxt/nitro-server` ->) `nitro` | `nitropack`.
|
|
6
12
|
*/
|
|
7
|
-
export declare function getNitroMajorVersion(): Promise<number>;
|
|
13
|
+
export declare function getNitroMajorVersion(rootDir: string): Promise<number>;
|
|
8
14
|
/**
|
|
9
15
|
* Find the default SDK init file for the given type (client or server).
|
|
10
16
|
* The sentry.server.config file is prioritized over the instrument.server file.
|
|
@@ -45,6 +51,17 @@ export declare function constructWrappedFunctionExportQuery(exportedBindings: Re
|
|
|
45
51
|
* Constructs a code snippet with function reexports (can be used in Rollup plugins as a return value for `load()`)
|
|
46
52
|
*/
|
|
47
53
|
export declare function constructFunctionReExport(pathWithQuery: string, entryId: string): string;
|
|
54
|
+
/**
|
|
55
|
+
* `load()` emits `file://` specifiers because Node's ESM loader rejects bare Windows
|
|
56
|
+
* paths (`ERR_UNSUPPORTED_ESM_URL_SCHEME`), but Rollup's resolver only understands
|
|
57
|
+
* filesystem paths. Returns `undefined` for a malformed `file://` URL.
|
|
58
|
+
*
|
|
59
|
+
* Only exported for testing.
|
|
60
|
+
*/
|
|
61
|
+
export declare function toResolvablePath(source: string): {
|
|
62
|
+
path: string;
|
|
63
|
+
wasFileUrl: boolean;
|
|
64
|
+
} | undefined;
|
|
48
65
|
/**
|
|
49
66
|
* Sets up alias to work around OpenTelemetry's incomplete ESM imports.
|
|
50
67
|
* https://github.com/getsentry/sentry-javascript/issues/15204
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/vite/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/vite/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAKzC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAG/D;;;;;;;;;GASG;AACH,wBAAsB,oBAAoB,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AC,IAAI,EAAE,IAAI,EAAE,SAAS,UAAQ,GAAG,IAAI,CAY9E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/nuxt",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.75.0",
|
|
4
4
|
"description": "Official Sentry SDK for Nuxt",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/nuxt",
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@nuxt/kit": "^3.13.2",
|
|
57
|
-
"@sentry/browser": "10.
|
|
57
|
+
"@sentry/browser": "10.75.0",
|
|
58
58
|
"@sentry/bundler-plugin-core": "^5.3.0",
|
|
59
|
-
"@sentry/cloudflare": "10.
|
|
60
|
-
"@sentry/core": "10.
|
|
61
|
-
"@sentry/node": "10.
|
|
62
|
-
"@sentry/node-core": "10.
|
|
59
|
+
"@sentry/cloudflare": "10.75.0",
|
|
60
|
+
"@sentry/core": "10.75.0",
|
|
61
|
+
"@sentry/node": "10.75.0",
|
|
62
|
+
"@sentry/node-core": "10.75.0",
|
|
63
63
|
"@sentry/rollup-plugin": "^5.3.0",
|
|
64
|
-
"@sentry/server-utils": "10.
|
|
64
|
+
"@sentry/server-utils": "10.75.0",
|
|
65
65
|
"@sentry/vite-plugin": "^5.3.0",
|
|
66
|
-
"@sentry/vue": "10.
|
|
66
|
+
"@sentry/vue": "10.75.0",
|
|
67
67
|
"local-pkg": "^1.1.2"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|