Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/nextjs

Package Overview
Dependencies
Maintainers
11
Versions
342
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 8.41.0 to 8.42.0

4

build/cjs/client/index.js

@@ -16,3 +16,2 @@ var {

const tunnelRoute = require('./tunnelRoute.js');
const _error = require('../common/pages-router-instrumentation/_error.js');
const wrapGetStaticPropsWithSentry = require('../common/pages-router-instrumentation/wrapGetStaticPropsWithSentry.js');

@@ -32,2 +31,3 @@ const wrapGetInitialPropsWithSentry = require('../common/pages-router-instrumentation/wrapGetInitialPropsWithSentry.js');

const captureRequestError = require('../common/captureRequestError.js');
const _error = require('../common/pages-router-instrumentation/_error.js');

@@ -104,3 +104,2 @@ const globalWithInjectedValues = core.GLOBAL_OBJ

exports.browserTracingIntegration = browserTracingIntegration.browserTracingIntegration;
exports.captureUnderscoreErrorException = _error.captureUnderscoreErrorException;
exports.wrapGetStaticPropsWithSentry = wrapGetStaticPropsWithSentry.wrapGetStaticPropsWithSentry;

@@ -121,2 +120,3 @@ exports.wrapGetInitialPropsWithSentry = wrapGetInitialPropsWithSentry.wrapGetInitialPropsWithSentry;

exports.experimental_captureRequestError = captureRequestError.experimental_captureRequestError;
exports.captureUnderscoreErrorException = _error.captureUnderscoreErrorException;
exports.init = init;

@@ -123,0 +123,0 @@ exports.withSentryConfig = withSentryConfig;

@@ -15,4 +15,5 @@ var {

// For ESM/CJS interoperability 'reasons', depending on how this file is loaded, Router might be on the default export
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any
const Router = RouterImport.default.events ? RouterImport.default : (RouterImport.default ).default;
const Router = RouterImport.default.events
? RouterImport.default
: (RouterImport.default ).default;

@@ -19,0 +20,0 @@ const globalObject = react.WINDOW

@@ -69,4 +69,4 @@ var {

function escapeNextjsTracing(cb) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any
const MaybeGlobalAsyncLocalStorage = (core.GLOBAL_OBJ ).AsyncLocalStorage;
const MaybeGlobalAsyncLocalStorage = (core.GLOBAL_OBJ )
.AsyncLocalStorage;

@@ -73,0 +73,0 @@ if (!MaybeGlobalAsyncLocalStorage) {

@@ -31,3 +31,2 @@ import { _nullishCoalesce, _optionalChain } from '@sentry/core';

try {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
const requestAsyncStore = _optionalChain([requestAsyncStorage, 'optionalAccess', _ => _.getStore, 'call', _2 => _2()]) ;

@@ -41,4 +40,3 @@ sentryTraceHeader = _nullishCoalesce(_optionalChain([requestAsyncStore, 'optionalAccess', _3 => _3.headers, 'access', _4 => _4.get, 'call', _5 => _5('sentry-trace')]), () => ( undefined));

// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
return Sentry.wrapServerComponentWithSentry(originalFunction , {
return Sentry.wrapServerComponentWithSentry(originalFunction, {
componentRoute: '__ROUTE__',

@@ -45,0 +43,0 @@ componentType: '__COMPONENT_TYPE__',

@@ -328,2 +328,19 @@ var {

if (!_optionalChain([userSentryOptions, 'access', _3 => _3.sourcemaps, 'optionalAccess', _4 => _4.disable])) {
// TODO(v9): Remove this warning
if (newConfig.devtool === false) {
const runtimePrefix = !isServer ? 'Client' : runtime === 'edge' ? 'Edge' : 'Node.js';
// eslint-disable-next-line no-console
console.warn(
`[@sentry/nextjs - ${runtimePrefix}] You disabled sourcemaps with the Webpack \`devtool\` option. Currently, the Sentry SDK will override this option to generate sourcemaps. In future versions, the Sentry SDK will not override the \`devtool\` option if you explicitly disable it. If you want to generate and upload sourcemaps please set the \`devtool\` option to 'hidden-source-map' or undefined.`,
);
}
// TODO(v9): Remove this warning and print warning in case source map deletion is auto configured
if (!isServer && !_optionalChain([userSentryOptions, 'access', _5 => _5.sourcemaps, 'optionalAccess', _6 => _6.deleteSourcemapsAfterUpload])) {
// eslint-disable-next-line no-console
console.warn(
"[@sentry/nextjs] The Sentry SDK has enabled source map generation for your Next.js app. If you don't want to serve Source Maps to your users, either set the `deleteSourceMapsAfterUpload` option to true, or manually delete the source maps after the build. In future Sentry SDK versions `deleteSourceMapsAfterUpload` will default to `true`.",
);
}
// `hidden-source-map` produces the same sourcemaps as `source-map`, but doesn't include the `sourceMappingURL`

@@ -334,4 +351,7 @@ // comment at the bottom. For folks who aren't publicly hosting their sourcemaps, this is helpful because then

// without, the option to use `hidden-source-map` only applies to the client-side build.
newConfig.devtool =
isServer || userNextConfig.productionBrowserSourceMaps ? 'source-map' : 'hidden-source-map';
if (isServer || userNextConfig.productionBrowserSourceMaps) {
newConfig.devtool = 'source-map';
} else {
newConfig.devtool = 'hidden-source-map';
}
}

@@ -546,3 +566,3 @@

...newConfig.module,
rules: [...(_optionalChain([newConfig, 'access', _5 => _5.module, 'optionalAccess', _6 => _6.rules]) || [])],
rules: [...(_optionalChain([newConfig, 'access', _7 => _7.module, 'optionalAccess', _8 => _8.rules]) || [])],
};

@@ -578,3 +598,3 @@ // Surprising that we have to assert the type here, since we've demonstrably guaranteed the existence of

? undefined
: { id: _nullishCoalesce(_optionalChain([userSentryOptions, 'access', _7 => _7.release, 'optionalAccess', _8 => _8.name]), () => ( node.getSentryRelease(buildContext.buildId))) },
: { id: _nullishCoalesce(_optionalChain([userSentryOptions, 'access', _9 => _9.release, 'optionalAccess', _10 => _10.name]), () => ( node.getSentryRelease(buildContext.buildId))) },
_sentryBasePath: buildContext.dev ? userNextConfig.basePath : undefined,

@@ -587,3 +607,3 @@ };

// characters)
_sentryRewriteFramesDistDir: _optionalChain([userNextConfig, 'access', _9 => _9.distDir, 'optionalAccess', _10 => _10.replace, 'call', _11 => _11(/\\/g, '\\\\')]) || '.next',
_sentryRewriteFramesDistDir: _optionalChain([userNextConfig, 'access', _11 => _11.distDir, 'optionalAccess', _12 => _12.replace, 'call', _13 => _13(/\\/g, '\\\\')]) || '.next',
};

@@ -590,0 +610,0 @@

@@ -12,3 +12,2 @@ var {

const distDirRewriteFramesIntegration = require('./distDirRewriteFramesIntegration.js');
const _error = require('../common/pages-router-instrumentation/_error.js');
const wrapGetStaticPropsWithSentry = require('../common/pages-router-instrumentation/wrapGetStaticPropsWithSentry.js');

@@ -28,2 +27,3 @@ const wrapGetInitialPropsWithSentry = require('../common/pages-router-instrumentation/wrapGetInitialPropsWithSentry.js');

const captureRequestError = require('../common/captureRequestError.js');
const _error = require('../common/pages-router-instrumentation/_error.js');
const wrapApiHandlerWithSentry = require('./wrapApiHandlerWithSentry.js');

@@ -107,3 +107,2 @@

exports.captureUnderscoreErrorException = _error.captureUnderscoreErrorException;
exports.wrapGetStaticPropsWithSentry = wrapGetStaticPropsWithSentry.wrapGetStaticPropsWithSentry;

@@ -124,2 +123,3 @@ exports.wrapGetInitialPropsWithSentry = wrapGetInitialPropsWithSentry.wrapGetInitialPropsWithSentry;

exports.experimental_captureRequestError = captureRequestError.experimental_captureRequestError;
exports.captureUnderscoreErrorException = _error.captureUnderscoreErrorException;
exports.wrapApiHandlerWithSentry = wrapApiHandlerWithSentry.wrapApiHandlerWithSentry;

@@ -126,0 +126,0 @@ exports.init = init;

@@ -7,6 +7,6 @@ var {

const api = require('@opentelemetry/api');
const semanticConventions = require('@opentelemetry/semantic-conventions');
const core = require('@sentry/core');
const node = require('@sentry/node');
const api = require('@opentelemetry/api');
const semanticConventions = require('@opentelemetry/semantic-conventions');
const opentelemetry = require('@sentry/opentelemetry');

@@ -13,0 +13,0 @@ const debugBuild = require('../common/debug-build.js');

@@ -12,3 +12,2 @@ import { _optionalChain } from '@sentry/core';

import { applyTunnelRouteOption } from './tunnelRoute.js';
export { captureUnderscoreErrorException } from '../common/pages-router-instrumentation/_error.js';
export { wrapGetStaticPropsWithSentry } from '../common/pages-router-instrumentation/wrapGetStaticPropsWithSentry.js';

@@ -28,2 +27,3 @@ export { wrapGetInitialPropsWithSentry } from '../common/pages-router-instrumentation/wrapGetInitialPropsWithSentry.js';

export { captureRequestError, experimental_captureRequestError } from '../common/captureRequestError.js';
export { captureUnderscoreErrorException } from '../common/pages-router-instrumentation/_error.js';

@@ -30,0 +30,0 @@ const globalWithInjectedValues = GLOBAL_OBJ

@@ -10,4 +10,5 @@ import { _optionalChain } from '@sentry/core';

// For ESM/CJS interoperability 'reasons', depending on how this file is loaded, Router might be on the default export
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any
const Router = RouterImport.events ? RouterImport : (RouterImport ).default;
const Router = RouterImport.events
? RouterImport
: (RouterImport ).default;

@@ -14,0 +15,0 @@ const globalObject = WINDOW

@@ -64,4 +64,4 @@ import { _optionalChain } from '@sentry/core';

function escapeNextjsTracing(cb) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any
const MaybeGlobalAsyncLocalStorage = (GLOBAL_OBJ ).AsyncLocalStorage;
const MaybeGlobalAsyncLocalStorage = (GLOBAL_OBJ )
.AsyncLocalStorage;

@@ -68,0 +68,0 @@ if (!MaybeGlobalAsyncLocalStorage) {

@@ -31,3 +31,2 @@ import { _nullishCoalesce, _optionalChain } from '@sentry/core';

try {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
const requestAsyncStore = _optionalChain([requestAsyncStorage, 'optionalAccess', _ => _.getStore, 'call', _2 => _2()]) ;

@@ -41,4 +40,3 @@ sentryTraceHeader = _nullishCoalesce(_optionalChain([requestAsyncStore, 'optionalAccess', _3 => _3.headers, 'access', _4 => _4.get, 'call', _5 => _5('sentry-trace')]), () => ( undefined));

// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
return Sentry.wrapServerComponentWithSentry(originalFunction , {
return Sentry.wrapServerComponentWithSentry(originalFunction, {
componentRoute: '__ROUTE__',

@@ -45,0 +43,0 @@ componentType: '__COMPONENT_TYPE__',

@@ -322,2 +322,19 @@ import { _nullishCoalesce, _optionalChain } from '@sentry/core';

if (!_optionalChain([userSentryOptions, 'access', _3 => _3.sourcemaps, 'optionalAccess', _4 => _4.disable])) {
// TODO(v9): Remove this warning
if (newConfig.devtool === false) {
const runtimePrefix = !isServer ? 'Client' : runtime === 'edge' ? 'Edge' : 'Node.js';
// eslint-disable-next-line no-console
console.warn(
`[@sentry/nextjs - ${runtimePrefix}] You disabled sourcemaps with the Webpack \`devtool\` option. Currently, the Sentry SDK will override this option to generate sourcemaps. In future versions, the Sentry SDK will not override the \`devtool\` option if you explicitly disable it. If you want to generate and upload sourcemaps please set the \`devtool\` option to 'hidden-source-map' or undefined.`,
);
}
// TODO(v9): Remove this warning and print warning in case source map deletion is auto configured
if (!isServer && !_optionalChain([userSentryOptions, 'access', _5 => _5.sourcemaps, 'optionalAccess', _6 => _6.deleteSourcemapsAfterUpload])) {
// eslint-disable-next-line no-console
console.warn(
"[@sentry/nextjs] The Sentry SDK has enabled source map generation for your Next.js app. If you don't want to serve Source Maps to your users, either set the `deleteSourceMapsAfterUpload` option to true, or manually delete the source maps after the build. In future Sentry SDK versions `deleteSourceMapsAfterUpload` will default to `true`.",
);
}
// `hidden-source-map` produces the same sourcemaps as `source-map`, but doesn't include the `sourceMappingURL`

@@ -328,4 +345,7 @@ // comment at the bottom. For folks who aren't publicly hosting their sourcemaps, this is helpful because then

// without, the option to use `hidden-source-map` only applies to the client-side build.
newConfig.devtool =
isServer || userNextConfig.productionBrowserSourceMaps ? 'source-map' : 'hidden-source-map';
if (isServer || userNextConfig.productionBrowserSourceMaps) {
newConfig.devtool = 'source-map';
} else {
newConfig.devtool = 'hidden-source-map';
}
}

@@ -540,3 +560,3 @@

...newConfig.module,
rules: [...(_optionalChain([newConfig, 'access', _5 => _5.module, 'optionalAccess', _6 => _6.rules]) || [])],
rules: [...(_optionalChain([newConfig, 'access', _7 => _7.module, 'optionalAccess', _8 => _8.rules]) || [])],
};

@@ -572,3 +592,3 @@ // Surprising that we have to assert the type here, since we've demonstrably guaranteed the existence of

? undefined
: { id: _nullishCoalesce(_optionalChain([userSentryOptions, 'access', _7 => _7.release, 'optionalAccess', _8 => _8.name]), () => ( getSentryRelease(buildContext.buildId))) },
: { id: _nullishCoalesce(_optionalChain([userSentryOptions, 'access', _9 => _9.release, 'optionalAccess', _10 => _10.name]), () => ( getSentryRelease(buildContext.buildId))) },
_sentryBasePath: buildContext.dev ? userNextConfig.basePath : undefined,

@@ -581,3 +601,3 @@ };

// characters)
_sentryRewriteFramesDistDir: _optionalChain([userNextConfig, 'access', _9 => _9.distDir, 'optionalAccess', _10 => _10.replace, 'call', _11 => _11(/\\/g, '\\\\')]) || '.next',
_sentryRewriteFramesDistDir: _optionalChain([userNextConfig, 'access', _11 => _11.distDir, 'optionalAccess', _12 => _12.replace, 'call', _13 => _13(/\\/g, '\\\\')]) || '.next',
};

@@ -584,0 +604,0 @@

@@ -8,3 +8,2 @@ import { _optionalChain } from '@sentry/core';

import { distDirRewriteFramesIntegration } from './distDirRewriteFramesIntegration.js';
export { captureUnderscoreErrorException } from '../common/pages-router-instrumentation/_error.js';
export { wrapGetStaticPropsWithSentry } from '../common/pages-router-instrumentation/wrapGetStaticPropsWithSentry.js';

@@ -24,2 +23,3 @@ export { wrapGetInitialPropsWithSentry } from '../common/pages-router-instrumentation/wrapGetInitialPropsWithSentry.js';

export { captureRequestError, experimental_captureRequestError } from '../common/captureRequestError.js';
export { captureUnderscoreErrorException } from '../common/pages-router-instrumentation/_error.js';
export { wrapApiHandlerWithSentry } from './wrapApiHandlerWithSentry.js';

@@ -26,0 +26,0 @@

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

{"type":"module","version":"8.41.0","sideEffects":false}
{"type":"module","version":"8.42.0","sideEffects":false}
import { _optionalChain } from '@sentry/core';
import { context } from '@opentelemetry/api';
import { SEMATTRS_HTTP_TARGET, ATTR_URL_QUERY, ATTR_HTTP_REQUEST_METHOD, SEMATTRS_HTTP_METHOD, ATTR_HTTP_ROUTE } from '@opentelemetry/semantic-conventions';
import { logger, applySdkMetadata, getGlobalScope, extractTraceparentData, getClient, GLOBAL_OBJ, spanToJSON, getRootSpan, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, getCapturedScopesOnSpan, getIsolationScope, getCurrentScope, setCapturedScopesOnSpan, SEMANTIC_ATTRIBUTE_SENTRY_OP, stripUrlQueryAndFragment, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE } from '@sentry/core';
import { getDefaultIntegrations, httpIntegration, init as init$1 } from '@sentry/node';
export * from '@sentry/node';
import { context } from '@opentelemetry/api';
import { SEMATTRS_HTTP_TARGET, ATTR_URL_QUERY, ATTR_HTTP_REQUEST_METHOD, SEMATTRS_HTTP_METHOD, ATTR_HTTP_ROUTE } from '@opentelemetry/semantic-conventions';
import { getScopesFromContext } from '@sentry/opentelemetry';

@@ -8,0 +8,0 @@ import { DEBUG_BUILD } from '../common/debug-build.js';

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

import { Integration } from '@sentry/core';
import { browserTracingIntegration as originalBrowserTracingIntegration } from '@sentry/react';
import { Integration } from '@sentry/types';
/**

@@ -4,0 +4,0 @@ * A custom browser tracing integration for Next.js.

export declare const nextjsClientStackFrameNormalizationIntegration: (args_0: {
assetPrefixPath: string;
}) => import("@sentry/types").Integration;
}) => import("@sentry/core").Integration;
//# sourceMappingURL=clientNormalizationIntegration.d.ts.map

@@ -0,5 +1,7 @@

import { Client } from '@sentry/core';
import { BrowserOptions } from '@sentry/react';
import { Client } from '@sentry/types';
export * from '@sentry/react';
export * from '../common';
export { captureUnderscoreErrorException } from '../common/pages-router-instrumentation/_error';
export { browserTracingIntegration } from './browserTracingIntegration';
/** Inits the Sentry NextJS SDK on the browser with the React SDK. */

@@ -11,4 +13,2 @@ export declare function init(options: BrowserOptions): Client | undefined;

export declare function withSentryConfig<T>(exportedUserNextConfig: T): T;
export { browserTracingIntegration } from './browserTracingIntegration';
export * from '../common';
//# sourceMappingURL=index.d.ts.map

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

import { Client } from '@sentry/types';
import { Client } from '@sentry/core';
export declare const INCOMPLETE_APP_ROUTER_INSTRUMENTATION_TRANSACTION_NAME = "incomplete-app-router-transaction";

@@ -3,0 +3,0 @@ /** Instruments the Next.js app router for pageloads. */

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

import { Client } from '@sentry/types';
import { Client } from '@sentry/core';
/**

@@ -3,0 +3,0 @@ * Instruments the Next.js Client Router for page loads.

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

import { Client } from '@sentry/types';
import { Client } from '@sentry/core';
/**

@@ -3,0 +3,0 @@ * Instruments the Next.js pages router for pageloads.

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

import { Event, EventHint } from '@sentry/types';
import { Event, EventHint } from '@sentry/core';
/**

@@ -3,0 +3,0 @@ * Event processor that will symbolicate errors by using the webpack/nextjs dev server that is used to show stack traces

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

import { SentrySpan } from '@sentry/core';
import { WebFetchHeaders, WrappedFunction } from '@sentry/types';
import { SentrySpan, WebFetchHeaders, WrappedFunction } from '@sentry/core';
import { NextApiRequest, NextApiResponse } from 'next';

@@ -4,0 +3,0 @@ import { RequestAsyncStorage } from '../config/templates/requestAsyncStorageShim';

/// <reference types="node" />
import { ServerResponse } from 'http';
import { Span } from '@sentry/types';
import { Span } from '@sentry/core';
/**

@@ -5,0 +5,0 @@ * Wrap `res.end()` so that it ends the span and flushes events before letting the request finish.

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

import { PropagationContext } from '@sentry/core';
import { Scope } from '@sentry/core';
import { PropagationContext } from '@sentry/types';
/**

@@ -4,0 +4,0 @@ * Takes a shared (garbage collectable) object between resources, e.g. a headers object shared between Next.js server components and returns a common propagation context.

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

import { WebFetchHeaders } from '@sentry/types';
import { WebFetchHeaders } from '@sentry/core';
export interface RequestAsyncStorage {

@@ -3,0 +3,0 @@ getStore: () => {

@@ -392,3 +392,3 @@ import { GLOBAL_OBJ } from '@sentry/core';

export type WebpackConfigObject = {
devtool?: string;
devtool?: string | boolean;
plugins?: Array<WebpackPluginInstance>;

@@ -395,0 +395,0 @@ entry: WebpackEntryProperty;

export declare const distDirRewriteFramesIntegration: (args_0: {
distDirName: string;
}) => import("@sentry/types").Integration;
}) => import("@sentry/core").Integration;
//# sourceMappingURL=distDirRewriteFramesIntegration.d.ts.map
import { VercelEdgeOptions } from '@sentry/vercel-edge';
export * from '@sentry/vercel-edge';
export * from '../common';
export { captureUnderscoreErrorException } from '../common/pages-router-instrumentation/_error';
export { wrapApiHandlerWithSentry } from './wrapApiHandlerWithSentry';
export type EdgeOptions = VercelEdgeOptions;

@@ -10,5 +13,2 @@ /** Inits the Sentry NextJS SDK on the Edge Runtime. */

export declare function withSentryConfig<T>(exportedUserNextConfig: T): T;
export * from '@sentry/vercel-edge';
export * from '../common';
export { wrapApiHandlerWithSentry } from './wrapApiHandlerWithSentry';
//# sourceMappingURL=index.d.ts.map

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

import { StackFrame } from '@sentry/types';
import { StackFrame } from '@sentry/core';
type StackFrameIteratee = (frame: StackFrame) => StackFrame;

@@ -8,5 +8,5 @@ interface RewriteFramesOptions {

}
export declare const customRewriteFramesIntegration: (options?: RewriteFramesOptions) => import("@sentry/types").Integration;
export declare const rewriteFramesIntegration: (options?: RewriteFramesOptions | undefined) => import("@sentry/types").Integration;
export declare const customRewriteFramesIntegration: (options?: RewriteFramesOptions) => import("@sentry/core").Integration;
export declare const rewriteFramesIntegration: (options?: RewriteFramesOptions | undefined) => import("@sentry/core").Integration;
export {};
//# sourceMappingURL=rewriteFramesIntegration.d.ts.map

@@ -5,3 +5,3 @@ export * from './config';

export * from './edge';
import { Client, Integration, Options, StackParser } from '@sentry/types';
import { Client, Integration, Options, StackParser } from '@sentry/core';
import * as clientSdk from './client';

@@ -8,0 +8,0 @@ import { ServerComponentContext, VercelCronsConfig } from './common/types';

export declare const distDirRewriteFramesIntegration: (args_0: {
distDirName: string;
}) => import("@sentry/types").Integration;
}) => import("@sentry/core").Integration;
//# sourceMappingURL=distDirRewriteFramesIntegration.d.ts.map

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

import { StackFrame } from '@sentry/types';
import { StackFrame } from '@sentry/core';
type StackFrameIteratee = (frame: StackFrame) => StackFrame;

@@ -8,5 +8,5 @@ interface RewriteFramesOptions {

}
export declare const customRewriteFramesIntegration: (options?: RewriteFramesOptions) => import("@sentry/types").Integration;
export declare const rewriteFramesIntegration: (options?: RewriteFramesOptions | undefined) => import("@sentry/types").Integration;
export declare const customRewriteFramesIntegration: (options?: RewriteFramesOptions) => import("@sentry/core").Integration;
export declare const rewriteFramesIntegration: (options?: RewriteFramesOptions | undefined) => import("@sentry/core").Integration;
export {};
//# sourceMappingURL=rewriteFramesIntegration.d.ts.map

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

import type { Integration } from '@sentry/core';
import { browserTracingIntegration as originalBrowserTracingIntegration } from '@sentry/react';
import type { Integration } from '@sentry/types';
/**

@@ -4,0 +4,0 @@ * A custom browser tracing integration for Next.js.

export declare const nextjsClientStackFrameNormalizationIntegration: (args_0: {
assetPrefixPath: string;
}) => import("@sentry/types").Integration;
}) => import("@sentry/core").Integration;
//# sourceMappingURL=clientNormalizationIntegration.d.ts.map

@@ -0,5 +1,7 @@

import type { Client } from '@sentry/core';
import type { BrowserOptions } from '@sentry/react';
import type { Client } from '@sentry/types';
export * from '@sentry/react';
export * from '../common';
export { captureUnderscoreErrorException } from '../common/pages-router-instrumentation/_error';
export { browserTracingIntegration } from './browserTracingIntegration';
/** Inits the Sentry NextJS SDK on the browser with the React SDK. */

@@ -11,4 +13,2 @@ export declare function init(options: BrowserOptions): Client | undefined;

export declare function withSentryConfig<T>(exportedUserNextConfig: T): T;
export { browserTracingIntegration } from './browserTracingIntegration';
export * from '../common';
//# sourceMappingURL=index.d.ts.map

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

import type { Client } from '@sentry/types';
import type { Client } from '@sentry/core';
export declare const INCOMPLETE_APP_ROUTER_INSTRUMENTATION_TRANSACTION_NAME = "incomplete-app-router-transaction";

@@ -3,0 +3,0 @@ /** Instruments the Next.js app router for pageloads. */

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

import type { Client } from '@sentry/types';
import type { Client } from '@sentry/core';
/**

@@ -3,0 +3,0 @@ * Instruments the Next.js Client Router for page loads.

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

import type { Client } from '@sentry/types';
import type { Client } from '@sentry/core';
/**

@@ -3,0 +3,0 @@ * Instruments the Next.js pages router for pageloads.

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

import type { Event, EventHint } from '@sentry/types';
import type { Event, EventHint } from '@sentry/core';
/**

@@ -3,0 +3,0 @@ * Event processor that will symbolicate errors by using the webpack/nextjs dev server that is used to show stack traces

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

import type { SentrySpan } from '@sentry/core';
import type { WebFetchHeaders, WrappedFunction } from '@sentry/types';
import type { SentrySpan, WebFetchHeaders, WrappedFunction } from '@sentry/core';
import type { NextApiRequest, NextApiResponse } from 'next';

@@ -4,0 +3,0 @@ import type { RequestAsyncStorage } from '../config/templates/requestAsyncStorageShim';

/// <reference types="node" />
import type { ServerResponse } from 'http';
import type { Span } from '@sentry/types';
import type { Span } from '@sentry/core';
/**

@@ -5,0 +5,0 @@ * Wrap `res.end()` so that it ends the span and flushes events before letting the request finish.

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

import type { PropagationContext } from '@sentry/core';
import { Scope } from '@sentry/core';
import type { PropagationContext } from '@sentry/types';
/**

@@ -4,0 +4,0 @@ * Takes a shared (garbage collectable) object between resources, e.g. a headers object shared between Next.js server components and returns a common propagation context.

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

import type { WebFetchHeaders } from '@sentry/types';
import type { WebFetchHeaders } from '@sentry/core';
export interface RequestAsyncStorage {

@@ -3,0 +3,0 @@ getStore: () => {

@@ -392,3 +392,3 @@ import type { GLOBAL_OBJ } from '@sentry/core';

export type WebpackConfigObject = {
devtool?: string;
devtool?: string | boolean;
plugins?: Array<WebpackPluginInstance>;

@@ -395,0 +395,0 @@ entry: WebpackEntryProperty;

export declare const distDirRewriteFramesIntegration: (args_0: {
distDirName: string;
}) => import("@sentry/types").Integration;
}) => import("@sentry/core").Integration;
//# sourceMappingURL=distDirRewriteFramesIntegration.d.ts.map
import type { VercelEdgeOptions } from '@sentry/vercel-edge';
export * from '@sentry/vercel-edge';
export * from '../common';
export { captureUnderscoreErrorException } from '../common/pages-router-instrumentation/_error';
export { wrapApiHandlerWithSentry } from './wrapApiHandlerWithSentry';
export type EdgeOptions = VercelEdgeOptions;

@@ -10,5 +13,2 @@ /** Inits the Sentry NextJS SDK on the Edge Runtime. */

export declare function withSentryConfig<T>(exportedUserNextConfig: T): T;
export * from '@sentry/vercel-edge';
export * from '../common';
export { wrapApiHandlerWithSentry } from './wrapApiHandlerWithSentry';
//# sourceMappingURL=index.d.ts.map

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

import type { StackFrame } from '@sentry/types';
import type { StackFrame } from '@sentry/core';
type StackFrameIteratee = (frame: StackFrame) => StackFrame;

@@ -8,5 +8,5 @@ interface RewriteFramesOptions {

}
export declare const customRewriteFramesIntegration: (options?: RewriteFramesOptions) => import("@sentry/types").Integration;
export declare const rewriteFramesIntegration: (options?: RewriteFramesOptions | undefined) => import("@sentry/types").Integration;
export declare const customRewriteFramesIntegration: (options?: RewriteFramesOptions) => import("@sentry/core").Integration;
export declare const rewriteFramesIntegration: (options?: RewriteFramesOptions | undefined) => import("@sentry/core").Integration;
export {};
//# sourceMappingURL=rewriteFramesIntegration.d.ts.map

@@ -5,3 +5,3 @@ export * from './config';

export * from './edge';
import type { Client, Integration, Options, StackParser } from '@sentry/types';
import type { Client, Integration, Options, StackParser } from '@sentry/core';
import type * as clientSdk from './client';

@@ -8,0 +8,0 @@ import type { ServerComponentContext, VercelCronsConfig } from './common/types';

export declare const distDirRewriteFramesIntegration: (args_0: {
distDirName: string;
}) => import("@sentry/types").Integration;
}) => import("@sentry/core").Integration;
//# sourceMappingURL=distDirRewriteFramesIntegration.d.ts.map

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

import type { StackFrame } from '@sentry/types';
import type { StackFrame } from '@sentry/core';
type StackFrameIteratee = (frame: StackFrame) => StackFrame;

@@ -8,5 +8,5 @@ interface RewriteFramesOptions {

}
export declare const customRewriteFramesIntegration: (options?: RewriteFramesOptions) => import("@sentry/types").Integration;
export declare const rewriteFramesIntegration: (options?: RewriteFramesOptions | undefined) => import("@sentry/types").Integration;
export declare const customRewriteFramesIntegration: (options?: RewriteFramesOptions) => import("@sentry/core").Integration;
export declare const rewriteFramesIntegration: (options?: RewriteFramesOptions | undefined) => import("@sentry/core").Integration;
export {};
//# sourceMappingURL=rewriteFramesIntegration.d.ts.map
{
"name": "@sentry/nextjs",
"version": "8.41.0",
"version": "8.42.0",
"description": "Official Sentry SDK for Next.js",

@@ -83,9 +83,8 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"@rollup/plugin-commonjs": "28.0.1",
"@sentry-internal/browser-utils": "8.41.0",
"@sentry/core": "8.41.0",
"@sentry/node": "8.41.0",
"@sentry/opentelemetry": "8.41.0",
"@sentry/react": "8.41.0",
"@sentry/types": "8.41.0",
"@sentry/vercel-edge": "8.41.0",
"@sentry-internal/browser-utils": "8.42.0",
"@sentry/core": "8.42.0",
"@sentry/node": "8.42.0",
"@sentry/opentelemetry": "8.42.0",
"@sentry/react": "8.42.0",
"@sentry/vercel-edge": "8.42.0",
"@sentry/webpack-plugin": "2.22.6",

@@ -92,0 +91,0 @@ "chalk": "3.0.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc