@sentry/server-utils 11.12.0 → 11.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/THIRD-PARTY-LICENSES.txt +94 -94
- package/build/cjs/chunks/config.js +3388 -0
- package/build/cjs/chunks/config.js.map +1 -0
- package/build/cjs/{vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-Bd0h-mo3.js → chunks/core-BiWIBBjf.js} +40 -23
- package/build/cjs/chunks/core-BiWIBBjf.js.map +1 -0
- package/build/cjs/chunks/core.js +2 -0
- package/build/cjs/chunks/debug-build.js +15 -0
- package/build/cjs/chunks/debug-build.js.map +1 -0
- package/build/cjs/{vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm → chunks}/esbuild.js +20 -18
- package/build/cjs/chunks/esbuild.js.map +1 -0
- package/build/cjs/chunks/exports.js +7012 -0
- package/build/cjs/chunks/exports.js.map +1 -0
- package/build/cjs/{vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm → chunks}/instrumentation-serde-C-Xxv-jj.js +14 -6
- package/build/cjs/chunks/instrumentation-serde-C-Xxv-jj.js.map +1 -0
- package/build/cjs/chunks/module-details-from-path.js +15969 -0
- package/build/cjs/chunks/module-details-from-path.js.map +1 -0
- package/build/cjs/chunks/moduleInjectedTransform.js +10882 -0
- package/build/cjs/chunks/moduleInjectedTransform.js.map +1 -0
- package/build/cjs/chunks/options.js +66 -0
- package/build/cjs/chunks/options.js.map +1 -0
- package/build/cjs/chunks/pi-ai.js +80 -0
- package/build/cjs/chunks/pi-ai.js.map +1 -0
- package/build/cjs/chunks/registration-only.js +38 -0
- package/build/cjs/chunks/registration-only.js.map +1 -0
- package/build/cjs/chunks/resolve.js +75 -0
- package/build/cjs/chunks/resolve.js.map +1 -0
- package/build/cjs/chunks/rolldown-runtime.js +48 -0
- package/build/cjs/{vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-DCG8HLmh.js → chunks/rollup-CzqrjlS4.js} +17 -19
- package/build/cjs/chunks/rollup-CzqrjlS4.js.map +1 -0
- package/build/cjs/index.js +10409 -167
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.no-diagnostic-channels.js +30 -53
- package/build/cjs/index.request-handler.js +240 -7
- package/build/cjs/index.request-handler.js.map +1 -1
- package/build/cjs/orchestrion/bundler/bun.js +102 -35
- package/build/cjs/orchestrion/bundler/bun.js.map +1 -1
- package/build/cjs/orchestrion/bundler/esbuild.js +59 -50
- package/build/cjs/orchestrion/bundler/esbuild.js.map +1 -1
- package/build/cjs/orchestrion/bundler/load-hook.js +24 -21
- package/build/cjs/orchestrion/bundler/load-hook.js.map +1 -1
- package/build/cjs/orchestrion/bundler/rollup.js +79 -70
- package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
- package/build/cjs/orchestrion/bundler/vite.js +212 -165
- package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
- package/build/cjs/orchestrion/bundler/webpack-loader.js +134 -16
- package/build/cjs/orchestrion/bundler/webpack-loader.js.map +1 -1
- package/build/cjs/orchestrion/bundler/webpack.js +157 -77
- package/build/cjs/orchestrion/bundler/webpack.js.map +1 -1
- package/build/cjs/orchestrion/config/index.js +12 -129
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/defineProperty.js +17 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/assertClassBrand.js +9 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/checkPrivateRedeclaration.js +8 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateFieldGet2.js +9 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateFieldInitSpec.js +9 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateFieldSet2.js +9 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateMethodInitSpec.js +9 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/defineProperty.js +11 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/toPrimitive.js +13 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/toPropertyKey.js +8 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/typeof.js +10 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/toPrimitive.js +19 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/toPropertyKey.js +15 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/typeof.js +15 -0
- package/build/esm/_virtual/_cjs/require_array_set.js +2 -0
- package/build/esm/_virtual/_cjs/require_astring.js +2 -0
- package/build/esm/_virtual/_cjs/require_base64.js +2 -0
- package/build/esm/_virtual/_cjs/require_base64_vlq.js +2 -0
- package/build/esm/_virtual/_cjs/require_binary_search.js +2 -0
- package/build/esm/_virtual/_cjs/require_esquery_min.js +2 -0
- package/build/esm/_virtual/_cjs/require_mapping_list.js +2 -0
- package/build/esm/_virtual/_cjs/require_meriyah.js +2 -0
- package/build/esm/_virtual/_cjs/require_quick_sort.js +2 -0
- package/build/esm/_virtual/_cjs/require_source_map.js +2 -0
- package/build/esm/_virtual/_cjs/require_source_map_consumer.js +2 -0
- package/build/esm/_virtual/_cjs/require_source_map_generator.js +2 -0
- package/build/esm/_virtual/_cjs/require_source_node.js +2 -0
- package/build/esm/_virtual/_cjs/require_util.js +2 -0
- package/build/esm/_virtual/_rolldown/runtime.js +35 -0
- package/build/esm/ai/anthropic-ai/constants.js +10 -6
- package/build/esm/ai/anthropic-ai/constants.js.map +1 -1
- package/build/esm/ai/anthropic-ai/index.js +183 -199
- package/build/esm/ai/anthropic-ai/index.js.map +1 -1
- package/build/esm/ai/anthropic-ai/streaming.js +176 -140
- package/build/esm/ai/anthropic-ai/streaming.js.map +1 -1
- package/build/esm/ai/anthropic-ai/tool-runner.js +99 -125
- package/build/esm/ai/anthropic-ai/tool-runner.js.map +1 -1
- package/build/esm/ai/anthropic-ai/utils.js +72 -52
- package/build/esm/ai/anthropic-ai/utils.js.map +1 -1
- package/build/esm/ai/core/apiPromise.js +35 -47
- package/build/esm/ai/core/apiPromise.js.map +1 -1
- package/build/esm/ai/core/gen-ai-attributes.js +29 -2
- package/build/esm/ai/core/gen-ai-attributes.js.map +1 -1
- package/build/esm/ai/core/streaming-tool-calls.js +37 -0
- package/build/esm/ai/core/streaming-tool-calls.js.map +1 -0
- package/build/esm/ai/core/utils.js +200 -144
- package/build/esm/ai/core/utils.js.map +1 -1
- package/build/esm/ai/flue/constants.js +31 -6
- package/build/esm/ai/flue/constants.js.map +1 -1
- package/build/esm/ai/flue/index.js +140 -134
- package/build/esm/ai/flue/index.js.map +1 -1
- package/build/esm/ai/flue/utils.js +93 -179
- package/build/esm/ai/flue/utils.js.map +1 -1
- package/build/esm/ai/google-genai/constants.js +15 -8
- package/build/esm/ai/google-genai/constants.js.map +1 -1
- package/build/esm/ai/google-genai/index.js +240 -254
- package/build/esm/ai/google-genai/index.js.map +1 -1
- package/build/esm/ai/google-genai/streaming.js +89 -66
- package/build/esm/ai/google-genai/streaming.js.map +1 -1
- package/build/esm/ai/google-genai/utils.js +115 -102
- package/build/esm/ai/google-genai/utils.js.map +1 -1
- package/build/esm/ai/index.js +12 -0
- package/build/esm/ai/langchain/constants.js +9 -8
- package/build/esm/ai/langchain/constants.js.map +1 -1
- package/build/esm/ai/langchain/embeddings.js +83 -67
- package/build/esm/ai/langchain/embeddings.js.map +1 -1
- package/build/esm/ai/langchain/index.js +249 -307
- package/build/esm/ai/langchain/index.js.map +1 -1
- package/build/esm/ai/langchain/typesafe-classifier.js +43 -43
- package/build/esm/ai/langchain/typesafe-classifier.js.map +1 -1
- package/build/esm/ai/langchain/utils.js +323 -288
- package/build/esm/ai/langchain/utils.js.map +1 -1
- package/build/esm/ai/langgraph/agent-span.js +73 -79
- package/build/esm/ai/langgraph/agent-span.js.map +1 -1
- package/build/esm/ai/langgraph/constants.js +3 -2
- package/build/esm/ai/langgraph/constants.js.map +1 -1
- package/build/esm/ai/langgraph/index.js +111 -109
- package/build/esm/ai/langgraph/index.js.map +1 -1
- package/build/esm/ai/langgraph/stream.js +84 -110
- package/build/esm/ai/langgraph/stream.js.map +1 -1
- package/build/esm/ai/langgraph/utils.js +171 -195
- package/build/esm/ai/langgraph/utils.js.map +1 -1
- package/build/esm/ai/mastra/classifier-evaluation.js +25 -18
- package/build/esm/ai/mastra/classifier-evaluation.js.map +1 -1
- package/build/esm/ai/mastra/constants.js +63 -18
- package/build/esm/ai/mastra/constants.js.map +1 -1
- package/build/esm/ai/mastra/index.js +164 -190
- package/build/esm/ai/mastra/index.js.map +1 -1
- package/build/esm/ai/mastra/span-registry.js +17 -8
- package/build/esm/ai/mastra/span-registry.js.map +1 -1
- package/build/esm/ai/mastra/utils.js +110 -137
- package/build/esm/ai/mastra/utils.js.map +1 -1
- package/build/esm/ai/mistral/constants.js +19 -9
- package/build/esm/ai/mistral/constants.js.map +1 -1
- package/build/esm/ai/mistral/index.js +111 -113
- package/build/esm/ai/mistral/index.js.map +1 -1
- package/build/esm/ai/mistral/streaming.js +183 -186
- package/build/esm/ai/mistral/streaming.js.map +1 -1
- package/build/esm/ai/mistral/utils.js +67 -73
- package/build/esm/ai/mistral/utils.js.map +1 -1
- package/build/esm/ai/openai/constants.js +20 -22
- package/build/esm/ai/openai/constants.js.map +1 -1
- package/build/esm/ai/openai/index.js +151 -159
- package/build/esm/ai/openai/index.js.map +1 -1
- package/build/esm/ai/openai/mapping.js +76 -53
- package/build/esm/ai/openai/mapping.js.map +1 -1
- package/build/esm/ai/openai/streaming.js +151 -155
- package/build/esm/ai/openai/streaming.js.map +1 -1
- package/build/esm/ai/openai/utils.js +94 -110
- package/build/esm/ai/openai/utils.js.map +1 -1
- package/build/esm/ai/pi-ai/chat.js +74 -0
- package/build/esm/ai/pi-ai/chat.js.map +1 -0
- package/build/esm/ai/pi-ai/constants.js +6 -0
- package/build/esm/ai/pi-ai/constants.js.map +1 -0
- package/build/esm/ai/pi-ai/messages.js +114 -107
- package/build/esm/ai/pi-ai/messages.js.map +1 -1
- package/build/esm/ai/pi-ai/providers.js +21 -18
- package/build/esm/ai/pi-ai/providers.js.map +1 -1
- package/build/esm/ai/pi-ai/recording.js +28 -0
- package/build/esm/ai/pi-ai/recording.js.map +1 -0
- package/build/esm/ai/pi-ai/usage.js +31 -27
- package/build/esm/ai/pi-ai/usage.js.map +1 -1
- package/build/esm/ai/pi-durable/constants.js +15 -5
- package/build/esm/ai/pi-durable/constants.js.map +1 -1
- package/build/esm/ai/pi-durable/index.js +164 -165
- package/build/esm/ai/pi-durable/index.js.map +1 -1
- package/build/esm/ai/pi-durable/runs.js +134 -136
- package/build/esm/ai/pi-durable/runs.js.map +1 -1
- package/build/esm/ai/pi-durable/tools.js +152 -160
- package/build/esm/ai/pi-durable/tools.js.map +1 -1
- package/build/esm/ai/pi-durable/utils.js +6 -4
- package/build/esm/ai/pi-durable/utils.js.map +1 -1
- package/build/esm/ai/typesafe/constants.js +3 -2
- package/build/esm/ai/typesafe/constants.js.map +1 -1
- package/build/esm/ai/typesafe/index.js +82 -94
- package/build/esm/ai/typesafe/index.js.map +1 -1
- package/build/esm/ai/vercel-ai/index.js +55 -60
- package/build/esm/ai/vercel-ai/index.js.map +1 -1
- package/build/esm/ai/workers-ai/constants.js +15 -2
- package/build/esm/ai/workers-ai/constants.js.map +1 -1
- package/build/esm/ai/workers-ai/index.js +82 -78
- package/build/esm/ai/workers-ai/index.js.map +1 -1
- package/build/esm/ai/workers-ai/streaming.js +136 -140
- package/build/esm/ai/workers-ai/streaming.js.map +1 -1
- package/build/esm/ai/workers-ai/utils.js +131 -143
- package/build/esm/ai/workers-ai/utils.js.map +1 -1
- package/build/esm/async-context.js +74 -63
- package/build/esm/async-context.js.map +1 -1
- package/build/esm/debug-build.js +9 -3
- package/build/esm/debug-build.js.map +1 -1
- package/build/esm/eve.js +61 -22
- package/build/esm/eve.js.map +1 -1
- package/build/esm/exports.js +21 -0
- package/build/esm/index.js +82 -76
- package/build/esm/index.js.map +1 -1
- package/build/esm/index.no-diagnostic-channels.js +21 -20
- package/build/esm/index.request-handler.js +1 -2
- package/build/esm/integrations/amqplib.js +338 -349
- package/build/esm/integrations/amqplib.js.map +1 -1
- package/build/esm/integrations/anthropic.js +154 -120
- package/build/esm/integrations/anthropic.js.map +1 -1
- package/build/esm/integrations/aws-sdk/constants.js +11 -2
- package/build/esm/integrations/aws-sdk/constants.js.map +1 -1
- package/build/esm/integrations/aws-sdk/index.js +118 -134
- package/build/esm/integrations/aws-sdk/index.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/MessageAttributes.js +30 -31
- package/build/esm/integrations/aws-sdk/services/MessageAttributes.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/ServicesExtensions.js +38 -44
- package/build/esm/integrations/aws-sdk/services/ServicesExtensions.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/bedrock-runtime-content.js +144 -0
- package/build/esm/integrations/aws-sdk/services/bedrock-runtime-content.js.map +1 -0
- package/build/esm/integrations/aws-sdk/services/bedrock-runtime.js +316 -454
- package/build/esm/integrations/aws-sdk/services/bedrock-runtime.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/dynamodb.js +67 -125
- package/build/esm/integrations/aws-sdk/services/dynamodb.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/index.js +1 -0
- package/build/esm/integrations/aws-sdk/services/kinesis.js +12 -16
- package/build/esm/integrations/aws-sdk/services/kinesis.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/lambda.js +51 -57
- package/build/esm/integrations/aws-sdk/services/lambda.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/s3.js +12 -16
- package/build/esm/integrations/aws-sdk/services/s3.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/secretsmanager.js +16 -22
- package/build/esm/integrations/aws-sdk/services/secretsmanager.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/sns.js +66 -70
- package/build/esm/integrations/aws-sdk/services/sns.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/sqs.js +104 -124
- package/build/esm/integrations/aws-sdk/services/sqs.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/stepfunctions.js +14 -20
- package/build/esm/integrations/aws-sdk/services/stepfunctions.js.map +1 -1
- package/build/esm/integrations/aws-sdk/utils.js +18 -19
- package/build/esm/integrations/aws-sdk/utils.js.map +1 -1
- package/build/esm/integrations/cron.js +33 -35
- package/build/esm/integrations/cron.js.map +1 -1
- package/build/esm/integrations/dataloader.js +101 -93
- package/build/esm/integrations/dataloader.js.map +1 -1
- package/build/esm/integrations/express/error-handled.js +13 -8
- package/build/esm/integrations/express/error-handled.js.map +1 -1
- package/build/esm/integrations/express/error-handler.js +49 -31
- package/build/esm/integrations/express/error-handler.js.map +1 -1
- package/build/esm/integrations/express/index.js +26 -17
- package/build/esm/integrations/express/index.js.map +1 -1
- package/build/esm/integrations/express/instrumentation.js +182 -196
- package/build/esm/integrations/express/instrumentation.js.map +1 -1
- package/build/esm/integrations/express/route.js +70 -45
- package/build/esm/integrations/express/route.js.map +1 -1
- package/build/esm/integrations/express/utils.js +11 -5
- package/build/esm/integrations/express/utils.js.map +1 -1
- package/build/esm/integrations/fastify/errors.js +33 -26
- package/build/esm/integrations/fastify/errors.js.map +1 -1
- package/build/esm/integrations/fastify/index.js +41 -21
- package/build/esm/integrations/fastify/index.js.map +1 -1
- package/build/esm/integrations/fastify/instrumentation.js +188 -208
- package/build/esm/integrations/fastify/instrumentation.js.map +1 -1
- package/build/esm/integrations/fastify/utils.js +21 -15
- package/build/esm/integrations/fastify/utils.js.map +1 -1
- package/build/esm/integrations/firebase/firestore.js +69 -70
- package/build/esm/integrations/firebase/firestore.js.map +1 -1
- package/build/esm/integrations/firebase/functions.js +66 -68
- package/build/esm/integrations/firebase/functions.js.map +1 -1
- package/build/esm/integrations/firebase/index.js +21 -13
- package/build/esm/integrations/firebase/index.js.map +1 -1
- package/build/esm/integrations/firebase/instrumentation.js +86 -47
- package/build/esm/integrations/firebase/instrumentation.js.map +1 -1
- package/build/esm/integrations/flue.js +46 -33
- package/build/esm/integrations/flue.js.map +1 -1
- package/build/esm/integrations/generic-pool.js +30 -27
- package/build/esm/integrations/generic-pool.js.map +1 -1
- package/build/esm/integrations/google-genai.js +89 -87
- package/build/esm/integrations/google-genai.js.map +1 -1
- package/build/esm/integrations/graphql/constants.js +6 -4
- package/build/esm/integrations/graphql/constants.js.map +1 -1
- package/build/esm/integrations/graphql/graphql-dc-subscriber.js +95 -99
- package/build/esm/integrations/graphql/graphql-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/graphql/index.js +38 -47
- package/build/esm/integrations/graphql/index.js.map +1 -1
- package/build/esm/integrations/graphql/resolvers.js +117 -142
- package/build/esm/integrations/graphql/resolvers.js.map +1 -1
- package/build/esm/integrations/graphql/spans.js +110 -93
- package/build/esm/integrations/graphql/spans.js.map +1 -1
- package/build/esm/integrations/graphql/utils.js +84 -79
- package/build/esm/integrations/graphql/utils.js.map +1 -1
- package/build/esm/integrations/groq.js +22 -16
- package/build/esm/integrations/groq.js.map +1 -1
- package/build/esm/integrations/hapi/hapi-error-handler.js +47 -38
- package/build/esm/integrations/hapi/hapi-error-handler.js.map +1 -1
- package/build/esm/integrations/hapi/hapi-types.js +20 -13
- package/build/esm/integrations/hapi/hapi-types.js.map +1 -1
- package/build/esm/integrations/hapi/hapi-utils.js +165 -166
- package/build/esm/integrations/hapi/hapi-utils.js.map +1 -1
- package/build/esm/integrations/hapi/index.js +53 -64
- package/build/esm/integrations/hapi/index.js.map +1 -1
- package/build/esm/integrations/hono/applyPatches.js +43 -26
- package/build/esm/integrations/hono/applyPatches.js.map +1 -1
- package/build/esm/integrations/hono/connInfo.js +39 -30
- package/build/esm/integrations/hono/connInfo.js.map +1 -1
- package/build/esm/integrations/hono/constants.js +3 -2
- package/build/esm/integrations/hono/constants.js.map +1 -1
- package/build/esm/integrations/hono/createHonoMiddleware.js +59 -36
- package/build/esm/integrations/hono/createHonoMiddleware.js.map +1 -1
- package/build/esm/integrations/hono/defaultShouldHandleError.js +17 -9
- package/build/esm/integrations/hono/defaultShouldHandleError.js.map +1 -1
- package/build/esm/integrations/hono/hono-context.js +13 -9
- package/build/esm/integrations/hono/hono-context.js.map +1 -1
- package/build/esm/integrations/hono/honoIntegration.js +114 -78
- package/build/esm/integrations/hono/honoIntegration.js.map +1 -1
- package/build/esm/integrations/hono/index.js +3 -0
- package/build/esm/integrations/hono/isMiddleware.js +26 -13
- package/build/esm/integrations/hono/isMiddleware.js.map +1 -1
- package/build/esm/integrations/hono/matchResult.js +59 -64
- package/build/esm/integrations/hono/matchResult.js.map +1 -1
- package/build/esm/integrations/hono/middlewareHandlers.js +88 -82
- package/build/esm/integrations/hono/middlewareHandlers.js.map +1 -1
- package/build/esm/integrations/hono/patchAppRequest.js +77 -62
- package/build/esm/integrations/hono/patchAppRequest.js.map +1 -1
- package/build/esm/integrations/hono/patchAppUse.js +71 -56
- package/build/esm/integrations/hono/patchAppUse.js.map +1 -1
- package/build/esm/integrations/hono/patchRoute.js +73 -59
- package/build/esm/integrations/hono/patchRoute.js.map +1 -1
- package/build/esm/integrations/hono/resolveRouteName.js +19 -22
- package/build/esm/integrations/hono/resolveRouteName.js.map +1 -1
- package/build/esm/integrations/hono/sentryOriginalTraps.js +23 -16
- package/build/esm/integrations/hono/sentryOriginalTraps.js.map +1 -1
- package/build/esm/integrations/hono/wrapMiddlewareSpan.js +45 -42
- package/build/esm/integrations/hono/wrapMiddlewareSpan.js.map +1 -1
- package/build/esm/integrations/index.js +92 -85
- package/build/esm/integrations/index.js.map +1 -1
- package/build/esm/integrations/kafkajs/consumer.js +58 -60
- package/build/esm/integrations/kafkajs/consumer.js.map +1 -1
- package/build/esm/integrations/kafkajs/index.js +53 -57
- package/build/esm/integrations/kafkajs/index.js.map +1 -1
- package/build/esm/integrations/kafkajs/semconv.js +4 -2
- package/build/esm/integrations/kafkajs/semconv.js.map +1 -1
- package/build/esm/integrations/kafkajs/spans.js +107 -101
- package/build/esm/integrations/kafkajs/spans.js.map +1 -1
- package/build/esm/integrations/knex.js +133 -157
- package/build/esm/integrations/knex.js.map +1 -1
- package/build/esm/integrations/koa/index.js +122 -133
- package/build/esm/integrations/koa/index.js.map +1 -1
- package/build/esm/integrations/koa/koa-error-handler.js +43 -25
- package/build/esm/integrations/koa/koa-error-handler.js.map +1 -1
- package/build/esm/integrations/langchain.js +66 -75
- package/build/esm/integrations/langchain.js.map +1 -1
- package/build/esm/integrations/langgraph.js +55 -61
- package/build/esm/integrations/langgraph.js.map +1 -1
- package/build/esm/integrations/lru-memoizer.js +22 -20
- package/build/esm/integrations/lru-memoizer.js.map +1 -1
- package/build/esm/integrations/mastra-classifier.js +47 -50
- package/build/esm/integrations/mastra-classifier.js.map +1 -1
- package/build/esm/integrations/mastra.js +208 -209
- package/build/esm/integrations/mastra.js.map +1 -1
- package/build/esm/integrations/mcp-server.js +28 -28
- package/build/esm/integrations/mcp-server.js.map +1 -1
- package/build/esm/integrations/mistral.js +73 -56
- package/build/esm/integrations/mistral.js.map +1 -1
- package/build/esm/integrations/mongodb/index.js +101 -76
- package/build/esm/integrations/mongodb/index.js.map +1 -1
- package/build/esm/integrations/mongodb/mongodb-span.js +110 -106
- package/build/esm/integrations/mongodb/mongodb-span.js.map +1 -1
- package/build/esm/integrations/mongoose/index.js +82 -89
- package/build/esm/integrations/mongoose/index.js.map +1 -1
- package/build/esm/integrations/mongoose/mongoose-dc-subscriber.js +85 -72
- package/build/esm/integrations/mongoose/mongoose-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/mongoose/mongoose-legacy-span.js +39 -36
- package/build/esm/integrations/mongoose/mongoose-legacy-span.js.map +1 -1
- package/build/esm/integrations/mysql.js +74 -83
- package/build/esm/integrations/mysql.js.map +1 -1
- package/build/esm/integrations/mysql2/index.js +86 -61
- package/build/esm/integrations/mysql2/index.js.map +1 -1
- package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js +51 -38
- package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/neon.js +84 -86
- package/build/esm/integrations/neon.js.map +1 -1
- package/build/esm/integrations/nitro/captureStorageEvents.js +97 -111
- package/build/esm/integrations/nitro/captureStorageEvents.js.map +1 -1
- package/build/esm/integrations/nitro/captureTracingEvents.js +139 -181
- package/build/esm/integrations/nitro/captureTracingEvents.js.map +1 -1
- package/build/esm/integrations/nitro/index.js +26 -20
- package/build/esm/integrations/nitro/index.js.map +1 -1
- package/build/esm/integrations/nitro/setServerTimingHeaders.js +31 -33
- package/build/esm/integrations/nitro/setServerTimingHeaders.js.map +1 -1
- package/build/esm/integrations/node-cron.js +53 -48
- package/build/esm/integrations/node-cron.js.map +1 -1
- package/build/esm/integrations/node-schedule.js +45 -51
- package/build/esm/integrations/node-schedule.js.map +1 -1
- package/build/esm/integrations/openai-compatible.js +84 -79
- package/build/esm/integrations/openai-compatible.js.map +1 -1
- package/build/esm/integrations/openai.js +85 -75
- package/build/esm/integrations/openai.js.map +1 -1
- package/build/esm/integrations/pg.js +147 -130
- package/build/esm/integrations/pg.js.map +1 -1
- package/build/esm/integrations/pi-ai.js +69 -0
- package/build/esm/integrations/pi-ai.js.map +1 -0
- package/build/esm/integrations/pi-durable.js +46 -42
- package/build/esm/integrations/pi-durable.js.map +1 -1
- package/build/esm/integrations/postgresjs/index.js +124 -126
- package/build/esm/integrations/postgresjs/index.js.map +1 -1
- package/build/esm/integrations/postgresjs/postgresjs-dc-subscriber.js +72 -64
- package/build/esm/integrations/postgresjs/postgresjs-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/postgresjs-wrapper.js +232 -187
- package/build/esm/integrations/postgresjs-wrapper.js.map +1 -1
- package/build/esm/integrations/prisma/global.js +6 -5
- package/build/esm/integrations/prisma/global.js.map +1 -1
- package/build/esm/integrations/prisma/index.js +44 -26
- package/build/esm/integrations/prisma/index.js.map +1 -1
- package/build/esm/integrations/prisma/orchestrion.js +96 -115
- package/build/esm/integrations/prisma/orchestrion.js.map +1 -1
- package/build/esm/integrations/prisma/tracing-helper.js +192 -208
- package/build/esm/integrations/prisma/tracing-helper.js.map +1 -1
- package/build/esm/integrations/redis/index.js +173 -190
- package/build/esm/integrations/redis/index.js.map +1 -1
- package/build/esm/integrations/redis/ioredis-channel-subscriber.js +78 -72
- package/build/esm/integrations/redis/ioredis-channel-subscriber.js.map +1 -1
- package/build/esm/integrations/redis/redis-cache.js +110 -111
- package/build/esm/integrations/redis/redis-cache.js.map +1 -1
- package/build/esm/integrations/redis/redis-dc-subscriber.js +79 -84
- package/build/esm/integrations/redis/redis-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/redis/redis-span-name.js +31 -21
- package/build/esm/integrations/redis/redis-span-name.js.map +1 -1
- package/build/esm/integrations/redis/redis-statement-serializer.js +38 -27
- package/build/esm/integrations/redis/redis-statement-serializer.js.map +1 -1
- package/build/esm/integrations/serveTunnel.js +30 -24
- package/build/esm/integrations/serveTunnel.js.map +1 -1
- package/build/esm/integrations/tedious.js +132 -132
- package/build/esm/integrations/tedious.js.map +1 -1
- package/build/esm/integrations/together-ai.js +22 -16
- package/build/esm/integrations/together-ai.js.map +1 -1
- package/build/esm/integrations/typesafe.js +32 -37
- package/build/esm/integrations/typesafe.js.map +1 -1
- package/build/esm/integrations/vercel-ai/gen-ai-recording-mode.js +20 -4
- package/build/esm/integrations/vercel-ai/gen-ai-recording-mode.js.map +1 -1
- package/build/esm/integrations/vercel-ai/index.js +29 -26
- package/build/esm/integrations/vercel-ai/index.js.map +1 -1
- package/build/esm/integrations/vercel-ai/util.js +86 -92
- package/build/esm/integrations/vercel-ai/util.js.map +1 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +507 -514
- package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js +386 -361
- package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-tool-telemetry.js +61 -34
- package/build/esm/integrations/vercel-ai/vercel-ai-tool-telemetry.js.map +1 -1
- package/build/esm/opentelemetry.js +70 -35
- package/build/esm/opentelemetry.js.map +1 -1
- package/build/esm/orchestrion/bundler/bun.js +42 -32
- package/build/esm/orchestrion/bundler/bun.js.map +1 -1
- package/build/esm/orchestrion/bundler/esbuild.js +57 -47
- package/build/esm/orchestrion/bundler/esbuild.js.map +1 -1
- package/build/esm/orchestrion/bundler/externalRequire.js +65 -62
- package/build/esm/orchestrion/bundler/externalRequire.js.map +1 -1
- package/build/esm/orchestrion/bundler/load-hook.js +23 -19
- package/build/esm/orchestrion/bundler/load-hook.js.map +1 -1
- package/build/esm/orchestrion/bundler/moduleInjectedTransform.js +118 -44
- package/build/esm/orchestrion/bundler/moduleInjectedTransform.js.map +1 -1
- package/build/esm/orchestrion/bundler/options.js +42 -13
- package/build/esm/orchestrion/bundler/options.js.map +1 -1
- package/build/esm/orchestrion/bundler/resolve.js +43 -13
- package/build/esm/orchestrion/bundler/resolve.js.map +1 -1
- package/build/esm/orchestrion/bundler/rollup.js +78 -67
- package/build/esm/orchestrion/bundler/rollup.js.map +1 -1
- package/build/esm/orchestrion/bundler/vite.js +122 -160
- package/build/esm/orchestrion/bundler/vite.js.map +1 -1
- package/build/esm/orchestrion/bundler/webpack-loader.js +18 -14
- package/build/esm/orchestrion/bundler/webpack-loader.js.map +1 -1
- package/build/esm/orchestrion/bundler/webpack.js +57 -71
- package/build/esm/orchestrion/bundler/webpack.js.map +1 -1
- package/build/esm/orchestrion/channels.js +105 -87
- package/build/esm/orchestrion/channels.js.map +1 -1
- package/build/esm/orchestrion/config/amqplib.js +152 -83
- package/build/esm/orchestrion/config/amqplib.js.map +1 -1
- package/build/esm/orchestrion/config/anthropic-ai.js +96 -43
- package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
- package/build/esm/orchestrion/config/aws-sdk.js +46 -22
- package/build/esm/orchestrion/config/aws-sdk.js.map +1 -1
- package/build/esm/orchestrion/config/channel-integration-definitions.js +193 -51
- package/build/esm/orchestrion/config/channel-integration-definitions.js.map +1 -1
- package/build/esm/orchestrion/config/cron.js +27 -18
- package/build/esm/orchestrion/config/cron.js.map +1 -1
- package/build/esm/orchestrion/config/dataloader.js +62 -45
- package/build/esm/orchestrion/config/dataloader.js.map +1 -1
- package/build/esm/orchestrion/config/express.js +80 -71
- package/build/esm/orchestrion/config/express.js.map +1 -1
- package/build/esm/orchestrion/config/firebase.js +133 -70
- package/build/esm/orchestrion/config/firebase.js.map +1 -1
- package/build/esm/orchestrion/config/flue.js +15 -7
- package/build/esm/orchestrion/config/flue.js.map +1 -1
- package/build/esm/orchestrion/config/generic-pool.js +29 -19
- package/build/esm/orchestrion/config/generic-pool.js.map +1 -1
- package/build/esm/orchestrion/config/google-genai.js +50 -33
- package/build/esm/orchestrion/config/google-genai.js.map +1 -1
- package/build/esm/orchestrion/config/graphql.js +43 -22
- package/build/esm/orchestrion/config/graphql.js.map +1 -1
- package/build/esm/orchestrion/config/groq.js +9 -9
- package/build/esm/orchestrion/config/groq.js.map +1 -1
- package/build/esm/orchestrion/config/hapi.js +56 -38
- package/build/esm/orchestrion/config/hapi.js.map +1 -1
- package/build/esm/orchestrion/config/hono.js +23 -26
- package/build/esm/orchestrion/config/hono.js.map +1 -1
- package/build/esm/orchestrion/config/index.js +177 -111
- package/build/esm/orchestrion/config/index.js.map +1 -1
- package/build/esm/orchestrion/config/ioredis.js +65 -31
- package/build/esm/orchestrion/config/ioredis.js.map +1 -1
- package/build/esm/orchestrion/config/kafkajs.js +29 -26
- package/build/esm/orchestrion/config/kafkajs.js.map +1 -1
- package/build/esm/orchestrion/config/knex.js +57 -29
- package/build/esm/orchestrion/config/knex.js.map +1 -1
- package/build/esm/orchestrion/config/koa.js +31 -24
- package/build/esm/orchestrion/config/koa.js.map +1 -1
- package/build/esm/orchestrion/config/langchain.js +78 -49
- package/build/esm/orchestrion/config/langchain.js.map +1 -1
- package/build/esm/orchestrion/config/langgraph.js +25 -20
- package/build/esm/orchestrion/config/langgraph.js.map +1 -1
- package/build/esm/orchestrion/config/lru-memoizer.js +17 -15
- package/build/esm/orchestrion/config/lru-memoizer.js.map +1 -1
- package/build/esm/orchestrion/config/mastra.js +44 -44
- package/build/esm/orchestrion/config/mastra.js.map +1 -1
- package/build/esm/orchestrion/config/mcp-server.js +24 -32
- package/build/esm/orchestrion/config/mcp-server.js.map +1 -1
- package/build/esm/orchestrion/config/mistral.js +87 -47
- package/build/esm/orchestrion/config/mistral.js.map +1 -1
- package/build/esm/orchestrion/config/module-names.js +9 -3
- package/build/esm/orchestrion/config/module-names.js.map +1 -1
- package/build/esm/orchestrion/config/mongodb.js +101 -61
- package/build/esm/orchestrion/config/mongodb.js.map +1 -1
- package/build/esm/orchestrion/config/mongoose.js +131 -100
- package/build/esm/orchestrion/config/mongoose.js.map +1 -1
- package/build/esm/orchestrion/config/mysql.js +17 -14
- package/build/esm/orchestrion/config/mysql.js.map +1 -1
- package/build/esm/orchestrion/config/mysql2.js +64 -28
- package/build/esm/orchestrion/config/mysql2.js.map +1 -1
- package/build/esm/orchestrion/config/neon.js +33 -36
- package/build/esm/orchestrion/config/neon.js.map +1 -1
- package/build/esm/orchestrion/config/nestjs.js +151 -120
- package/build/esm/orchestrion/config/nestjs.js.map +1 -1
- package/build/esm/orchestrion/config/nitro.js +25 -7
- package/build/esm/orchestrion/config/nitro.js.map +1 -1
- package/build/esm/orchestrion/config/node-cron.js +74 -43
- package/build/esm/orchestrion/config/node-cron.js.map +1 -1
- package/build/esm/orchestrion/config/node-schedule.js +26 -21
- package/build/esm/orchestrion/config/node-schedule.js.map +1 -1
- package/build/esm/orchestrion/config/openai-compatible.js +42 -15
- package/build/esm/orchestrion/config/openai-compatible.js.map +1 -1
- package/build/esm/orchestrion/config/openai.js +72 -39
- package/build/esm/orchestrion/config/openai.js.map +1 -1
- package/build/esm/orchestrion/config/pg.js +70 -45
- package/build/esm/orchestrion/config/pg.js.map +1 -1
- package/build/esm/orchestrion/config/pi-ai.js +49 -0
- package/build/esm/orchestrion/config/pi-ai.js.map +1 -0
- package/build/esm/orchestrion/config/pi-durable.js +36 -26
- package/build/esm/orchestrion/config/pi-durable.js.map +1 -1
- package/build/esm/orchestrion/config/postgres.js +63 -48
- package/build/esm/orchestrion/config/postgres.js.map +1 -1
- package/build/esm/orchestrion/config/prisma.js +46 -36
- package/build/esm/orchestrion/config/prisma.js.map +1 -1
- package/build/esm/orchestrion/config/redis.js +133 -72
- package/build/esm/orchestrion/config/redis.js.map +1 -1
- package/build/esm/orchestrion/config/registration-only.js +23 -8
- package/build/esm/orchestrion/config/registration-only.js.map +1 -1
- package/build/esm/orchestrion/config/remix-v3.js +68 -47
- package/build/esm/orchestrion/config/remix-v3.js.map +1 -1
- package/build/esm/orchestrion/config/remix.js +77 -45
- package/build/esm/orchestrion/config/remix.js.map +1 -1
- package/build/esm/orchestrion/config/tedious.js +31 -16
- package/build/esm/orchestrion/config/tedious.js.map +1 -1
- package/build/esm/orchestrion/config/together-ai.js +17 -15
- package/build/esm/orchestrion/config/together-ai.js.map +1 -1
- package/build/esm/orchestrion/config/typesafe.js +16 -10
- package/build/esm/orchestrion/config/typesafe.js.map +1 -1
- package/build/esm/orchestrion/config/vercel-ai.js +54 -44
- package/build/esm/orchestrion/config/vercel-ai.js.map +1 -1
- package/build/esm/orchestrion/detect.js +50 -34
- package/build/esm/orchestrion/detect.js.map +1 -1
- package/build/esm/orchestrion/instrumentation.js +90 -70
- package/build/esm/orchestrion/instrumentation.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/tracing-channel.js +143 -135
- package/build/esm/tracing-channel.js.map +1 -1
- package/build/esm/utils/cronMonitoring.js +152 -125
- package/build/esm/utils/cronMonitoring.js.map +1 -1
- package/build/esm/utils/diagnosticsChannel.js +26 -21
- package/build/esm/utils/diagnosticsChannel.js.map +1 -1
- package/build/esm/utils/moduleInjected.js +35 -13
- package/build/esm/utils/moduleInjected.js.map +1 -1
- package/build/esm/utils/monitorStream.js +52 -58
- package/build/esm/utils/monitorStream.js.map +1 -1
- package/build/esm/utils/runtime.js +10 -8
- package/build/esm/utils/runtime.js.map +1 -1
- package/build/esm/utils/setHttpServerSpanRouteAttribute.js +22 -21
- package/build/esm/utils/setHttpServerSpanRouteAttribute.js.map +1 -1
- package/build/esm/utils/sql.js +260 -225
- package/build/esm/utils/sql.js.map +1 -1
- package/build/esm/utils/tunnelServer.js +27 -23
- package/build/esm/utils/tunnelServer.js.map +1 -1
- package/build/esm/utils/withCleanScopes.js +17 -12
- package/build/esm/utils/withCleanScopes.js.map +1 -1
- package/build/esm/utils/wrapServerRequestHandler.js +180 -208
- package/build/esm/utils/wrapServerRequestHandler.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer/index.js +9 -5
- package/build/esm/vendored/@apm-js-collab/code-transformer/index.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/index.js +21 -9
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/matcher.js +80 -83
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js +289 -313
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js +488 -284
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js +5 -6
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{core-Bd0h-mo3.js → core-BiWIBBjf.js} +15 -14
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-BiWIBBjf.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core.js +3 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js +6 -7
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js +3 -3
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{rollup-DCG8HLmh.js → rollup-CzqrjlS4.js} +8 -13
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-CzqrjlS4.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup.js +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +4 -5
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js +13 -12
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js +7 -8
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -1
- package/build/esm/vendored/astring/dist/astring.js +910 -1065
- package/build/esm/vendored/astring/dist/astring.js.map +1 -1
- package/build/esm/vendored/esquery/dist/esquery.min.js +1312 -0
- package/build/esm/vendored/esquery/dist/esquery.min.js.map +1 -0
- package/build/esm/vendored/meriyah/dist/meriyah.js +10539 -9189
- package/build/esm/vendored/meriyah/dist/meriyah.js.map +1 -1
- package/build/esm/vendored/meriyah/dist/meriyah2.js +10122 -8806
- package/build/esm/vendored/meriyah/dist/meriyah2.js.map +1 -1
- package/build/esm/vendored/module-details-from-path/index.js +31 -40
- package/build/esm/vendored/module-details-from-path/index.js.map +1 -1
- package/build/esm/vendored/semifies/index.js +106 -108
- package/build/esm/vendored/semifies/index.js.map +1 -1
- package/build/esm/vendored/source-map/lib/array-set.js +100 -70
- package/build/esm/vendored/source-map/lib/array-set.js.map +1 -1
- package/build/esm/vendored/source-map/lib/base64-vlq.js +71 -54
- package/build/esm/vendored/source-map/lib/base64-vlq.js.map +1 -1
- package/build/esm/vendored/source-map/lib/base64.js +38 -39
- package/build/esm/vendored/source-map/lib/base64.js.map +1 -1
- package/build/esm/vendored/source-map/lib/binary-search.js +61 -50
- package/build/esm/vendored/source-map/lib/binary-search.js.map +1 -1
- package/build/esm/vendored/source-map/lib/mapping-list.js +75 -39
- package/build/esm/vendored/source-map/lib/mapping-list.js.map +1 -1
- package/build/esm/vendored/source-map/lib/quick-sort.js +73 -33
- package/build/esm/vendored/source-map/lib/quick-sort.js.map +1 -1
- package/build/esm/vendored/source-map/lib/source-map-consumer.js +763 -609
- package/build/esm/vendored/source-map/lib/source-map-consumer.js.map +1 -1
- package/build/esm/vendored/source-map/lib/source-map-generator.js +281 -282
- package/build/esm/vendored/source-map/lib/source-map-generator.js.map +1 -1
- package/build/esm/vendored/source-map/lib/source-node.js +294 -267
- package/build/esm/vendored/source-map/lib/source-node.js.map +1 -1
- package/build/esm/vendored/source-map/lib/util.js +241 -252
- package/build/esm/vendored/source-map/lib/util.js.map +1 -1
- package/build/esm/vendored/source-map/source-map.js +17 -13
- package/build/esm/vendored/source-map/source-map.js.map +1 -1
- package/build/types/ai/anthropic-ai/index.d.ts +1 -1
- package/build/types/ai/anthropic-ai/index.d.ts.map +1 -1
- package/build/types/ai/anthropic-ai/streaming.d.ts +2 -1
- package/build/types/ai/anthropic-ai/streaming.d.ts.map +1 -1
- package/build/types/ai/anthropic-ai/utils.d.ts +7 -2
- package/build/types/ai/anthropic-ai/utils.d.ts.map +1 -1
- package/build/types/ai/core/streaming-tool-calls.d.ts +19 -0
- package/build/types/ai/core/streaming-tool-calls.d.ts.map +1 -0
- package/build/types/ai/core/utils.d.ts +18 -1
- package/build/types/ai/core/utils.d.ts.map +1 -1
- package/build/types/ai/flue/constants.d.ts +5 -7
- package/build/types/ai/flue/constants.d.ts.map +1 -1
- package/build/types/ai/flue/index.d.ts +7 -4
- package/build/types/ai/flue/index.d.ts.map +1 -1
- package/build/types/ai/flue/types.d.ts +1 -38
- package/build/types/ai/flue/types.d.ts.map +1 -1
- package/build/types/ai/flue/utils.d.ts +1 -13
- package/build/types/ai/flue/utils.d.ts.map +1 -1
- package/build/types/ai/google-genai/index.d.ts +4 -0
- package/build/types/ai/google-genai/index.d.ts.map +1 -1
- package/build/types/ai/google-genai/streaming.d.ts.map +1 -1
- package/build/types/ai/openai/index.d.ts.map +1 -1
- package/build/types/ai/openai/streaming.d.ts.map +1 -1
- package/build/types/ai/pi-ai/chat.d.ts +20 -0
- package/build/types/ai/pi-ai/chat.d.ts.map +1 -0
- package/build/types/ai/pi-ai/constants.d.ts +3 -0
- package/build/types/ai/pi-ai/constants.d.ts.map +1 -0
- package/build/types/ai/pi-ai/providers.d.ts +9 -6
- package/build/types/ai/pi-ai/providers.d.ts.map +1 -1
- package/build/types/ai/pi-ai/recording.d.ts +15 -0
- package/build/types/ai/pi-ai/recording.d.ts.map +1 -0
- package/build/types/ai/pi-ai/types.d.ts +31 -0
- package/build/types/ai/pi-ai/types.d.ts.map +1 -0
- package/build/types/ai/pi-durable/index.d.ts +5 -5
- package/build/types/ai/pi-durable/index.d.ts.map +1 -1
- package/build/types/ai/pi-durable/types.d.ts +3 -43
- package/build/types/ai/pi-durable/types.d.ts.map +1 -1
- package/build/types/ai/workers-ai/index.d.ts.map +1 -1
- package/build/types/ai/workers-ai/streaming.d.ts.map +1 -1
- package/build/types/ai/workers-ai/types.d.ts +13 -0
- package/build/types/ai/workers-ai/types.d.ts.map +1 -1
- package/build/types/ai/workers-ai/utils.d.ts.map +1 -1
- package/build/types/eve.d.ts +13 -0
- package/build/types/eve.d.ts.map +1 -1
- package/build/types/index.d.ts +2 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/integrations/anthropic.d.ts.map +1 -1
- package/build/types/integrations/aws-sdk/index.d.ts +3 -1
- package/build/types/integrations/aws-sdk/index.d.ts.map +1 -1
- package/build/types/integrations/aws-sdk/services/ServicesExtensions.d.ts +2 -0
- package/build/types/integrations/aws-sdk/services/ServicesExtensions.d.ts.map +1 -1
- package/build/types/integrations/aws-sdk/services/bedrock-runtime-content.d.ts +30 -0
- package/build/types/integrations/aws-sdk/services/bedrock-runtime-content.d.ts.map +1 -0
- package/build/types/integrations/aws-sdk/services/bedrock-runtime.d.ts +5 -0
- package/build/types/integrations/aws-sdk/services/bedrock-runtime.d.ts.map +1 -1
- package/build/types/integrations/flue.d.ts.map +1 -1
- package/build/types/integrations/google-genai.d.ts.map +1 -1
- package/build/types/integrations/index.d.ts.map +1 -1
- package/build/types/integrations/mistral.d.ts.map +1 -1
- package/build/types/integrations/nitro/captureStorageEvents.d.ts.map +1 -1
- package/build/types/integrations/nitro/captureTracingEvents.d.ts.map +1 -1
- package/build/types/integrations/nitro/setServerTimingHeaders.d.ts.map +1 -1
- package/build/types/integrations/openai-compatible.d.ts.map +1 -1
- package/build/types/integrations/openai.d.ts.map +1 -1
- package/build/types/integrations/pi-ai.d.ts +19 -0
- package/build/types/integrations/pi-ai.d.ts.map +1 -0
- package/build/types/integrations/pi-durable.d.ts +3 -4
- package/build/types/integrations/pi-durable.d.ts.map +1 -1
- package/build/types/integrations/vercel-ai/gen-ai-recording-mode.d.ts +5 -1
- package/build/types/integrations/vercel-ai/gen-ai-recording-mode.d.ts.map +1 -1
- package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts +6 -4
- package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
- package/build/types/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts.map +1 -1
- package/build/types/integrations/vercel-ai/vercel-ai-tool-telemetry.d.ts +3 -3
- package/build/types/integrations/vercel-ai/vercel-ai-tool-telemetry.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/moduleInjectedTransform.d.ts +5 -1
- package/build/types/orchestrion/bundler/moduleInjectedTransform.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/options.d.ts +6 -0
- package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
- package/build/types/orchestrion/channels.d.ts +4 -0
- package/build/types/orchestrion/channels.d.ts.map +1 -1
- package/build/types/orchestrion/config/anthropic-ai.d.ts +1 -0
- package/build/types/orchestrion/config/anthropic-ai.d.ts.map +1 -1
- package/build/types/orchestrion/config/channel-integration-definitions.d.ts +3 -0
- package/build/types/orchestrion/config/channel-integration-definitions.d.ts.map +1 -1
- package/build/types/orchestrion/config/flue.d.ts +1 -1
- package/build/types/orchestrion/config/index.d.ts.map +1 -1
- package/build/types/orchestrion/config/pi-ai.d.ts +8 -0
- package/build/types/orchestrion/config/pi-ai.d.ts.map +1 -0
- package/build/types/orchestrion/config/vercel-ai.d.ts +1 -0
- package/build/types/orchestrion/config/vercel-ai.d.ts.map +1 -1
- package/build/types/utils/wrapServerRequestHandler.d.ts +5 -0
- package/build/types/utils/wrapServerRequestHandler.d.ts.map +1 -1
- package/package.json +9 -12
- package/build/cjs/_virtual/_commonjsHelpers.js +0 -8
- package/build/cjs/_virtual/_commonjsHelpers.js.map +0 -1
- package/build/cjs/_virtual/array-set.js +0 -6
- package/build/cjs/_virtual/array-set.js.map +0 -1
- package/build/cjs/_virtual/astring.js +0 -6
- package/build/cjs/_virtual/astring.js.map +0 -1
- package/build/cjs/_virtual/base64-vlq.js +0 -6
- package/build/cjs/_virtual/base64-vlq.js.map +0 -1
- package/build/cjs/_virtual/base64.js +0 -6
- package/build/cjs/_virtual/base64.js.map +0 -1
- package/build/cjs/_virtual/binary-search.js +0 -6
- package/build/cjs/_virtual/binary-search.js.map +0 -1
- package/build/cjs/_virtual/mapping-list.js +0 -6
- package/build/cjs/_virtual/mapping-list.js.map +0 -1
- package/build/cjs/_virtual/meriyah.js +0 -6
- package/build/cjs/_virtual/meriyah.js.map +0 -1
- package/build/cjs/_virtual/quick-sort.js +0 -6
- package/build/cjs/_virtual/quick-sort.js.map +0 -1
- package/build/cjs/_virtual/source-map-consumer.js +0 -6
- package/build/cjs/_virtual/source-map-consumer.js.map +0 -1
- package/build/cjs/_virtual/source-map-generator.js +0 -6
- package/build/cjs/_virtual/source-map-generator.js.map +0 -1
- package/build/cjs/_virtual/source-map.js +0 -6
- package/build/cjs/_virtual/source-map.js.map +0 -1
- package/build/cjs/_virtual/source-node.js +0 -6
- package/build/cjs/_virtual/source-node.js.map +0 -1
- package/build/cjs/_virtual/util.js +0 -6
- package/build/cjs/_virtual/util.js.map +0 -1
- package/build/cjs/ai/anthropic-ai/constants.js +0 -15
- package/build/cjs/ai/anthropic-ai/constants.js.map +0 -1
- package/build/cjs/ai/anthropic-ai/index.js +0 -225
- package/build/cjs/ai/anthropic-ai/index.js.map +0 -1
- package/build/cjs/ai/anthropic-ai/streaming.js +0 -161
- package/build/cjs/ai/anthropic-ai/streaming.js.map +0 -1
- package/build/cjs/ai/anthropic-ai/tool-runner.js +0 -148
- package/build/cjs/ai/anthropic-ai/tool-runner.js.map +0 -1
- package/build/cjs/ai/anthropic-ai/utils.js +0 -69
- package/build/cjs/ai/anthropic-ai/utils.js.map +0 -1
- package/build/cjs/ai/core/apiPromise.js +0 -54
- package/build/cjs/ai/core/apiPromise.js.map +0 -1
- package/build/cjs/ai/core/gen-ai-attributes.js +0 -14
- package/build/cjs/ai/core/gen-ai-attributes.js.map +0 -1
- package/build/cjs/ai/core/utils.js +0 -182
- package/build/cjs/ai/core/utils.js.map +0 -1
- package/build/cjs/ai/flue/constants.js +0 -20
- package/build/cjs/ai/flue/constants.js.map +0 -1
- package/build/cjs/ai/flue/index.js +0 -141
- package/build/cjs/ai/flue/index.js.map +0 -1
- package/build/cjs/ai/flue/utils.js +0 -200
- package/build/cjs/ai/flue/utils.js.map +0 -1
- package/build/cjs/ai/google-genai/constants.js +0 -17
- package/build/cjs/ai/google-genai/constants.js.map +0 -1
- package/build/cjs/ai/google-genai/index.js +0 -280
- package/build/cjs/ai/google-genai/index.js.map +0 -1
- package/build/cjs/ai/google-genai/streaming.js +0 -79
- package/build/cjs/ai/google-genai/streaming.js.map +0 -1
- package/build/cjs/ai/google-genai/utils.js +0 -131
- package/build/cjs/ai/google-genai/utils.js.map +0 -1
- package/build/cjs/ai/langchain/constants.js +0 -19
- package/build/cjs/ai/langchain/constants.js.map +0 -1
- package/build/cjs/ai/langchain/embeddings.js +0 -82
- package/build/cjs/ai/langchain/embeddings.js.map +0 -1
- package/build/cjs/ai/langchain/index.js +0 -312
- package/build/cjs/ai/langchain/index.js.map +0 -1
- package/build/cjs/ai/langchain/typesafe-classifier.js +0 -62
- package/build/cjs/ai/langchain/typesafe-classifier.js.map +0 -1
- package/build/cjs/ai/langchain/utils.js +0 -355
- package/build/cjs/ai/langchain/utils.js.map +0 -1
- package/build/cjs/ai/langgraph/agent-span.js +0 -94
- package/build/cjs/ai/langgraph/agent-span.js.map +0 -1
- package/build/cjs/ai/langgraph/constants.js +0 -8
- package/build/cjs/ai/langgraph/constants.js.map +0 -1
- package/build/cjs/ai/langgraph/index.js +0 -134
- package/build/cjs/ai/langgraph/index.js.map +0 -1
- package/build/cjs/ai/langgraph/stream.js +0 -117
- package/build/cjs/ai/langgraph/stream.js.map +0 -1
- package/build/cjs/ai/langgraph/utils.js +0 -221
- package/build/cjs/ai/langgraph/utils.js.map +0 -1
- package/build/cjs/ai/mastra/classifier-evaluation.js +0 -30
- package/build/cjs/ai/mastra/classifier-evaluation.js.map +0 -1
- package/build/cjs/ai/mastra/constants.js +0 -41
- package/build/cjs/ai/mastra/constants.js.map +0 -1
- package/build/cjs/ai/mastra/index.js +0 -195
- package/build/cjs/ai/mastra/index.js.map +0 -1
- package/build/cjs/ai/mastra/span-registry.js +0 -20
- package/build/cjs/ai/mastra/span-registry.js.map +0 -1
- package/build/cjs/ai/mastra/utils.js +0 -177
- package/build/cjs/ai/mastra/utils.js.map +0 -1
- package/build/cjs/ai/mistral/constants.js +0 -20
- package/build/cjs/ai/mistral/constants.js.map +0 -1
- package/build/cjs/ai/mistral/index.js +0 -130
- package/build/cjs/ai/mistral/index.js.map +0 -1
- package/build/cjs/ai/mistral/streaming.js +0 -208
- package/build/cjs/ai/mistral/streaming.js.map +0 -1
- package/build/cjs/ai/mistral/utils.js +0 -87
- package/build/cjs/ai/mistral/utils.js.map +0 -1
- package/build/cjs/ai/openai/constants.js +0 -35
- package/build/cjs/ai/openai/constants.js.map +0 -1
- package/build/cjs/ai/openai/index.js +0 -176
- package/build/cjs/ai/openai/index.js.map +0 -1
- package/build/cjs/ai/openai/mapping.js +0 -67
- package/build/cjs/ai/openai/mapping.js.map +0 -1
- package/build/cjs/ai/openai/streaming.js +0 -166
- package/build/cjs/ai/openai/streaming.js.map +0 -1
- package/build/cjs/ai/openai/utils.js +0 -128
- package/build/cjs/ai/openai/utils.js.map +0 -1
- package/build/cjs/ai/pi-ai/messages.js +0 -135
- package/build/cjs/ai/pi-ai/messages.js.map +0 -1
- package/build/cjs/ai/pi-ai/providers.js +0 -22
- package/build/cjs/ai/pi-ai/providers.js.map +0 -1
- package/build/cjs/ai/pi-ai/usage.js +0 -34
- package/build/cjs/ai/pi-ai/usage.js.map +0 -1
- package/build/cjs/ai/pi-durable/constants.js +0 -22
- package/build/cjs/ai/pi-durable/constants.js.map +0 -1
- package/build/cjs/ai/pi-durable/index.js +0 -176
- package/build/cjs/ai/pi-durable/index.js.map +0 -1
- package/build/cjs/ai/pi-durable/models.js +0 -140
- package/build/cjs/ai/pi-durable/models.js.map +0 -1
- package/build/cjs/ai/pi-durable/runs.js +0 -159
- package/build/cjs/ai/pi-durable/runs.js.map +0 -1
- package/build/cjs/ai/pi-durable/tools.js +0 -178
- package/build/cjs/ai/pi-durable/tools.js.map +0 -1
- package/build/cjs/ai/pi-durable/utils.js +0 -9
- package/build/cjs/ai/pi-durable/utils.js.map +0 -1
- package/build/cjs/ai/typesafe/constants.js +0 -10
- package/build/cjs/ai/typesafe/constants.js.map +0 -1
- package/build/cjs/ai/typesafe/index.js +0 -112
- package/build/cjs/ai/typesafe/index.js.map +0 -1
- package/build/cjs/ai/vercel-ai/index.js +0 -70
- package/build/cjs/ai/vercel-ai/index.js.map +0 -1
- package/build/cjs/ai/workers-ai/constants.js +0 -10
- package/build/cjs/ai/workers-ai/constants.js.map +0 -1
- package/build/cjs/ai/workers-ai/index.js +0 -85
- package/build/cjs/ai/workers-ai/index.js.map +0 -1
- package/build/cjs/ai/workers-ai/streaming.js +0 -149
- package/build/cjs/ai/workers-ai/streaming.js.map +0 -1
- package/build/cjs/ai/workers-ai/utils.js +0 -166
- package/build/cjs/ai/workers-ai/utils.js.map +0 -1
- package/build/cjs/async-context.js +0 -68
- package/build/cjs/async-context.js.map +0 -1
- package/build/cjs/debug-build.js +0 -6
- package/build/cjs/debug-build.js.map +0 -1
- package/build/cjs/eve.js +0 -30
- package/build/cjs/eve.js.map +0 -1
- package/build/cjs/index.no-diagnostic-channels.js.map +0 -1
- package/build/cjs/integrations/amqplib.js +0 -417
- package/build/cjs/integrations/amqplib.js.map +0 -1
- package/build/cjs/integrations/anthropic.js +0 -145
- package/build/cjs/integrations/anthropic.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/constants.js +0 -16
- package/build/cjs/integrations/aws-sdk/constants.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/index.js +0 -146
- package/build/cjs/integrations/aws-sdk/index.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/MessageAttributes.js +0 -46
- package/build/cjs/integrations/aws-sdk/services/MessageAttributes.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/ServicesExtensions.js +0 -47
- package/build/cjs/integrations/aws-sdk/services/ServicesExtensions.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/bedrock-runtime.js +0 -477
- package/build/cjs/integrations/aws-sdk/services/bedrock-runtime.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/dynamodb.js +0 -130
- package/build/cjs/integrations/aws-sdk/services/dynamodb.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/kinesis.js +0 -19
- package/build/cjs/integrations/aws-sdk/services/kinesis.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/lambda.js +0 -63
- package/build/cjs/integrations/aws-sdk/services/lambda.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/s3.js +0 -19
- package/build/cjs/integrations/aws-sdk/services/s3.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/secretsmanager.js +0 -25
- package/build/cjs/integrations/aws-sdk/services/secretsmanager.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/sns.js +0 -79
- package/build/cjs/integrations/aws-sdk/services/sns.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/sqs.js +0 -135
- package/build/cjs/integrations/aws-sdk/services/sqs.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/stepfunctions.js +0 -23
- package/build/cjs/integrations/aws-sdk/services/stepfunctions.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/utils.js +0 -30
- package/build/cjs/integrations/aws-sdk/utils.js.map +0 -1
- package/build/cjs/integrations/cron.js +0 -49
- package/build/cjs/integrations/cron.js.map +0 -1
- package/build/cjs/integrations/dataloader.js +0 -118
- package/build/cjs/integrations/dataloader.js.map +0 -1
- package/build/cjs/integrations/express/error-handled.js +0 -17
- package/build/cjs/integrations/express/error-handled.js.map +0 -1
- package/build/cjs/integrations/express/error-handler.js +0 -43
- package/build/cjs/integrations/express/error-handler.js.map +0 -1
- package/build/cjs/integrations/express/index.js +0 -24
- package/build/cjs/integrations/express/index.js.map +0 -1
- package/build/cjs/integrations/express/instrumentation.js +0 -222
- package/build/cjs/integrations/express/instrumentation.js.map +0 -1
- package/build/cjs/integrations/express/route.js +0 -76
- package/build/cjs/integrations/express/route.js.map +0 -1
- package/build/cjs/integrations/express/utils.js +0 -12
- package/build/cjs/integrations/express/utils.js.map +0 -1
- package/build/cjs/integrations/fastify/errors.js +0 -36
- package/build/cjs/integrations/fastify/errors.js.map +0 -1
- package/build/cjs/integrations/fastify/index.js +0 -28
- package/build/cjs/integrations/fastify/index.js.map +0 -1
- package/build/cjs/integrations/fastify/instrumentation.js +0 -252
- package/build/cjs/integrations/fastify/instrumentation.js.map +0 -1
- package/build/cjs/integrations/fastify/utils.js +0 -26
- package/build/cjs/integrations/fastify/utils.js.map +0 -1
- package/build/cjs/integrations/firebase/firestore.js +0 -93
- package/build/cjs/integrations/firebase/firestore.js.map +0 -1
- package/build/cjs/integrations/firebase/functions.js +0 -79
- package/build/cjs/integrations/firebase/functions.js.map +0 -1
- package/build/cjs/integrations/firebase/index.js +0 -20
- package/build/cjs/integrations/firebase/index.js.map +0 -1
- package/build/cjs/integrations/firebase/instrumentation.js +0 -56
- package/build/cjs/integrations/firebase/instrumentation.js.map +0 -1
- package/build/cjs/integrations/flue.js +0 -40
- package/build/cjs/integrations/flue.js.map +0 -1
- package/build/cjs/integrations/generic-pool.js +0 -36
- package/build/cjs/integrations/generic-pool.js.map +0 -1
- package/build/cjs/integrations/google-genai.js +0 -105
- package/build/cjs/integrations/google-genai.js.map +0 -1
- package/build/cjs/integrations/graphql/constants.js +0 -36
- package/build/cjs/integrations/graphql/constants.js.map +0 -1
- package/build/cjs/integrations/graphql/graphql-dc-subscriber.js +0 -122
- package/build/cjs/integrations/graphql/graphql-dc-subscriber.js.map +0 -1
- package/build/cjs/integrations/graphql/index.js +0 -60
- package/build/cjs/integrations/graphql/index.js.map +0 -1
- package/build/cjs/integrations/graphql/resolvers.js +0 -175
- package/build/cjs/integrations/graphql/resolvers.js.map +0 -1
- package/build/cjs/integrations/graphql/spans.js +0 -114
- package/build/cjs/integrations/graphql/spans.js.map +0 -1
- package/build/cjs/integrations/graphql/utils.js +0 -98
- package/build/cjs/integrations/graphql/utils.js.map +0 -1
- package/build/cjs/integrations/groq.js +0 -21
- package/build/cjs/integrations/groq.js.map +0 -1
- package/build/cjs/integrations/hapi/hapi-error-handler.js +0 -46
- package/build/cjs/integrations/hapi/hapi-error-handler.js.map +0 -1
- package/build/cjs/integrations/hapi/hapi-types.js +0 -23
- package/build/cjs/integrations/hapi/hapi-types.js.map +0 -1
- package/build/cjs/integrations/hapi/hapi-utils.js +0 -202
- package/build/cjs/integrations/hapi/hapi-utils.js.map +0 -1
- package/build/cjs/integrations/hapi/index.js +0 -73
- package/build/cjs/integrations/hapi/index.js.map +0 -1
- package/build/cjs/integrations/hono/applyPatches.js +0 -38
- package/build/cjs/integrations/hono/applyPatches.js.map +0 -1
- package/build/cjs/integrations/hono/connInfo.js +0 -37
- package/build/cjs/integrations/hono/connInfo.js.map +0 -1
- package/build/cjs/integrations/hono/constants.js +0 -8
- package/build/cjs/integrations/hono/constants.js.map +0 -1
- package/build/cjs/integrations/hono/createHonoMiddleware.js +0 -43
- package/build/cjs/integrations/hono/createHonoMiddleware.js.map +0 -1
- package/build/cjs/integrations/hono/defaultShouldHandleError.js +0 -14
- package/build/cjs/integrations/hono/defaultShouldHandleError.js.map +0 -1
- package/build/cjs/integrations/hono/hono-context.js +0 -14
- package/build/cjs/integrations/hono/hono-context.js.map +0 -1
- package/build/cjs/integrations/hono/honoIntegration.js +0 -98
- package/build/cjs/integrations/hono/honoIntegration.js.map +0 -1
- package/build/cjs/integrations/hono/isMiddleware.js +0 -22
- package/build/cjs/integrations/hono/isMiddleware.js.map +0 -1
- package/build/cjs/integrations/hono/matchResult.js +0 -85
- package/build/cjs/integrations/hono/matchResult.js.map +0 -1
- package/build/cjs/integrations/hono/middlewareHandlers.js +0 -101
- package/build/cjs/integrations/hono/middlewareHandlers.js.map +0 -1
- package/build/cjs/integrations/hono/patchAppRequest.js +0 -78
- package/build/cjs/integrations/hono/patchAppRequest.js.map +0 -1
- package/build/cjs/integrations/hono/patchAppUse.js +0 -70
- package/build/cjs/integrations/hono/patchAppUse.js.map +0 -1
- package/build/cjs/integrations/hono/patchRoute.js +0 -69
- package/build/cjs/integrations/hono/patchRoute.js.map +0 -1
- package/build/cjs/integrations/hono/resolveRouteName.js +0 -29
- package/build/cjs/integrations/hono/resolveRouteName.js.map +0 -1
- package/build/cjs/integrations/hono/sentryOriginalTraps.js +0 -21
- package/build/cjs/integrations/hono/sentryOriginalTraps.js.map +0 -1
- package/build/cjs/integrations/hono/wrapMiddlewareSpan.js +0 -48
- package/build/cjs/integrations/hono/wrapMiddlewareSpan.js.map +0 -1
- package/build/cjs/integrations/index.js +0 -93
- package/build/cjs/integrations/index.js.map +0 -1
- package/build/cjs/integrations/kafkajs/consumer.js +0 -71
- package/build/cjs/integrations/kafkajs/consumer.js.map +0 -1
- package/build/cjs/integrations/kafkajs/index.js +0 -70
- package/build/cjs/integrations/kafkajs/index.js.map +0 -1
- package/build/cjs/integrations/kafkajs/semconv.js +0 -14
- package/build/cjs/integrations/kafkajs/semconv.js.map +0 -1
- package/build/cjs/integrations/kafkajs/spans.js +0 -127
- package/build/cjs/integrations/kafkajs/spans.js.map +0 -1
- package/build/cjs/integrations/knex.js +0 -187
- package/build/cjs/integrations/knex.js.map +0 -1
- package/build/cjs/integrations/koa/index.js +0 -155
- package/build/cjs/integrations/koa/index.js.map +0 -1
- package/build/cjs/integrations/koa/koa-error-handler.js +0 -33
- package/build/cjs/integrations/koa/koa-error-handler.js.map +0 -1
- package/build/cjs/integrations/langchain.js +0 -92
- package/build/cjs/integrations/langchain.js.map +0 -1
- package/build/cjs/integrations/langgraph.js +0 -73
- package/build/cjs/integrations/langgraph.js.map +0 -1
- package/build/cjs/integrations/lru-memoizer.js +0 -29
- package/build/cjs/integrations/lru-memoizer.js.map +0 -1
- package/build/cjs/integrations/mastra-classifier.js +0 -57
- package/build/cjs/integrations/mastra-classifier.js.map +0 -1
- package/build/cjs/integrations/mastra.js +0 -247
- package/build/cjs/integrations/mastra.js.map +0 -1
- package/build/cjs/integrations/mcp-server.js +0 -37
- package/build/cjs/integrations/mcp-server.js.map +0 -1
- package/build/cjs/integrations/mistral.js +0 -69
- package/build/cjs/integrations/mistral.js.map +0 -1
- package/build/cjs/integrations/mongodb/index.js +0 -94
- package/build/cjs/integrations/mongodb/index.js.map +0 -1
- package/build/cjs/integrations/mongodb/mongodb-span.js +0 -135
- package/build/cjs/integrations/mongodb/mongodb-span.js.map +0 -1
- package/build/cjs/integrations/mongoose/index.js +0 -109
- package/build/cjs/integrations/mongoose/index.js.map +0 -1
- package/build/cjs/integrations/mongoose/mongoose-dc-subscriber.js +0 -101
- package/build/cjs/integrations/mongoose/mongoose-dc-subscriber.js.map +0 -1
- package/build/cjs/integrations/mongoose/mongoose-legacy-span.js +0 -41
- package/build/cjs/integrations/mongoose/mongoose-legacy-span.js.map +0 -1
- package/build/cjs/integrations/mysql.js +0 -101
- package/build/cjs/integrations/mysql.js.map +0 -1
- package/build/cjs/integrations/mysql2/index.js +0 -80
- package/build/cjs/integrations/mysql2/index.js.map +0 -1
- package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js +0 -57
- package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js.map +0 -1
- package/build/cjs/integrations/neon.js +0 -107
- package/build/cjs/integrations/neon.js.map +0 -1
- package/build/cjs/integrations/nitro/captureStorageEvents.js +0 -132
- package/build/cjs/integrations/nitro/captureStorageEvents.js.map +0 -1
- package/build/cjs/integrations/nitro/captureTracingEvents.js +0 -202
- package/build/cjs/integrations/nitro/captureTracingEvents.js.map +0 -1
- package/build/cjs/integrations/nitro/index.js +0 -27
- package/build/cjs/integrations/nitro/index.js.map +0 -1
- package/build/cjs/integrations/nitro/setServerTimingHeaders.js +0 -40
- package/build/cjs/integrations/nitro/setServerTimingHeaders.js.map +0 -1
- package/build/cjs/integrations/node-cron.js +0 -68
- package/build/cjs/integrations/node-cron.js.map +0 -1
- package/build/cjs/integrations/node-schedule.js +0 -76
- package/build/cjs/integrations/node-schedule.js.map +0 -1
- package/build/cjs/integrations/openai-compatible.js +0 -90
- package/build/cjs/integrations/openai-compatible.js.map +0 -1
- package/build/cjs/integrations/openai.js +0 -93
- package/build/cjs/integrations/openai.js.map +0 -1
- package/build/cjs/integrations/pg.js +0 -171
- package/build/cjs/integrations/pg.js.map +0 -1
- package/build/cjs/integrations/pi-durable.js +0 -50
- package/build/cjs/integrations/pi-durable.js.map +0 -1
- package/build/cjs/integrations/postgresjs/index.js +0 -147
- package/build/cjs/integrations/postgresjs/index.js.map +0 -1
- package/build/cjs/integrations/postgresjs/postgresjs-dc-subscriber.js +0 -81
- package/build/cjs/integrations/postgresjs/postgresjs-dc-subscriber.js.map +0 -1
- package/build/cjs/integrations/postgresjs-wrapper.js +0 -219
- package/build/cjs/integrations/postgresjs-wrapper.js.map +0 -1
- package/build/cjs/integrations/prisma/global.js +0 -14
- package/build/cjs/integrations/prisma/global.js.map +0 -1
- package/build/cjs/integrations/prisma/index.js +0 -36
- package/build/cjs/integrations/prisma/index.js.map +0 -1
- package/build/cjs/integrations/prisma/orchestrion.js +0 -137
- package/build/cjs/integrations/prisma/orchestrion.js.map +0 -1
- package/build/cjs/integrations/prisma/tracing-helper.js +0 -241
- package/build/cjs/integrations/prisma/tracing-helper.js.map +0 -1
- package/build/cjs/integrations/redis/index.js +0 -223
- package/build/cjs/integrations/redis/index.js.map +0 -1
- package/build/cjs/integrations/redis/ioredis-channel-subscriber.js +0 -87
- package/build/cjs/integrations/redis/ioredis-channel-subscriber.js.map +0 -1
- package/build/cjs/integrations/redis/redis-cache.js +0 -144
- package/build/cjs/integrations/redis/redis-cache.js.map +0 -1
- package/build/cjs/integrations/redis/redis-dc-subscriber.js +0 -107
- package/build/cjs/integrations/redis/redis-dc-subscriber.js.map +0 -1
- package/build/cjs/integrations/redis/redis-span-name.js +0 -32
- package/build/cjs/integrations/redis/redis-span-name.js.map +0 -1
- package/build/cjs/integrations/redis/redis-statement-serializer.js +0 -34
- package/build/cjs/integrations/redis/redis-statement-serializer.js.map +0 -1
- package/build/cjs/integrations/serveTunnel.js +0 -33
- package/build/cjs/integrations/serveTunnel.js.map +0 -1
- package/build/cjs/integrations/tedious.js +0 -160
- package/build/cjs/integrations/tedious.js.map +0 -1
- package/build/cjs/integrations/together-ai.js +0 -19
- package/build/cjs/integrations/together-ai.js.map +0 -1
- package/build/cjs/integrations/typesafe.js +0 -45
- package/build/cjs/integrations/typesafe.js.map +0 -1
- package/build/cjs/integrations/vercel-ai/gen-ai-recording-mode.js +0 -13
- package/build/cjs/integrations/vercel-ai/gen-ai-recording-mode.js.map +0 -1
- package/build/cjs/integrations/vercel-ai/index.js +0 -34
- package/build/cjs/integrations/vercel-ai/index.js.map +0 -1
- package/build/cjs/integrations/vercel-ai/util.js +0 -108
- package/build/cjs/integrations/vercel-ai/util.js.map +0 -1
- package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js +0 -589
- package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +0 -1
- package/build/cjs/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js +0 -409
- package/build/cjs/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +0 -1
- package/build/cjs/integrations/vercel-ai/vercel-ai-tool-telemetry.js +0 -40
- package/build/cjs/integrations/vercel-ai/vercel-ai-tool-telemetry.js.map +0 -1
- package/build/cjs/opentelemetry.js +0 -45
- package/build/cjs/opentelemetry.js.map +0 -1
- package/build/cjs/orchestrion/bundler/externalRequire.js +0 -82
- package/build/cjs/orchestrion/bundler/externalRequire.js.map +0 -1
- package/build/cjs/orchestrion/bundler/moduleInjectedTransform.js +0 -55
- package/build/cjs/orchestrion/bundler/moduleInjectedTransform.js.map +0 -1
- package/build/cjs/orchestrion/bundler/options.js +0 -25
- package/build/cjs/orchestrion/bundler/options.js.map +0 -1
- package/build/cjs/orchestrion/bundler/resolve.js +0 -27
- package/build/cjs/orchestrion/bundler/resolve.js.map +0 -1
- package/build/cjs/orchestrion/channels.js +0 -92
- package/build/cjs/orchestrion/channels.js.map +0 -1
- package/build/cjs/orchestrion/config/amqplib.js +0 -93
- package/build/cjs/orchestrion/config/amqplib.js.map +0 -1
- package/build/cjs/orchestrion/config/anthropic-ai.js +0 -53
- package/build/cjs/orchestrion/config/anthropic-ai.js.map +0 -1
- package/build/cjs/orchestrion/config/aws-sdk.js +0 -32
- package/build/cjs/orchestrion/config/aws-sdk.js.map +0 -1
- package/build/cjs/orchestrion/config/channel-integration-definitions.js +0 -59
- package/build/cjs/orchestrion/config/channel-integration-definitions.js.map +0 -1
- package/build/cjs/orchestrion/config/cron.js +0 -26
- package/build/cjs/orchestrion/config/cron.js.map +0 -1
- package/build/cjs/orchestrion/config/dataloader.js +0 -53
- package/build/cjs/orchestrion/config/dataloader.js.map +0 -1
- package/build/cjs/orchestrion/config/express.js +0 -81
- package/build/cjs/orchestrion/config/express.js.map +0 -1
- package/build/cjs/orchestrion/config/firebase.js +0 -85
- package/build/cjs/orchestrion/config/firebase.js.map +0 -1
- package/build/cjs/orchestrion/config/flue.js +0 -10
- package/build/cjs/orchestrion/config/flue.js.map +0 -1
- package/build/cjs/orchestrion/config/generic-pool.js +0 -25
- package/build/cjs/orchestrion/config/generic-pool.js.map +0 -1
- package/build/cjs/orchestrion/config/google-genai.js +0 -43
- package/build/cjs/orchestrion/config/google-genai.js.map +0 -1
- package/build/cjs/orchestrion/config/graphql.js +0 -32
- package/build/cjs/orchestrion/config/graphql.js.map +0 -1
- package/build/cjs/orchestrion/config/groq.js +0 -19
- package/build/cjs/orchestrion/config/groq.js.map +0 -1
- package/build/cjs/orchestrion/config/hapi.js +0 -48
- package/build/cjs/orchestrion/config/hapi.js.map +0 -1
- package/build/cjs/orchestrion/config/hono.js +0 -34
- package/build/cjs/orchestrion/config/hono.js.map +0 -1
- package/build/cjs/orchestrion/config/index.js.map +0 -1
- package/build/cjs/orchestrion/config/ioredis.js +0 -41
- package/build/cjs/orchestrion/config/ioredis.js.map +0 -1
- package/build/cjs/orchestrion/config/kafkajs.js +0 -34
- package/build/cjs/orchestrion/config/kafkajs.js.map +0 -1
- package/build/cjs/orchestrion/config/knex.js +0 -43
- package/build/cjs/orchestrion/config/knex.js.map +0 -1
- package/build/cjs/orchestrion/config/koa.js +0 -32
- package/build/cjs/orchestrion/config/koa.js.map +0 -1
- package/build/cjs/orchestrion/config/langchain.js +0 -66
- package/build/cjs/orchestrion/config/langchain.js.map +0 -1
- package/build/cjs/orchestrion/config/langgraph.js +0 -32
- package/build/cjs/orchestrion/config/langgraph.js.map +0 -1
- package/build/cjs/orchestrion/config/lru-memoizer.js +0 -21
- package/build/cjs/orchestrion/config/lru-memoizer.js.map +0 -1
- package/build/cjs/orchestrion/config/mastra.js +0 -54
- package/build/cjs/orchestrion/config/mastra.js.map +0 -1
- package/build/cjs/orchestrion/config/mcp-server.js +0 -41
- package/build/cjs/orchestrion/config/mcp-server.js.map +0 -1
- package/build/cjs/orchestrion/config/mistral.js +0 -57
- package/build/cjs/orchestrion/config/mistral.js.map +0 -1
- package/build/cjs/orchestrion/config/module-names.js +0 -8
- package/build/cjs/orchestrion/config/module-names.js.map +0 -1
- package/build/cjs/orchestrion/config/mongodb.js +0 -71
- package/build/cjs/orchestrion/config/mongodb.js.map +0 -1
- package/build/cjs/orchestrion/config/mongoose.js +0 -113
- package/build/cjs/orchestrion/config/mongoose.js.map +0 -1
- package/build/cjs/orchestrion/config/mysql.js +0 -20
- package/build/cjs/orchestrion/config/mysql.js.map +0 -1
- package/build/cjs/orchestrion/config/mysql2.js +0 -38
- package/build/cjs/orchestrion/config/mysql2.js.map +0 -1
- package/build/cjs/orchestrion/config/neon.js +0 -46
- package/build/cjs/orchestrion/config/neon.js.map +0 -1
- package/build/cjs/orchestrion/config/nestjs.js +0 -130
- package/build/cjs/orchestrion/config/nestjs.js.map +0 -1
- package/build/cjs/orchestrion/config/nitro.js +0 -10
- package/build/cjs/orchestrion/config/nitro.js.map +0 -1
- package/build/cjs/orchestrion/config/node-cron.js +0 -53
- package/build/cjs/orchestrion/config/node-cron.js.map +0 -1
- package/build/cjs/orchestrion/config/node-schedule.js +0 -29
- package/build/cjs/orchestrion/config/node-schedule.js.map +0 -1
- package/build/cjs/orchestrion/config/openai-compatible.js +0 -19
- package/build/cjs/orchestrion/config/openai-compatible.js.map +0 -1
- package/build/cjs/orchestrion/config/openai.js +0 -49
- package/build/cjs/orchestrion/config/openai.js.map +0 -1
- package/build/cjs/orchestrion/config/pg.js +0 -55
- package/build/cjs/orchestrion/config/pg.js.map +0 -1
- package/build/cjs/orchestrion/config/pi-durable.js +0 -34
- package/build/cjs/orchestrion/config/pi-durable.js.map +0 -1
- package/build/cjs/orchestrion/config/postgres.js +0 -58
- package/build/cjs/orchestrion/config/postgres.js.map +0 -1
- package/build/cjs/orchestrion/config/prisma.js +0 -53
- package/build/cjs/orchestrion/config/prisma.js.map +0 -1
- package/build/cjs/orchestrion/config/redis.js +0 -82
- package/build/cjs/orchestrion/config/redis.js.map +0 -1
- package/build/cjs/orchestrion/config/registration-only.js +0 -15
- package/build/cjs/orchestrion/config/registration-only.js.map +0 -1
- package/build/cjs/orchestrion/config/remix-v3.js +0 -55
- package/build/cjs/orchestrion/config/remix-v3.js.map +0 -1
- package/build/cjs/orchestrion/config/remix.js +0 -54
- package/build/cjs/orchestrion/config/remix.js.map +0 -1
- package/build/cjs/orchestrion/config/tedious.js +0 -28
- package/build/cjs/orchestrion/config/tedious.js.map +0 -1
- package/build/cjs/orchestrion/config/together-ai.js +0 -23
- package/build/cjs/orchestrion/config/together-ai.js.map +0 -1
- package/build/cjs/orchestrion/config/typesafe.js +0 -18
- package/build/cjs/orchestrion/config/typesafe.js.map +0 -1
- package/build/cjs/orchestrion/config/vercel-ai.js +0 -56
- package/build/cjs/orchestrion/config/vercel-ai.js.map +0 -1
- package/build/cjs/orchestrion/detect.js +0 -42
- package/build/cjs/orchestrion/detect.js.map +0 -1
- package/build/cjs/orchestrion/instrumentation.js +0 -80
- package/build/cjs/orchestrion/instrumentation.js.map +0 -1
- package/build/cjs/tracing-channel.js +0 -152
- package/build/cjs/tracing-channel.js.map +0 -1
- package/build/cjs/utils/cronMonitoring.js +0 -160
- package/build/cjs/utils/cronMonitoring.js.map +0 -1
- package/build/cjs/utils/diagnosticsChannel.js +0 -48
- package/build/cjs/utils/diagnosticsChannel.js.map +0 -1
- package/build/cjs/utils/moduleInjected.js +0 -18
- package/build/cjs/utils/moduleInjected.js.map +0 -1
- package/build/cjs/utils/monitorStream.js +0 -63
- package/build/cjs/utils/monitorStream.js.map +0 -1
- package/build/cjs/utils/runtime.js +0 -19
- package/build/cjs/utils/runtime.js.map +0 -1
- package/build/cjs/utils/setHttpServerSpanRouteAttribute.js +0 -26
- package/build/cjs/utils/setHttpServerSpanRouteAttribute.js.map +0 -1
- package/build/cjs/utils/sql.js +0 -285
- package/build/cjs/utils/sql.js.map +0 -1
- package/build/cjs/utils/tunnelServer.js +0 -29
- package/build/cjs/utils/tunnelServer.js.map +0 -1
- package/build/cjs/utils/withCleanScopes.js +0 -17
- package/build/cjs/utils/withCleanScopes.js.map +0 -1
- package/build/cjs/utils/wrapServerRequestHandler.js +0 -221
- package/build/cjs/utils/wrapServerRequestHandler.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer/index.js +0 -8
- package/build/cjs/vendored/@apm-js-collab/code-transformer/index.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/index.js +0 -12
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/index.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/matcher.js +0 -86
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js +0 -316
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js +0 -470
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js +0 -65
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-Bd0h-mo3.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-DCG8HLmh.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +0 -14
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js +0 -117
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js +0 -103
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +0 -1
- package/build/cjs/vendored/astring/dist/astring.js +0 -1068
- package/build/cjs/vendored/astring/dist/astring.js.map +0 -1
- package/build/cjs/vendored/esquery/dist/esquery.esm.min.js +0 -847
- package/build/cjs/vendored/esquery/dist/esquery.esm.min.js.map +0 -1
- package/build/cjs/vendored/meriyah/dist/meriyah.js +0 -9192
- package/build/cjs/vendored/meriyah/dist/meriyah.js.map +0 -1
- package/build/cjs/vendored/meriyah/dist/meriyah2.js +0 -9209
- package/build/cjs/vendored/meriyah/dist/meriyah2.js.map +0 -1
- package/build/cjs/vendored/module-details-from-path/index.js +0 -43
- package/build/cjs/vendored/module-details-from-path/index.js.map +0 -1
- package/build/cjs/vendored/semifies/index.js +0 -111
- package/build/cjs/vendored/semifies/index.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/array-set.js +0 -73
- package/build/cjs/vendored/source-map/lib/array-set.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/base64-vlq.js +0 -57
- package/build/cjs/vendored/source-map/lib/base64-vlq.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/base64.js +0 -42
- package/build/cjs/vendored/source-map/lib/base64.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/binary-search.js +0 -55
- package/build/cjs/vendored/source-map/lib/binary-search.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/mapping-list.js +0 -42
- package/build/cjs/vendored/source-map/lib/mapping-list.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/quick-sort.js +0 -36
- package/build/cjs/vendored/source-map/lib/quick-sort.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/source-map-consumer.js +0 -612
- package/build/cjs/vendored/source-map/lib/source-map-consumer.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/source-map-generator.js +0 -285
- package/build/cjs/vendored/source-map/lib/source-map-generator.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/source-node.js +0 -270
- package/build/cjs/vendored/source-map/lib/source-node.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/util.js +0 -300
- package/build/cjs/vendored/source-map/lib/util.js.map +0 -1
- package/build/cjs/vendored/source-map/source-map.js +0 -16
- package/build/cjs/vendored/source-map/source-map.js.map +0 -1
- package/build/esm/_virtual/_commonjsHelpers.js +0 -6
- package/build/esm/_virtual/_commonjsHelpers.js.map +0 -1
- package/build/esm/_virtual/array-set.js +0 -4
- package/build/esm/_virtual/array-set.js.map +0 -1
- package/build/esm/_virtual/astring.js +0 -4
- package/build/esm/_virtual/astring.js.map +0 -1
- package/build/esm/_virtual/base64-vlq.js +0 -4
- package/build/esm/_virtual/base64-vlq.js.map +0 -1
- package/build/esm/_virtual/base64.js +0 -4
- package/build/esm/_virtual/base64.js.map +0 -1
- package/build/esm/_virtual/binary-search.js +0 -4
- package/build/esm/_virtual/binary-search.js.map +0 -1
- package/build/esm/_virtual/mapping-list.js +0 -4
- package/build/esm/_virtual/mapping-list.js.map +0 -1
- package/build/esm/_virtual/meriyah.js +0 -4
- package/build/esm/_virtual/meriyah.js.map +0 -1
- package/build/esm/_virtual/quick-sort.js +0 -4
- package/build/esm/_virtual/quick-sort.js.map +0 -1
- package/build/esm/_virtual/source-map-consumer.js +0 -4
- package/build/esm/_virtual/source-map-consumer.js.map +0 -1
- package/build/esm/_virtual/source-map-generator.js +0 -4
- package/build/esm/_virtual/source-map-generator.js.map +0 -1
- package/build/esm/_virtual/source-map.js +0 -4
- package/build/esm/_virtual/source-map.js.map +0 -1
- package/build/esm/_virtual/source-node.js +0 -4
- package/build/esm/_virtual/source-node.js.map +0 -1
- package/build/esm/_virtual/util.js +0 -4
- package/build/esm/_virtual/util.js.map +0 -1
- package/build/esm/ai/pi-durable/models.js +0 -138
- package/build/esm/ai/pi-durable/models.js.map +0 -1
- package/build/esm/index.no-diagnostic-channels.js.map +0 -1
- package/build/esm/index.request-handler.js.map +0 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-Bd0h-mo3.js.map +0 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-DCG8HLmh.js.map +0 -1
- package/build/esm/vendored/esquery/dist/esquery.esm.min.js +0 -845
- package/build/esm/vendored/esquery/dist/esquery.esm.min.js.map +0 -1
- package/build/types/ai/pi-durable/models.d.ts +0 -10
- package/build/types/ai/pi-durable/models.d.ts.map +0 -1
|
@@ -1,610 +1,764 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
1
|
+
import { __cjs as require_source_map_consumer__cjs } from "../../../_virtual/_cjs/require_source_map_consumer.js";
|
|
2
|
+
import { __commonJSMin } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import "./util.js";
|
|
4
|
+
import { __cjs as require_util__cjs } from "../../../_virtual/_cjs/require_util.js";
|
|
5
|
+
import "./binary-search.js";
|
|
6
|
+
import { __cjs as require_binary_search__cjs } from "../../../_virtual/_cjs/require_binary_search.js";
|
|
7
|
+
import "./array-set.js";
|
|
8
|
+
import { __cjs as require_array_set__cjs } from "../../../_virtual/_cjs/require_array_set.js";
|
|
9
|
+
import "./base64-vlq.js";
|
|
10
|
+
import { __cjs as require_base64_vlq__cjs } from "../../../_virtual/_cjs/require_base64_vlq.js";
|
|
11
|
+
import "./quick-sort.js";
|
|
12
|
+
import { __cjs as require_quick_sort__cjs } from "../../../_virtual/_cjs/require_quick_sort.js";
|
|
13
|
+
// ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js
|
|
14
|
+
var require_source_map_consumer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15
|
+
var util = (require_util__cjs.v ?? {});
|
|
16
|
+
var binarySearch = (require_binary_search__cjs.v ?? {});
|
|
17
|
+
var ArraySet = (require_array_set__cjs.v ?? {}).ArraySet;
|
|
18
|
+
var base64VLQ = (require_base64_vlq__cjs.v ?? {});
|
|
19
|
+
var quickSort = (require_quick_sort__cjs.v ?? {}).quickSort;
|
|
20
|
+
function SourceMapConsumer(aSourceMap, aSourceMapURL) {
|
|
21
|
+
var sourceMap = aSourceMap;
|
|
22
|
+
if (typeof aSourceMap === "string") sourceMap = util.parseSourceMapInput(aSourceMap);
|
|
23
|
+
return sourceMap.sections != null ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);
|
|
24
|
+
}
|
|
25
|
+
SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) {
|
|
26
|
+
return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* The version of the source mapping spec that we are consuming.
|
|
30
|
+
*/
|
|
31
|
+
SourceMapConsumer.prototype._version = 3;
|
|
32
|
+
SourceMapConsumer.prototype.__generatedMappings = null;
|
|
33
|
+
Object.defineProperty(SourceMapConsumer.prototype, "_generatedMappings", {
|
|
34
|
+
configurable: true,
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function() {
|
|
37
|
+
if (!this.__generatedMappings) this._parseMappings(this._mappings, this.sourceRoot);
|
|
38
|
+
return this.__generatedMappings;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
SourceMapConsumer.prototype.__originalMappings = null;
|
|
42
|
+
Object.defineProperty(SourceMapConsumer.prototype, "_originalMappings", {
|
|
43
|
+
configurable: true,
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function() {
|
|
46
|
+
if (!this.__originalMappings) this._parseMappings(this._mappings, this.sourceRoot);
|
|
47
|
+
return this.__originalMappings;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
SourceMapConsumer.prototype._charIsMappingSeparator = function SourceMapConsumer_charIsMappingSeparator(aStr, index) {
|
|
51
|
+
var c = aStr.charAt(index);
|
|
52
|
+
return c === ";" || c === ",";
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Parse the mappings in a string in to a data structure which we can easily
|
|
56
|
+
* query (the ordered arrays in the `this.__generatedMappings` and
|
|
57
|
+
* `this.__originalMappings` properties).
|
|
58
|
+
*/
|
|
59
|
+
SourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
|
|
60
|
+
throw new Error("Subclasses must implement _parseMappings");
|
|
61
|
+
};
|
|
62
|
+
SourceMapConsumer.GENERATED_ORDER = 1;
|
|
63
|
+
SourceMapConsumer.ORIGINAL_ORDER = 2;
|
|
64
|
+
SourceMapConsumer.GREATEST_LOWER_BOUND = 1;
|
|
65
|
+
SourceMapConsumer.LEAST_UPPER_BOUND = 2;
|
|
66
|
+
/**
|
|
67
|
+
* Iterate over each mapping between an original source/line/column and a
|
|
68
|
+
* generated line/column in this source map.
|
|
69
|
+
*
|
|
70
|
+
* @param Function aCallback
|
|
71
|
+
* The function that is called with each mapping.
|
|
72
|
+
* @param Object aContext
|
|
73
|
+
* Optional. If specified, this object will be the value of `this` every
|
|
74
|
+
* time that `aCallback` is called.
|
|
75
|
+
* @param aOrder
|
|
76
|
+
* Either `SourceMapConsumer.GENERATED_ORDER` or
|
|
77
|
+
* `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to
|
|
78
|
+
* iterate over the mappings sorted by the generated file's line/column
|
|
79
|
+
* order or the original's source/line/column order, respectively. Defaults to
|
|
80
|
+
* `SourceMapConsumer.GENERATED_ORDER`.
|
|
81
|
+
*/
|
|
82
|
+
SourceMapConsumer.prototype.eachMapping = function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
|
|
83
|
+
var context = aContext || null;
|
|
84
|
+
var order = aOrder || SourceMapConsumer.GENERATED_ORDER;
|
|
85
|
+
var mappings;
|
|
86
|
+
switch (order) {
|
|
87
|
+
case SourceMapConsumer.GENERATED_ORDER:
|
|
88
|
+
mappings = this._generatedMappings;
|
|
89
|
+
break;
|
|
90
|
+
case SourceMapConsumer.ORIGINAL_ORDER:
|
|
91
|
+
mappings = this._originalMappings;
|
|
92
|
+
break;
|
|
93
|
+
default: throw new Error("Unknown order of iteration.");
|
|
94
|
+
}
|
|
95
|
+
var sourceRoot = this.sourceRoot;
|
|
96
|
+
mappings.map(function(mapping) {
|
|
97
|
+
var source = mapping.source === null ? null : this._sources.at(mapping.source);
|
|
98
|
+
source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL);
|
|
99
|
+
return {
|
|
100
|
+
source,
|
|
101
|
+
generatedLine: mapping.generatedLine,
|
|
102
|
+
generatedColumn: mapping.generatedColumn,
|
|
103
|
+
originalLine: mapping.originalLine,
|
|
104
|
+
originalColumn: mapping.originalColumn,
|
|
105
|
+
name: mapping.name === null ? null : this._names.at(mapping.name)
|
|
106
|
+
};
|
|
107
|
+
}, this).forEach(aCallback, context);
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Returns all generated line and column information for the original source,
|
|
111
|
+
* line, and column provided. If no column is provided, returns all mappings
|
|
112
|
+
* corresponding to a either the line we are searching for or the next
|
|
113
|
+
* closest line that has any mappings. Otherwise, returns all mappings
|
|
114
|
+
* corresponding to the given line and either the column we are searching for
|
|
115
|
+
* or the next closest column that has any offsets.
|
|
116
|
+
*
|
|
117
|
+
* The only argument is an object with the following properties:
|
|
118
|
+
*
|
|
119
|
+
* - source: The filename of the original source.
|
|
120
|
+
* - line: The line number in the original source. The line number is 1-based.
|
|
121
|
+
* - column: Optional. the column number in the original source.
|
|
122
|
+
* The column number is 0-based.
|
|
123
|
+
*
|
|
124
|
+
* and an array of objects is returned, each with the following properties:
|
|
125
|
+
*
|
|
126
|
+
* - line: The line number in the generated source, or null. The
|
|
127
|
+
* line number is 1-based.
|
|
128
|
+
* - column: The column number in the generated source, or null.
|
|
129
|
+
* The column number is 0-based.
|
|
130
|
+
*/
|
|
131
|
+
SourceMapConsumer.prototype.allGeneratedPositionsFor = function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {
|
|
132
|
+
var line = util.getArg(aArgs, "line");
|
|
133
|
+
var needle = {
|
|
134
|
+
source: util.getArg(aArgs, "source"),
|
|
135
|
+
originalLine: line,
|
|
136
|
+
originalColumn: util.getArg(aArgs, "column", 0)
|
|
137
|
+
};
|
|
138
|
+
needle.source = this._findSourceIndex(needle.source);
|
|
139
|
+
if (needle.source < 0) return [];
|
|
140
|
+
var mappings = [];
|
|
141
|
+
var index = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util.compareByOriginalPositions, binarySearch.LEAST_UPPER_BOUND);
|
|
142
|
+
if (index >= 0) {
|
|
143
|
+
var mapping = this._originalMappings[index];
|
|
144
|
+
if (aArgs.column === void 0) {
|
|
145
|
+
var originalLine = mapping.originalLine;
|
|
146
|
+
while (mapping && mapping.originalLine === originalLine) {
|
|
147
|
+
mappings.push({
|
|
148
|
+
line: util.getArg(mapping, "generatedLine", null),
|
|
149
|
+
column: util.getArg(mapping, "generatedColumn", null),
|
|
150
|
+
lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
|
|
151
|
+
});
|
|
152
|
+
mapping = this._originalMappings[++index];
|
|
153
|
+
}
|
|
154
|
+
} else {
|
|
155
|
+
var originalColumn = mapping.originalColumn;
|
|
156
|
+
while (mapping && mapping.originalLine === line && mapping.originalColumn == originalColumn) {
|
|
157
|
+
mappings.push({
|
|
158
|
+
line: util.getArg(mapping, "generatedLine", null),
|
|
159
|
+
column: util.getArg(mapping, "generatedColumn", null),
|
|
160
|
+
lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
|
|
161
|
+
});
|
|
162
|
+
mapping = this._originalMappings[++index];
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
return mappings;
|
|
167
|
+
};
|
|
168
|
+
exports.SourceMapConsumer = SourceMapConsumer;
|
|
169
|
+
/**
|
|
170
|
+
* A BasicSourceMapConsumer instance represents a parsed source map which we can
|
|
171
|
+
* query for information about the original file positions by giving it a file
|
|
172
|
+
* position in the generated source.
|
|
173
|
+
*
|
|
174
|
+
* The first parameter is the raw source map (either as a JSON string, or
|
|
175
|
+
* already parsed to an object). According to the spec, source maps have the
|
|
176
|
+
* following attributes:
|
|
177
|
+
*
|
|
178
|
+
* - version: Which version of the source map spec this map is following.
|
|
179
|
+
* - sources: An array of URLs to the original source files.
|
|
180
|
+
* - names: An array of identifiers which can be referrenced by individual mappings.
|
|
181
|
+
* - sourceRoot: Optional. The URL root from which all sources are relative.
|
|
182
|
+
* - sourcesContent: Optional. An array of contents of the original source files.
|
|
183
|
+
* - mappings: A string of base64 VLQs which contain the actual mappings.
|
|
184
|
+
* - file: Optional. The generated file this source map is associated with.
|
|
185
|
+
*
|
|
186
|
+
* Here is an example source map, taken from the source map spec[0]:
|
|
187
|
+
*
|
|
188
|
+
* {
|
|
189
|
+
* version : 3,
|
|
190
|
+
* file: "out.js",
|
|
191
|
+
* sourceRoot : "",
|
|
192
|
+
* sources: ["foo.js", "bar.js"],
|
|
193
|
+
* names: ["src", "maps", "are", "fun"],
|
|
194
|
+
* mappings: "AA,AB;;ABCDE;"
|
|
195
|
+
* }
|
|
196
|
+
*
|
|
197
|
+
* The second parameter, if given, is a string whose value is the URL
|
|
198
|
+
* at which the source map was found. This URL is used to compute the
|
|
199
|
+
* sources array.
|
|
200
|
+
*
|
|
201
|
+
* [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#
|
|
202
|
+
*/
|
|
203
|
+
function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
|
|
204
|
+
var sourceMap = aSourceMap;
|
|
205
|
+
if (typeof aSourceMap === "string") sourceMap = util.parseSourceMapInput(aSourceMap);
|
|
206
|
+
var version = util.getArg(sourceMap, "version");
|
|
207
|
+
var sources = util.getArg(sourceMap, "sources");
|
|
208
|
+
var names = util.getArg(sourceMap, "names", []);
|
|
209
|
+
var sourceRoot = util.getArg(sourceMap, "sourceRoot", null);
|
|
210
|
+
var sourcesContent = util.getArg(sourceMap, "sourcesContent", null);
|
|
211
|
+
var mappings = util.getArg(sourceMap, "mappings");
|
|
212
|
+
var file = util.getArg(sourceMap, "file", null);
|
|
213
|
+
if (version != this._version) throw new Error("Unsupported version: " + version);
|
|
214
|
+
if (sourceRoot) sourceRoot = util.normalize(sourceRoot);
|
|
215
|
+
sources = sources.map(String).map(util.normalize).map(function(source) {
|
|
216
|
+
return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) ? util.relative(sourceRoot, source) : source;
|
|
217
|
+
});
|
|
218
|
+
this._names = ArraySet.fromArray(names.map(String), true);
|
|
219
|
+
this._sources = ArraySet.fromArray(sources, true);
|
|
220
|
+
this._absoluteSources = this._sources.toArray().map(function(s) {
|
|
221
|
+
return util.computeSourceURL(sourceRoot, s, aSourceMapURL);
|
|
222
|
+
});
|
|
223
|
+
this.sourceRoot = sourceRoot;
|
|
224
|
+
this.sourcesContent = sourcesContent;
|
|
225
|
+
this._mappings = mappings;
|
|
226
|
+
this._sourceMapURL = aSourceMapURL;
|
|
227
|
+
this.file = file;
|
|
228
|
+
}
|
|
229
|
+
BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
|
|
230
|
+
BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;
|
|
231
|
+
/**
|
|
232
|
+
* Utility function to find the index of a source. Returns -1 if not
|
|
233
|
+
* found.
|
|
234
|
+
*/
|
|
235
|
+
BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) {
|
|
236
|
+
var relativeSource = aSource;
|
|
237
|
+
if (this.sourceRoot != null) relativeSource = util.relative(this.sourceRoot, relativeSource);
|
|
238
|
+
if (this._sources.has(relativeSource)) return this._sources.indexOf(relativeSource);
|
|
239
|
+
var i = 0;
|
|
240
|
+
for (; i < this._absoluteSources.length; ++i) if (this._absoluteSources[i] == aSource) return i;
|
|
241
|
+
return -1;
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* Create a BasicSourceMapConsumer from a SourceMapGenerator.
|
|
245
|
+
*
|
|
246
|
+
* @param SourceMapGenerator aSourceMap
|
|
247
|
+
* The source map that will be consumed.
|
|
248
|
+
* @param String aSourceMapURL
|
|
249
|
+
* The URL at which the source map can be found (optional)
|
|
250
|
+
* @returns BasicSourceMapConsumer
|
|
251
|
+
*/
|
|
252
|
+
BasicSourceMapConsumer.fromSourceMap = function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) {
|
|
253
|
+
var smc = Object.create(BasicSourceMapConsumer.prototype);
|
|
254
|
+
var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);
|
|
255
|
+
var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);
|
|
256
|
+
smc.sourceRoot = aSourceMap._sourceRoot;
|
|
257
|
+
smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), smc.sourceRoot);
|
|
258
|
+
smc.file = aSourceMap._file;
|
|
259
|
+
smc._sourceMapURL = aSourceMapURL;
|
|
260
|
+
smc._absoluteSources = smc._sources.toArray().map(function(s) {
|
|
261
|
+
return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL);
|
|
262
|
+
});
|
|
263
|
+
var generatedMappings = aSourceMap._mappings.toArray().slice();
|
|
264
|
+
var destGeneratedMappings = smc.__generatedMappings = [];
|
|
265
|
+
var destOriginalMappings = smc.__originalMappings = [];
|
|
266
|
+
for (var i = 0, length = generatedMappings.length; i < length; i++) {
|
|
267
|
+
var srcMapping = generatedMappings[i];
|
|
268
|
+
var destMapping = new Mapping();
|
|
269
|
+
destMapping.generatedLine = srcMapping.generatedLine;
|
|
270
|
+
destMapping.generatedColumn = srcMapping.generatedColumn;
|
|
271
|
+
if (srcMapping.source) {
|
|
272
|
+
destMapping.source = sources.indexOf(srcMapping.source);
|
|
273
|
+
destMapping.originalLine = srcMapping.originalLine;
|
|
274
|
+
destMapping.originalColumn = srcMapping.originalColumn;
|
|
275
|
+
if (srcMapping.name) destMapping.name = names.indexOf(srcMapping.name);
|
|
276
|
+
destOriginalMappings.push(destMapping);
|
|
277
|
+
}
|
|
278
|
+
destGeneratedMappings.push(destMapping);
|
|
279
|
+
}
|
|
280
|
+
quickSort(smc.__originalMappings, util.compareByOriginalPositions);
|
|
281
|
+
return smc;
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* The version of the source mapping spec that we are consuming.
|
|
285
|
+
*/
|
|
286
|
+
BasicSourceMapConsumer.prototype._version = 3;
|
|
287
|
+
/**
|
|
288
|
+
* The list of original sources.
|
|
289
|
+
*/
|
|
290
|
+
Object.defineProperty(BasicSourceMapConsumer.prototype, "sources", { get: function() {
|
|
291
|
+
return this._absoluteSources.slice();
|
|
292
|
+
} });
|
|
293
|
+
/**
|
|
294
|
+
* Provide the JIT with a nice shape / hidden class.
|
|
295
|
+
*/
|
|
296
|
+
function Mapping() {
|
|
297
|
+
this.generatedLine = 0;
|
|
298
|
+
this.generatedColumn = 0;
|
|
299
|
+
this.source = null;
|
|
300
|
+
this.originalLine = null;
|
|
301
|
+
this.originalColumn = null;
|
|
302
|
+
this.name = null;
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Parse the mappings in a string in to a data structure which we can easily
|
|
306
|
+
* query (the ordered arrays in the `this.__generatedMappings` and
|
|
307
|
+
* `this.__originalMappings` properties).
|
|
308
|
+
*/
|
|
309
|
+
BasicSourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
|
|
310
|
+
var generatedLine = 1;
|
|
311
|
+
var previousGeneratedColumn = 0;
|
|
312
|
+
var previousOriginalLine = 0;
|
|
313
|
+
var previousOriginalColumn = 0;
|
|
314
|
+
var previousSource = 0;
|
|
315
|
+
var previousName = 0;
|
|
316
|
+
var length = aStr.length;
|
|
317
|
+
var index = 0;
|
|
318
|
+
var cachedSegments = {};
|
|
319
|
+
var temp = {};
|
|
320
|
+
var originalMappings = [];
|
|
321
|
+
var generatedMappings = [];
|
|
322
|
+
var mapping, str, segment, end, value;
|
|
323
|
+
while (index < length) if (aStr.charAt(index) === ";") {
|
|
324
|
+
generatedLine++;
|
|
325
|
+
index++;
|
|
326
|
+
previousGeneratedColumn = 0;
|
|
327
|
+
} else if (aStr.charAt(index) === ",") index++;
|
|
328
|
+
else {
|
|
329
|
+
mapping = new Mapping();
|
|
330
|
+
mapping.generatedLine = generatedLine;
|
|
331
|
+
for (end = index; end < length; end++) if (this._charIsMappingSeparator(aStr, end)) break;
|
|
332
|
+
str = aStr.slice(index, end);
|
|
333
|
+
segment = cachedSegments[str];
|
|
334
|
+
if (segment) index += str.length;
|
|
335
|
+
else {
|
|
336
|
+
segment = [];
|
|
337
|
+
while (index < end) {
|
|
338
|
+
base64VLQ.decode(aStr, index, temp);
|
|
339
|
+
value = temp.value;
|
|
340
|
+
index = temp.rest;
|
|
341
|
+
segment.push(value);
|
|
342
|
+
}
|
|
343
|
+
if (segment.length === 2) throw new Error("Found a source, but no line and column");
|
|
344
|
+
if (segment.length === 3) throw new Error("Found a source and line, but no column");
|
|
345
|
+
cachedSegments[str] = segment;
|
|
346
|
+
}
|
|
347
|
+
mapping.generatedColumn = previousGeneratedColumn + segment[0];
|
|
348
|
+
previousGeneratedColumn = mapping.generatedColumn;
|
|
349
|
+
if (segment.length > 1) {
|
|
350
|
+
mapping.source = previousSource + segment[1];
|
|
351
|
+
previousSource += segment[1];
|
|
352
|
+
mapping.originalLine = previousOriginalLine + segment[2];
|
|
353
|
+
previousOriginalLine = mapping.originalLine;
|
|
354
|
+
mapping.originalLine += 1;
|
|
355
|
+
mapping.originalColumn = previousOriginalColumn + segment[3];
|
|
356
|
+
previousOriginalColumn = mapping.originalColumn;
|
|
357
|
+
if (segment.length > 4) {
|
|
358
|
+
mapping.name = previousName + segment[4];
|
|
359
|
+
previousName += segment[4];
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
generatedMappings.push(mapping);
|
|
363
|
+
if (typeof mapping.originalLine === "number") originalMappings.push(mapping);
|
|
364
|
+
}
|
|
365
|
+
quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated);
|
|
366
|
+
this.__generatedMappings = generatedMappings;
|
|
367
|
+
quickSort(originalMappings, util.compareByOriginalPositions);
|
|
368
|
+
this.__originalMappings = originalMappings;
|
|
369
|
+
};
|
|
370
|
+
/**
|
|
371
|
+
* Find the mapping that best matches the hypothetical "needle" mapping that
|
|
372
|
+
* we are searching for in the given "haystack" of mappings.
|
|
373
|
+
*/
|
|
374
|
+
BasicSourceMapConsumer.prototype._findMapping = function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, aColumnName, aComparator, aBias) {
|
|
375
|
+
if (aNeedle[aLineName] <= 0) throw new TypeError("Line must be greater than or equal to 1, got " + aNeedle[aLineName]);
|
|
376
|
+
if (aNeedle[aColumnName] < 0) throw new TypeError("Column must be greater than or equal to 0, got " + aNeedle[aColumnName]);
|
|
377
|
+
return binarySearch.search(aNeedle, aMappings, aComparator, aBias);
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
* Compute the last column for each generated mapping. The last column is
|
|
381
|
+
* inclusive.
|
|
382
|
+
*/
|
|
383
|
+
BasicSourceMapConsumer.prototype.computeColumnSpans = function SourceMapConsumer_computeColumnSpans() {
|
|
384
|
+
for (var index = 0; index < this._generatedMappings.length; ++index) {
|
|
385
|
+
var mapping = this._generatedMappings[index];
|
|
386
|
+
if (index + 1 < this._generatedMappings.length) {
|
|
387
|
+
var nextMapping = this._generatedMappings[index + 1];
|
|
388
|
+
if (mapping.generatedLine === nextMapping.generatedLine) {
|
|
389
|
+
mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;
|
|
390
|
+
continue;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
mapping.lastGeneratedColumn = 1e400;
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
/**
|
|
397
|
+
* Returns the original source, line, and column information for the generated
|
|
398
|
+
* source's line and column positions provided. The only argument is an object
|
|
399
|
+
* with the following properties:
|
|
400
|
+
*
|
|
401
|
+
* - line: The line number in the generated source. The line number
|
|
402
|
+
* is 1-based.
|
|
403
|
+
* - column: The column number in the generated source. The column
|
|
404
|
+
* number is 0-based.
|
|
405
|
+
* - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
|
|
406
|
+
* 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
|
|
407
|
+
* closest element that is smaller than or greater than the one we are
|
|
408
|
+
* searching for, respectively, if the exact element cannot be found.
|
|
409
|
+
* Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
|
|
410
|
+
*
|
|
411
|
+
* and an object is returned with the following properties:
|
|
412
|
+
*
|
|
413
|
+
* - source: The original source file, or null.
|
|
414
|
+
* - line: The line number in the original source, or null. The
|
|
415
|
+
* line number is 1-based.
|
|
416
|
+
* - column: The column number in the original source, or null. The
|
|
417
|
+
* column number is 0-based.
|
|
418
|
+
* - name: The original identifier, or null.
|
|
419
|
+
*/
|
|
420
|
+
BasicSourceMapConsumer.prototype.originalPositionFor = function SourceMapConsumer_originalPositionFor(aArgs) {
|
|
421
|
+
var needle = {
|
|
422
|
+
generatedLine: util.getArg(aArgs, "line"),
|
|
423
|
+
generatedColumn: util.getArg(aArgs, "column")
|
|
424
|
+
};
|
|
425
|
+
var index = this._findMapping(needle, this._generatedMappings, "generatedLine", "generatedColumn", util.compareByGeneratedPositionsDeflated, util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND));
|
|
426
|
+
if (index >= 0) {
|
|
427
|
+
var mapping = this._generatedMappings[index];
|
|
428
|
+
if (mapping.generatedLine === needle.generatedLine) {
|
|
429
|
+
var source = util.getArg(mapping, "source", null);
|
|
430
|
+
if (source !== null) {
|
|
431
|
+
source = this._sources.at(source);
|
|
432
|
+
source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);
|
|
433
|
+
}
|
|
434
|
+
var name = util.getArg(mapping, "name", null);
|
|
435
|
+
if (name !== null) name = this._names.at(name);
|
|
436
|
+
return {
|
|
437
|
+
source,
|
|
438
|
+
line: util.getArg(mapping, "originalLine", null),
|
|
439
|
+
column: util.getArg(mapping, "originalColumn", null),
|
|
440
|
+
name
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
return {
|
|
445
|
+
source: null,
|
|
446
|
+
line: null,
|
|
447
|
+
column: null,
|
|
448
|
+
name: null
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
/**
|
|
452
|
+
* Return true if we have the source content for every source in the source
|
|
453
|
+
* map, false otherwise.
|
|
454
|
+
*/
|
|
455
|
+
BasicSourceMapConsumer.prototype.hasContentsOfAllSources = function BasicSourceMapConsumer_hasContentsOfAllSources() {
|
|
456
|
+
if (!this.sourcesContent) return false;
|
|
457
|
+
return this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function(sc) {
|
|
458
|
+
return sc == null;
|
|
459
|
+
});
|
|
460
|
+
};
|
|
461
|
+
/**
|
|
462
|
+
* Returns the original source content. The only argument is the url of the
|
|
463
|
+
* original source file. Returns null if no original source content is
|
|
464
|
+
* available.
|
|
465
|
+
*/
|
|
466
|
+
BasicSourceMapConsumer.prototype.sourceContentFor = function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
|
|
467
|
+
if (!this.sourcesContent) return null;
|
|
468
|
+
var index = this._findSourceIndex(aSource);
|
|
469
|
+
if (index >= 0) return this.sourcesContent[index];
|
|
470
|
+
var relativeSource = aSource;
|
|
471
|
+
if (this.sourceRoot != null) relativeSource = util.relative(this.sourceRoot, relativeSource);
|
|
472
|
+
var url;
|
|
473
|
+
if (this.sourceRoot != null && (url = util.urlParse(this.sourceRoot))) {
|
|
474
|
+
var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
|
|
475
|
+
if (url.scheme == "file" && this._sources.has(fileUriAbsPath)) return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
|
|
476
|
+
if ((!url.path || url.path == "/") && this._sources.has("/" + relativeSource)) return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
|
|
477
|
+
}
|
|
478
|
+
if (nullOnMissing) return null;
|
|
479
|
+
else throw new Error("\"" + relativeSource + "\" is not in the SourceMap.");
|
|
480
|
+
};
|
|
481
|
+
/**
|
|
482
|
+
* Returns the generated line and column information for the original source,
|
|
483
|
+
* line, and column positions provided. The only argument is an object with
|
|
484
|
+
* the following properties:
|
|
485
|
+
*
|
|
486
|
+
* - source: The filename of the original source.
|
|
487
|
+
* - line: The line number in the original source. The line number
|
|
488
|
+
* is 1-based.
|
|
489
|
+
* - column: The column number in the original source. The column
|
|
490
|
+
* number is 0-based.
|
|
491
|
+
* - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
|
|
492
|
+
* 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
|
|
493
|
+
* closest element that is smaller than or greater than the one we are
|
|
494
|
+
* searching for, respectively, if the exact element cannot be found.
|
|
495
|
+
* Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
|
|
496
|
+
*
|
|
497
|
+
* and an object is returned with the following properties:
|
|
498
|
+
*
|
|
499
|
+
* - line: The line number in the generated source, or null. The
|
|
500
|
+
* line number is 1-based.
|
|
501
|
+
* - column: The column number in the generated source, or null.
|
|
502
|
+
* The column number is 0-based.
|
|
503
|
+
*/
|
|
504
|
+
BasicSourceMapConsumer.prototype.generatedPositionFor = function SourceMapConsumer_generatedPositionFor(aArgs) {
|
|
505
|
+
var source = util.getArg(aArgs, "source");
|
|
506
|
+
source = this._findSourceIndex(source);
|
|
507
|
+
if (source < 0) return {
|
|
508
|
+
line: null,
|
|
509
|
+
column: null,
|
|
510
|
+
lastColumn: null
|
|
511
|
+
};
|
|
512
|
+
var needle = {
|
|
513
|
+
source,
|
|
514
|
+
originalLine: util.getArg(aArgs, "line"),
|
|
515
|
+
originalColumn: util.getArg(aArgs, "column")
|
|
516
|
+
};
|
|
517
|
+
var index = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util.compareByOriginalPositions, util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND));
|
|
518
|
+
if (index >= 0) {
|
|
519
|
+
var mapping = this._originalMappings[index];
|
|
520
|
+
if (mapping.source === needle.source) return {
|
|
521
|
+
line: util.getArg(mapping, "generatedLine", null),
|
|
522
|
+
column: util.getArg(mapping, "generatedColumn", null),
|
|
523
|
+
lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
return {
|
|
527
|
+
line: null,
|
|
528
|
+
column: null,
|
|
529
|
+
lastColumn: null
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
exports.BasicSourceMapConsumer = BasicSourceMapConsumer;
|
|
533
|
+
/**
|
|
534
|
+
* An IndexedSourceMapConsumer instance represents a parsed source map which
|
|
535
|
+
* we can query for information. It differs from BasicSourceMapConsumer in
|
|
536
|
+
* that it takes "indexed" source maps (i.e. ones with a "sections" field) as
|
|
537
|
+
* input.
|
|
538
|
+
*
|
|
539
|
+
* The first parameter is a raw source map (either as a JSON string, or already
|
|
540
|
+
* parsed to an object). According to the spec for indexed source maps, they
|
|
541
|
+
* have the following attributes:
|
|
542
|
+
*
|
|
543
|
+
* - version: Which version of the source map spec this map is following.
|
|
544
|
+
* - file: Optional. The generated file this source map is associated with.
|
|
545
|
+
* - sections: A list of section definitions.
|
|
546
|
+
*
|
|
547
|
+
* Each value under the "sections" field has two fields:
|
|
548
|
+
* - offset: The offset into the original specified at which this section
|
|
549
|
+
* begins to apply, defined as an object with a "line" and "column"
|
|
550
|
+
* field.
|
|
551
|
+
* - map: A source map definition. This source map could also be indexed,
|
|
552
|
+
* but doesn't have to be.
|
|
553
|
+
*
|
|
554
|
+
* Instead of the "map" field, it's also possible to have a "url" field
|
|
555
|
+
* specifying a URL to retrieve a source map from, but that's currently
|
|
556
|
+
* unsupported.
|
|
557
|
+
*
|
|
558
|
+
* Here's an example source map, taken from the source map spec[0], but
|
|
559
|
+
* modified to omit a section which uses the "url" field.
|
|
560
|
+
*
|
|
561
|
+
* {
|
|
562
|
+
* version : 3,
|
|
563
|
+
* file: "app.js",
|
|
564
|
+
* sections: [{
|
|
565
|
+
* offset: {line:100, column:10},
|
|
566
|
+
* map: {
|
|
567
|
+
* version : 3,
|
|
568
|
+
* file: "section.js",
|
|
569
|
+
* sources: ["foo.js", "bar.js"],
|
|
570
|
+
* names: ["src", "maps", "are", "fun"],
|
|
571
|
+
* mappings: "AAAA,E;;ABCDE;"
|
|
572
|
+
* }
|
|
573
|
+
* }],
|
|
574
|
+
* }
|
|
575
|
+
*
|
|
576
|
+
* The second parameter, if given, is a string whose value is the URL
|
|
577
|
+
* at which the source map was found. This URL is used to compute the
|
|
578
|
+
* sources array.
|
|
579
|
+
*
|
|
580
|
+
* [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt
|
|
581
|
+
*/
|
|
582
|
+
function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {
|
|
583
|
+
var sourceMap = aSourceMap;
|
|
584
|
+
if (typeof aSourceMap === "string") sourceMap = util.parseSourceMapInput(aSourceMap);
|
|
585
|
+
var version = util.getArg(sourceMap, "version");
|
|
586
|
+
var sections = util.getArg(sourceMap, "sections");
|
|
587
|
+
if (version != this._version) throw new Error("Unsupported version: " + version);
|
|
588
|
+
this._sources = new ArraySet();
|
|
589
|
+
this._names = new ArraySet();
|
|
590
|
+
var lastOffset = {
|
|
591
|
+
line: -1,
|
|
592
|
+
column: 0
|
|
593
|
+
};
|
|
594
|
+
this._sections = sections.map(function(s) {
|
|
595
|
+
if (s.url) throw new Error("Support for url field in sections not implemented.");
|
|
596
|
+
var offset = util.getArg(s, "offset");
|
|
597
|
+
var offsetLine = util.getArg(offset, "line");
|
|
598
|
+
var offsetColumn = util.getArg(offset, "column");
|
|
599
|
+
if (offsetLine < lastOffset.line || offsetLine === lastOffset.line && offsetColumn < lastOffset.column) throw new Error("Section offsets must be ordered and non-overlapping.");
|
|
600
|
+
lastOffset = offset;
|
|
601
|
+
return {
|
|
602
|
+
generatedOffset: {
|
|
603
|
+
generatedLine: offsetLine + 1,
|
|
604
|
+
generatedColumn: offsetColumn + 1
|
|
605
|
+
},
|
|
606
|
+
consumer: new SourceMapConsumer(util.getArg(s, "map"), aSourceMapURL)
|
|
607
|
+
};
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
|
|
611
|
+
IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;
|
|
612
|
+
/**
|
|
613
|
+
* The version of the source mapping spec that we are consuming.
|
|
614
|
+
*/
|
|
615
|
+
IndexedSourceMapConsumer.prototype._version = 3;
|
|
616
|
+
/**
|
|
617
|
+
* The list of original sources.
|
|
618
|
+
*/
|
|
619
|
+
Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", { get: function() {
|
|
620
|
+
var sources = [];
|
|
621
|
+
for (var i = 0; i < this._sections.length; i++) for (var j = 0; j < this._sections[i].consumer.sources.length; j++) sources.push(this._sections[i].consumer.sources[j]);
|
|
622
|
+
return sources;
|
|
623
|
+
} });
|
|
624
|
+
/**
|
|
625
|
+
* Returns the original source, line, and column information for the generated
|
|
626
|
+
* source's line and column positions provided. The only argument is an object
|
|
627
|
+
* with the following properties:
|
|
628
|
+
*
|
|
629
|
+
* - line: The line number in the generated source. The line number
|
|
630
|
+
* is 1-based.
|
|
631
|
+
* - column: The column number in the generated source. The column
|
|
632
|
+
* number is 0-based.
|
|
633
|
+
*
|
|
634
|
+
* and an object is returned with the following properties:
|
|
635
|
+
*
|
|
636
|
+
* - source: The original source file, or null.
|
|
637
|
+
* - line: The line number in the original source, or null. The
|
|
638
|
+
* line number is 1-based.
|
|
639
|
+
* - column: The column number in the original source, or null. The
|
|
640
|
+
* column number is 0-based.
|
|
641
|
+
* - name: The original identifier, or null.
|
|
642
|
+
*/
|
|
643
|
+
IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(aArgs) {
|
|
644
|
+
var needle = {
|
|
645
|
+
generatedLine: util.getArg(aArgs, "line"),
|
|
646
|
+
generatedColumn: util.getArg(aArgs, "column")
|
|
647
|
+
};
|
|
648
|
+
var sectionIndex = binarySearch.search(needle, this._sections, function(needle, section) {
|
|
649
|
+
var cmp = needle.generatedLine - section.generatedOffset.generatedLine;
|
|
650
|
+
if (cmp) return cmp;
|
|
651
|
+
return needle.generatedColumn - section.generatedOffset.generatedColumn;
|
|
652
|
+
});
|
|
653
|
+
var section = this._sections[sectionIndex];
|
|
654
|
+
if (!section) return {
|
|
655
|
+
source: null,
|
|
656
|
+
line: null,
|
|
657
|
+
column: null,
|
|
658
|
+
name: null
|
|
659
|
+
};
|
|
660
|
+
return section.consumer.originalPositionFor({
|
|
661
|
+
line: needle.generatedLine - (section.generatedOffset.generatedLine - 1),
|
|
662
|
+
column: needle.generatedColumn - (section.generatedOffset.generatedLine === needle.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
|
|
663
|
+
bias: aArgs.bias
|
|
664
|
+
});
|
|
665
|
+
};
|
|
666
|
+
/**
|
|
667
|
+
* Return true if we have the source content for every source in the source
|
|
668
|
+
* map, false otherwise.
|
|
669
|
+
*/
|
|
670
|
+
IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = function IndexedSourceMapConsumer_hasContentsOfAllSources() {
|
|
671
|
+
return this._sections.every(function(s) {
|
|
672
|
+
return s.consumer.hasContentsOfAllSources();
|
|
673
|
+
});
|
|
674
|
+
};
|
|
675
|
+
/**
|
|
676
|
+
* Returns the original source content. The only argument is the url of the
|
|
677
|
+
* original source file. Returns null if no original source content is
|
|
678
|
+
* available.
|
|
679
|
+
*/
|
|
680
|
+
IndexedSourceMapConsumer.prototype.sourceContentFor = function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
|
|
681
|
+
for (var i = 0; i < this._sections.length; i++) {
|
|
682
|
+
var content = this._sections[i].consumer.sourceContentFor(aSource, true);
|
|
683
|
+
if (content) return content;
|
|
684
|
+
}
|
|
685
|
+
if (nullOnMissing) return null;
|
|
686
|
+
else throw new Error("\"" + aSource + "\" is not in the SourceMap.");
|
|
687
|
+
};
|
|
688
|
+
/**
|
|
689
|
+
* Returns the generated line and column information for the original source,
|
|
690
|
+
* line, and column positions provided. The only argument is an object with
|
|
691
|
+
* the following properties:
|
|
692
|
+
*
|
|
693
|
+
* - source: The filename of the original source.
|
|
694
|
+
* - line: The line number in the original source. The line number
|
|
695
|
+
* is 1-based.
|
|
696
|
+
* - column: The column number in the original source. The column
|
|
697
|
+
* number is 0-based.
|
|
698
|
+
*
|
|
699
|
+
* and an object is returned with the following properties:
|
|
700
|
+
*
|
|
701
|
+
* - line: The line number in the generated source, or null. The
|
|
702
|
+
* line number is 1-based.
|
|
703
|
+
* - column: The column number in the generated source, or null.
|
|
704
|
+
* The column number is 0-based.
|
|
705
|
+
*/
|
|
706
|
+
IndexedSourceMapConsumer.prototype.generatedPositionFor = function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {
|
|
707
|
+
for (var i = 0; i < this._sections.length; i++) {
|
|
708
|
+
var section = this._sections[i];
|
|
709
|
+
if (section.consumer._findSourceIndex(util.getArg(aArgs, "source")) === -1) continue;
|
|
710
|
+
var generatedPosition = section.consumer.generatedPositionFor(aArgs);
|
|
711
|
+
if (generatedPosition) return {
|
|
712
|
+
line: generatedPosition.line + (section.generatedOffset.generatedLine - 1),
|
|
713
|
+
column: generatedPosition.column + (section.generatedOffset.generatedLine === generatedPosition.line ? section.generatedOffset.generatedColumn - 1 : 0)
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
return {
|
|
717
|
+
line: null,
|
|
718
|
+
column: null
|
|
719
|
+
};
|
|
720
|
+
};
|
|
721
|
+
/**
|
|
722
|
+
* Parse the mappings in a string in to a data structure which we can easily
|
|
723
|
+
* query (the ordered arrays in the `this.__generatedMappings` and
|
|
724
|
+
* `this.__originalMappings` properties).
|
|
725
|
+
*/
|
|
726
|
+
IndexedSourceMapConsumer.prototype._parseMappings = function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {
|
|
727
|
+
this.__generatedMappings = [];
|
|
728
|
+
this.__originalMappings = [];
|
|
729
|
+
for (var i = 0; i < this._sections.length; i++) {
|
|
730
|
+
var section = this._sections[i];
|
|
731
|
+
var sectionMappings = section.consumer._generatedMappings;
|
|
732
|
+
for (var j = 0; j < sectionMappings.length; j++) {
|
|
733
|
+
var mapping = sectionMappings[j];
|
|
734
|
+
var source = section.consumer._sources.at(mapping.source);
|
|
735
|
+
source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);
|
|
736
|
+
this._sources.add(source);
|
|
737
|
+
source = this._sources.indexOf(source);
|
|
738
|
+
var name = null;
|
|
739
|
+
if (mapping.name) {
|
|
740
|
+
name = section.consumer._names.at(mapping.name);
|
|
741
|
+
this._names.add(name);
|
|
742
|
+
name = this._names.indexOf(name);
|
|
743
|
+
}
|
|
744
|
+
var adjustedMapping = {
|
|
745
|
+
source,
|
|
746
|
+
generatedLine: mapping.generatedLine + (section.generatedOffset.generatedLine - 1),
|
|
747
|
+
generatedColumn: mapping.generatedColumn + (section.generatedOffset.generatedLine === mapping.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
|
|
748
|
+
originalLine: mapping.originalLine,
|
|
749
|
+
originalColumn: mapping.originalColumn,
|
|
750
|
+
name
|
|
751
|
+
};
|
|
752
|
+
this.__generatedMappings.push(adjustedMapping);
|
|
753
|
+
if (typeof adjustedMapping.originalLine === "number") this.__originalMappings.push(adjustedMapping);
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated);
|
|
757
|
+
quickSort(this.__originalMappings, util.compareByOriginalPositions);
|
|
758
|
+
};
|
|
759
|
+
exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
|
|
760
|
+
}));
|
|
761
|
+
export default require_source_map_consumer();
|
|
762
|
+
require_source_map_consumer__cjs.v = require_source_map_consumer();
|
|
12
763
|
|
|
13
|
-
|
|
14
|
-
var binarySearch = binarySearch$1;
|
|
15
|
-
var ArraySet = arraySet.ArraySet;
|
|
16
|
-
var base64VLQ = base64Vlq;
|
|
17
|
-
var quickSort = quickSort$1.quickSort;
|
|
18
|
-
function SourceMapConsumer(aSourceMap, aSourceMapURL) {
|
|
19
|
-
var sourceMap = aSourceMap;
|
|
20
|
-
if (typeof aSourceMap === "string") {
|
|
21
|
-
sourceMap = util.parseSourceMapInput(aSourceMap);
|
|
22
|
-
}
|
|
23
|
-
return sourceMap.sections != null ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);
|
|
24
|
-
}
|
|
25
|
-
SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) {
|
|
26
|
-
return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);
|
|
27
|
-
};
|
|
28
|
-
SourceMapConsumer.prototype._version = 3;
|
|
29
|
-
SourceMapConsumer.prototype.__generatedMappings = null;
|
|
30
|
-
Object.defineProperty(SourceMapConsumer.prototype, "_generatedMappings", {
|
|
31
|
-
configurable: true,
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function() {
|
|
34
|
-
if (!this.__generatedMappings) {
|
|
35
|
-
this._parseMappings(this._mappings, this.sourceRoot);
|
|
36
|
-
}
|
|
37
|
-
return this.__generatedMappings;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
SourceMapConsumer.prototype.__originalMappings = null;
|
|
41
|
-
Object.defineProperty(SourceMapConsumer.prototype, "_originalMappings", {
|
|
42
|
-
configurable: true,
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function() {
|
|
45
|
-
if (!this.__originalMappings) {
|
|
46
|
-
this._parseMappings(this._mappings, this.sourceRoot);
|
|
47
|
-
}
|
|
48
|
-
return this.__originalMappings;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
SourceMapConsumer.prototype._charIsMappingSeparator = function SourceMapConsumer_charIsMappingSeparator(aStr, index) {
|
|
52
|
-
var c = aStr.charAt(index);
|
|
53
|
-
return c === ";" || c === ",";
|
|
54
|
-
};
|
|
55
|
-
SourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
|
|
56
|
-
throw new Error("Subclasses must implement _parseMappings");
|
|
57
|
-
};
|
|
58
|
-
SourceMapConsumer.GENERATED_ORDER = 1;
|
|
59
|
-
SourceMapConsumer.ORIGINAL_ORDER = 2;
|
|
60
|
-
SourceMapConsumer.GREATEST_LOWER_BOUND = 1;
|
|
61
|
-
SourceMapConsumer.LEAST_UPPER_BOUND = 2;
|
|
62
|
-
SourceMapConsumer.prototype.eachMapping = function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
|
|
63
|
-
var context = aContext || null;
|
|
64
|
-
var order = aOrder || SourceMapConsumer.GENERATED_ORDER;
|
|
65
|
-
var mappings;
|
|
66
|
-
switch (order) {
|
|
67
|
-
case SourceMapConsumer.GENERATED_ORDER:
|
|
68
|
-
mappings = this._generatedMappings;
|
|
69
|
-
break;
|
|
70
|
-
case SourceMapConsumer.ORIGINAL_ORDER:
|
|
71
|
-
mappings = this._originalMappings;
|
|
72
|
-
break;
|
|
73
|
-
default:
|
|
74
|
-
throw new Error("Unknown order of iteration.");
|
|
75
|
-
}
|
|
76
|
-
var sourceRoot = this.sourceRoot;
|
|
77
|
-
mappings.map(function(mapping) {
|
|
78
|
-
var source = mapping.source === null ? null : this._sources.at(mapping.source);
|
|
79
|
-
source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL);
|
|
80
|
-
return {
|
|
81
|
-
source,
|
|
82
|
-
generatedLine: mapping.generatedLine,
|
|
83
|
-
generatedColumn: mapping.generatedColumn,
|
|
84
|
-
originalLine: mapping.originalLine,
|
|
85
|
-
originalColumn: mapping.originalColumn,
|
|
86
|
-
name: mapping.name === null ? null : this._names.at(mapping.name)
|
|
87
|
-
};
|
|
88
|
-
}, this).forEach(aCallback, context);
|
|
89
|
-
};
|
|
90
|
-
SourceMapConsumer.prototype.allGeneratedPositionsFor = function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {
|
|
91
|
-
var line = util.getArg(aArgs, "line");
|
|
92
|
-
var needle = {
|
|
93
|
-
source: util.getArg(aArgs, "source"),
|
|
94
|
-
originalLine: line,
|
|
95
|
-
originalColumn: util.getArg(aArgs, "column", 0)
|
|
96
|
-
};
|
|
97
|
-
needle.source = this._findSourceIndex(needle.source);
|
|
98
|
-
if (needle.source < 0) {
|
|
99
|
-
return [];
|
|
100
|
-
}
|
|
101
|
-
var mappings = [];
|
|
102
|
-
var index = this._findMapping(
|
|
103
|
-
needle,
|
|
104
|
-
this._originalMappings,
|
|
105
|
-
"originalLine",
|
|
106
|
-
"originalColumn",
|
|
107
|
-
util.compareByOriginalPositions,
|
|
108
|
-
binarySearch.LEAST_UPPER_BOUND
|
|
109
|
-
);
|
|
110
|
-
if (index >= 0) {
|
|
111
|
-
var mapping = this._originalMappings[index];
|
|
112
|
-
if (aArgs.column === void 0) {
|
|
113
|
-
var originalLine = mapping.originalLine;
|
|
114
|
-
while (mapping && mapping.originalLine === originalLine) {
|
|
115
|
-
mappings.push({
|
|
116
|
-
line: util.getArg(mapping, "generatedLine", null),
|
|
117
|
-
column: util.getArg(mapping, "generatedColumn", null),
|
|
118
|
-
lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
|
|
119
|
-
});
|
|
120
|
-
mapping = this._originalMappings[++index];
|
|
121
|
-
}
|
|
122
|
-
} else {
|
|
123
|
-
var originalColumn = mapping.originalColumn;
|
|
124
|
-
while (mapping && mapping.originalLine === line && mapping.originalColumn == originalColumn) {
|
|
125
|
-
mappings.push({
|
|
126
|
-
line: util.getArg(mapping, "generatedLine", null),
|
|
127
|
-
column: util.getArg(mapping, "generatedColumn", null),
|
|
128
|
-
lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
|
|
129
|
-
});
|
|
130
|
-
mapping = this._originalMappings[++index];
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
return mappings;
|
|
135
|
-
};
|
|
136
|
-
sourceMapConsumer.SourceMapConsumer = SourceMapConsumer;
|
|
137
|
-
function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
|
|
138
|
-
var sourceMap = aSourceMap;
|
|
139
|
-
if (typeof aSourceMap === "string") {
|
|
140
|
-
sourceMap = util.parseSourceMapInput(aSourceMap);
|
|
141
|
-
}
|
|
142
|
-
var version = util.getArg(sourceMap, "version");
|
|
143
|
-
var sources = util.getArg(sourceMap, "sources");
|
|
144
|
-
var names = util.getArg(sourceMap, "names", []);
|
|
145
|
-
var sourceRoot = util.getArg(sourceMap, "sourceRoot", null);
|
|
146
|
-
var sourcesContent = util.getArg(sourceMap, "sourcesContent", null);
|
|
147
|
-
var mappings = util.getArg(sourceMap, "mappings");
|
|
148
|
-
var file = util.getArg(sourceMap, "file", null);
|
|
149
|
-
if (version != this._version) {
|
|
150
|
-
throw new Error("Unsupported version: " + version);
|
|
151
|
-
}
|
|
152
|
-
if (sourceRoot) {
|
|
153
|
-
sourceRoot = util.normalize(sourceRoot);
|
|
154
|
-
}
|
|
155
|
-
sources = sources.map(String).map(util.normalize).map(function(source) {
|
|
156
|
-
return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) ? util.relative(sourceRoot, source) : source;
|
|
157
|
-
});
|
|
158
|
-
this._names = ArraySet.fromArray(names.map(String), true);
|
|
159
|
-
this._sources = ArraySet.fromArray(sources, true);
|
|
160
|
-
this._absoluteSources = this._sources.toArray().map(function(s) {
|
|
161
|
-
return util.computeSourceURL(sourceRoot, s, aSourceMapURL);
|
|
162
|
-
});
|
|
163
|
-
this.sourceRoot = sourceRoot;
|
|
164
|
-
this.sourcesContent = sourcesContent;
|
|
165
|
-
this._mappings = mappings;
|
|
166
|
-
this._sourceMapURL = aSourceMapURL;
|
|
167
|
-
this.file = file;
|
|
168
|
-
}
|
|
169
|
-
BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
|
|
170
|
-
BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;
|
|
171
|
-
BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) {
|
|
172
|
-
var relativeSource = aSource;
|
|
173
|
-
if (this.sourceRoot != null) {
|
|
174
|
-
relativeSource = util.relative(this.sourceRoot, relativeSource);
|
|
175
|
-
}
|
|
176
|
-
if (this._sources.has(relativeSource)) {
|
|
177
|
-
return this._sources.indexOf(relativeSource);
|
|
178
|
-
}
|
|
179
|
-
var i;
|
|
180
|
-
for (i = 0; i < this._absoluteSources.length; ++i) {
|
|
181
|
-
if (this._absoluteSources[i] == aSource) {
|
|
182
|
-
return i;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
return -1;
|
|
186
|
-
};
|
|
187
|
-
BasicSourceMapConsumer.fromSourceMap = function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) {
|
|
188
|
-
var smc = Object.create(BasicSourceMapConsumer.prototype);
|
|
189
|
-
var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);
|
|
190
|
-
var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);
|
|
191
|
-
smc.sourceRoot = aSourceMap._sourceRoot;
|
|
192
|
-
smc.sourcesContent = aSourceMap._generateSourcesContent(
|
|
193
|
-
smc._sources.toArray(),
|
|
194
|
-
smc.sourceRoot
|
|
195
|
-
);
|
|
196
|
-
smc.file = aSourceMap._file;
|
|
197
|
-
smc._sourceMapURL = aSourceMapURL;
|
|
198
|
-
smc._absoluteSources = smc._sources.toArray().map(function(s) {
|
|
199
|
-
return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL);
|
|
200
|
-
});
|
|
201
|
-
var generatedMappings = aSourceMap._mappings.toArray().slice();
|
|
202
|
-
var destGeneratedMappings = smc.__generatedMappings = [];
|
|
203
|
-
var destOriginalMappings = smc.__originalMappings = [];
|
|
204
|
-
for (var i = 0, length = generatedMappings.length; i < length; i++) {
|
|
205
|
-
var srcMapping = generatedMappings[i];
|
|
206
|
-
var destMapping = new Mapping();
|
|
207
|
-
destMapping.generatedLine = srcMapping.generatedLine;
|
|
208
|
-
destMapping.generatedColumn = srcMapping.generatedColumn;
|
|
209
|
-
if (srcMapping.source) {
|
|
210
|
-
destMapping.source = sources.indexOf(srcMapping.source);
|
|
211
|
-
destMapping.originalLine = srcMapping.originalLine;
|
|
212
|
-
destMapping.originalColumn = srcMapping.originalColumn;
|
|
213
|
-
if (srcMapping.name) {
|
|
214
|
-
destMapping.name = names.indexOf(srcMapping.name);
|
|
215
|
-
}
|
|
216
|
-
destOriginalMappings.push(destMapping);
|
|
217
|
-
}
|
|
218
|
-
destGeneratedMappings.push(destMapping);
|
|
219
|
-
}
|
|
220
|
-
quickSort(smc.__originalMappings, util.compareByOriginalPositions);
|
|
221
|
-
return smc;
|
|
222
|
-
};
|
|
223
|
-
BasicSourceMapConsumer.prototype._version = 3;
|
|
224
|
-
Object.defineProperty(BasicSourceMapConsumer.prototype, "sources", {
|
|
225
|
-
get: function() {
|
|
226
|
-
return this._absoluteSources.slice();
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
function Mapping() {
|
|
230
|
-
this.generatedLine = 0;
|
|
231
|
-
this.generatedColumn = 0;
|
|
232
|
-
this.source = null;
|
|
233
|
-
this.originalLine = null;
|
|
234
|
-
this.originalColumn = null;
|
|
235
|
-
this.name = null;
|
|
236
|
-
}
|
|
237
|
-
BasicSourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings2(aStr, aSourceRoot) {
|
|
238
|
-
var generatedLine = 1;
|
|
239
|
-
var previousGeneratedColumn = 0;
|
|
240
|
-
var previousOriginalLine = 0;
|
|
241
|
-
var previousOriginalColumn = 0;
|
|
242
|
-
var previousSource = 0;
|
|
243
|
-
var previousName = 0;
|
|
244
|
-
var length = aStr.length;
|
|
245
|
-
var index = 0;
|
|
246
|
-
var cachedSegments = {};
|
|
247
|
-
var temp = {};
|
|
248
|
-
var originalMappings = [];
|
|
249
|
-
var generatedMappings = [];
|
|
250
|
-
var mapping, str, segment, end, value;
|
|
251
|
-
while (index < length) {
|
|
252
|
-
if (aStr.charAt(index) === ";") {
|
|
253
|
-
generatedLine++;
|
|
254
|
-
index++;
|
|
255
|
-
previousGeneratedColumn = 0;
|
|
256
|
-
} else if (aStr.charAt(index) === ",") {
|
|
257
|
-
index++;
|
|
258
|
-
} else {
|
|
259
|
-
mapping = new Mapping();
|
|
260
|
-
mapping.generatedLine = generatedLine;
|
|
261
|
-
for (end = index; end < length; end++) {
|
|
262
|
-
if (this._charIsMappingSeparator(aStr, end)) {
|
|
263
|
-
break;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
str = aStr.slice(index, end);
|
|
267
|
-
segment = cachedSegments[str];
|
|
268
|
-
if (segment) {
|
|
269
|
-
index += str.length;
|
|
270
|
-
} else {
|
|
271
|
-
segment = [];
|
|
272
|
-
while (index < end) {
|
|
273
|
-
base64VLQ.decode(aStr, index, temp);
|
|
274
|
-
value = temp.value;
|
|
275
|
-
index = temp.rest;
|
|
276
|
-
segment.push(value);
|
|
277
|
-
}
|
|
278
|
-
if (segment.length === 2) {
|
|
279
|
-
throw new Error("Found a source, but no line and column");
|
|
280
|
-
}
|
|
281
|
-
if (segment.length === 3) {
|
|
282
|
-
throw new Error("Found a source and line, but no column");
|
|
283
|
-
}
|
|
284
|
-
cachedSegments[str] = segment;
|
|
285
|
-
}
|
|
286
|
-
mapping.generatedColumn = previousGeneratedColumn + segment[0];
|
|
287
|
-
previousGeneratedColumn = mapping.generatedColumn;
|
|
288
|
-
if (segment.length > 1) {
|
|
289
|
-
mapping.source = previousSource + segment[1];
|
|
290
|
-
previousSource += segment[1];
|
|
291
|
-
mapping.originalLine = previousOriginalLine + segment[2];
|
|
292
|
-
previousOriginalLine = mapping.originalLine;
|
|
293
|
-
mapping.originalLine += 1;
|
|
294
|
-
mapping.originalColumn = previousOriginalColumn + segment[3];
|
|
295
|
-
previousOriginalColumn = mapping.originalColumn;
|
|
296
|
-
if (segment.length > 4) {
|
|
297
|
-
mapping.name = previousName + segment[4];
|
|
298
|
-
previousName += segment[4];
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
generatedMappings.push(mapping);
|
|
302
|
-
if (typeof mapping.originalLine === "number") {
|
|
303
|
-
originalMappings.push(mapping);
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated);
|
|
308
|
-
this.__generatedMappings = generatedMappings;
|
|
309
|
-
quickSort(originalMappings, util.compareByOriginalPositions);
|
|
310
|
-
this.__originalMappings = originalMappings;
|
|
311
|
-
};
|
|
312
|
-
BasicSourceMapConsumer.prototype._findMapping = function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, aColumnName, aComparator, aBias) {
|
|
313
|
-
if (aNeedle[aLineName] <= 0) {
|
|
314
|
-
throw new TypeError("Line must be greater than or equal to 1, got " + aNeedle[aLineName]);
|
|
315
|
-
}
|
|
316
|
-
if (aNeedle[aColumnName] < 0) {
|
|
317
|
-
throw new TypeError("Column must be greater than or equal to 0, got " + aNeedle[aColumnName]);
|
|
318
|
-
}
|
|
319
|
-
return binarySearch.search(aNeedle, aMappings, aComparator, aBias);
|
|
320
|
-
};
|
|
321
|
-
BasicSourceMapConsumer.prototype.computeColumnSpans = function SourceMapConsumer_computeColumnSpans() {
|
|
322
|
-
for (var index = 0; index < this._generatedMappings.length; ++index) {
|
|
323
|
-
var mapping = this._generatedMappings[index];
|
|
324
|
-
if (index + 1 < this._generatedMappings.length) {
|
|
325
|
-
var nextMapping = this._generatedMappings[index + 1];
|
|
326
|
-
if (mapping.generatedLine === nextMapping.generatedLine) {
|
|
327
|
-
mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;
|
|
328
|
-
continue;
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
mapping.lastGeneratedColumn = Infinity;
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
|
-
BasicSourceMapConsumer.prototype.originalPositionFor = function SourceMapConsumer_originalPositionFor(aArgs) {
|
|
335
|
-
var needle = {
|
|
336
|
-
generatedLine: util.getArg(aArgs, "line"),
|
|
337
|
-
generatedColumn: util.getArg(aArgs, "column")
|
|
338
|
-
};
|
|
339
|
-
var index = this._findMapping(
|
|
340
|
-
needle,
|
|
341
|
-
this._generatedMappings,
|
|
342
|
-
"generatedLine",
|
|
343
|
-
"generatedColumn",
|
|
344
|
-
util.compareByGeneratedPositionsDeflated,
|
|
345
|
-
util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND)
|
|
346
|
-
);
|
|
347
|
-
if (index >= 0) {
|
|
348
|
-
var mapping = this._generatedMappings[index];
|
|
349
|
-
if (mapping.generatedLine === needle.generatedLine) {
|
|
350
|
-
var source = util.getArg(mapping, "source", null);
|
|
351
|
-
if (source !== null) {
|
|
352
|
-
source = this._sources.at(source);
|
|
353
|
-
source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);
|
|
354
|
-
}
|
|
355
|
-
var name = util.getArg(mapping, "name", null);
|
|
356
|
-
if (name !== null) {
|
|
357
|
-
name = this._names.at(name);
|
|
358
|
-
}
|
|
359
|
-
return {
|
|
360
|
-
source,
|
|
361
|
-
line: util.getArg(mapping, "originalLine", null),
|
|
362
|
-
column: util.getArg(mapping, "originalColumn", null),
|
|
363
|
-
name
|
|
364
|
-
};
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
return {
|
|
368
|
-
source: null,
|
|
369
|
-
line: null,
|
|
370
|
-
column: null,
|
|
371
|
-
name: null
|
|
372
|
-
};
|
|
373
|
-
};
|
|
374
|
-
BasicSourceMapConsumer.prototype.hasContentsOfAllSources = function BasicSourceMapConsumer_hasContentsOfAllSources() {
|
|
375
|
-
if (!this.sourcesContent) {
|
|
376
|
-
return false;
|
|
377
|
-
}
|
|
378
|
-
return this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function(sc) {
|
|
379
|
-
return sc == null;
|
|
380
|
-
});
|
|
381
|
-
};
|
|
382
|
-
BasicSourceMapConsumer.prototype.sourceContentFor = function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
|
|
383
|
-
if (!this.sourcesContent) {
|
|
384
|
-
return null;
|
|
385
|
-
}
|
|
386
|
-
var index = this._findSourceIndex(aSource);
|
|
387
|
-
if (index >= 0) {
|
|
388
|
-
return this.sourcesContent[index];
|
|
389
|
-
}
|
|
390
|
-
var relativeSource = aSource;
|
|
391
|
-
if (this.sourceRoot != null) {
|
|
392
|
-
relativeSource = util.relative(this.sourceRoot, relativeSource);
|
|
393
|
-
}
|
|
394
|
-
var url;
|
|
395
|
-
if (this.sourceRoot != null && (url = util.urlParse(this.sourceRoot))) {
|
|
396
|
-
var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
|
|
397
|
-
if (url.scheme == "file" && this._sources.has(fileUriAbsPath)) {
|
|
398
|
-
return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
|
|
399
|
-
}
|
|
400
|
-
if ((!url.path || url.path == "/") && this._sources.has("/" + relativeSource)) {
|
|
401
|
-
return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
if (nullOnMissing) {
|
|
405
|
-
return null;
|
|
406
|
-
} else {
|
|
407
|
-
throw new Error('"' + relativeSource + '" is not in the SourceMap.');
|
|
408
|
-
}
|
|
409
|
-
};
|
|
410
|
-
BasicSourceMapConsumer.prototype.generatedPositionFor = function SourceMapConsumer_generatedPositionFor(aArgs) {
|
|
411
|
-
var source = util.getArg(aArgs, "source");
|
|
412
|
-
source = this._findSourceIndex(source);
|
|
413
|
-
if (source < 0) {
|
|
414
|
-
return {
|
|
415
|
-
line: null,
|
|
416
|
-
column: null,
|
|
417
|
-
lastColumn: null
|
|
418
|
-
};
|
|
419
|
-
}
|
|
420
|
-
var needle = {
|
|
421
|
-
source,
|
|
422
|
-
originalLine: util.getArg(aArgs, "line"),
|
|
423
|
-
originalColumn: util.getArg(aArgs, "column")
|
|
424
|
-
};
|
|
425
|
-
var index = this._findMapping(
|
|
426
|
-
needle,
|
|
427
|
-
this._originalMappings,
|
|
428
|
-
"originalLine",
|
|
429
|
-
"originalColumn",
|
|
430
|
-
util.compareByOriginalPositions,
|
|
431
|
-
util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND)
|
|
432
|
-
);
|
|
433
|
-
if (index >= 0) {
|
|
434
|
-
var mapping = this._originalMappings[index];
|
|
435
|
-
if (mapping.source === needle.source) {
|
|
436
|
-
return {
|
|
437
|
-
line: util.getArg(mapping, "generatedLine", null),
|
|
438
|
-
column: util.getArg(mapping, "generatedColumn", null),
|
|
439
|
-
lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
|
|
440
|
-
};
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
return {
|
|
444
|
-
line: null,
|
|
445
|
-
column: null,
|
|
446
|
-
lastColumn: null
|
|
447
|
-
};
|
|
448
|
-
};
|
|
449
|
-
sourceMapConsumer.BasicSourceMapConsumer = BasicSourceMapConsumer;
|
|
450
|
-
function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {
|
|
451
|
-
var sourceMap = aSourceMap;
|
|
452
|
-
if (typeof aSourceMap === "string") {
|
|
453
|
-
sourceMap = util.parseSourceMapInput(aSourceMap);
|
|
454
|
-
}
|
|
455
|
-
var version = util.getArg(sourceMap, "version");
|
|
456
|
-
var sections = util.getArg(sourceMap, "sections");
|
|
457
|
-
if (version != this._version) {
|
|
458
|
-
throw new Error("Unsupported version: " + version);
|
|
459
|
-
}
|
|
460
|
-
this._sources = new ArraySet();
|
|
461
|
-
this._names = new ArraySet();
|
|
462
|
-
var lastOffset = {
|
|
463
|
-
line: -1,
|
|
464
|
-
column: 0
|
|
465
|
-
};
|
|
466
|
-
this._sections = sections.map(function(s) {
|
|
467
|
-
if (s.url) {
|
|
468
|
-
throw new Error("Support for url field in sections not implemented.");
|
|
469
|
-
}
|
|
470
|
-
var offset = util.getArg(s, "offset");
|
|
471
|
-
var offsetLine = util.getArg(offset, "line");
|
|
472
|
-
var offsetColumn = util.getArg(offset, "column");
|
|
473
|
-
if (offsetLine < lastOffset.line || offsetLine === lastOffset.line && offsetColumn < lastOffset.column) {
|
|
474
|
-
throw new Error("Section offsets must be ordered and non-overlapping.");
|
|
475
|
-
}
|
|
476
|
-
lastOffset = offset;
|
|
477
|
-
return {
|
|
478
|
-
generatedOffset: {
|
|
479
|
-
// The offset fields are 0-based, but we use 1-based indices when
|
|
480
|
-
// encoding/decoding from VLQ.
|
|
481
|
-
generatedLine: offsetLine + 1,
|
|
482
|
-
generatedColumn: offsetColumn + 1
|
|
483
|
-
},
|
|
484
|
-
consumer: new SourceMapConsumer(util.getArg(s, "map"), aSourceMapURL)
|
|
485
|
-
};
|
|
486
|
-
});
|
|
487
|
-
}
|
|
488
|
-
IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
|
|
489
|
-
IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;
|
|
490
|
-
IndexedSourceMapConsumer.prototype._version = 3;
|
|
491
|
-
Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", {
|
|
492
|
-
get: function() {
|
|
493
|
-
var sources = [];
|
|
494
|
-
for (var i = 0; i < this._sections.length; i++) {
|
|
495
|
-
for (var j = 0; j < this._sections[i].consumer.sources.length; j++) {
|
|
496
|
-
sources.push(this._sections[i].consumer.sources[j]);
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
return sources;
|
|
500
|
-
}
|
|
501
|
-
});
|
|
502
|
-
IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(aArgs) {
|
|
503
|
-
var needle = {
|
|
504
|
-
generatedLine: util.getArg(aArgs, "line"),
|
|
505
|
-
generatedColumn: util.getArg(aArgs, "column")
|
|
506
|
-
};
|
|
507
|
-
var sectionIndex = binarySearch.search(
|
|
508
|
-
needle,
|
|
509
|
-
this._sections,
|
|
510
|
-
function(needle2, section2) {
|
|
511
|
-
var cmp = needle2.generatedLine - section2.generatedOffset.generatedLine;
|
|
512
|
-
if (cmp) {
|
|
513
|
-
return cmp;
|
|
514
|
-
}
|
|
515
|
-
return needle2.generatedColumn - section2.generatedOffset.generatedColumn;
|
|
516
|
-
}
|
|
517
|
-
);
|
|
518
|
-
var section = this._sections[sectionIndex];
|
|
519
|
-
if (!section) {
|
|
520
|
-
return {
|
|
521
|
-
source: null,
|
|
522
|
-
line: null,
|
|
523
|
-
column: null,
|
|
524
|
-
name: null
|
|
525
|
-
};
|
|
526
|
-
}
|
|
527
|
-
return section.consumer.originalPositionFor({
|
|
528
|
-
line: needle.generatedLine - (section.generatedOffset.generatedLine - 1),
|
|
529
|
-
column: needle.generatedColumn - (section.generatedOffset.generatedLine === needle.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
|
|
530
|
-
bias: aArgs.bias
|
|
531
|
-
});
|
|
532
|
-
};
|
|
533
|
-
IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = function IndexedSourceMapConsumer_hasContentsOfAllSources() {
|
|
534
|
-
return this._sections.every(function(s) {
|
|
535
|
-
return s.consumer.hasContentsOfAllSources();
|
|
536
|
-
});
|
|
537
|
-
};
|
|
538
|
-
IndexedSourceMapConsumer.prototype.sourceContentFor = function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
|
|
539
|
-
for (var i = 0; i < this._sections.length; i++) {
|
|
540
|
-
var section = this._sections[i];
|
|
541
|
-
var content = section.consumer.sourceContentFor(aSource, true);
|
|
542
|
-
if (content) {
|
|
543
|
-
return content;
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
if (nullOnMissing) {
|
|
547
|
-
return null;
|
|
548
|
-
} else {
|
|
549
|
-
throw new Error('"' + aSource + '" is not in the SourceMap.');
|
|
550
|
-
}
|
|
551
|
-
};
|
|
552
|
-
IndexedSourceMapConsumer.prototype.generatedPositionFor = function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {
|
|
553
|
-
for (var i = 0; i < this._sections.length; i++) {
|
|
554
|
-
var section = this._sections[i];
|
|
555
|
-
if (section.consumer._findSourceIndex(util.getArg(aArgs, "source")) === -1) {
|
|
556
|
-
continue;
|
|
557
|
-
}
|
|
558
|
-
var generatedPosition = section.consumer.generatedPositionFor(aArgs);
|
|
559
|
-
if (generatedPosition) {
|
|
560
|
-
var ret = {
|
|
561
|
-
line: generatedPosition.line + (section.generatedOffset.generatedLine - 1),
|
|
562
|
-
column: generatedPosition.column + (section.generatedOffset.generatedLine === generatedPosition.line ? section.generatedOffset.generatedColumn - 1 : 0)
|
|
563
|
-
};
|
|
564
|
-
return ret;
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
return {
|
|
568
|
-
line: null,
|
|
569
|
-
column: null
|
|
570
|
-
};
|
|
571
|
-
};
|
|
572
|
-
IndexedSourceMapConsumer.prototype._parseMappings = function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {
|
|
573
|
-
this.__generatedMappings = [];
|
|
574
|
-
this.__originalMappings = [];
|
|
575
|
-
for (var i = 0; i < this._sections.length; i++) {
|
|
576
|
-
var section = this._sections[i];
|
|
577
|
-
var sectionMappings = section.consumer._generatedMappings;
|
|
578
|
-
for (var j = 0; j < sectionMappings.length; j++) {
|
|
579
|
-
var mapping = sectionMappings[j];
|
|
580
|
-
var source = section.consumer._sources.at(mapping.source);
|
|
581
|
-
source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);
|
|
582
|
-
this._sources.add(source);
|
|
583
|
-
source = this._sources.indexOf(source);
|
|
584
|
-
var name = null;
|
|
585
|
-
if (mapping.name) {
|
|
586
|
-
name = section.consumer._names.at(mapping.name);
|
|
587
|
-
this._names.add(name);
|
|
588
|
-
name = this._names.indexOf(name);
|
|
589
|
-
}
|
|
590
|
-
var adjustedMapping = {
|
|
591
|
-
source,
|
|
592
|
-
generatedLine: mapping.generatedLine + (section.generatedOffset.generatedLine - 1),
|
|
593
|
-
generatedColumn: mapping.generatedColumn + (section.generatedOffset.generatedLine === mapping.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
|
|
594
|
-
originalLine: mapping.originalLine,
|
|
595
|
-
originalColumn: mapping.originalColumn,
|
|
596
|
-
name
|
|
597
|
-
};
|
|
598
|
-
this.__generatedMappings.push(adjustedMapping);
|
|
599
|
-
if (typeof adjustedMapping.originalLine === "number") {
|
|
600
|
-
this.__originalMappings.push(adjustedMapping);
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated);
|
|
605
|
-
quickSort(this.__originalMappings, util.compareByOriginalPositions);
|
|
606
|
-
};
|
|
607
|
-
sourceMapConsumer.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
|
|
608
|
-
|
|
609
|
-
export { sourceMapConsumer as default };
|
|
610
|
-
//# sourceMappingURL=source-map-consumer.js.map
|
|
764
|
+
//# sourceMappingURL=source-map-consumer.js.map
|