🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@sentry/nextjs

Package Overview
Dependencies
Maintainers
1
Versions
497
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/nextjs - npm Package Compare versions

Comparing version
10.37.0
to
10.38.0
+2
-1
build/cjs/config/handleRunAfterProductionCompile.js

@@ -53,3 +53,4 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

if (!usesNativeDebugIds) {
// Skip debug ID injection if sourcemaps are disabled which are only relevant for sourcemap correlation
if (!usesNativeDebugIds && sentryBuildOptions.sourcemaps?.disable !== true) {
await sentryBuildPluginManager.injectDebugIds([distDir]);

@@ -56,0 +57,0 @@ }

@@ -1,1 +0,1 @@

{"version":3,"file":"handleRunAfterProductionCompile.js","sources":["../../../src/config/handleRunAfterProductionCompile.ts"],"sourcesContent":["import type { createSentryBuildPluginManager as createSentryBuildPluginManagerType } from '@sentry/bundler-plugin-core';\nimport { loadModule } from '@sentry/core';\nimport { getBuildPluginOptions } from './getBuildPluginOptions';\nimport type { SentryBuildOptions } from './types';\n\n/**\n * This function is called by Next.js after the production build is complete.\n * It is used to upload sourcemaps to Sentry.\n */\nexport async function handleRunAfterProductionCompile(\n {\n releaseName,\n distDir,\n buildTool,\n usesNativeDebugIds,\n }: { releaseName?: string; distDir: string; buildTool: 'webpack' | 'turbopack'; usesNativeDebugIds?: boolean },\n sentryBuildOptions: SentryBuildOptions,\n): Promise<void> {\n if (sentryBuildOptions.debug) {\n // eslint-disable-next-line no-console\n console.debug('[@sentry/nextjs] Running runAfterProductionCompile logic.');\n }\n\n const { createSentryBuildPluginManager } =\n loadModule<{ createSentryBuildPluginManager: typeof createSentryBuildPluginManagerType }>(\n '@sentry/bundler-plugin-core',\n module,\n ) ?? {};\n\n if (!createSentryBuildPluginManager) {\n // eslint-disable-next-line no-console\n console.warn(\n '[@sentry/nextjs] Could not load build manager package. Will not run runAfterProductionCompile logic.',\n );\n return;\n }\n\n const options = getBuildPluginOptions({\n sentryBuildOptions,\n releaseName,\n distDirAbsPath: distDir,\n buildTool: `after-production-compile-${buildTool}`,\n });\n\n const sentryBuildPluginManager = createSentryBuildPluginManager(options, {\n buildTool,\n loggerPrefix: '[@sentry/nextjs - After Production Compile]',\n });\n\n await sentryBuildPluginManager.telemetry.emitBundlerPluginExecutionSignal();\n await sentryBuildPluginManager.createRelease();\n\n if (!usesNativeDebugIds) {\n await sentryBuildPluginManager.injectDebugIds([distDir]);\n }\n\n await sentryBuildPluginManager.uploadSourcemaps([distDir], {\n // We don't want to prepare the artifacts because we injected debug ids manually before\n prepareArtifacts: false,\n });\n await sentryBuildPluginManager.deleteArtifacts();\n}\n"],"names":["loadModule","getBuildPluginOptions"],"mappings":";;;;;AAKA;AACA;AACA;AACA;AACO,eAAe,+BAA+B;AACrD,EAAE;AACF,IAAI,WAAW;AACf,IAAI,OAAO;AACX,IAAI,SAAS;AACb,IAAI,kBAAkB;AACtB,GAAG;AACH,EAAE,kBAAkB;AACpB,EAAiB;AACjB,EAAE,IAAI,kBAAkB,CAAC,KAAK,EAAE;AAChC;AACA,IAAI,OAAO,CAAC,KAAK,CAAC,2DAA2D,CAAC;AAC9E,EAAE;;AAEF,EAAE,MAAM,EAAE,8BAAA,EAA+B;AACzC,IAAIA,eAAU;AACd,MAAM,6BAA6B;AACnC,MAAM,MAAM;AACZ,KAAI,IAAK,EAAE;;AAEX,EAAE,IAAI,CAAC,8BAA8B,EAAE;AACvC;AACA,IAAI,OAAO,CAAC,IAAI;AAChB,MAAM,sGAAsG;AAC5G,KAAK;AACL,IAAI;AACJ,EAAE;;AAEF,EAAE,MAAM,OAAA,GAAUC,2CAAqB,CAAC;AACxC,IAAI,kBAAkB;AACtB,IAAI,WAAW;AACf,IAAI,cAAc,EAAE,OAAO;AAC3B,IAAI,SAAS,EAAE,CAAC,yBAAyB,EAAE,SAAS,CAAC,CAAA;AACA,GAAA,CAAA;;AAEA,EAAA,MAAA,wBAAA,GAAA,8BAAA,CAAA,OAAA,EAAA;AACA,IAAA,SAAA;AACA,IAAA,YAAA,EAAA,6CAAA;AACA,GAAA,CAAA;;AAEA,EAAA,MAAA,wBAAA,CAAA,SAAA,CAAA,gCAAA,EAAA;AACA,EAAA,MAAA,wBAAA,CAAA,aAAA,EAAA;;AAEA,EAAA,IAAA,CAAA,kBAAA,EAAA;AACA,IAAA,MAAA,wBAAA,CAAA,cAAA,CAAA,CAAA,OAAA,CAAA,CAAA;AACA,EAAA;;AAEA,EAAA,MAAA,wBAAA,CAAA,gBAAA,CAAA,CAAA,OAAA,CAAA,EAAA;AACA;AACA,IAAA,gBAAA,EAAA,KAAA;AACA,GAAA,CAAA;AACA,EAAA,MAAA,wBAAA,CAAA,eAAA,EAAA;AACA;;;;"}
{"version":3,"file":"handleRunAfterProductionCompile.js","sources":["../../../src/config/handleRunAfterProductionCompile.ts"],"sourcesContent":["import type { createSentryBuildPluginManager as createSentryBuildPluginManagerType } from '@sentry/bundler-plugin-core';\nimport { loadModule } from '@sentry/core';\nimport { getBuildPluginOptions } from './getBuildPluginOptions';\nimport type { SentryBuildOptions } from './types';\n\n/**\n * This function is called by Next.js after the production build is complete.\n * It is used to upload sourcemaps to Sentry.\n */\nexport async function handleRunAfterProductionCompile(\n {\n releaseName,\n distDir,\n buildTool,\n usesNativeDebugIds,\n }: { releaseName?: string; distDir: string; buildTool: 'webpack' | 'turbopack'; usesNativeDebugIds?: boolean },\n sentryBuildOptions: SentryBuildOptions,\n): Promise<void> {\n if (sentryBuildOptions.debug) {\n // eslint-disable-next-line no-console\n console.debug('[@sentry/nextjs] Running runAfterProductionCompile logic.');\n }\n\n const { createSentryBuildPluginManager } =\n loadModule<{ createSentryBuildPluginManager: typeof createSentryBuildPluginManagerType }>(\n '@sentry/bundler-plugin-core',\n module,\n ) ?? {};\n\n if (!createSentryBuildPluginManager) {\n // eslint-disable-next-line no-console\n console.warn(\n '[@sentry/nextjs] Could not load build manager package. Will not run runAfterProductionCompile logic.',\n );\n return;\n }\n\n const options = getBuildPluginOptions({\n sentryBuildOptions,\n releaseName,\n distDirAbsPath: distDir,\n buildTool: `after-production-compile-${buildTool}`,\n });\n\n const sentryBuildPluginManager = createSentryBuildPluginManager(options, {\n buildTool,\n loggerPrefix: '[@sentry/nextjs - After Production Compile]',\n });\n\n await sentryBuildPluginManager.telemetry.emitBundlerPluginExecutionSignal();\n await sentryBuildPluginManager.createRelease();\n\n // Skip debug ID injection if sourcemaps are disabled which are only relevant for sourcemap correlation\n if (!usesNativeDebugIds && sentryBuildOptions.sourcemaps?.disable !== true) {\n await sentryBuildPluginManager.injectDebugIds([distDir]);\n }\n\n await sentryBuildPluginManager.uploadSourcemaps([distDir], {\n // We don't want to prepare the artifacts because we injected debug ids manually before\n prepareArtifacts: false,\n });\n await sentryBuildPluginManager.deleteArtifacts();\n}\n"],"names":["loadModule","getBuildPluginOptions"],"mappings":";;;;;AAKA;AACA;AACA;AACA;AACO,eAAe,+BAA+B;AACrD,EAAE;AACF,IAAI,WAAW;AACf,IAAI,OAAO;AACX,IAAI,SAAS;AACb,IAAI,kBAAkB;AACtB,GAAG;AACH,EAAE,kBAAkB;AACpB,EAAiB;AACjB,EAAE,IAAI,kBAAkB,CAAC,KAAK,EAAE;AAChC;AACA,IAAI,OAAO,CAAC,KAAK,CAAC,2DAA2D,CAAC;AAC9E,EAAE;;AAEF,EAAE,MAAM,EAAE,8BAAA,EAA+B;AACzC,IAAIA,eAAU;AACd,MAAM,6BAA6B;AACnC,MAAM,MAAM;AACZ,KAAI,IAAK,EAAE;;AAEX,EAAE,IAAI,CAAC,8BAA8B,EAAE;AACvC;AACA,IAAI,OAAO,CAAC,IAAI;AAChB,MAAM,sGAAsG;AAC5G,KAAK;AACL,IAAI;AACJ,EAAE;;AAEF,EAAE,MAAM,OAAA,GAAUC,2CAAqB,CAAC;AACxC,IAAI,kBAAkB;AACtB,IAAI,WAAW;AACf,IAAI,cAAc,EAAE,OAAO;AAC3B,IAAI,SAAS,EAAE,CAAC,yBAAyB,EAAE,SAAS,CAAC,CAAA;AACA,GAAA,CAAA;;AAEA,EAAA,MAAA,wBAAA,GAAA,8BAAA,CAAA,OAAA,EAAA;AACA,IAAA,SAAA;AACA,IAAA,YAAA,EAAA,6CAAA;AACA,GAAA,CAAA;;AAEA,EAAA,MAAA,wBAAA,CAAA,SAAA,CAAA,gCAAA,EAAA;AACA,EAAA,MAAA,wBAAA,CAAA,aAAA,EAAA;;AAEA;AACA,EAAA,IAAA,CAAA,kBAAA,IAAA,kBAAA,CAAA,UAAA,EAAA,OAAA,KAAA,IAAA,EAAA;AACA,IAAA,MAAA,wBAAA,CAAA,cAAA,CAAA,CAAA,OAAA,CAAA,CAAA;AACA,EAAA;;AAEA,EAAA,MAAA,wBAAA,CAAA,gBAAA,CAAA,CAAA,OAAA,CAAA,EAAA;AACA;AACA,IAAA,gBAAA,EAAA,KAAA;AACA,GAAA,CAAA;AACA,EAAA,MAAA,wBAAA,CAAA,eAAA,EAAA;AACA;;;;"}

@@ -52,4 +52,4 @@ import * as serverComponentModule from '__SENTRY_WRAPPING_TARGET_FILE__';

const wrappedHandler$1 = wrappedHandler;
const wrappedHandler_default = wrappedHandler;
export { config, wrappedHandler$1 as default };
export { config, wrappedHandler_default as default };

@@ -81,4 +81,4 @@ import * as origModule from '__SENTRY_NEXTJS_REQUEST_ASYNC_STORAGE_SHIM__';

const wrappedServerComponent$1 = wrappedServerComponent;
const wrappedServerComponent_default = wrappedServerComponent;
export { wrappedServerComponent$1 as default, generateImageMetadata, generateMetadata, generateViewport };
export { wrappedServerComponent_default as default, generateImageMetadata, generateMetadata, generateViewport };

@@ -6,21 +6,21 @@

const index = require('./client/index.js');
const react = require('@sentry/react');
const browserTracingIntegration = require('./client/browserTracingIntegration.js');
const captureRequestError = require('./common/captureRequestError.js');
const appRouterRoutingInstrumentation = require('./client/routing/appRouterRoutingInstrumentation.js');
const _error = require('./common/pages-router-instrumentation/_error.js');
const nextSpan = require('./common/utils/nextSpan.js');
const browserTracingIntegration = require('./client/browserTracingIntegration.js');
const appRouterRoutingInstrumentation = require('./client/routing/appRouterRoutingInstrumentation.js');
const wrapGetStaticPropsWithSentry = require('./common/pages-router-instrumentation/wrapGetStaticPropsWithSentry.js');
const wrapGetInitialPropsWithSentry = require('./common/pages-router-instrumentation/wrapGetInitialPropsWithSentry.js');
const withServerActionInstrumentation = require('./common/withServerActionInstrumentation.js');
const wrapApiHandlerWithSentryVercelCrons = require('./common/pages-router-instrumentation/wrapApiHandlerWithSentryVercelCrons.js');
const wrapAppGetInitialPropsWithSentry = require('./common/pages-router-instrumentation/wrapAppGetInitialPropsWithSentry.js');
const wrapDocumentGetInitialPropsWithSentry = require('./common/pages-router-instrumentation/wrapDocumentGetInitialPropsWithSentry.js');
const wrapErrorGetInitialPropsWithSentry = require('./common/pages-router-instrumentation/wrapErrorGetInitialPropsWithSentry.js');
const wrapGenerationFunctionWithSentry = require('./common/wrapGenerationFunctionWithSentry.js');
const wrapGetInitialPropsWithSentry = require('./common/pages-router-instrumentation/wrapGetInitialPropsWithSentry.js');
const wrapGetServerSidePropsWithSentry = require('./common/pages-router-instrumentation/wrapGetServerSidePropsWithSentry.js');
const wrapServerComponentWithSentry = require('./common/wrapServerComponentWithSentry.js');
const wrapRouteHandlerWithSentry = require('./common/wrapRouteHandlerWithSentry.js');
const wrapApiHandlerWithSentryVercelCrons = require('./common/pages-router-instrumentation/wrapApiHandlerWithSentryVercelCrons.js');
const wrapGetStaticPropsWithSentry = require('./common/pages-router-instrumentation/wrapGetStaticPropsWithSentry.js');
const wrapMiddlewareWithSentry = require('./common/wrapMiddlewareWithSentry.js');
const wrapPageComponentWithSentry = require('./common/pages-router-instrumentation/wrapPageComponentWithSentry.js');
const wrapGenerationFunctionWithSentry = require('./common/wrapGenerationFunctionWithSentry.js');
const withServerActionInstrumentation = require('./common/withServerActionInstrumentation.js');
const captureRequestError = require('./common/captureRequestError.js');
const react = require('@sentry/react');
const wrapRouteHandlerWithSentry = require('./common/wrapRouteHandlerWithSentry.js');
const wrapServerComponentWithSentry = require('./common/wrapServerComponentWithSentry.js');

@@ -31,2 +31,5 @@

exports.withSentryConfig = index.withSentryConfig;
exports.browserTracingIntegration = browserTracingIntegration.browserTracingIntegration;
exports.captureRequestError = captureRequestError.captureRequestError;
exports.captureRouterTransitionStart = appRouterRoutingInstrumentation.captureRouterTransitionStart;
exports.captureUnderscoreErrorException = _error.captureUnderscoreErrorException;

@@ -36,18 +39,15 @@ exports.startInactiveSpan = nextSpan.startInactiveSpan;

exports.startSpanManual = nextSpan.startSpanManual;
exports.browserTracingIntegration = browserTracingIntegration.browserTracingIntegration;
exports.captureRouterTransitionStart = appRouterRoutingInstrumentation.captureRouterTransitionStart;
exports.wrapGetStaticPropsWithSentry = wrapGetStaticPropsWithSentry.wrapGetStaticPropsWithSentry;
exports.wrapGetInitialPropsWithSentry = wrapGetInitialPropsWithSentry.wrapGetInitialPropsWithSentry;
exports.withServerActionInstrumentation = withServerActionInstrumentation.withServerActionInstrumentation;
exports.wrapApiHandlerWithSentryVercelCrons = wrapApiHandlerWithSentryVercelCrons.wrapApiHandlerWithSentryVercelCrons;
exports.wrapAppGetInitialPropsWithSentry = wrapAppGetInitialPropsWithSentry.wrapAppGetInitialPropsWithSentry;
exports.wrapDocumentGetInitialPropsWithSentry = wrapDocumentGetInitialPropsWithSentry.wrapDocumentGetInitialPropsWithSentry;
exports.wrapErrorGetInitialPropsWithSentry = wrapErrorGetInitialPropsWithSentry.wrapErrorGetInitialPropsWithSentry;
exports.wrapGenerationFunctionWithSentry = wrapGenerationFunctionWithSentry.wrapGenerationFunctionWithSentry;
exports.wrapGetInitialPropsWithSentry = wrapGetInitialPropsWithSentry.wrapGetInitialPropsWithSentry;
exports.wrapGetServerSidePropsWithSentry = wrapGetServerSidePropsWithSentry.wrapGetServerSidePropsWithSentry;
exports.wrapServerComponentWithSentry = wrapServerComponentWithSentry.wrapServerComponentWithSentry;
exports.wrapRouteHandlerWithSentry = wrapRouteHandlerWithSentry.wrapRouteHandlerWithSentry;
exports.wrapApiHandlerWithSentryVercelCrons = wrapApiHandlerWithSentryVercelCrons.wrapApiHandlerWithSentryVercelCrons;
exports.wrapGetStaticPropsWithSentry = wrapGetStaticPropsWithSentry.wrapGetStaticPropsWithSentry;
exports.wrapMiddlewareWithSentry = wrapMiddlewareWithSentry.wrapMiddlewareWithSentry;
exports.wrapPageComponentWithSentry = wrapPageComponentWithSentry.wrapPageComponentWithSentry;
exports.wrapGenerationFunctionWithSentry = wrapGenerationFunctionWithSentry.wrapGenerationFunctionWithSentry;
exports.withServerActionInstrumentation = withServerActionInstrumentation.withServerActionInstrumentation;
exports.captureRequestError = captureRequestError.captureRequestError;
exports.wrapRouteHandlerWithSentry = wrapRouteHandlerWithSentry.wrapRouteHandlerWithSentry;
exports.wrapServerComponentWithSentry = wrapServerComponentWithSentry.wrapServerComponentWithSentry;
Object.prototype.hasOwnProperty.call(react, '__proto__') &&

@@ -54,0 +54,0 @@ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const index = require('./config/withSentryConfig/index.js');
const index$1 = require('./server/index.js');
const index$1 = require('./config/withSentryConfig/index.js');
const index = require('./server/index.js');
const node = require('@sentry/node');
const captureRequestError = require('./common/captureRequestError.js');
const _error = require('./common/pages-router-instrumentation/_error.js');
const nextSpan = require('./common/utils/nextSpan.js');
const withServerActionInstrumentation = require('./common/withServerActionInstrumentation.js');
const wrapApiHandlerWithSentry = require('./common/pages-router-instrumentation/wrapApiHandlerWithSentry.js');
const wrapGetStaticPropsWithSentry = require('./common/pages-router-instrumentation/wrapGetStaticPropsWithSentry.js');
const wrapGetInitialPropsWithSentry = require('./common/pages-router-instrumentation/wrapGetInitialPropsWithSentry.js');
const wrapApiHandlerWithSentryVercelCrons = require('./common/pages-router-instrumentation/wrapApiHandlerWithSentryVercelCrons.js');
const wrapAppGetInitialPropsWithSentry = require('./common/pages-router-instrumentation/wrapAppGetInitialPropsWithSentry.js');
const wrapDocumentGetInitialPropsWithSentry = require('./common/pages-router-instrumentation/wrapDocumentGetInitialPropsWithSentry.js');
const wrapErrorGetInitialPropsWithSentry = require('./common/pages-router-instrumentation/wrapErrorGetInitialPropsWithSentry.js');
const wrapGenerationFunctionWithSentry = require('./common/wrapGenerationFunctionWithSentry.js');
const wrapGetInitialPropsWithSentry = require('./common/pages-router-instrumentation/wrapGetInitialPropsWithSentry.js');
const wrapGetServerSidePropsWithSentry = require('./common/pages-router-instrumentation/wrapGetServerSidePropsWithSentry.js');
const wrapServerComponentWithSentry = require('./common/wrapServerComponentWithSentry.js');
const wrapRouteHandlerWithSentry = require('./common/wrapRouteHandlerWithSentry.js');
const wrapApiHandlerWithSentryVercelCrons = require('./common/pages-router-instrumentation/wrapApiHandlerWithSentryVercelCrons.js');
const wrapGetStaticPropsWithSentry = require('./common/pages-router-instrumentation/wrapGetStaticPropsWithSentry.js');
const wrapMiddlewareWithSentry = require('./common/wrapMiddlewareWithSentry.js');
const wrapPageComponentWithSentry = require('./common/pages-router-instrumentation/wrapPageComponentWithSentry.js');
const wrapGenerationFunctionWithSentry = require('./common/wrapGenerationFunctionWithSentry.js');
const withServerActionInstrumentation = require('./common/withServerActionInstrumentation.js');
const captureRequestError = require('./common/captureRequestError.js');
const node = require('@sentry/node');
const wrapRouteHandlerWithSentry = require('./common/wrapRouteHandlerWithSentry.js');
const wrapServerComponentWithSentry = require('./common/wrapServerComponentWithSentry.js');
exports.withSentryConfig = index.withSentryConfig;
exports.ErrorBoundary = index$1.ErrorBoundary;
exports.createReduxEnhancer = index$1.createReduxEnhancer;
exports.init = index$1.init;
exports.showReportDialog = index$1.showReportDialog;
exports.withErrorBoundary = index$1.withErrorBoundary;
exports.withSentryConfig = index$1.withSentryConfig;
exports.ErrorBoundary = index.ErrorBoundary;
exports.createReduxEnhancer = index.createReduxEnhancer;
exports.init = index.init;
exports.showReportDialog = index.showReportDialog;
exports.withErrorBoundary = index.withErrorBoundary;
exports.captureRequestError = captureRequestError.captureRequestError;
exports.captureUnderscoreErrorException = _error.captureUnderscoreErrorException;

@@ -36,17 +37,16 @@ exports.startInactiveSpan = nextSpan.startInactiveSpan;

exports.startSpanManual = nextSpan.startSpanManual;
exports.withServerActionInstrumentation = withServerActionInstrumentation.withServerActionInstrumentation;
exports.wrapApiHandlerWithSentry = wrapApiHandlerWithSentry.wrapApiHandlerWithSentry;
exports.wrapGetStaticPropsWithSentry = wrapGetStaticPropsWithSentry.wrapGetStaticPropsWithSentry;
exports.wrapGetInitialPropsWithSentry = wrapGetInitialPropsWithSentry.wrapGetInitialPropsWithSentry;
exports.wrapApiHandlerWithSentryVercelCrons = wrapApiHandlerWithSentryVercelCrons.wrapApiHandlerWithSentryVercelCrons;
exports.wrapAppGetInitialPropsWithSentry = wrapAppGetInitialPropsWithSentry.wrapAppGetInitialPropsWithSentry;
exports.wrapDocumentGetInitialPropsWithSentry = wrapDocumentGetInitialPropsWithSentry.wrapDocumentGetInitialPropsWithSentry;
exports.wrapErrorGetInitialPropsWithSentry = wrapErrorGetInitialPropsWithSentry.wrapErrorGetInitialPropsWithSentry;
exports.wrapGenerationFunctionWithSentry = wrapGenerationFunctionWithSentry.wrapGenerationFunctionWithSentry;
exports.wrapGetInitialPropsWithSentry = wrapGetInitialPropsWithSentry.wrapGetInitialPropsWithSentry;
exports.wrapGetServerSidePropsWithSentry = wrapGetServerSidePropsWithSentry.wrapGetServerSidePropsWithSentry;
exports.wrapServerComponentWithSentry = wrapServerComponentWithSentry.wrapServerComponentWithSentry;
exports.wrapRouteHandlerWithSentry = wrapRouteHandlerWithSentry.wrapRouteHandlerWithSentry;
exports.wrapApiHandlerWithSentryVercelCrons = wrapApiHandlerWithSentryVercelCrons.wrapApiHandlerWithSentryVercelCrons;
exports.wrapGetStaticPropsWithSentry = wrapGetStaticPropsWithSentry.wrapGetStaticPropsWithSentry;
exports.wrapMiddlewareWithSentry = wrapMiddlewareWithSentry.wrapMiddlewareWithSentry;
exports.wrapPageComponentWithSentry = wrapPageComponentWithSentry.wrapPageComponentWithSentry;
exports.wrapGenerationFunctionWithSentry = wrapGenerationFunctionWithSentry.wrapGenerationFunctionWithSentry;
exports.withServerActionInstrumentation = withServerActionInstrumentation.withServerActionInstrumentation;
exports.captureRequestError = captureRequestError.captureRequestError;
exports.wrapRouteHandlerWithSentry = wrapRouteHandlerWithSentry.wrapRouteHandlerWithSentry;
exports.wrapServerComponentWithSentry = wrapServerComponentWithSentry.wrapServerComponentWithSentry;
Object.prototype.hasOwnProperty.call(node, '__proto__') &&

@@ -53,0 +53,0 @@ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&

@@ -1,2 +0,2 @@

import { startSpan as startSpan$1, startSpanManual as startSpanManual$1, startInactiveSpan as startInactiveSpan$1, debug, SentryNonRecordingSpan } from '@sentry/core';
import { startInactiveSpan as startInactiveSpan$1, startSpan as startSpan$1, startSpanManual as startSpanManual$1, debug, SentryNonRecordingSpan } from '@sentry/core';
import { DEBUG_BUILD } from '../debug-build.js';

@@ -3,0 +3,0 @@ import { isBuild } from './isBuild.js';

@@ -1,2 +0,2 @@

import { captureException, httpRequestToRequestData, getCurrentScope, getIsolationScope, getActiveSpan, getRootSpan, getTraceData } from '@sentry/core';
import { httpRequestToRequestData, getCurrentScope, getIsolationScope, getActiveSpan, getRootSpan, getTraceData, captureException } from '@sentry/core';
import { TRANSACTION_ATTR_SENTRY_ROUTE_BACKFILL } from '../span-attributes-with-logic-attached.js';

@@ -3,0 +3,0 @@

@@ -51,3 +51,4 @@ import { loadModule } from '@sentry/core';

if (!usesNativeDebugIds) {
// Skip debug ID injection if sourcemaps are disabled which are only relevant for sourcemap correlation
if (!usesNativeDebugIds && sentryBuildOptions.sourcemaps?.disable !== true) {
await sentryBuildPluginManager.injectDebugIds([distDir]);

@@ -54,0 +55,0 @@ }

@@ -1,1 +0,1 @@

{"version":3,"file":"handleRunAfterProductionCompile.js","sources":["../../../src/config/handleRunAfterProductionCompile.ts"],"sourcesContent":["import type { createSentryBuildPluginManager as createSentryBuildPluginManagerType } from '@sentry/bundler-plugin-core';\nimport { loadModule } from '@sentry/core';\nimport { getBuildPluginOptions } from './getBuildPluginOptions';\nimport type { SentryBuildOptions } from './types';\n\n/**\n * This function is called by Next.js after the production build is complete.\n * It is used to upload sourcemaps to Sentry.\n */\nexport async function handleRunAfterProductionCompile(\n {\n releaseName,\n distDir,\n buildTool,\n usesNativeDebugIds,\n }: { releaseName?: string; distDir: string; buildTool: 'webpack' | 'turbopack'; usesNativeDebugIds?: boolean },\n sentryBuildOptions: SentryBuildOptions,\n): Promise<void> {\n if (sentryBuildOptions.debug) {\n // eslint-disable-next-line no-console\n console.debug('[@sentry/nextjs] Running runAfterProductionCompile logic.');\n }\n\n const { createSentryBuildPluginManager } =\n loadModule<{ createSentryBuildPluginManager: typeof createSentryBuildPluginManagerType }>(\n '@sentry/bundler-plugin-core',\n module,\n ) ?? {};\n\n if (!createSentryBuildPluginManager) {\n // eslint-disable-next-line no-console\n console.warn(\n '[@sentry/nextjs] Could not load build manager package. Will not run runAfterProductionCompile logic.',\n );\n return;\n }\n\n const options = getBuildPluginOptions({\n sentryBuildOptions,\n releaseName,\n distDirAbsPath: distDir,\n buildTool: `after-production-compile-${buildTool}`,\n });\n\n const sentryBuildPluginManager = createSentryBuildPluginManager(options, {\n buildTool,\n loggerPrefix: '[@sentry/nextjs - After Production Compile]',\n });\n\n await sentryBuildPluginManager.telemetry.emitBundlerPluginExecutionSignal();\n await sentryBuildPluginManager.createRelease();\n\n if (!usesNativeDebugIds) {\n await sentryBuildPluginManager.injectDebugIds([distDir]);\n }\n\n await sentryBuildPluginManager.uploadSourcemaps([distDir], {\n // We don't want to prepare the artifacts because we injected debug ids manually before\n prepareArtifacts: false,\n });\n await sentryBuildPluginManager.deleteArtifacts();\n}\n"],"names":[],"mappings":";;;AAKA;AACA;AACA;AACA;AACO,eAAe,+BAA+B;AACrD,EAAE;AACF,IAAI,WA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ts"],"sourcesContent":["import type { createSentryBuildPluginManager as createSentryBuildPluginManagerType } from '@sentry/bundler-plugin-core';\nimport { loadModule } from '@sentry/core';\nimport { getBuildPluginOptions } from './getBuildPluginOptions';\nimport type { SentryBuildOptions } from './types';\n\n/**\n * This function is called by Next.js after the production build is complete.\n * It is used to upload sourcemaps to Sentry.\n */\nexport async function handleRunAfterProductionCompile(\n {\n releaseName,\n distDir,\n buildTool,\n usesNativeDebugIds,\n }: { releaseName?: string; distDir: string; buildTool: 'webpack' | 'turbopack'; usesNativeDebugIds?: boolean },\n sentryBuildOptions: SentryBuildOptions,\n): Promise<void> {\n if (sentryBuildOptions.debug) {\n // eslint-disable-next-line no-console\n console.debug('[@sentry/nextjs] Running runAfterProductionCompile logic.');\n }\n\n const { createSentryBuildPluginManager } =\n loadModule<{ createSentryBuildPluginManager: typeof createSentryBuildPluginManagerType }>(\n '@sentry/bundler-plugin-core',\n module,\n ) ?? {};\n\n if (!createSentryBuildPluginManager) {\n // eslint-disable-next-line no-console\n console.warn(\n '[@sentry/nextjs] Could not load build manager package. Will not run runAfterProductionCompile logic.',\n );\n return;\n }\n\n const options = getBuildPluginOptions({\n sentryBuildOptions,\n releaseName,\n distDirAbsPath: distDir,\n buildTool: `after-production-compile-${buildTool}`,\n });\n\n const sentryBuildPluginManager = createSentryBuildPluginManager(options, {\n buildTool,\n loggerPrefix: '[@sentry/nextjs - After Production Compile]',\n });\n\n await sentryBuildPluginManager.telemetry.emitBundlerPluginExecutionSignal();\n await sentryBuildPluginManager.createRelease();\n\n // Skip debug ID injection if sourcemaps are disabled which are only relevant for sourcemap correlation\n if (!usesNativeDebugIds && sentryBuildOptions.sourcemaps?.disable !== true) {\n await sentryBuildPluginManager.injectDebugIds([distDir]);\n }\n\n await sentryBuildPluginManager.uploadSourcemaps([distDir], {\n // We don't want to prepare the artifacts because we injected debug ids manually before\n prepareArtifacts: false,\n });\n await sentryBuildPluginManager.deleteArtifacts();\n}\n"],"names":[],"mappings":";;;AA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;AACA,EAAA,MAAA,wBAAA,CAAA,eAAA,EAAA;AACA;;;;"}

@@ -52,4 +52,4 @@ import * as serverComponentModule from '__SENTRY_WRAPPING_TARGET_FILE__';

const wrappedHandler$1 = wrappedHandler;
const wrappedHandler_default = wrappedHandler;
export { config, wrappedHandler$1 as default };
export { config, wrappedHandler_default as default };

@@ -81,4 +81,4 @@ import * as origModule from '__SENTRY_NEXTJS_REQUEST_ASYNC_STORAGE_SHIM__';

const wrappedServerComponent$1 = wrappedServerComponent;
const wrappedServerComponent_default = wrappedServerComponent;
export { wrappedServerComponent$1 as default, generateImageMetadata, generateMetadata, generateViewport };
export { wrappedServerComponent_default as default, generateImageMetadata, generateMetadata, generateViewport };
"use client";
export { init, withSentryConfig } from './client/index.js';
export * from '@sentry/react';
export { browserTracingIntegration } from './client/browserTracingIntegration.js';
export { captureRequestError } from './common/captureRequestError.js';
export { captureRouterTransitionStart } from './client/routing/appRouterRoutingInstrumentation.js';
export { captureUnderscoreErrorException } from './common/pages-router-instrumentation/_error.js';
export { startInactiveSpan, startSpan, startSpanManual } from './common/utils/nextSpan.js';
export { browserTracingIntegration } from './client/browserTracingIntegration.js';
export { captureRouterTransitionStart } from './client/routing/appRouterRoutingInstrumentation.js';
export { wrapGetStaticPropsWithSentry } from './common/pages-router-instrumentation/wrapGetStaticPropsWithSentry.js';
export { wrapGetInitialPropsWithSentry } from './common/pages-router-instrumentation/wrapGetInitialPropsWithSentry.js';
export { withServerActionInstrumentation } from './common/withServerActionInstrumentation.js';
export { wrapApiHandlerWithSentryVercelCrons } from './common/pages-router-instrumentation/wrapApiHandlerWithSentryVercelCrons.js';
export { wrapAppGetInitialPropsWithSentry } from './common/pages-router-instrumentation/wrapAppGetInitialPropsWithSentry.js';
export { wrapDocumentGetInitialPropsWithSentry } from './common/pages-router-instrumentation/wrapDocumentGetInitialPropsWithSentry.js';
export { wrapErrorGetInitialPropsWithSentry } from './common/pages-router-instrumentation/wrapErrorGetInitialPropsWithSentry.js';
export { wrapGenerationFunctionWithSentry } from './common/wrapGenerationFunctionWithSentry.js';
export { wrapGetInitialPropsWithSentry } from './common/pages-router-instrumentation/wrapGetInitialPropsWithSentry.js';
export { wrapGetServerSidePropsWithSentry } from './common/pages-router-instrumentation/wrapGetServerSidePropsWithSentry.js';
export { wrapServerComponentWithSentry } from './common/wrapServerComponentWithSentry.js';
export { wrapRouteHandlerWithSentry } from './common/wrapRouteHandlerWithSentry.js';
export { wrapApiHandlerWithSentryVercelCrons } from './common/pages-router-instrumentation/wrapApiHandlerWithSentryVercelCrons.js';
export { wrapGetStaticPropsWithSentry } from './common/pages-router-instrumentation/wrapGetStaticPropsWithSentry.js';
export { wrapMiddlewareWithSentry } from './common/wrapMiddlewareWithSentry.js';
export { wrapPageComponentWithSentry } from './common/pages-router-instrumentation/wrapPageComponentWithSentry.js';
export { wrapGenerationFunctionWithSentry } from './common/wrapGenerationFunctionWithSentry.js';
export { withServerActionInstrumentation } from './common/withServerActionInstrumentation.js';
export { captureRequestError } from './common/captureRequestError.js';
export * from '@sentry/react';
export { wrapRouteHandlerWithSentry } from './common/wrapRouteHandlerWithSentry.js';
export { wrapServerComponentWithSentry } from './common/wrapServerComponentWithSentry.js';
//# sourceMappingURL=index.client.js.map
export { withSentryConfig } from './config/withSentryConfig/index.js';
export { ErrorBoundary, createReduxEnhancer, init, showReportDialog, withErrorBoundary } from './server/index.js';
export * from '@sentry/node';
export { captureRequestError } from './common/captureRequestError.js';
export { captureUnderscoreErrorException } from './common/pages-router-instrumentation/_error.js';
export { startInactiveSpan, startSpan, startSpanManual } from './common/utils/nextSpan.js';
export { withServerActionInstrumentation } from './common/withServerActionInstrumentation.js';
export { wrapApiHandlerWithSentry } from './common/pages-router-instrumentation/wrapApiHandlerWithSentry.js';
export { wrapGetStaticPropsWithSentry } from './common/pages-router-instrumentation/wrapGetStaticPropsWithSentry.js';
export { wrapGetInitialPropsWithSentry } from './common/pages-router-instrumentation/wrapGetInitialPropsWithSentry.js';
export { wrapApiHandlerWithSentryVercelCrons } from './common/pages-router-instrumentation/wrapApiHandlerWithSentryVercelCrons.js';
export { wrapAppGetInitialPropsWithSentry } from './common/pages-router-instrumentation/wrapAppGetInitialPropsWithSentry.js';
export { wrapDocumentGetInitialPropsWithSentry } from './common/pages-router-instrumentation/wrapDocumentGetInitialPropsWithSentry.js';
export { wrapErrorGetInitialPropsWithSentry } from './common/pages-router-instrumentation/wrapErrorGetInitialPropsWithSentry.js';
export { wrapGenerationFunctionWithSentry } from './common/wrapGenerationFunctionWithSentry.js';
export { wrapGetInitialPropsWithSentry } from './common/pages-router-instrumentation/wrapGetInitialPropsWithSentry.js';
export { wrapGetServerSidePropsWithSentry } from './common/pages-router-instrumentation/wrapGetServerSidePropsWithSentry.js';
export { wrapServerComponentWithSentry } from './common/wrapServerComponentWithSentry.js';
export { wrapRouteHandlerWithSentry } from './common/wrapRouteHandlerWithSentry.js';
export { wrapApiHandlerWithSentryVercelCrons } from './common/pages-router-instrumentation/wrapApiHandlerWithSentryVercelCrons.js';
export { wrapGetStaticPropsWithSentry } from './common/pages-router-instrumentation/wrapGetStaticPropsWithSentry.js';
export { wrapMiddlewareWithSentry } from './common/wrapMiddlewareWithSentry.js';
export { wrapPageComponentWithSentry } from './common/pages-router-instrumentation/wrapPageComponentWithSentry.js';
export { wrapGenerationFunctionWithSentry } from './common/wrapGenerationFunctionWithSentry.js';
export { withServerActionInstrumentation } from './common/withServerActionInstrumentation.js';
export { captureRequestError } from './common/captureRequestError.js';
export * from '@sentry/node';
export { wrapRouteHandlerWithSentry } from './common/wrapRouteHandlerWithSentry.js';
export { wrapServerComponentWithSentry } from './common/wrapServerComponentWithSentry.js';
//# sourceMappingURL=index.server.js.map

@@ -1,1 +0,1 @@

{"type":"module","version":"10.37.0","sideEffects":false}
{"type":"module","version":"10.38.0","sideEffects":false}

@@ -1,1 +0,1 @@

{"version":3,"file":"handleRunAfterProductionCompile.d.ts","sourceRoot":"","sources":["../../../src/config/handleRunAfterProductionCompile.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD;;;GAGG;AACH,wBAAsB,+BAA+B,CACnD,EACE,WAAW,EACX,OAAO,EACP,SAAS,EACT,kBAAkB,GACnB,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,SAAS,GAAG,WAAW,CAAC;IAAC,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAAE,EAC9G,kBAAkB,EAAE,kBAAkB,GACrC,OAAO,CAAC,IAAI,CAAC,CA4Cf"}
{"version":3,"file":"handleRunAfterProductionCompile.d.ts","sourceRoot":"","sources":["../../../src/config/handleRunAfterProductionCompile.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD;;;GAGG;AACH,wBAAsB,+BAA+B,CACnD,EACE,WAAW,EACX,OAAO,EACP,SAAS,EACT,kBAAkB,GACnB,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,SAAS,GAAG,WAAW,CAAC;IAAC,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAAE,EAC9G,kBAAkB,EAAE,kBAAkB,GACrC,OAAO,CAAC,IAAI,CAAC,CA6Cf"}
{
"name": "@sentry/nextjs",
"version": "10.37.0",
"version": "10.38.0",
"description": "Official Sentry SDK for Next.js",

@@ -82,10 +82,10 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"@rollup/plugin-commonjs": "28.0.1",
"@sentry-internal/browser-utils": "10.37.0",
"@sentry/bundler-plugin-core": "^4.6.2",
"@sentry/core": "10.37.0",
"@sentry/node": "10.37.0",
"@sentry/opentelemetry": "10.37.0",
"@sentry/react": "10.37.0",
"@sentry/vercel-edge": "10.37.0",
"@sentry/webpack-plugin": "^4.7.0",
"@sentry-internal/browser-utils": "10.38.0",
"@sentry/bundler-plugin-core": "^4.8.0",
"@sentry/core": "10.38.0",
"@sentry/node": "10.38.0",
"@sentry/opentelemetry": "10.38.0",
"@sentry/react": "10.38.0",
"@sentry/vercel-edge": "10.38.0",
"@sentry/webpack-plugin": "^4.8.0",
"rollup": "^4.35.0",

@@ -92,0 +92,0 @@ "stacktrace-parser": "^0.1.10"