{"version":3,"file":"fetch.mjs","sources":["../../../src/utils/fetch.ts"],"sourcesContent":["import { isBrowserMainThread, isMobile, getLynx } from '../environment';\n\nexport function getFetch(): typeof fetch | undefined {\n  if (isMobile()) {\n    return getLynx()?.fetch as typeof fetch;\n  }\n\n  if (isBrowserMainThread()) {\n    return undefined; // Will be resolved internally\n  }\n\n  // Most likely a web worker\n  // TODO: Verify if actually a web worker else return getNativeImplementation default fetch\n  // Internal fetch resolution doesn't work for web workers and globalThis.fetch is also undefined\n  // https://github.com/getsentry/sentry-javascript/blob/de2c1ad309b850c1254c69890c96e869e297fa4c/packages/browser-utils/src/getNativeImplementation.ts#L27\n  return fetch;\n}\n"],"names":[],"mappings":";;SAEgB,QAAQ,GAAA;;IACtB,IAAI,QAAQ,EAAE,EAAE;AACd,QAAA,OAAO,CAAA,EAAA,GAAA,OAAO,EAAE,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,KAAqB;AACxC;IAED,IAAI,mBAAmB,EAAE,EAAE;QACzB,OAAO,SAAS,CAAC;AAClB;;;;;AAMD,IAAA,OAAO,KAAK;AACd;;;;"}