@sentry/cloudflare 11.8.0 → 11.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/build/cjs/dev/baseSdk.js +19 -2
- package/build/cjs/dev/baseSdk.js.map +1 -1
- package/build/cjs/dev/client.js +17 -0
- package/build/cjs/dev/client.js.map +1 -1
- package/build/cjs/dev/index.js +42 -0
- package/build/cjs/dev/index.js.map +1 -1
- package/build/cjs/dev/instrumentations/instrumentSqlStorage.js +1 -1
- package/build/cjs/dev/instrumentations/instrumentSqlStorage.js.map +1 -1
- package/build/cjs/dev/instrumentations/worker/instrumentEnv.js +7 -0
- package/build/cjs/dev/instrumentations/worker/instrumentEnv.js.map +1 -1
- package/build/cjs/dev/instrumentations/worker/instrumentKV.js +79 -0
- package/build/cjs/dev/instrumentations/worker/instrumentKV.js.map +1 -0
- package/build/cjs/dev/instrumentations/worker/instrumentScheduled.js +0 -3
- package/build/cjs/dev/instrumentations/worker/instrumentScheduled.js.map +1 -1
- package/build/cjs/dev/integrations/cronTriggers.js.map +1 -1
- package/build/cjs/dev/integrations/httpServer.js +52 -2
- package/build/cjs/dev/integrations/httpServer.js.map +1 -1
- package/build/cjs/dev/transport.js +8 -6
- package/build/cjs/dev/transport.js.map +1 -1
- package/build/cjs/dev/utils/invocationContext.js +2 -2
- package/build/cjs/dev/utils/invocationContext.js.map +1 -1
- package/build/cjs/dev/utils/isBinding.js +4 -0
- package/build/cjs/dev/utils/isBinding.js.map +1 -1
- package/build/cjs/dev/vite/transform.js +55 -4
- package/build/cjs/dev/vite/transform.js.map +1 -1
- package/build/cjs/dev/wrapMethodWithSentry.js.map +1 -1
- package/build/cjs/dev/wrapRequestHandlerWithInit.js +72 -49
- package/build/cjs/dev/wrapRequestHandlerWithInit.js.map +1 -1
- package/build/cjs/prod/baseSdk.js +19 -2
- package/build/cjs/prod/baseSdk.js.map +1 -1
- package/build/cjs/prod/client.js +17 -0
- package/build/cjs/prod/client.js.map +1 -1
- package/build/cjs/prod/index.js +42 -0
- package/build/cjs/prod/index.js.map +1 -1
- package/build/cjs/prod/instrumentations/instrumentSqlStorage.js +1 -1
- package/build/cjs/prod/instrumentations/instrumentSqlStorage.js.map +1 -1
- package/build/cjs/prod/instrumentations/worker/instrumentEnv.js +7 -0
- package/build/cjs/prod/instrumentations/worker/instrumentEnv.js.map +1 -1
- package/build/cjs/prod/instrumentations/worker/instrumentKV.js +79 -0
- package/build/cjs/prod/instrumentations/worker/instrumentKV.js.map +1 -0
- package/build/cjs/prod/instrumentations/worker/instrumentScheduled.js +0 -3
- package/build/cjs/prod/instrumentations/worker/instrumentScheduled.js.map +1 -1
- package/build/cjs/prod/integrations/cronTriggers.js.map +1 -1
- package/build/cjs/prod/integrations/httpServer.js +52 -2
- package/build/cjs/prod/integrations/httpServer.js.map +1 -1
- package/build/cjs/prod/transport.js +8 -6
- package/build/cjs/prod/transport.js.map +1 -1
- package/build/cjs/prod/utils/invocationContext.js +2 -2
- package/build/cjs/prod/utils/invocationContext.js.map +1 -1
- package/build/cjs/prod/utils/isBinding.js +4 -0
- package/build/cjs/prod/utils/isBinding.js.map +1 -1
- package/build/cjs/prod/vite/transform.js +55 -4
- package/build/cjs/prod/vite/transform.js.map +1 -1
- package/build/cjs/prod/wrapMethodWithSentry.js.map +1 -1
- package/build/cjs/prod/wrapRequestHandlerWithInit.js +72 -49
- package/build/cjs/prod/wrapRequestHandlerWithInit.js.map +1 -1
- package/build/esm/dev/baseSdk.js +20 -3
- package/build/esm/dev/baseSdk.js.map +1 -1
- package/build/esm/dev/client.js +18 -1
- package/build/esm/dev/client.js.map +1 -1
- package/build/esm/dev/index.js +3 -3
- package/build/esm/dev/instrumentations/instrumentSqlStorage.js +1 -1
- package/build/esm/dev/instrumentations/instrumentSqlStorage.js.map +1 -1
- package/build/esm/dev/instrumentations/worker/instrumentEnv.js +8 -1
- package/build/esm/dev/instrumentations/worker/instrumentEnv.js.map +1 -1
- package/build/esm/dev/instrumentations/worker/instrumentKV.js +77 -0
- package/build/esm/dev/instrumentations/worker/instrumentKV.js.map +1 -0
- package/build/esm/dev/instrumentations/worker/instrumentScheduled.js +0 -3
- package/build/esm/dev/instrumentations/worker/instrumentScheduled.js.map +1 -1
- package/build/esm/dev/integrations/cronTriggers.js.map +1 -1
- package/build/esm/dev/integrations/httpServer.js +52 -4
- package/build/esm/dev/integrations/httpServer.js.map +1 -1
- package/build/esm/dev/package.json +1 -1
- package/build/esm/dev/transport.js +8 -6
- package/build/esm/dev/transport.js.map +1 -1
- package/build/esm/dev/utils/invocationContext.js +2 -2
- package/build/esm/dev/utils/invocationContext.js.map +1 -1
- package/build/esm/dev/utils/isBinding.js +4 -1
- package/build/esm/dev/utils/isBinding.js.map +1 -1
- package/build/esm/dev/vite/transform.js +55 -4
- package/build/esm/dev/vite/transform.js.map +1 -1
- package/build/esm/dev/wrapMethodWithSentry.js.map +1 -1
- package/build/esm/dev/wrapRequestHandlerWithInit.js +74 -51
- package/build/esm/dev/wrapRequestHandlerWithInit.js.map +1 -1
- package/build/esm/prod/baseSdk.js +20 -3
- package/build/esm/prod/baseSdk.js.map +1 -1
- package/build/esm/prod/client.js +18 -1
- package/build/esm/prod/client.js.map +1 -1
- package/build/esm/prod/index.js +3 -3
- package/build/esm/prod/instrumentations/instrumentSqlStorage.js +1 -1
- package/build/esm/prod/instrumentations/instrumentSqlStorage.js.map +1 -1
- package/build/esm/prod/instrumentations/worker/instrumentEnv.js +8 -1
- package/build/esm/prod/instrumentations/worker/instrumentEnv.js.map +1 -1
- package/build/esm/prod/instrumentations/worker/instrumentKV.js +77 -0
- package/build/esm/prod/instrumentations/worker/instrumentKV.js.map +1 -0
- package/build/esm/prod/instrumentations/worker/instrumentScheduled.js +0 -3
- package/build/esm/prod/instrumentations/worker/instrumentScheduled.js.map +1 -1
- package/build/esm/prod/integrations/cronTriggers.js.map +1 -1
- package/build/esm/prod/integrations/httpServer.js +52 -4
- package/build/esm/prod/integrations/httpServer.js.map +1 -1
- package/build/esm/prod/package.json +1 -1
- package/build/esm/prod/transport.js +8 -6
- package/build/esm/prod/transport.js.map +1 -1
- package/build/esm/prod/utils/invocationContext.js +2 -2
- package/build/esm/prod/utils/invocationContext.js.map +1 -1
- package/build/esm/prod/utils/isBinding.js +4 -1
- package/build/esm/prod/utils/isBinding.js.map +1 -1
- package/build/esm/prod/vite/transform.js +55 -4
- package/build/esm/prod/vite/transform.js.map +1 -1
- package/build/esm/prod/wrapMethodWithSentry.js.map +1 -1
- package/build/esm/prod/wrapRequestHandlerWithInit.js +74 -51
- package/build/esm/prod/wrapRequestHandlerWithInit.js.map +1 -1
- package/build/types/baseSdk.d.ts.map +1 -1
- package/build/types/client.d.ts +49 -1
- package/build/types/client.d.ts.map +1 -1
- package/build/types/index.d.ts +8 -4
- package/build/types/index.d.ts.map +1 -1
- package/build/types/instrumentations/worker/instrumentEnv.d.ts +1 -0
- package/build/types/instrumentations/worker/instrumentEnv.d.ts.map +1 -1
- package/build/types/instrumentations/worker/instrumentKV.d.ts +8 -0
- package/build/types/instrumentations/worker/instrumentKV.d.ts.map +1 -0
- package/build/types/instrumentations/worker/instrumentScheduled.d.ts.map +1 -1
- package/build/types/integrations/cronTriggers.d.ts.map +1 -1
- package/build/types/integrations/httpServer.d.ts +45 -1
- package/build/types/integrations/httpServer.d.ts.map +1 -1
- package/build/types/transport.d.ts.map +1 -1
- package/build/types/utils/invocationContext.d.ts +3 -2
- package/build/types/utils/invocationContext.d.ts.map +1 -1
- package/build/types/utils/isBinding.d.ts +6 -1
- package/build/types/utils/isBinding.d.ts.map +1 -1
- package/build/types/wrapRequestHandlerWithInit.d.ts.map +1 -1
- package/package.json +12 -12
package/build/types/index.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
export type { Breadcrumb, BreadcrumbHint, PolymorphicRequest, RequestEventData, SdkInfo, Event, EventHint, ErrorEvent, Exception, FeatureFlagsIntegration, Session, SeverityLevel, Span, StackFrame, Stacktrace, Thread, User, Metric, ExclusiveEventHintOrCaptureContext, CaptureContext, } from '@sentry/core';
|
|
1
|
+
export type { Breadcrumb, BreadcrumbHint, PolymorphicRequest, RequestEventData, SdkInfo, Event, EventHint, ErrorEvent, Exception, FeatureFlagsIntegration, Session, SeverityLevel, Log, LogSeverityLevel, Span, StackFrame, Stacktrace, Thread, User, Metric, ExclusiveEventHintOrCaptureContext, CaptureContext, } from '@sentry/core';
|
|
2
2
|
export type { CloudflareOptions } from './client';
|
|
3
|
-
export { addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, captureFeedback, close, createTransport, lastEventId, flush, getClient, isInitialized, isEnabled, getCurrentScope, getGlobalScope, getIsolationScope, setCurrentClient, Scope, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setAttribute, setAttributes, setUser, setConversationId, getSpanStatusFromHttpCode, setHttpStatus, withScope, withIsolationScope, captureCheckIn, withMonitor, setMeasurement, getActiveSpan, getRootSpan, getTraceData, getTraceMetaTags, startSpan, startInactiveSpan, startSpanManual, startNewTrace, bindScopeToEmitter, suppressTracing, withActiveSpan, getSpanDescendants, continueTrace, functionToStringIntegration, eventFiltersIntegration, linkedErrorsIntegration, requestDataIntegration, extraErrorDataIntegration, dedupeIntegration, rewriteFramesIntegration, captureConsoleIntegration, moduleMetadataIntegration, supabaseIntegration, instrumentSupabaseClient, zodErrorsIntegration, consoleIntegration, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, spanToStaticSpanJSON, spanToJSON, spanToTraceHeader, spanToBaggageHeader, updateSpanName, consoleLoggingIntegration, createConsolaReporter, featureFlagsIntegration, growthbookIntegration, logger, metrics, withStaticSpan, withStreamedSpan, spanStreamingIntegration, } from '@sentry/core';
|
|
4
|
-
export { trpcMiddleware, wrapMcpServerWithSentry } from '@sentry/core/server';
|
|
3
|
+
export { addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, parameterize, captureFeedback, close, createTransport, lastEventId, flush, getClient, isInitialized, isEnabled, getCurrentScope, getGlobalScope, getIsolationScope, setCurrentClient, Scope, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setAttribute, setAttributes, setUser, setConversationId, getSpanStatusFromHttpCode, setHttpStatus, withScope, withIsolationScope, captureCheckIn, withMonitor, setMeasurement, getActiveSpan, getRootSpan, getTraceData, getTraceMetaTags, startSpan, startInactiveSpan, startSpanManual, startNewTrace, bindScopeToEmitter, suppressTracing, withActiveSpan, getSpanDescendants, continueTrace, functionToStringIntegration, eventFiltersIntegration, linkedErrorsIntegration, requestDataIntegration, extraErrorDataIntegration, dedupeIntegration, rewriteFramesIntegration, captureConsoleIntegration, moduleMetadataIntegration, supabaseIntegration, instrumentSupabaseClient, zodErrorsIntegration, consoleIntegration, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, spanToStaticSpanJSON, spanToJSON, spanToTraceHeader, spanToBaggageHeader, updateSpanName, consoleLoggingIntegration, createConsolaReporter, featureFlagsIntegration, growthbookIntegration, logger, metrics, withStaticSpan, withStreamedSpan, spanStreamingIntegration, } from '@sentry/core';
|
|
4
|
+
export { handleTunnelRequestIfMatched, isTunnelRequest, serveTunnelIntegration, trpcMiddleware, wrapMcpServerWithSentry, } from '@sentry/core/server';
|
|
5
|
+
export type { TunnelRequestLike } from '@sentry/core/server';
|
|
6
|
+
export { getTunnelPath, handleTunnelRequest } from '@sentry/core';
|
|
7
|
+
export type { HandleTunnelRequestOptions, ServerTunnelOptions } from '@sentry/core';
|
|
5
8
|
export { createFlueInstrumentation, instrumentPostgresJsSql } from '@sentry/server-utils';
|
|
6
9
|
export type { FlueOptions } from '@sentry/server-utils';
|
|
7
10
|
export { withSentry } from './withSentry';
|
|
@@ -17,7 +20,8 @@ export type { FetchIntegrationOptions } from '@sentry/core';
|
|
|
17
20
|
export { spotlightIntegration } from './integrations/spotlight';
|
|
18
21
|
export { cronTriggersIntegration } from './integrations/cronTriggers';
|
|
19
22
|
export type { CronTriggerMonitorSettings, CronTriggersOptions } from './integrations/cronTriggers';
|
|
20
|
-
export { openTelemetryIntegration, getOtlpTracesEndpoint, prismaIntegration, instrumentMistralAiClient, instrumentTypeSafeClient, instrumentOpenAiClient, instrumentAnthropicAiClient, instrumentGoogleGenAIClient, instrumentWorkersAiClient, createLangChainCallbackHandler, instrumentLangChainEmbeddings, instrumentStateGraph, instrumentCreateReactAgent, vercelAIIntegration, honoIntegration, honoMiddleware, eveConversationHook, eveIntegration, getInstrumentedModuleNames, } from '@sentry/server-utils';
|
|
23
|
+
export { openTelemetryIntegration, getOtlpTracesEndpoint, prismaIntegration, instrumentMistralAiClient, instrumentTypeSafeClient, instrumentOpenAiClient, instrumentAnthropicAiClient, instrumentGoogleGenAIClient, instrumentWorkersAiClient, createLangChainCallbackHandler, instrumentLangChainEmbeddings, instrumentStateGraph, instrumentStateGraphCompile, instrumentCreateReactAgent, vercelAIIntegration, honoIntegration, honoMiddleware, eveConversationHook, eveIntegration, getInstrumentedModuleNames, } from '@sentry/server-utils';
|
|
24
|
+
export { amqplibIntegration, anthropicAIIntegration, awsIntegration, dataloaderIntegration, expressIntegration, firebaseIntegration, genericPoolIntegration, googleGenAIIntegration, graphqlIntegration, groqIntegration, hapiIntegration, kafkaIntegration, knexIntegration, koaIntegration, langChainIntegration, langGraphIntegration, lruMemoizerIntegration, mastraIntegration, mcpServerIntegration, mistralAIIntegration, mongoIntegration, mongooseIntegration, mysql2Integration, mysqlIntegration, neonIntegration, nitroIntegration, openAIIntegration, piDurableIntegration, postgresIntegration, postgresJsIntegration, redisIntegration, SentryMastraExporter, tediousIntegration, togetherAIIntegration, typesafeIntegration, } from '@sentry/server-utils';
|
|
21
25
|
export { instrumentWorkflowWithSentry } from './workflows';
|
|
22
26
|
export { setAsyncLocalStorageAsyncContextStrategy } from '@sentry/server-utils/no-diagnostic-channels';
|
|
23
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,OAAO,EACP,KAAK,EACL,SAAS,EACT,UAAU,EACV,SAAS,EACT,uBAAuB,EACvB,OAAO,EACP,aAAa,EACb,IAAI,EACJ,UAAU,EACV,UAAU,EACV,MAAM,EACN,IAAI,EACJ,MAAM,EACN,kCAAkC,EAClC,cAAc,GACf,MAAM,cAAc,CAAC;AAEtB,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,eAAe,EACf,KAAK,EACL,eAAe,EACf,WAAW,EACX,KAAK,EACL,SAAS,EACT,aAAa,EACb,SAAS,EACT,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,KAAK,EACL,WAAW,EACX,UAAU,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACN,OAAO,EACP,YAAY,EACZ,aAAa,EACb,OAAO,EACP,iBAAiB,EACjB,yBAAyB,EACzB,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,cAAc,EACd,aAAa,EACb,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,2BAA2B,EAC3B,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,iBAAiB,EACjB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EACzB,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACpB,kBAAkB,EAElB,4BAA4B,EAE5B,gCAAgC,EAChC,qCAAqC,EACrC,oBAAoB,EACpB,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,yBAAyB,EACzB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,MAAM,EACN,OAAO,EACP,cAAc,EAEd,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AACtB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,OAAO,EACP,KAAK,EACL,SAAS,EACT,UAAU,EACV,SAAS,EACT,uBAAuB,EACvB,OAAO,EACP,aAAa,EACb,GAAG,EACH,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,UAAU,EACV,MAAM,EACN,IAAI,EACJ,MAAM,EACN,kCAAkC,EAClC,cAAc,GACf,MAAM,cAAc,CAAC;AAEtB,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,eAAe,EACf,KAAK,EACL,eAAe,EACf,WAAW,EACX,KAAK,EACL,SAAS,EACT,aAAa,EACb,SAAS,EACT,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,KAAK,EACL,WAAW,EACX,UAAU,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACN,OAAO,EACP,YAAY,EACZ,aAAa,EACb,OAAO,EACP,iBAAiB,EACjB,yBAAyB,EACzB,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,cAAc,EACd,aAAa,EACb,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT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AAqB,EACrB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAE3D,OAAO,EAAE,wCAAwC,EAAE,MAAM,6CAA6C,CAAC"}
|
|
@@ -7,6 +7,7 @@ import type { CloudflareOptions } from '../../client';
|
|
|
7
7
|
* - DurableObjectNamespace (via `idFromName` duck-typing)
|
|
8
8
|
* - Service bindings / JSRPC proxies
|
|
9
9
|
* - Queue producers (via `send` + `sendBatch` duck-typing)
|
|
10
|
+
* - Workers KV namespaces (via `get` + `put` + `list` + `getWithMetadata` duck-typing)
|
|
10
11
|
* - R2 Buckets (via `head` + `put` + `createMultipartUpload` duck-typing)
|
|
11
12
|
* - Workers AI (via `run` + `gateway` + `toMarkdown` duck-typing)
|
|
12
13
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instrumentEnv.d.ts","sourceRoot":"","sources":["../../../../src/instrumentations/worker/instrumentEnv.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"instrumentEnv.d.ts","sourceRoot":"","sources":["../../../../src/instrumentations/worker/instrumentEnv.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAyBtD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,CAAC,GAAG,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,GAAG,CA+F7G"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { KVNamespace } from '@cloudflare/workers-types';
|
|
2
|
+
/**
|
|
3
|
+
* Wraps a Cloudflare Workers KV binding to create cache spans on namespace operations.
|
|
4
|
+
*
|
|
5
|
+
* Instrumented methods: get, getWithMetadata, put, delete, and list.
|
|
6
|
+
*/
|
|
7
|
+
export declare function instrumentKV<T extends KVNamespace>(kv: T, bindingName: string): T;
|
|
8
|
+
//# sourceMappingURL=instrumentKV.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instrumentKV.d.ts","sourceRoot":"","sources":["../../../../src/instrumentations/worker/instrumentKV.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AA0E7D;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,WAAW,EAAE,EAAE,EAAE,CAAC,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC,CA4BjF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instrumentScheduled.d.ts","sourceRoot":"","sources":["../../../../src/instrumentations/worker/instrumentScheduled.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,GAAG,IAAI,aAAa,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAajF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"instrumentScheduled.d.ts","sourceRoot":"","sources":["../../../../src/instrumentations/worker/instrumentScheduled.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,GAAG,IAAI,aAAa,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAajF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAgFtD;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,CAAC,SAAS,kBAAkB,EAC7E,OAAO,EAAE,CAAC,EACV,eAAe,EAAE,CAAC,GAAG,EAAE,OAAO,aAAa,KAAK,iBAAiB,GAAG,SAAS,GAC5E,IAAI,CAoBN;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,CAAC,SAAS,gBAAgB,EAC5E,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,iBAAiB,EAC1B,OAAO,EAAE,gBAAgB,GACxB,IAAI,CAaN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cronTriggers.d.ts","sourceRoot":"","sources":["../../../src/integrations/cronTriggers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,aAAa,EAAE,MAAM,cAAc,CAAC;AAMjE;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC;AAEhH,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,0BAA0B,GAAG,SAAS,CAAC;CACjF;AAED,+DAA+D;AAC/D,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,IAAI,GAAG,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CAC5E;
|
|
1
|
+
{"version":3,"file":"cronTriggers.d.ts","sourceRoot":"","sources":["../../../src/integrations/cronTriggers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,aAAa,EAAE,MAAM,cAAc,CAAC;AAMjE;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC;AAEhH,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,0BAA0B,GAAG,SAAS,CAAC;CACjF;AAED,+DAA+D;AAC/D,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,IAAI,GAAG,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CAC5E;AAkID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,uBAAuB;;CAA8C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Client, MaxRequestBodySize } from '@sentry/core';
|
|
1
|
+
import type { Client, MaxRequestBodySize, Span } from '@sentry/core';
|
|
2
2
|
export interface HttpServerIntegrationOptions {
|
|
3
3
|
/**
|
|
4
4
|
* Controls the maximum size of incoming request bodies attached to events.
|
|
@@ -33,6 +33,37 @@ export interface HttpServerIntegrationOptions {
|
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
ignoreRequestBody?: (url: string, request: Request) => boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Do not create spans for incoming requests whose URL path makes the given callback return `true`.
|
|
38
|
+
*
|
|
39
|
+
* `urlPath` is the path of the request, including the query string. `request` is the incoming
|
|
40
|
+
* {@link Request}. Errors thrown by the handler are still captured.
|
|
41
|
+
*/
|
|
42
|
+
ignoreIncomingRequests?: (urlPath: string, request: Request) => boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Whether to automatically ignore common static asset requests (favicon.ico, robots.txt, etc.)
|
|
45
|
+
* when creating spans.
|
|
46
|
+
*
|
|
47
|
+
* @default `true`
|
|
48
|
+
*/
|
|
49
|
+
ignoreStaticAssets?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Whether to create spans for incoming requests.
|
|
52
|
+
* Errors are still captured and request data is still attached when this is `false`.
|
|
53
|
+
* Defaults to the client's tracing configuration (`hasSpansEnabled`).
|
|
54
|
+
*/
|
|
55
|
+
spans?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* A hook that can be used to mutate the span for incoming requests.
|
|
58
|
+
* This is triggered after the span is created, before the request handler runs.
|
|
59
|
+
*/
|
|
60
|
+
onSpanCreated?: (span: Span, request: Request) => void;
|
|
61
|
+
/**
|
|
62
|
+
* A hook that can be used to mutate the span one last time before it ends.
|
|
63
|
+
* For a streamed response, this runs when the stream finishes.
|
|
64
|
+
* It is not called when the request handler throws.
|
|
65
|
+
*/
|
|
66
|
+
onSpanEnd?: (span: Span, request: Request, response: Response) => void;
|
|
36
67
|
}
|
|
37
68
|
/**
|
|
38
69
|
* Configures incoming HTTP request handling for Cloudflare Workers.
|
|
@@ -60,4 +91,17 @@ export declare const httpServerIntegration: (options?: HttpServerIntegrationOpti
|
|
|
60
91
|
* Called internally by `wrapRequestHandler`.
|
|
61
92
|
*/
|
|
62
93
|
export declare function captureIncomingRequestBody(client: Client, request: Request): Promise<void>;
|
|
94
|
+
/**
|
|
95
|
+
* Whether to create a span for the incoming request, based on the HttpServer integration config.
|
|
96
|
+
* Called internally by `wrapRequestHandler`.
|
|
97
|
+
*/
|
|
98
|
+
export declare function shouldCreateIncomingRequestSpan(client: Client | undefined, request: Request): boolean;
|
|
99
|
+
/**
|
|
100
|
+
* The `onSpanCreated` and `onSpanEnd` hooks of the HttpServer integration, guarded so that a hook
|
|
101
|
+
* that throws does not fail the request. Called internally by `wrapRequestHandler`.
|
|
102
|
+
*/
|
|
103
|
+
export declare function getIncomingRequestSpanHooks(client: Client | undefined): {
|
|
104
|
+
onSpanCreated: (span: Span, request: Request) => void;
|
|
105
|
+
onSpanEnd: (span: Span, request: Request, response: Response) => void;
|
|
106
|
+
};
|
|
63
107
|
//# sourceMappingURL=httpServer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpServer.d.ts","sourceRoot":"","sources":["../../../src/integrations/httpServer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAiB,kBAAkB,EAAE,MAAM,cAAc,CAAC;
|
|
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aAAa,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtD,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;CACvE,CAgBA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,4BAA4B,EAAoB,MAAM,cAAc,CAAC;AAGpH,MAAM,WAAW,0BAA2B,SAAQ,oBAAoB;IACtE,iFAAiF;IACjF,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IACrB,iCAAiC;IACjC,YAAY,CAAC,EAAE,WAAW,CAAC;CAC5B;AAUD;;;;;;;GAOG;AACH,qBAAa,qBAAqB;IAGzB,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,4BAA4B,CAAC,CAAC,CAAC;IAE3D;;;OAGG;IACI,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC;IAE5C,OAAO,CAAC,cAAc,CAAsD;IAE5E,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;IAErC,YAAmB,WAAW,SAAgC,EAI7D;IAED;;OAEG;IACI,GAAG,CAAC,YAAY,EAAE,MAAM,WAAW,CAAC,4BAA4B,CAAC,GAAG,WAAW,CAAC,4BAA4B,CAAC,CAOnH;IAED;;OAEG;IACI,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,4BAA4B,EAAoB,MAAM,cAAc,CAAC;AAGpH,MAAM,WAAW,0BAA2B,SAAQ,oBAAoB;IACtE,iFAAiF;IACjF,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IACrB,iCAAiC;IACjC,YAAY,CAAC,EAAE,WAAW,CAAC;CAC5B;AAUD;;;;;;;GAOG;AACH,qBAAa,qBAAqB;IAGzB,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,4BAA4B,CAAC,CAAC,CAAC;IAE3D;;;OAGG;IACI,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC;IAE5C,OAAO,CAAC,cAAc,CAAsD;IAE5E,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;IAErC,YAAmB,WAAW,SAAgC,EAI7D;IAED;;OAEG;IACI,GAAG,CAAC,YAAY,EAAE,MAAM,WAAW,CAAC,4BAA4B,CAAC,GAAG,WAAW,CAAC,4BAA4B,CAAC,CAOnH;IAED;;OAEG;IACI,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAyCnD;CACF;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,0BAA0B,GAAG,SAAS,CA0CtF"}
|
|
@@ -12,8 +12,9 @@ import type { ExecutionContextCompat } from '../executionContext';
|
|
|
12
12
|
*
|
|
13
13
|
* The state rides on the invocation's forked isolation scope, which the async
|
|
14
14
|
* context strategy (AsyncLocalStorage) hands back for exactly the async context that
|
|
15
|
-
* owns the invocation — including detached continuations created inside it.
|
|
16
|
-
* key
|
|
15
|
+
* owns the invocation — including detached continuations created inside it. It lives under
|
|
16
|
+
* a symbol key in the scope's `refs`, so isolation scopes forked inside the invocation
|
|
17
|
+
* (`withMonitor`, `withIsolationScope`) share it, and it stays out of serialized event data.
|
|
17
18
|
*/
|
|
18
19
|
export interface InvocationState {
|
|
19
20
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invocationContext.d.ts","sourceRoot":"","sources":["../../../src/utils/invocationContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAGlE
|
|
1
|
+
{"version":3,"file":"invocationContext.d.ts","sourceRoot":"","sources":["../../../src/utils/invocationContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAGlE;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,GAAG,EAAE,sBAAsB,GAAG,SAAS,CAAC;IACjD;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;CAClD;AAID;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,eAAe,GAAG,gBAAgB,CAAC,WAAW,CAAC,GAAG,SAAS,CAaxG;AAMD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,eAAe,GAAG,IAAI,CAU7E;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,IAAI,eAAe,GAAG,SAAS,CAMhE"}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
31
31
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
32
32
|
*/
|
|
33
|
-
import type { Ai, D1Database, DurableObjectNamespace, Queue, R2Bucket } from '@cloudflare/workers-types';
|
|
33
|
+
import type { Ai, D1Database, DurableObjectNamespace, KVNamespace, Queue, R2Bucket } from '@cloudflare/workers-types';
|
|
34
34
|
/**
|
|
35
35
|
* Checks if a value is a JSRPC proxy (service binding).
|
|
36
36
|
*
|
|
@@ -61,6 +61,11 @@ export declare function isD1Database(item: unknown): item is D1Database;
|
|
|
61
61
|
* The Ai binding has `run`, `gateway`, and `toMarkdown` methods.
|
|
62
62
|
*/
|
|
63
63
|
export declare function isAiBinding(item: unknown): item is Ai;
|
|
64
|
+
/**
|
|
65
|
+
* Duck-type check for Workers KV namespace bindings.
|
|
66
|
+
* KVNamespace has `get`, `put`, `list`, and `getWithMetadata` methods.
|
|
67
|
+
*/
|
|
68
|
+
export declare function isKVNamespace(item: unknown): item is KVNamespace;
|
|
64
69
|
/**
|
|
65
70
|
* Duck-type check for R2 Bucket bindings.
|
|
66
71
|
* R2Bucket has `head`, `put`, and `createMultipartUpload` methods.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isBinding.d.ts","sourceRoot":"","sources":["../../../src/utils/isBinding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,UAAU,EAAE,sBAAsB,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"isBinding.d.ts","sourceRoot":"","sources":["../../../src/utils/isBinding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,UAAU,EAAE,sBAAsB,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAEtH;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,OAAO,CAMtD;AAID;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,sBAAsB,CAEtF;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,KAAK,CAEpD;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,UAAU,CAQ9D;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,EAAE,CAQrD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,WAAW,CAShE;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,QAAQ,CAQ1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrapRequestHandlerWithInit.d.ts","sourceRoot":"","sources":["../../src/wrapRequestHandlerWithInit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"wrapRequestHandlerWithInit.d.ts","sourceRoot":"","sources":["../../src/wrapRequestHandlerWithInit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AA8B3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACpE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAWjE,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,iBAAiB,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,2BAA2B,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;IACxF,OAAO,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAC5C;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,KAAK,OAAO,GAAG,CAAC,OAAO,EAAE,iBAAiB,KAAK,gBAAgB,GAAG,SAAS,CAAC;AAE5E;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,cAAc,EAAE,4BAA4B,EAC5C,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,EAC7D,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,QAAQ,CAAC,CAkNnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/cloudflare",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.10.0",
|
|
4
4
|
"description": "Official Sentry SDK for Cloudflare Workers and Pages",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/cloudflare",
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@opentelemetry/api": "^1.9.1",
|
|
56
|
-
"@sentry/conventions": "^0.
|
|
57
|
-
"@sentry/core": "11.
|
|
58
|
-
"@sentry/opentelemetry": "11.
|
|
59
|
-
"@sentry/server-utils": "11.
|
|
56
|
+
"@sentry/conventions": "^0.29.0",
|
|
57
|
+
"@sentry/core": "11.10.0",
|
|
58
|
+
"@sentry/opentelemetry": "11.10.0",
|
|
59
|
+
"@sentry/server-utils": "11.10.0",
|
|
60
60
|
"magic-string": "~0.30.21"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
@@ -77,16 +77,19 @@
|
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@cloudflare/workers-types": "5.20260710.1",
|
|
80
|
-
"@
|
|
80
|
+
"@sentry-internal/rollup-utils": "11.10.0",
|
|
81
|
+
"@types/node": "^20.19.0",
|
|
82
|
+
"acorn": "^8.14.0",
|
|
83
|
+
"vite": "^8.3.1",
|
|
81
84
|
"wrangler": "4.61.0"
|
|
82
85
|
},
|
|
83
86
|
"scripts": {
|
|
84
87
|
"build": "run-p build:transpile build:types",
|
|
85
|
-
"build:dev": "
|
|
88
|
+
"build:dev": "pnpm run build",
|
|
86
89
|
"build:transpile": "rollup -c rollup.npm.config.mjs",
|
|
87
90
|
"build:types": "tsc -p tsconfig.types.json",
|
|
88
91
|
"build:watch": "run-p build:transpile:watch",
|
|
89
|
-
"build:dev:watch": "
|
|
92
|
+
"build:dev:watch": "pnpm run build:watch",
|
|
90
93
|
"build:transpile:watch": "rollup -c rollup.npm.config.mjs --watch",
|
|
91
94
|
"build:tarball": "npm pack",
|
|
92
95
|
"circularDepCheck": "madge --circular src/index.ts",
|
|
@@ -95,13 +98,10 @@
|
|
|
95
98
|
"lint": "oxlint . --type-aware",
|
|
96
99
|
"lint:types": "oxlint src --type-aware --type-check",
|
|
97
100
|
"lint:es-compatibility": "es-check es2022 ./build/cjs/prod/*.js && es-check es2022 ./build/esm/prod/*.js --module",
|
|
98
|
-
"test": "
|
|
101
|
+
"test": "pnpm run test:unit",
|
|
99
102
|
"test:unit": "vitest run",
|
|
100
103
|
"test:watch": "vitest --watch",
|
|
101
104
|
"yalc:publish": "yalc publish --push --sig"
|
|
102
105
|
},
|
|
103
|
-
"volta": {
|
|
104
|
-
"extends": "../../package.json"
|
|
105
|
-
},
|
|
106
106
|
"sideEffects": false
|
|
107
107
|
}
|