{"version":3,"file":"InstrumentationNodeModuleFile.js","sources":["../../../../src/integrations/tracing/InstrumentationNodeModuleFile.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * NOTICE from the Sentry authors:\n * - Vendored locally from @opentelemetry/instrumentation to work around a Bun\n * --bytecode bug (https://github.com/getsentry/sentry-javascript/issues/21256).\n * - The upstream class imports `normalize` via an indirect platform/index\n * re-export chain, which Bun's bytecode bundler renames and loses scope for.\n * - This copy imports `normalize` directly from 'path' to break that chain.\n */\n/* oxlint-disable */\n\nimport { normalize } from 'path';\nimport type { InstrumentationModuleFile } from '@opentelemetry/instrumentation';\n\nexport class InstrumentationNodeModuleFile implements InstrumentationModuleFile {\n public name: string;\n public supportedVersions: string[];\n public patch: (moduleExports: any, moduleVersion?: string) => any;\n public unpatch: (moduleExports?: any, moduleVersion?: string) => void;\n\n constructor(\n name: string,\n supportedVersions: string[],\n patch: (moduleExports: any, moduleVersion?: string) => any,\n unpatch: (moduleExports?: any, moduleVersion?: string) => void,\n ) {\n this.name = normalize(name);\n this.supportedVersions = supportedVersions;\n this.patch = patch;\n this.unpatch = unpatch;\n }\n}\n"],"names":[],"mappings":";;AA2BO,MAAM,6BAAA,CAAmE;AAAA,EAM9E,WAAA,CACE,IAAA,EACA,iBAAA,EACA,KAAA,EACA,OAAA,EACA;AACA,IAAA,IAAA,CAAK,IAAA,GAAO,UAAU,IAAI,CAAA;AAC1B,IAAA,IAAA,CAAK,iBAAA,GAAoB,iBAAA;AACzB,IAAA,IAAA,CAAK,KAAA,GAAQ,KAAA;AACb,IAAA,IAAA,CAAK,OAAA,GAAU,OAAA;AAAA,EACjB;AACF;;;;"}