@sentry/core 10.52.0 → 10.53.1
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/browser.d.ts +4 -0
- package/browser.js +3 -0
- package/build/cjs/browser.js +529 -0
- package/build/cjs/browser.js.map +1 -0
- package/build/cjs/client.js +9 -0
- package/build/cjs/client.js.map +1 -1
- package/build/cjs/index.js +69 -68
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/instrument/console.js +43 -3
- package/build/cjs/instrument/console.js.map +1 -1
- package/build/cjs/integrations/captureconsole.js +2 -2
- package/build/cjs/integrations/captureconsole.js.map +1 -1
- package/build/cjs/integrations/console.js +5 -1
- package/build/cjs/integrations/console.js.map +1 -1
- package/build/cjs/integrations/express/index.js +2 -2
- package/build/cjs/integrations/express/index.js.map +1 -1
- package/build/cjs/integrations/mcp-server/errorCapture.js +2 -2
- package/build/cjs/integrations/mcp-server/errorCapture.js.map +1 -1
- package/build/cjs/integrations/mcp-server/handlers.js +72 -0
- package/build/cjs/integrations/mcp-server/handlers.js.map +1 -1
- package/build/cjs/integrations/mcp-server/index.js +10 -1
- package/build/cjs/integrations/mcp-server/index.js.map +1 -1
- package/build/cjs/integrations/supabase.js +4 -4
- package/build/cjs/integrations/supabase.js.map +1 -1
- package/build/cjs/semanticAttributes.js +4 -4
- package/build/cjs/semanticAttributes.js.map +1 -1
- package/build/cjs/server.js +563 -0
- package/build/cjs/server.js.map +1 -0
- package/build/cjs/tracing/ai/utils.js +2 -2
- package/build/cjs/tracing/ai/utils.js.map +1 -1
- package/build/cjs/tracing/anthropic-ai/index.js +3 -3
- package/build/cjs/tracing/anthropic-ai/index.js.map +1 -1
- package/build/cjs/tracing/anthropic-ai/streaming.js +3 -3
- package/build/cjs/tracing/anthropic-ai/streaming.js.map +1 -1
- package/build/cjs/tracing/anthropic-ai/utils.js +2 -2
- package/build/cjs/tracing/anthropic-ai/utils.js.map +1 -1
- package/build/cjs/tracing/google-genai/index.js +3 -3
- package/build/cjs/tracing/google-genai/index.js.map +1 -1
- package/build/cjs/tracing/google-genai/streaming.js +2 -2
- package/build/cjs/tracing/google-genai/streaming.js.map +1 -1
- package/build/cjs/tracing/langchain/embeddings.js +2 -2
- package/build/cjs/tracing/langchain/embeddings.js.map +1 -1
- package/build/cjs/tracing/langchain/index.js +4 -4
- package/build/cjs/tracing/langchain/index.js.map +1 -1
- package/build/cjs/tracing/langgraph/index.js +3 -3
- package/build/cjs/tracing/langgraph/index.js.map +1 -1
- package/build/cjs/tracing/langgraph/utils.js +2 -2
- package/build/cjs/tracing/langgraph/utils.js.map +1 -1
- package/build/cjs/tracing/openai/index.js +3 -3
- package/build/cjs/tracing/openai/index.js.map +1 -1
- package/build/cjs/tracing/openai/streaming.js +2 -2
- package/build/cjs/tracing/openai/streaming.js.map +1 -1
- package/build/cjs/tracing/sentrySpan.js +5 -0
- package/build/cjs/tracing/sentrySpan.js.map +1 -1
- package/build/cjs/tracing/spans/captureSpan.js +5 -9
- package/build/cjs/tracing/spans/captureSpan.js.map +1 -1
- package/build/cjs/tracing/spans/extractGenAiSpans.js +60 -0
- package/build/cjs/tracing/spans/extractGenAiSpans.js.map +1 -0
- package/build/cjs/tracing/spans/spanJsonToStreamedSpan.js +26 -0
- package/build/cjs/tracing/spans/spanJsonToStreamedSpan.js.map +1 -0
- package/build/cjs/tracing/vercel-ai/index.js +6 -1
- package/build/cjs/tracing/vercel-ai/index.js.map +1 -1
- package/build/cjs/trpc.js +3 -3
- package/build/cjs/trpc.js.map +1 -1
- package/build/cjs/utils/exports.js +7 -7
- package/build/cjs/utils/exports.js.map +1 -1
- package/build/cjs/utils/flushIfServerless.js +2 -2
- package/build/cjs/utils/flushIfServerless.js.map +1 -1
- package/build/cjs/utils/string.js +9 -2
- package/build/cjs/utils/string.js.map +1 -1
- package/build/cjs/utils/traceData.js +2 -2
- package/build/cjs/utils/traceData.js.map +1 -1
- package/build/cjs/utils/version.js +1 -1
- package/build/esm/browser.js +142 -0
- package/build/esm/browser.js.map +1 -0
- package/build/esm/client.js +9 -0
- package/build/esm/client.js.map +1 -1
- package/build/esm/index.js +17 -17
- package/build/esm/instrument/console.js +44 -5
- package/build/esm/instrument/console.js.map +1 -1
- package/build/esm/integrations/console.js +6 -2
- package/build/esm/integrations/console.js.map +1 -1
- package/build/esm/integrations/mcp-server/handlers.js +72 -1
- package/build/esm/integrations/mcp-server/handlers.js.map +1 -1
- package/build/esm/integrations/mcp-server/index.js +11 -2
- package/build/esm/integrations/mcp-server/index.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/semanticAttributes.js +4 -4
- package/build/esm/semanticAttributes.js.map +1 -1
- package/build/esm/server.js +157 -0
- package/build/esm/server.js.map +1 -0
- package/build/esm/tracing/sentrySpan.js +5 -0
- package/build/esm/tracing/sentrySpan.js.map +1 -1
- package/build/esm/tracing/spans/captureSpan.js +5 -9
- package/build/esm/tracing/spans/captureSpan.js.map +1 -1
- package/build/esm/tracing/spans/extractGenAiSpans.js +58 -0
- package/build/esm/tracing/spans/extractGenAiSpans.js.map +1 -0
- package/build/esm/tracing/spans/spanJsonToStreamedSpan.js +24 -0
- package/build/esm/tracing/spans/spanJsonToStreamedSpan.js.map +1 -0
- package/build/esm/tracing/vercel-ai/index.js +6 -1
- package/build/esm/tracing/vercel-ai/index.js.map +1 -1
- package/build/esm/utils/exports.js +7 -7
- package/build/esm/utils/exports.js.map +1 -1
- package/build/esm/utils/string.js +9 -2
- package/build/esm/utils/string.js.map +1 -1
- package/build/esm/utils/version.js +1 -1
- package/build/types/browser-exports.d.ts +11 -0
- package/build/types/browser-exports.d.ts.map +1 -0
- package/build/types/browser.d.ts +3 -0
- package/build/types/browser.d.ts.map +1 -0
- package/build/types/build-time-plugins/buildTimeOptionsBase.d.ts +8 -0
- package/build/types/build-time-plugins/buildTimeOptionsBase.d.ts.map +1 -1
- package/build/types/carrier.d.ts +1 -1
- package/build/types/carrier.d.ts.map +1 -1
- package/build/types/client.d.ts.map +1 -1
- package/build/types/index.d.ts +3 -232
- package/build/types/index.d.ts.map +1 -1
- package/build/types/instrument/console.d.ts +7 -0
- package/build/types/instrument/console.d.ts.map +1 -1
- package/build/types/integrations/captureconsole.d.ts +1 -1
- package/build/types/integrations/captureconsole.d.ts.map +1 -1
- package/build/types/integrations/console.d.ts +5 -0
- package/build/types/integrations/console.d.ts.map +1 -1
- package/build/types/integrations/conversationId.d.ts +1 -1
- package/build/types/integrations/conversationId.d.ts.map +1 -1
- package/build/types/integrations/dedupe.d.ts +1 -1
- package/build/types/integrations/dedupe.d.ts.map +1 -1
- package/build/types/integrations/eventFilters.d.ts +2 -2
- package/build/types/integrations/eventFilters.d.ts.map +1 -1
- package/build/types/integrations/extraerrordata.d.ts +1 -1
- package/build/types/integrations/extraerrordata.d.ts.map +1 -1
- package/build/types/integrations/functiontostring.d.ts +1 -1
- package/build/types/integrations/functiontostring.d.ts.map +1 -1
- package/build/types/integrations/linkederrors.d.ts +1 -1
- package/build/types/integrations/linkederrors.d.ts.map +1 -1
- package/build/types/integrations/mcp-server/handlers.d.ts +18 -0
- package/build/types/integrations/mcp-server/handlers.d.ts.map +1 -1
- package/build/types/integrations/mcp-server/index.d.ts +8 -1
- package/build/types/integrations/mcp-server/index.d.ts.map +1 -1
- package/build/types/integrations/requestdata.d.ts +1 -1
- package/build/types/integrations/requestdata.d.ts.map +1 -1
- package/build/types/integrations/spanStreaming.d.ts +1 -1
- package/build/types/integrations/spanStreaming.d.ts.map +1 -1
- package/build/types/integrations/supabase.d.ts +1 -1
- package/build/types/integrations/supabase.d.ts.map +1 -1
- package/build/types/integrations/zoderrors.d.ts +1 -1
- package/build/types/integrations/zoderrors.d.ts.map +1 -1
- package/build/types/logs/console-integration.d.ts +1 -1
- package/build/types/logs/console-integration.d.ts.map +1 -1
- package/build/types/semanticAttributes.d.ts +4 -4
- package/build/types/semanticAttributes.d.ts.map +1 -1
- package/build/types/server-exports.d.ts +26 -0
- package/build/types/server-exports.d.ts.map +1 -0
- package/build/types/server.d.ts +10 -0
- package/build/types/server.d.ts.map +1 -0
- package/build/types/shared-exports.d.ts +215 -0
- package/build/types/shared-exports.d.ts.map +1 -0
- package/build/types/tracing/sentrySpan.d.ts.map +1 -1
- package/build/types/tracing/spans/captureSpan.d.ts.map +1 -1
- package/build/types/tracing/spans/extractGenAiSpans.d.ts +15 -0
- package/build/types/tracing/spans/extractGenAiSpans.d.ts.map +1 -0
- package/build/types/tracing/spans/spanJsonToStreamedSpan.d.ts +6 -0
- package/build/types/tracing/spans/spanJsonToStreamedSpan.d.ts.map +1 -0
- package/build/types/tracing/vercel-ai/index.d.ts.map +1 -1
- package/build/types/types-hoist/envelope.d.ts +1 -1
- package/build/types/types-hoist/envelope.d.ts.map +1 -1
- package/build/types/types-hoist/options.d.ts +8 -0
- package/build/types/types-hoist/options.d.ts.map +1 -1
- package/build/types/utils/string.d.ts +1 -1
- package/build/types/utils/string.d.ts.map +1 -1
- package/build/types-ts3.8/browser-exports.d.ts +11 -0
- package/build/types-ts3.8/browser.d.ts +3 -0
- package/build/types-ts3.8/build-time-plugins/buildTimeOptionsBase.d.ts +8 -0
- package/build/types-ts3.8/carrier.d.ts +1 -1
- package/build/types-ts3.8/index.d.ts +3 -234
- package/build/types-ts3.8/instrument/console.d.ts +7 -0
- package/build/types-ts3.8/integrations/captureconsole.d.ts +1 -1
- package/build/types-ts3.8/integrations/console.d.ts +5 -0
- package/build/types-ts3.8/integrations/conversationId.d.ts +1 -1
- package/build/types-ts3.8/integrations/dedupe.d.ts +1 -1
- package/build/types-ts3.8/integrations/eventFilters.d.ts +2 -2
- package/build/types-ts3.8/integrations/extraerrordata.d.ts +1 -1
- package/build/types-ts3.8/integrations/functiontostring.d.ts +1 -1
- package/build/types-ts3.8/integrations/linkederrors.d.ts +1 -1
- package/build/types-ts3.8/integrations/mcp-server/handlers.d.ts +18 -0
- package/build/types-ts3.8/integrations/mcp-server/index.d.ts +8 -1
- package/build/types-ts3.8/integrations/requestdata.d.ts +1 -1
- package/build/types-ts3.8/integrations/spanStreaming.d.ts +1 -1
- package/build/types-ts3.8/integrations/supabase.d.ts +1 -1
- package/build/types-ts3.8/integrations/zoderrors.d.ts +1 -1
- package/build/types-ts3.8/logs/console-integration.d.ts +1 -1
- package/build/types-ts3.8/semanticAttributes.d.ts +4 -4
- package/build/types-ts3.8/server-exports.d.ts +21 -0
- package/build/types-ts3.8/server.d.ts +10 -0
- package/build/types-ts3.8/shared-exports.d.ts +214 -0
- package/build/types-ts3.8/tracing/spans/extractGenAiSpans.d.ts +15 -0
- package/build/types-ts3.8/tracing/spans/spanJsonToStreamedSpan.d.ts +6 -0
- package/build/types-ts3.8/types-hoist/envelope.d.ts +1 -1
- package/build/types-ts3.8/types-hoist/options.d.ts +8 -0
- package/build/types-ts3.8/utils/string.d.ts +1 -1
- package/package.json +32 -2
- package/server.d.ts +4 -0
- package/server.js +3 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { ServerRuntimeClientOptions } from './server-runtime-client';
|
|
2
|
+
export { ServerRuntimeClient } from './server-runtime-client';
|
|
3
|
+
export { ServerRuntimeOptions } from './types-hoist/options';
|
|
4
|
+
export { trpcMiddleware } from './trpc';
|
|
5
|
+
export { wrapMcpServerWithSentry } from './integrations/mcp-server';
|
|
6
|
+
export { isNodeEnv, loadModule } from './utils/node';
|
|
7
|
+
export { filenameIsInApp, node, nodeStackLineParser } from './utils/node-stack-trace';
|
|
8
|
+
export { vercelWaitUntil } from './utils/vercelWaitUntil';
|
|
9
|
+
export { flushIfServerless } from './utils/flushIfServerless';
|
|
10
|
+
export { callFrameToStackFrame, watchdogTimer } from './utils/anr';
|
|
11
|
+
export { safeUnref as _INTERNAL_safeUnref } from './utils/timer';
|
|
12
|
+
export { patchExpressModule, setupExpressErrorHandler, expressErrorHandler } from './integrations/express/index';
|
|
13
|
+
export { ExpressIntegrationOptions, ExpressHandlerOptions, ExpressMiddleware, ExpressErrorMiddleware, } from './integrations/express/types';
|
|
14
|
+
export { instrumentPostgresJsSql } from './integrations/postgresjs';
|
|
15
|
+
export { patchHttpModuleClient } from './integrations/http/client-patch';
|
|
16
|
+
export { getHttpClientSubscriptions } from './integrations/http/client-subscriptions';
|
|
17
|
+
export { addOutgoingRequestBreadcrumb } from './integrations/http/add-outgoing-request-breadcrumb';
|
|
18
|
+
export { getRequestUrl, getRequestUrlObject, getRequestUrlFromClientRequest, getRequestOptions, } from './integrations/http/get-request-url';
|
|
19
|
+
export { HTTP_ON_CLIENT_REQUEST, HTTP_ON_SERVER_REQUEST } from './integrations/http/constants';
|
|
20
|
+
export { HttpInstrumentationOptions, HttpClientRequest, HttpIncomingMessage, HttpServerResponse, HttpModuleExport, } from './integrations/http/types';
|
|
21
|
+
//# sourceMappingURL=server-exports.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Sentry core SDK and integrations used by node, node-core, cloudflare,
|
|
3
|
+
* bun, deno, aws lambda, and other server-side platforms, where bundle size
|
|
4
|
+
* is less of an issue.
|
|
5
|
+
*
|
|
6
|
+
* This export should not contain anything strictly browser-specific.
|
|
7
|
+
*/
|
|
8
|
+
export * from './shared-exports';
|
|
9
|
+
export * from './server-exports';
|
|
10
|
+
//# sourceMappingURL=server.d.ts.map
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
export { ClientClass as SentryCoreCurrentScopes } from './sdk';
|
|
2
|
+
export { AsyncContextStrategy } from './asyncContext/types';
|
|
3
|
+
export { Carrier } from './carrier';
|
|
4
|
+
export { OfflineStore, OfflineTransportOptions } from './transports/offline';
|
|
5
|
+
export { IntegrationIndex } from './integration';
|
|
6
|
+
export * from './tracing';
|
|
7
|
+
export * from './semanticAttributes';
|
|
8
|
+
export { createEventEnvelope, createSessionEnvelope, createSpanEnvelope } from './envelope';
|
|
9
|
+
export { captureCheckIn, withMonitor, captureException, captureEvent, captureMessage, lastEventId, close, flush, setContext, setExtra, setExtras, setTag, setTags, setUser, setConversationId, isInitialized, isEnabled, startSession, endSession, captureSession, addEventProcessor, } from './exports';
|
|
10
|
+
export { getCurrentScope, getIsolationScope, getGlobalScope, withScope, withIsolationScope, getClient, getTraceContextFromScope, registerExternalPropagationContext, getExternalPropagationContext, hasExternalPropagationContext, } from './currentScopes';
|
|
11
|
+
export { getDefaultCurrentScope, getDefaultIsolationScope } from './defaultScopes';
|
|
12
|
+
export { setAsyncContextStrategy } from './asyncContext';
|
|
13
|
+
export { getGlobalSingleton, getMainCarrier } from './carrier';
|
|
14
|
+
export { makeSession, closeSession, updateSession } from './session';
|
|
15
|
+
export { Scope } from './scope';
|
|
16
|
+
export { CaptureContext, ScopeContext, ScopeData } from './scope';
|
|
17
|
+
export { notifyEventProcessors } from './eventProcessors';
|
|
18
|
+
export { getEnvelopeEndpointWithUrlEncodedAuth, getReportDialogEndpoint, SENTRY_API_VERSION } from './api';
|
|
19
|
+
export { Client } from './client';
|
|
20
|
+
export { initAndBind, setCurrentClient } from './sdk';
|
|
21
|
+
export { createTransport } from './transports/base';
|
|
22
|
+
export { makeOfflineTransport } from './transports/offline';
|
|
23
|
+
export { makeMultiplexedTransport, MULTIPLEXED_TRANSPORT_EXTRA_KEY } from './transports/multiplexed';
|
|
24
|
+
export { getIntegrationsToSetup, addIntegration, defineIntegration, installedIntegrations } from './integration';
|
|
25
|
+
export { _INTERNAL_skipAiProviderWrapping, _INTERNAL_shouldSkipAiProviderWrapping, _INTERNAL_clearAiProviderSkips, } from './utils/ai/providerSkip';
|
|
26
|
+
export { envToBool } from './utils/envToBool';
|
|
27
|
+
export { applyScopeDataToEvent, mergeScopeData, getCombinedScopeData } from './utils/scopeData';
|
|
28
|
+
export { prepareEvent } from './utils/prepareEvent';
|
|
29
|
+
export { ExclusiveEventHintOrCaptureContext } from './utils/prepareEvent';
|
|
30
|
+
export { createCheckInEnvelope } from './checkin';
|
|
31
|
+
export { hasSpansEnabled } from './utils/hasSpansEnabled';
|
|
32
|
+
export { withStreamedSpan } from './tracing/spans/beforeSendSpan';
|
|
33
|
+
export { isStreamedBeforeSendSpanCallback } from './tracing/spans/beforeSendSpan';
|
|
34
|
+
export { safeSetSpanJSONAttributes } from './tracing/spans/captureSpan';
|
|
35
|
+
export { isSentryRequestUrl } from './utils/isSentryRequestUrl';
|
|
36
|
+
export { handleCallbackErrors } from './utils/handleCallbackErrors';
|
|
37
|
+
export { parameterize, fmt } from './utils/parameterize';
|
|
38
|
+
export { HandleTunnelRequestOptions } from './utils/tunnel';
|
|
39
|
+
export { handleTunnelRequest } from './utils/tunnel';
|
|
40
|
+
export { addAutoIpAddressToSession } from './utils/ipAddress';
|
|
41
|
+
export { addAutoIpAddressToUser } from './utils/ipAddress';
|
|
42
|
+
export { convertSpanLinksForEnvelope, spanToTraceHeader, spanToJSON, spanToStreamedSpanJSON, spanIsSampled, spanToTraceContext, getSpanDescendants, getStatusMessage, getRootSpan, INTERNAL_getSegmentSpan, getActiveSpan, addChildSpanToSpan, spanTimeInputToSeconds, updateSpanName, } from './utils/spanUtils';
|
|
43
|
+
export { _setSpanForScope as _INTERNAL_setSpanForScope } from './utils/spanOnScope';
|
|
44
|
+
export { parseSampleRate } from './utils/parseSampleRate';
|
|
45
|
+
export { applySdkMetadata } from './utils/sdkMetadata';
|
|
46
|
+
export { getTraceData } from './utils/traceData';
|
|
47
|
+
export { shouldPropagateTraceForUrl } from './utils/tracePropagationTargets';
|
|
48
|
+
export { getTraceMetaTags } from './utils/meta';
|
|
49
|
+
export { debounce } from './utils/debounce';
|
|
50
|
+
export { makeWeakRef, derefWeakRef } from './utils/weakRef';
|
|
51
|
+
export { MaybeWeakRef } from './utils/weakRef';
|
|
52
|
+
export { shouldIgnoreSpan } from './utils/should-ignore-span';
|
|
53
|
+
export { winterCGHeadersToDict, winterCGRequestToRequestData, captureBodyFromWinterCGRequest, httpRequestToRequestData, extractQueryParamsFromUrl, headersToDict, httpHeadersToSpanAttributes, getMaxBodyByteLength, MAX_BODY_BYTE_LENGTH, } from './utils/request';
|
|
54
|
+
export { MaxRequestBodySize } from './utils/request';
|
|
55
|
+
export { DEFAULT_ENVIRONMENT, DEV_ENVIRONMENT } from './constants';
|
|
56
|
+
export { addBreadcrumb } from './breadcrumbs';
|
|
57
|
+
export { functionToStringIntegration } from './integrations/functiontostring';
|
|
58
|
+
export { inboundFiltersIntegration } from './integrations/eventFilters';
|
|
59
|
+
export { eventFiltersIntegration } from './integrations/eventFilters';
|
|
60
|
+
export { linkedErrorsIntegration } from './integrations/linkederrors';
|
|
61
|
+
export { moduleMetadataIntegration } from './integrations/moduleMetadata';
|
|
62
|
+
export { requestDataIntegration } from './integrations/requestdata';
|
|
63
|
+
export { captureConsoleIntegration } from './integrations/captureconsole';
|
|
64
|
+
export { dedupeIntegration } from './integrations/dedupe';
|
|
65
|
+
export { extraErrorDataIntegration } from './integrations/extraerrordata';
|
|
66
|
+
export { rewriteFramesIntegration } from './integrations/rewriteframes';
|
|
67
|
+
export { supabaseIntegration, instrumentSupabaseClient } from './integrations/supabase';
|
|
68
|
+
export { zodErrorsIntegration } from './integrations/zoderrors';
|
|
69
|
+
export { thirdPartyErrorFilterIntegration } from './integrations/third-party-errors-filter';
|
|
70
|
+
export { consoleIntegration } from './integrations/console';
|
|
71
|
+
export { FeatureFlagsIntegration } from './integrations/featureFlags';
|
|
72
|
+
export { featureFlagsIntegration } from './integrations/featureFlags';
|
|
73
|
+
export { growthbookIntegration } from './integrations/featureFlags';
|
|
74
|
+
export { conversationIdIntegration } from './integrations/conversationId';
|
|
75
|
+
export { profiler } from './profiling';
|
|
76
|
+
export { instrumentFetchRequest, _INTERNAL_getTracingHeadersForFetchRequest } from './fetch';
|
|
77
|
+
export { captureFeedback } from './feedback';
|
|
78
|
+
export { ReportDialogOptions } from './report-dialog';
|
|
79
|
+
export { _INTERNAL_captureLog, _INTERNAL_flushLogsBuffer, _INTERNAL_captureSerializedLog } from './logs/internal';
|
|
80
|
+
import * as logger_1 from './logs/public-api';
|
|
81
|
+
export { logger_1 as logger };
|
|
82
|
+
export { consoleLoggingIntegration } from './logs/console-integration';
|
|
83
|
+
export { _INTERNAL_captureMetric, _INTERNAL_flushMetricsBuffer, _INTERNAL_captureSerializedMetric, } from './metrics/internal';
|
|
84
|
+
import * as metrics_1 from './metrics/public-api';
|
|
85
|
+
export { metrics_1 as metrics };
|
|
86
|
+
export { MetricOptions } from './metrics/public-api';
|
|
87
|
+
export { createConsolaReporter } from './integrations/consola';
|
|
88
|
+
export { addVercelAiProcessors } from './tracing/vercel-ai';
|
|
89
|
+
export { _INTERNAL_getSpanContextForToolCallId, _INTERNAL_cleanupToolCallSpanContext } from './tracing/vercel-ai/utils';
|
|
90
|
+
export { toolCallSpanContextMap as _INTERNAL_toolCallSpanContextMap } from './tracing/vercel-ai/constants';
|
|
91
|
+
export { instrumentOpenAiClient } from './tracing/openai';
|
|
92
|
+
export { OPENAI_INTEGRATION_NAME } from './tracing/openai/constants';
|
|
93
|
+
export { instrumentAnthropicAiClient } from './tracing/anthropic-ai';
|
|
94
|
+
export { ANTHROPIC_AI_INTEGRATION_NAME } from './tracing/anthropic-ai/constants';
|
|
95
|
+
export { instrumentGoogleGenAIClient } from './tracing/google-genai';
|
|
96
|
+
export { GOOGLE_GENAI_INTEGRATION_NAME } from './tracing/google-genai/constants';
|
|
97
|
+
export { GoogleGenAIResponse } from './tracing/google-genai/types';
|
|
98
|
+
export { createLangChainCallbackHandler, instrumentLangChainEmbeddings } from './tracing/langchain';
|
|
99
|
+
export { LANGCHAIN_INTEGRATION_NAME } from './tracing/langchain/constants';
|
|
100
|
+
export { LangChainOptions, LangChainIntegration } from './tracing/langchain/types';
|
|
101
|
+
export { instrumentStateGraphCompile, instrumentCreateReactAgent, instrumentLangGraph } from './tracing/langgraph';
|
|
102
|
+
export { LANGGRAPH_INTEGRATION_NAME } from './tracing/langgraph/constants';
|
|
103
|
+
export { LangGraphOptions, LangGraphIntegration, CompiledGraph } from './tracing/langgraph/types';
|
|
104
|
+
export { OpenAiClient, OpenAiOptions, InstrumentedMethod } from './tracing/openai/types';
|
|
105
|
+
export { AnthropicAiClient, AnthropicAiOptions, AnthropicAiInstrumentedMethod, AnthropicAiResponse, } from './tracing/anthropic-ai/types';
|
|
106
|
+
export { GoogleGenAIClient, GoogleGenAIChat, GoogleGenAIOptions, GoogleGenAIInstrumentedMethod, } from './tracing/google-genai/types';
|
|
107
|
+
export { GoogleGenAIIstrumentedMethod } from './tracing/google-genai/types';
|
|
108
|
+
export { SpanBuffer } from './tracing/spans/spanBuffer';
|
|
109
|
+
export { hasSpanStreamingEnabled } from './tracing/spans/hasSpanStreamingEnabled';
|
|
110
|
+
export { spanStreamingIntegration } from './integrations/spanStreaming';
|
|
111
|
+
export { FeatureFlag } from './utils/featureFlags';
|
|
112
|
+
export { _INTERNAL_copyFlagsFromScopeToEvent, _INTERNAL_insertFlagToScope, _INTERNAL_addFeatureFlagToActiveSpan, _INTERNAL_FLAG_BUFFER_SIZE, _INTERNAL_MAX_FLAGS_PER_SPAN, } from './utils/featureFlags';
|
|
113
|
+
export { applyAggregateErrorsToEvent } from './utils/aggregate-errors';
|
|
114
|
+
export { getBreadcrumbLogLevelFromHttpStatusCode } from './utils/breadcrumb-log-level';
|
|
115
|
+
export { dsnFromString, dsnToString, makeDsn } from './utils/dsn';
|
|
116
|
+
export { SentryError } from './utils/error';
|
|
117
|
+
export { GLOBAL_OBJ } from './utils/worldwide';
|
|
118
|
+
export { InternalGlobal } from './utils/worldwide';
|
|
119
|
+
export { addConsoleInstrumentationHandler, addConsoleInstrumentationFilter } from './instrument/console';
|
|
120
|
+
export { addFetchEndInstrumentationHandler, addFetchInstrumentationHandler } from './instrument/fetch';
|
|
121
|
+
export { addGlobalErrorInstrumentationHandler } from './instrument/globalError';
|
|
122
|
+
export { addGlobalUnhandledRejectionInstrumentationHandler } from './instrument/globalUnhandledRejection';
|
|
123
|
+
export { addHandler, maybeInstrument, resetInstrumentationHandlers, triggerHandlers } from './instrument/handlers';
|
|
124
|
+
export { isDOMError, isDOMException, isElement, isError, isErrorEvent, isEvent, isInstanceOf, isParameterizedString, isPlainObject, isPrimitive, isRegExp, isString, isSyntheticEvent, isThenable, isVueViewModel, } from './utils/is';
|
|
125
|
+
export { isBrowser } from './utils/isBrowser';
|
|
126
|
+
export { CONSOLE_LEVELS, consoleSandbox, debug, originalConsoleMethods } from './utils/debug-logger';
|
|
127
|
+
export { SentryDebugLogger } from './utils/debug-logger';
|
|
128
|
+
export { addContextToFrame, addExceptionMechanism, addExceptionTypeValue, checkOrSetAlreadyCaught, isAlreadyCaptured, getEventDescription, parseSemver, uuid4, } from './utils/misc';
|
|
129
|
+
export { normalize, normalizeToSize, normalizeUrlToBase } from './utils/normalize';
|
|
130
|
+
export { setNormalizationDepthOverrideHint, setSkipNormalizationHint } from './utils/normalizationHints';
|
|
131
|
+
export { addNonEnumerableProperty, convertToPlainObject, dropUndefinedKeys, extractExceptionKeysForMessage, fill, getOriginalFunction, markFunctionWrapped, objectify, } from './utils/object';
|
|
132
|
+
export { basename, dirname, isAbsolute, join, normalizePath, relative, resolve } from './utils/path';
|
|
133
|
+
export { makePromiseBuffer, SENTRY_BUFFER_FULL_ERROR } from './utils/promisebuffer';
|
|
134
|
+
export { PromiseBuffer } from './utils/promisebuffer';
|
|
135
|
+
export { severityLevelFromString } from './utils/severity';
|
|
136
|
+
export { replaceExports } from './utils/exports';
|
|
137
|
+
export { UNKNOWN_FUNCTION, createStackParser, getFramesFromEvent, getFunctionName, stackParserFromStackParserOptions, stripSentryFramesAndReverse, } from './utils/stacktrace';
|
|
138
|
+
export { isMatchingPattern, safeJoin, snipLine, stringMatchesSomePattern, truncate } from './utils/string';
|
|
139
|
+
export { isNativeFunction, supportsDOMException, supportsErrorEvent, supportsFetch, supportsReferrerPolicy, } from './utils/supports';
|
|
140
|
+
export { SyncPromise, rejectedSyncPromise, resolvedSyncPromise } from './utils/syncpromise';
|
|
141
|
+
export { browserPerformanceTimeOrigin, dateTimestampInSeconds, timestampInSeconds } from './utils/time';
|
|
142
|
+
export { TRACEPARENT_REGEXP, extractTraceparentData, generateSentryTraceHeader, propagationContextFromHeaders, shouldContinueTrace, generateTraceparentHeader, } from './utils/tracing';
|
|
143
|
+
export { getSDKSource, isBrowserBundle } from './utils/env';
|
|
144
|
+
export { SdkSource } from './utils/env';
|
|
145
|
+
export { addItemToEnvelope, createAttachmentEnvelopeItem, createEnvelope, createEventEnvelopeHeaders, createSpanEnvelopeItem, envelopeContainsItemType, envelopeItemTypeToDataCategory, forEachEnvelopeItem, getSdkMetadataForEnvelopeHeader, parseEnvelope, serializeEnvelope, } from './utils/envelope';
|
|
146
|
+
export { createClientReportEnvelope } from './utils/clientreport';
|
|
147
|
+
export { DEFAULT_RETRY_AFTER, disabledUntil, isRateLimited, parseRetryAfterHeader, updateRateLimits, } from './utils/ratelimit';
|
|
148
|
+
export { RateLimits } from './utils/ratelimit';
|
|
149
|
+
export { MAX_BAGGAGE_STRING_LENGTH, SENTRY_BAGGAGE_KEY_PREFIX, SENTRY_BAGGAGE_KEY_PREFIX_REGEX, baggageHeaderToDynamicSamplingContext, dynamicSamplingContextToSentryBaggageHeader, parseBaggageHeader, objectToBaggageHeader, mergeBaggageHeaders, } from './utils/baggage';
|
|
150
|
+
export { getSanitizedUrlString, parseUrl, stripUrlQueryAndFragment, parseStringToURLObject, getHttpSpanDetailsFromUrlObject, isURLObjectRelative, getSanitizedUrlStringFromUrlObject, stripDataUrlContent, } from './utils/url';
|
|
151
|
+
export { eventFromMessage, eventFromUnknownInput, exceptionFromError, parseStackFrames, _enhanceErrorWithSentryInfo as _INTERNAL_enhanceErrorWithSentryInfo, } from './utils/eventbuilder';
|
|
152
|
+
export { LRUMap } from './utils/lru';
|
|
153
|
+
export { generateTraceId, generateSpanId } from './utils/propagationContext';
|
|
154
|
+
export { SDK_VERSION } from './utils/version';
|
|
155
|
+
export { getDebugImagesForResources, getFilenameToDebugIdMap } from './utils/debug-ids';
|
|
156
|
+
export { getFilenameToMetadataMap } from './metadata';
|
|
157
|
+
export { escapeStringForRegex } from './vendor/escapeStringForRegex';
|
|
158
|
+
export { Attachment } from './types-hoist/attachment';
|
|
159
|
+
export { Breadcrumb, BreadcrumbHint, FetchBreadcrumbData, FetchBreadcrumbHint } from './types-hoist/breadcrumb';
|
|
160
|
+
export { ClientReport, Outcome, EventDropReason } from './types-hoist/clientreport';
|
|
161
|
+
export { Context, Contexts, DeviceContext, OsContext, AppContext, CultureContext, TraceContext, CloudResourceContext, MissingInstrumentationContext, } from './types-hoist/context';
|
|
162
|
+
export { DataCategory } from './types-hoist/datacategory';
|
|
163
|
+
export { DsnComponents, DsnLike, DsnProtocol } from './types-hoist/dsn';
|
|
164
|
+
export { DebugImage, DebugMeta } from './types-hoist/debugMeta';
|
|
165
|
+
export { AttachmentItem, BaseEnvelopeHeaders, BaseEnvelopeItemHeaders, ClientReportEnvelope, ClientReportItem, DynamicSamplingContext, Envelope, EnvelopeItemType, EnvelopeItem, EventEnvelope, EventEnvelopeHeaders, EventItem, ReplayEnvelope, FeedbackItem, SessionEnvelope, SessionItem, UserFeedbackItem, CheckInItem, CheckInEnvelope, RawSecurityEnvelope, RawSecurityItem, ProfileItem, ProfileChunkEnvelope, ProfileChunkItem, SpanEnvelope, StreamedSpanEnvelope, SpanItem, LogEnvelope, MetricEnvelope, } from './types-hoist/envelope';
|
|
166
|
+
export { ExtendedError } from './types-hoist/error';
|
|
167
|
+
export { Event, EventHint, EventType, ErrorEvent, TransactionEvent } from './types-hoist/event';
|
|
168
|
+
export { EventProcessor } from './types-hoist/eventprocessor';
|
|
169
|
+
export { Exception } from './types-hoist/exception';
|
|
170
|
+
export { Extra, Extras } from './types-hoist/extra';
|
|
171
|
+
export { Integration, IntegrationFn } from './types-hoist/integration';
|
|
172
|
+
export { Mechanism } from './types-hoist/mechanism';
|
|
173
|
+
export { ExtractedNodeRequestData, HttpHeaderValue, Primitive, WorkerLocation } from './types-hoist/misc';
|
|
174
|
+
export { ClientOptions, CoreOptions as Options } from './types-hoist/options';
|
|
175
|
+
export { Package } from './types-hoist/package';
|
|
176
|
+
export { PolymorphicEvent, PolymorphicRequest } from './types-hoist/polymorphics';
|
|
177
|
+
export { ThreadId, FrameId, StackId, ThreadCpuSample, ThreadCpuStack, ThreadCpuFrame, ThreadCpuProfile, ContinuousThreadCpuProfile, Profile, ProfileChunk, } from './types-hoist/profiling';
|
|
178
|
+
export { ReplayEndEvent, ReplayEvent, ReplayRecordingData, ReplayRecordingMode, ReplayStartEvent, ReplayStopReason, } from './types-hoist/replay';
|
|
179
|
+
export { FeedbackErrorCode, FeedbackErrorMessages, FeedbackEvent, FeedbackFormData, FeedbackInternalOptions, FeedbackModalIntegration, FeedbackScreenshotIntegration, SendFeedback, SendFeedbackParams, UserFeedback, } from './types-hoist/feedback';
|
|
180
|
+
export { QueryParams, RequestEventData, RequestHookInfo, ResponseHookInfo, SanitizedRequestData, } from './types-hoist/request';
|
|
181
|
+
export { Runtime } from './types-hoist/runtime';
|
|
182
|
+
export { SdkInfo } from './types-hoist/sdkinfo';
|
|
183
|
+
export { SdkMetadata } from './types-hoist/sdkmetadata';
|
|
184
|
+
export { SessionAggregates, AggregationCounts, Session, SessionContext, SessionStatus, SerializedSession, } from './types-hoist/session';
|
|
185
|
+
export { SeverityLevel } from './types-hoist/severity';
|
|
186
|
+
export { Span, SentrySpanArguments, SpanOrigin, SpanAttributeValue, SpanAttributes, SpanTimeInput, SpanJSON, SpanContextData, TraceFlag, SerializedStreamedSpan, SerializedStreamedSpanContainer, StreamedSpanJSON, } from './types-hoist/span';
|
|
187
|
+
export { SpanStatus } from './types-hoist/spanStatus';
|
|
188
|
+
export { Log, LogSeverityLevel } from './types-hoist/log';
|
|
189
|
+
export { SpanLink } from './types-hoist/link';
|
|
190
|
+
export { Metric, MetricType, SerializedMetric, SerializedMetricContainer, SerializedMetricAttributeValue, } from './types-hoist/metric';
|
|
191
|
+
export { TimedEvent } from './types-hoist/timedEvent';
|
|
192
|
+
export { StackFrame } from './types-hoist/stackframe';
|
|
193
|
+
export { Stacktrace, StackParser, StackLineParser, StackLineParserFn } from './types-hoist/stacktrace';
|
|
194
|
+
export { PropagationContext, TracePropagationTargets, SerializedTraceData } from './types-hoist/tracing';
|
|
195
|
+
export { StartSpanOptions } from './types-hoist/startSpanOptions';
|
|
196
|
+
export { TraceparentData, TransactionSource } from './types-hoist/transaction';
|
|
197
|
+
export { TracesSamplerSamplingContext, CustomSamplingContext, SamplingContext, } from './types-hoist/samplingcontext';
|
|
198
|
+
export { DurationUnit, InformationUnit, FractionUnit, MeasurementUnit, NoneUnit, Measurements, } from './types-hoist/measurement';
|
|
199
|
+
export { Thread } from './types-hoist/thread';
|
|
200
|
+
export { Transport, TransportRequest, TransportMakeRequestResponse, InternalBaseTransportOptions, BaseTransportOptions, TransportRequestExecutor, } from './types-hoist/transport';
|
|
201
|
+
export { User } from './types-hoist/user';
|
|
202
|
+
export { WebFetchHeaders, WebFetchRequest } from './types-hoist/webfetchapi';
|
|
203
|
+
export { WrappedFunction } from './types-hoist/wrappedfunction';
|
|
204
|
+
export { HandlerDataFetch, HandlerDataConsole, HandlerDataError, HandlerDataUnhandledRejection, ConsoleLevel, } from './types-hoist/instrument';
|
|
205
|
+
export { CheckIn, MonitorConfig, FinishedCheckIn, InProgressCheckIn, SerializedCheckIn, } from './types-hoist/checkin';
|
|
206
|
+
export { ParameterizedString } from './types-hoist/parameterize';
|
|
207
|
+
export { ContinuousProfiler, ProfilingIntegration, Profiler } from './types-hoist/profiling';
|
|
208
|
+
export { ViewHierarchyData, ViewHierarchyWindow } from './types-hoist/view-hierarchy';
|
|
209
|
+
export { LegacyCSPReport } from './types-hoist/csp';
|
|
210
|
+
export { SerializedLog, SerializedLogContainer } from './types-hoist/log';
|
|
211
|
+
export { BuildTimeOptionsBase, UnstableVitePluginOptions, UnstableRollupPluginOptions, UnstableWebpackPluginOptions, } from './build-time-plugins/buildTimeOptionsBase';
|
|
212
|
+
export { RandomSafeContextRunner as _INTERNAL_RandomSafeContextRunner } from './utils/randomSafeContext';
|
|
213
|
+
export { withRandomSafeContext as _INTERNAL_withRandomSafeContext, safeMathRandom as _INTERNAL_safeMathRandom, safeDateNow as _INTERNAL_safeDateNow, } from './utils/randomSafeContext';
|
|
214
|
+
//# sourceMappingURL=shared-exports.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Client } from '../../client';
|
|
2
|
+
import { SpanContainerItem } from '../../types-hoist/envelope';
|
|
3
|
+
import { Event } from '../../types-hoist/event';
|
|
4
|
+
/**
|
|
5
|
+
* Extracts gen_ai spans from a transaction event, converts them to span v2 format,
|
|
6
|
+
* and returns them as a SpanContainerItem.
|
|
7
|
+
*
|
|
8
|
+
* Only applies to static mode (non-streaming) transactions.
|
|
9
|
+
*
|
|
10
|
+
* WARNING: This function mutates `event.spans` by removing the extracted gen_ai spans
|
|
11
|
+
* from the array. Call this before creating the event envelope so the transaction
|
|
12
|
+
* item does not include the extracted spans.
|
|
13
|
+
*/
|
|
14
|
+
export declare function extractGenAiSpansFromEvent(event: Event, client: Client): SpanContainerItem | undefined;
|
|
15
|
+
//# sourceMappingURL=extractGenAiSpans.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SerializedStreamedSpan, SpanJSON } from '../../types-hoist/span';
|
|
2
|
+
/**
|
|
3
|
+
* Converts a v1 SpanJSON (from a legacy transaction) to a serialized v2 StreamedSpan.
|
|
4
|
+
*/
|
|
5
|
+
export declare function spanJsonToSerializedStreamedSpan(span: SpanJSON): SerializedStreamedSpan;
|
|
6
|
+
//# sourceMappingURL=spanJsonToStreamedSpan.d.ts.map
|
|
@@ -160,7 +160,7 @@ type StreamedSpanEnvelopeHeaders = BaseEnvelopeHeaders & {
|
|
|
160
160
|
};
|
|
161
161
|
type LogEnvelopeHeaders = BaseEnvelopeHeaders;
|
|
162
162
|
type MetricEnvelopeHeaders = BaseEnvelopeHeaders;
|
|
163
|
-
export type EventEnvelope = BaseEnvelope<EventEnvelopeHeaders, EventItem | AttachmentItem | UserFeedbackItem | FeedbackItem | ProfileItem>;
|
|
163
|
+
export type EventEnvelope = BaseEnvelope<EventEnvelopeHeaders, EventItem | AttachmentItem | UserFeedbackItem | FeedbackItem | ProfileItem | SpanContainerItem>;
|
|
164
164
|
export type SessionEnvelope = BaseEnvelope<SessionEnvelopeHeaders, SessionItem>;
|
|
165
165
|
export type ClientReportEnvelope = BaseEnvelope<ClientReportEnvelopeHeaders, ClientReportItem>;
|
|
166
166
|
export type ReplayEnvelope = [
|
|
@@ -499,6 +499,14 @@ export interface ClientOptions<TO extends BaseTransportOptions = BaseTransportOp
|
|
|
499
499
|
* you can provide the ID with this option. The organization ID is used for trace propagation and for features like `strictTraceContinuation`.
|
|
500
500
|
*/
|
|
501
501
|
orgId?: string | number;
|
|
502
|
+
/**
|
|
503
|
+
* If set to `true`, gen_ai spans will be extracted from transactions and sent as v2 span envelope items.
|
|
504
|
+
*
|
|
505
|
+
* This enables streaming gen_ai spans, avoiding payload size limits of usual transactions.
|
|
506
|
+
*
|
|
507
|
+
* @default false
|
|
508
|
+
*/
|
|
509
|
+
streamGenAiSpans?: boolean;
|
|
502
510
|
/**
|
|
503
511
|
* If logs support should be enabled.
|
|
504
512
|
*
|
|
@@ -42,5 +42,5 @@ export declare function isMatchingPattern(value: string, pattern: RegExp | strin
|
|
|
42
42
|
* count. If false, `testString` will match a string pattern if it contains that pattern.
|
|
43
43
|
* @returns
|
|
44
44
|
*/
|
|
45
|
-
export declare function stringMatchesSomePattern(testString: string, patterns?: Array<string | RegExp | ((value: string) => boolean)>, requireExactStringMatch?: boolean): boolean;
|
|
45
|
+
export declare function stringMatchesSomePattern(testString: string, patterns?: Array<string | RegExp | ((value: string) => boolean)> | Set<string | RegExp | ((value: string) => boolean)>, requireExactStringMatch?: boolean): boolean;
|
|
46
46
|
//# sourceMappingURL=string.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/core",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.53.1",
|
|
4
4
|
"description": "Base implementation for all Sentry JavaScript SDKs",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/core",
|
|
@@ -10,13 +10,37 @@
|
|
|
10
10
|
"node": ">=18"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
|
-
"/build"
|
|
13
|
+
"/build",
|
|
14
|
+
"browser.js",
|
|
15
|
+
"browser.d.ts",
|
|
16
|
+
"server.js",
|
|
17
|
+
"server.d.ts"
|
|
14
18
|
],
|
|
15
19
|
"main": "build/cjs/index.js",
|
|
16
20
|
"module": "build/esm/index.js",
|
|
17
21
|
"types": "build/types/index.d.ts",
|
|
18
22
|
"exports": {
|
|
19
23
|
"./package.json": "./package.json",
|
|
24
|
+
"./server": {
|
|
25
|
+
"import": {
|
|
26
|
+
"types": "./build/types/server.d.ts",
|
|
27
|
+
"default": "./build/esm/server.js"
|
|
28
|
+
},
|
|
29
|
+
"require": {
|
|
30
|
+
"types": "./build/types/server.d.ts",
|
|
31
|
+
"default": "./build/cjs/server.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"./browser": {
|
|
35
|
+
"import": {
|
|
36
|
+
"types": "./build/types/browser.d.ts",
|
|
37
|
+
"default": "./build/esm/browser.js"
|
|
38
|
+
},
|
|
39
|
+
"require": {
|
|
40
|
+
"types": "./build/types/browser.d.ts",
|
|
41
|
+
"default": "./build/cjs/browser.js"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
20
44
|
".": {
|
|
21
45
|
"import": {
|
|
22
46
|
"types": "./build/types/index.d.ts",
|
|
@@ -32,6 +56,12 @@
|
|
|
32
56
|
"<5.0": {
|
|
33
57
|
"build/types/index.d.ts": [
|
|
34
58
|
"build/types-ts3.8/index.d.ts"
|
|
59
|
+
],
|
|
60
|
+
"browser": [
|
|
61
|
+
"build/types-ts3.8/browser.d.ts"
|
|
62
|
+
],
|
|
63
|
+
"server": [
|
|
64
|
+
"build/types-ts3.8/server.d.ts"
|
|
35
65
|
]
|
|
36
66
|
}
|
|
37
67
|
},
|
package/server.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// This file is a compatibility shim for TypeScript compilers that do not
|
|
2
|
+
// support the package.json `exports` field for resolving subpath exports.
|
|
3
|
+
// Note: `typesVersions` in package.json may redirect this to the downleveled variant.
|
|
4
|
+
export * from './build/types/server';
|
package/server.js
ADDED