@sentry/nuxt 9.10.1 → 9.12.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/vite/sourceMaps.js +169 -74
- package/build/cjs/vite/sourceMaps.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/vite/sourceMaps.js +168 -73
- package/build/esm/vite/sourceMaps.js.map +1 -1
- package/build/module/module.json +1 -1
- package/build/module/module.mjs +106 -54
- package/build/types/vite/sourceMaps.d.ts +27 -16
- package/build/types/vite/sourceMaps.d.ts.map +1 -1
- package/package.json +7 -6
package/build/module/module.mjs
CHANGED
|
@@ -228,20 +228,52 @@ ${reExportedFunctions}
|
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
function setupSourceMaps(moduleOptions, nuxt) {
|
|
231
|
+
const isDebug = moduleOptions.debug;
|
|
231
232
|
const sourceMapsUploadOptions = moduleOptions.sourceMapsUploadOptions || {};
|
|
232
233
|
const sourceMapsEnabled = sourceMapsUploadOptions.enabled ?? true;
|
|
234
|
+
let shouldDeleteFilesFallback = { client: true, server: true };
|
|
233
235
|
nuxt.hook("modules:done", () => {
|
|
234
236
|
if (sourceMapsEnabled && !nuxt.options.dev) {
|
|
235
|
-
changeNuxtSourceMapSettings(nuxt, moduleOptions);
|
|
237
|
+
const previousSourceMapSettings = changeNuxtSourceMapSettings(nuxt, moduleOptions);
|
|
238
|
+
shouldDeleteFilesFallback = {
|
|
239
|
+
client: previousSourceMapSettings.client === "unset",
|
|
240
|
+
server: previousSourceMapSettings.server === "unset"
|
|
241
|
+
};
|
|
242
|
+
if (isDebug && !sourceMapsUploadOptions.sourcemaps?.filesToDeleteAfterUpload && (shouldDeleteFilesFallback.client || shouldDeleteFilesFallback.server)) {
|
|
243
|
+
consoleSandbox(
|
|
244
|
+
() => (
|
|
245
|
+
// eslint-disable-next-line no-console
|
|
246
|
+
console.log(
|
|
247
|
+
"[Sentry] As Sentry enabled `'hidden'` source maps, source maps will be automatically deleted after uploading them to Sentry."
|
|
248
|
+
)
|
|
249
|
+
)
|
|
250
|
+
);
|
|
251
|
+
}
|
|
236
252
|
}
|
|
237
253
|
});
|
|
238
|
-
nuxt.hook("vite:extendConfig", async (viteConfig,
|
|
254
|
+
nuxt.hook("vite:extendConfig", async (viteConfig, env) => {
|
|
239
255
|
if (sourceMapsEnabled && viteConfig.mode !== "development") {
|
|
240
|
-
const
|
|
256
|
+
const runtime = env.isServer ? "server" : env.isClient ? "client" : void 0;
|
|
257
|
+
const nuxtSourceMapSetting = extractNuxtSourceMapSetting(nuxt, runtime);
|
|
258
|
+
viteConfig.build = viteConfig.build || {};
|
|
259
|
+
const viteSourceMap = viteConfig.build.sourcemap;
|
|
260
|
+
validateDifferentSourceMapSettings({
|
|
261
|
+
nuxtSettingKey: `sourcemap.${runtime}`,
|
|
262
|
+
nuxtSettingValue: nuxtSourceMapSetting,
|
|
263
|
+
otherSettingKey: "viteConfig.build.sourcemap",
|
|
264
|
+
otherSettingValue: viteSourceMap
|
|
265
|
+
});
|
|
266
|
+
if (isDebug) {
|
|
267
|
+
consoleSandbox(() => {
|
|
268
|
+
if (!runtime) {
|
|
269
|
+
console.log("[Sentry] Cannot detect runtime (client/server) inside hook 'vite:extendConfig'.");
|
|
270
|
+
} else {
|
|
271
|
+
console.log(`[Sentry] Adding Sentry Vite plugin to the ${runtime} runtime.`);
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
}
|
|
241
275
|
viteConfig.plugins = viteConfig.plugins || [];
|
|
242
|
-
viteConfig.plugins.push(
|
|
243
|
-
sentryVitePlugin(getPluginOptions(moduleOptions, previousUserSourceMapSetting === "unset"))
|
|
244
|
-
);
|
|
276
|
+
viteConfig.plugins.push(sentryVitePlugin(getPluginOptions(moduleOptions, shouldDeleteFilesFallback)));
|
|
245
277
|
}
|
|
246
278
|
});
|
|
247
279
|
nuxt.hook("nitro:config", (nitroConfig) => {
|
|
@@ -254,9 +286,14 @@ function setupSourceMaps(moduleOptions, nuxt) {
|
|
|
254
286
|
} else if (!Array.isArray(nitroConfig.rollupConfig.plugins)) {
|
|
255
287
|
nitroConfig.rollupConfig.plugins = [nitroConfig.rollupConfig.plugins];
|
|
256
288
|
}
|
|
257
|
-
|
|
289
|
+
validateNitroSourceMapSettings(nuxt, nitroConfig, moduleOptions);
|
|
290
|
+
if (isDebug) {
|
|
291
|
+
consoleSandbox(() => {
|
|
292
|
+
console.log("[Sentry] Adding Sentry Rollup plugin to the server runtime.");
|
|
293
|
+
});
|
|
294
|
+
}
|
|
258
295
|
nitroConfig.rollupConfig.plugins.push(
|
|
259
|
-
sentryRollupPlugin(getPluginOptions(moduleOptions,
|
|
296
|
+
sentryRollupPlugin(getPluginOptions(moduleOptions, shouldDeleteFilesFallback))
|
|
260
297
|
);
|
|
261
298
|
}
|
|
262
299
|
});
|
|
@@ -264,12 +301,17 @@ function setupSourceMaps(moduleOptions, nuxt) {
|
|
|
264
301
|
function normalizePath(path) {
|
|
265
302
|
return path.replace(/^(\.\.\/)+/, "./");
|
|
266
303
|
}
|
|
267
|
-
function getPluginOptions(moduleOptions,
|
|
304
|
+
function getPluginOptions(moduleOptions, shouldDeleteFilesFallback) {
|
|
268
305
|
const sourceMapsUploadOptions = moduleOptions.sourceMapsUploadOptions || {};
|
|
269
|
-
|
|
306
|
+
const shouldDeleteFilesAfterUpload = shouldDeleteFilesFallback?.client || shouldDeleteFilesFallback?.server;
|
|
307
|
+
const fallbackFilesToDelete = [
|
|
308
|
+
...shouldDeleteFilesFallback?.client ? [".*/**/public/**/*.map"] : [],
|
|
309
|
+
...shouldDeleteFilesFallback?.server ? [".*/**/server/**/*.map", ".*/**/output/**/*.map", ".*/**/function/**/*.map"] : []
|
|
310
|
+
];
|
|
311
|
+
if (typeof sourceMapsUploadOptions.sourcemaps?.filesToDeleteAfterUpload === "undefined" && shouldDeleteFilesAfterUpload) {
|
|
270
312
|
consoleSandbox(() => {
|
|
271
313
|
console.log(
|
|
272
|
-
|
|
314
|
+
`[Sentry] Setting \`sentry.sourceMapsUploadOptions.sourcemaps.filesToDeleteAfterUpload: [${fallbackFilesToDelete.map((path) => `"${path}"`).join(", ")}]\` to delete generated source maps after they were uploaded to Sentry.`
|
|
273
315
|
);
|
|
274
316
|
});
|
|
275
317
|
}
|
|
@@ -298,12 +340,19 @@ function getPluginOptions(moduleOptions, deleteFilesAfterUpload) {
|
|
|
298
340
|
// If we could know where the server/client assets are located, we could do something like this (based on the Nitro preset): isNitro ? ['./.output/server/**/*'] : ['./.output/public/**/*'],
|
|
299
341
|
assets: sourceMapsUploadOptions.sourcemaps?.assets ?? void 0,
|
|
300
342
|
ignore: sourceMapsUploadOptions.sourcemaps?.ignore ?? void 0,
|
|
301
|
-
filesToDeleteAfterUpload: sourceMapsUploadOptions.sourcemaps?.filesToDeleteAfterUpload ? sourceMapsUploadOptions.sourcemaps?.filesToDeleteAfterUpload :
|
|
343
|
+
filesToDeleteAfterUpload: sourceMapsUploadOptions.sourcemaps?.filesToDeleteAfterUpload ? sourceMapsUploadOptions.sourcemaps?.filesToDeleteAfterUpload : shouldDeleteFilesFallback?.server || shouldDeleteFilesFallback?.client ? fallbackFilesToDelete : void 0,
|
|
302
344
|
rewriteSources: (source) => normalizePath(source),
|
|
303
345
|
...moduleOptions?.unstable_sentryBundlerPluginOptions?.sourcemaps
|
|
304
346
|
}
|
|
305
347
|
};
|
|
306
348
|
}
|
|
349
|
+
function extractNuxtSourceMapSetting(nuxt, runtime) {
|
|
350
|
+
if (!runtime) {
|
|
351
|
+
return void 0;
|
|
352
|
+
} else {
|
|
353
|
+
return typeof nuxt.options?.sourcemap === "boolean" || typeof nuxt.options?.sourcemap === "string" ? nuxt.options.sourcemap : nuxt.options?.sourcemap?.[runtime];
|
|
354
|
+
}
|
|
355
|
+
}
|
|
307
356
|
function changeNuxtSourceMapSettings(nuxt, sentryModuleOptions) {
|
|
308
357
|
nuxt.options.sourcemap = nuxt.options.sourcemap ?? { server: void 0, client: void 0 };
|
|
309
358
|
let previousUserSourceMapSetting = {
|
|
@@ -319,7 +368,7 @@ function changeNuxtSourceMapSettings(nuxt, sentryModuleOptions) {
|
|
|
319
368
|
break;
|
|
320
369
|
case "hidden":
|
|
321
370
|
case true:
|
|
322
|
-
|
|
371
|
+
logKeepEnabledSourceMapSetting(sentryModuleOptions, "sourcemap", nuxtSourceMap.toString());
|
|
323
372
|
previousUserSourceMapSetting = { client: "enabled", server: "enabled" };
|
|
324
373
|
break;
|
|
325
374
|
case void 0:
|
|
@@ -334,7 +383,7 @@ function changeNuxtSourceMapSettings(nuxt, sentryModuleOptions) {
|
|
|
334
383
|
warnExplicitlyDisabledSourceMap("sourcemap.client");
|
|
335
384
|
previousUserSourceMapSetting.client = "disabled";
|
|
336
385
|
} else if (["hidden", true].includes(nuxtSourceMap.client)) {
|
|
337
|
-
|
|
386
|
+
logKeepEnabledSourceMapSetting(sentryModuleOptions, "sourcemap.client", nuxtSourceMap.client.toString());
|
|
338
387
|
previousUserSourceMapSetting.client = "enabled";
|
|
339
388
|
} else {
|
|
340
389
|
nuxt.options.sourcemap.client = "hidden";
|
|
@@ -345,7 +394,7 @@ function changeNuxtSourceMapSettings(nuxt, sentryModuleOptions) {
|
|
|
345
394
|
warnExplicitlyDisabledSourceMap("sourcemap.server");
|
|
346
395
|
previousUserSourceMapSetting.server = "disabled";
|
|
347
396
|
} else if (["hidden", true].includes(nuxtSourceMap.server)) {
|
|
348
|
-
|
|
397
|
+
logKeepEnabledSourceMapSetting(sentryModuleOptions, "sourcemap.server", nuxtSourceMap.server.toString());
|
|
349
398
|
previousUserSourceMapSetting.server = "enabled";
|
|
350
399
|
} else {
|
|
351
400
|
nuxt.options.sourcemap.server = "hidden";
|
|
@@ -355,52 +404,55 @@ function changeNuxtSourceMapSettings(nuxt, sentryModuleOptions) {
|
|
|
355
404
|
}
|
|
356
405
|
return previousUserSourceMapSetting;
|
|
357
406
|
}
|
|
358
|
-
function
|
|
359
|
-
|
|
360
|
-
const
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
previousUserSourceMapSetting = "enabled";
|
|
368
|
-
} else {
|
|
369
|
-
viteConfig.build.sourcemap = "hidden";
|
|
370
|
-
logSentryEnablesSourceMap("vite.build.sourcemap", "hidden");
|
|
371
|
-
previousUserSourceMapSetting = "unset";
|
|
372
|
-
}
|
|
373
|
-
return previousUserSourceMapSetting;
|
|
374
|
-
}
|
|
375
|
-
function changeRollupSourceMapSettings(nitroConfig, sentryModuleOptions) {
|
|
407
|
+
function validateNitroSourceMapSettings(nuxt, nitroConfig, sentryModuleOptions) {
|
|
408
|
+
const isDebug = sentryModuleOptions.debug;
|
|
409
|
+
const nuxtSourceMap = extractNuxtSourceMapSetting(nuxt, "server");
|
|
410
|
+
validateDifferentSourceMapSettings({
|
|
411
|
+
nuxtSettingKey: "sourcemap.server",
|
|
412
|
+
nuxtSettingValue: nuxtSourceMap,
|
|
413
|
+
otherSettingKey: "nitro.sourceMap",
|
|
414
|
+
otherSettingValue: nitroConfig.sourceMap
|
|
415
|
+
});
|
|
376
416
|
nitroConfig.rollupConfig = nitroConfig.rollupConfig || {};
|
|
377
417
|
nitroConfig.rollupConfig.output = nitroConfig.rollupConfig.output || { sourcemap: void 0 };
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
nitroConfig.rollupConfig.output.sourcemap = "hidden";
|
|
388
|
-
logSentryEnablesSourceMap("nitro.rollupConfig.output.sourcemap", "hidden");
|
|
389
|
-
previousUserSourceMapSetting = "unset";
|
|
418
|
+
const nitroRollupSourceMap = nitroConfig.rollupConfig.output.sourcemap;
|
|
419
|
+
if (typeof nitroRollupSourceMap !== "undefined" && ["hidden", "inline", true, false].includes(nitroRollupSourceMap)) {
|
|
420
|
+
const settingKey = "nitro.rollupConfig.output.sourcemap";
|
|
421
|
+
validateDifferentSourceMapSettings({
|
|
422
|
+
nuxtSettingKey: "sourcemap.server",
|
|
423
|
+
nuxtSettingValue: nuxtSourceMap,
|
|
424
|
+
otherSettingKey: settingKey,
|
|
425
|
+
otherSettingValue: nitroRollupSourceMap
|
|
426
|
+
});
|
|
390
427
|
}
|
|
391
428
|
nitroConfig.rollupConfig.output.sourcemapExcludeSources = false;
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
429
|
+
if (isDebug) {
|
|
430
|
+
consoleSandbox(() => {
|
|
431
|
+
console.log(
|
|
432
|
+
"[Sentry] Set `sourcemapExcludeSources: false` in the Nuxt config (`nitro.rollupConfig.output`). Source maps will now include the actual code to be able to un-minify code snippets in Sentry."
|
|
433
|
+
);
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
function validateDifferentSourceMapSettings({
|
|
438
|
+
nuxtSettingKey,
|
|
439
|
+
nuxtSettingValue,
|
|
440
|
+
otherSettingKey,
|
|
441
|
+
otherSettingValue
|
|
442
|
+
}) {
|
|
443
|
+
if (nuxtSettingValue !== otherSettingValue) {
|
|
444
|
+
consoleSandbox(() => {
|
|
445
|
+
console.warn(
|
|
446
|
+
`[Sentry] Source map generation settings are conflicting. Sentry uses \`${nuxtSettingKey}: ${nuxtSettingValue}\`. However, a conflicting setting was discovered (\`${otherSettingKey}: ${otherSettingValue}\`). This setting was probably explicitly set in your configuration. Sentry won't override this setting but it may affect source maps generation and upload. Without source maps, code snippets on the Sentry Issues page will remain minified.`
|
|
447
|
+
);
|
|
448
|
+
});
|
|
449
|
+
}
|
|
398
450
|
}
|
|
399
|
-
function
|
|
451
|
+
function logKeepEnabledSourceMapSetting(sentryNuxtModuleOptions, settingKey, settingValue) {
|
|
400
452
|
if (sentryNuxtModuleOptions.debug) {
|
|
401
453
|
consoleSandbox(() => {
|
|
402
454
|
console.log(
|
|
403
|
-
`[Sentry]
|
|
455
|
+
`[Sentry] \`${settingKey}\` is enabled with \`${settingValue}\`. This will correctly un-minify the code snippet on the Sentry Issue Details page.`
|
|
404
456
|
);
|
|
405
457
|
});
|
|
406
458
|
}
|
|
@@ -408,7 +460,7 @@ function logKeepSourceMapSetting(sentryNuxtModuleOptions, settingKey, settingVal
|
|
|
408
460
|
function warnExplicitlyDisabledSourceMap(settingKey) {
|
|
409
461
|
consoleSandbox(() => {
|
|
410
462
|
console.warn(
|
|
411
|
-
`[Sentry]
|
|
463
|
+
`[Sentry] We discovered \`${settingKey}\` is set to \`false\`. This setting is either a default setting or was explicitly set in your configuration. Sentry won't override this setting. Without source maps, code snippets on the Sentry Issues page will remain minified. To show unminified code, enable source maps in \`${settingKey}\` (e.g. by setting them to \`'hidden'\`).`
|
|
412
464
|
);
|
|
413
465
|
});
|
|
414
466
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { Nuxt } from '@nuxt/schema';
|
|
2
2
|
import { type SentryRollupPluginOptions } from '@sentry/rollup-plugin';
|
|
3
3
|
import { type SentryVitePluginOptions } from '@sentry/vite-plugin';
|
|
4
|
-
import type {
|
|
4
|
+
import type { NitroConfig } from 'nitropack';
|
|
5
5
|
import type { SentryNuxtModuleOptions } from '../common/types';
|
|
6
6
|
/**
|
|
7
7
|
* Whether the user enabled (true, 'hidden', 'inline') or disabled (false) source maps
|
|
8
8
|
*/
|
|
9
9
|
export type UserSourceMapSetting = 'enabled' | 'disabled' | 'unset' | undefined;
|
|
10
|
+
/** A valid source map setting */
|
|
11
|
+
export type SourceMapSetting = boolean | 'hidden' | 'inline';
|
|
10
12
|
/**
|
|
11
13
|
* Setup source maps for Sentry inside the Nuxt module during build time (in Vite for Nuxt and Rollup for Nitro).
|
|
12
14
|
*/
|
|
@@ -16,25 +18,34 @@ export declare function setupSourceMaps(moduleOptions: SentryNuxtModuleOptions,
|
|
|
16
18
|
*
|
|
17
19
|
* Only exported for Testing purposes.
|
|
18
20
|
*/
|
|
19
|
-
export declare function getPluginOptions(moduleOptions: SentryNuxtModuleOptions,
|
|
20
|
-
|
|
21
|
+
export declare function getPluginOptions(moduleOptions: SentryNuxtModuleOptions, shouldDeleteFilesFallback?: {
|
|
22
|
+
client: boolean;
|
|
23
|
+
server: boolean;
|
|
24
|
+
}): SentryVitePluginOptions | SentryRollupPluginOptions;
|
|
25
|
+
/** only exported for tests */
|
|
26
|
+
export declare function extractNuxtSourceMapSetting(nuxt: {
|
|
27
|
+
options: {
|
|
28
|
+
sourcemap?: SourceMapSetting | {
|
|
29
|
+
server?: SourceMapSetting;
|
|
30
|
+
client?: SourceMapSetting;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
}, runtime: 'client' | 'server' | undefined): SourceMapSetting | undefined;
|
|
34
|
+
/** only exported for testing */
|
|
21
35
|
export declare function changeNuxtSourceMapSettings(nuxt: Nuxt, sentryModuleOptions: SentryNuxtModuleOptions): {
|
|
22
36
|
client: UserSourceMapSetting;
|
|
23
37
|
server: UserSourceMapSetting;
|
|
24
38
|
};
|
|
25
|
-
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
output?: {
|
|
35
|
-
sourcemap?: OutputOptions['sourcemap'];
|
|
36
|
-
sourcemapExcludeSources?: OutputOptions['sourcemapExcludeSources'];
|
|
39
|
+
/** Logs warnings about potentially conflicting source map settings.
|
|
40
|
+
* Configures `sourcemapExcludeSources` in Nitro to make source maps usable in Sentry.
|
|
41
|
+
*
|
|
42
|
+
* only exported for testing
|
|
43
|
+
*/
|
|
44
|
+
export declare function validateNitroSourceMapSettings(nuxt: {
|
|
45
|
+
options: {
|
|
46
|
+
sourcemap?: SourceMapSetting | {
|
|
47
|
+
server?: SourceMapSetting;
|
|
37
48
|
};
|
|
38
49
|
};
|
|
39
|
-
}, sentryModuleOptions: SentryNuxtModuleOptions):
|
|
50
|
+
}, nitroConfig: NitroConfig, sentryModuleOptions: SentryNuxtModuleOptions): void;
|
|
40
51
|
//# sourceMappingURL=sourceMaps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sourceMaps.d.ts","sourceRoot":"","sources":["../../../src/vite/sourceMaps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,KAAK,yBAAyB,EAAsB,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAE,KAAK,uBAAuB,EAAoB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"sourceMaps.d.ts","sourceRoot":"","sources":["../../../src/vite/sourceMaps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,KAAK,yBAAyB,EAAsB,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAE,KAAK,uBAAuB,EAAoB,MAAM,qBAAqB,CAAC;AACrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,CAAC;AAEhF,iCAAiC;AACjC,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE7D;;GAEG;AACH,wBAAgB,eAAe,CAAC,aAAa,EAAE,uBAAuB,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAwGxF;AASD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,aAAa,EAAE,uBAAuB,EACtC,yBAAyB,CAAC,EAAE;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GAC/D,uBAAuB,GAAG,yBAAyB,CA6DrD;AAeD,8BAA8B;AAC9B,wBAAgB,2BAA2B,CACzC,IAAI,EAAE;IAAE,OAAO,EAAE;QAAE,SAAS,CAAC,EAAE,gBAAgB,GAAG;YAAE,MAAM,CAAC,EAAE,gBAAgB,CAAC;YAAC,MAAM,CAAC,EAAE,gBAAgB,CAAA;SAAE,CAAA;KAAE,CAAA;CAAE,EAC9G,OAAO,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GACvC,gBAAgB,GAAG,SAAS,CAQ9B;AAED,iCAAiC;AACjC,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,IAAI,EACV,mBAAmB,EAAE,uBAAuB,GAC3C;IAAE,MAAM,EAAE,oBAAoB,CAAC;IAAC,MAAM,EAAE,oBAAoB,CAAA;CAAE,CAwDhE;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE;IAAE,OAAO,EAAE;QAAE,SAAS,CAAC,EAAE,gBAAgB,GAAG;YAAE,MAAM,CAAC,EAAE,gBAAgB,CAAA;SAAE,CAAA;KAAE,CAAA;CAAE,EACnF,WAAW,EAAE,WAAW,EACxB,mBAAmB,EAAE,uBAAuB,GAC3C,IAAI,CAwCN"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/nuxt",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.12.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",
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@nuxt/kit": "^3.13.2",
|
|
46
|
-
"@sentry/browser": "9.
|
|
47
|
-
"@sentry/core": "9.
|
|
48
|
-
"@sentry/node": "9.
|
|
49
|
-
"@sentry/opentelemetry": "9.
|
|
46
|
+
"@sentry/browser": "9.12.0",
|
|
47
|
+
"@sentry/core": "9.12.0",
|
|
48
|
+
"@sentry/node": "9.12.0",
|
|
49
|
+
"@sentry/opentelemetry": "9.12.0",
|
|
50
50
|
"@sentry/rollup-plugin": "3.2.4",
|
|
51
51
|
"@sentry/vite-plugin": "3.2.4",
|
|
52
|
-
"@sentry/vue": "9.
|
|
52
|
+
"@sentry/vue": "9.12.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@nuxt/module-builder": "^0.8.4",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"clean": "rimraf build coverage sentry-nuxt-*.tgz",
|
|
71
71
|
"fix": "eslint . --format stylish --fix",
|
|
72
72
|
"lint": "eslint . --format stylish",
|
|
73
|
+
"lint:es-compatibility": "es-check es2020 ./build/cjs/*.js && es-check es2020 ./build/esm/*.js --module && es-check es2020 ./build/module/*.cjs && es-check es2020 ./build/module/*.mjs --module",
|
|
73
74
|
"test": "yarn test:unit",
|
|
74
75
|
"test:unit": "vitest run",
|
|
75
76
|
"test:watch": "vitest --watch",
|