{"version":3,"file":"convert-legacy-http-options.mjs","names":[],"sources":["../../src/configuration/convert-legacy-http-options.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { OTLPExporterConfigBase } from './legacy-base-configuration';\nimport { wrapStaticHeadersInFunction } from './shared-configuration';\nimport type { HeadersFactory } from './otlp-http-configuration';\n\nexport function convertLegacyHeaders(\n  config: OTLPExporterConfigBase\n): HeadersFactory | undefined {\n  if (typeof config.headers === 'function') {\n    return config.headers;\n  }\n  return wrapStaticHeadersInFunction(config.headers);\n}\n"],"mappings":";;AASA,SAAgB,qBACd,QAC4B;CAC5B,IAAI,OAAO,OAAO,YAAY,YAC5B,OAAO,OAAO;CAEhB,OAAO,4BAA4B,OAAO,OAAO;AACnD"}