index.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. Object.defineProperty(exports, '__esModule', { value: true });
  2. const aggregateErrors = require('./aggregate-errors.js');
  3. const browser = require('./browser.js');
  4. const dsn = require('./dsn.js');
  5. const error = require('./error.js');
  6. const worldwide = require('./worldwide.js');
  7. const index = require('./instrument/index.js');
  8. const is = require('./is.js');
  9. const isBrowser = require('./isBrowser.js');
  10. const logger = require('./logger.js');
  11. const memo = require('./memo.js');
  12. const misc = require('./misc.js');
  13. const node = require('./node.js');
  14. const normalize = require('./normalize.js');
  15. const object = require('./object.js');
  16. const path = require('./path.js');
  17. const promisebuffer = require('./promisebuffer.js');
  18. const requestdata = require('./requestdata.js');
  19. const severity = require('./severity.js');
  20. const stacktrace = require('./stacktrace.js');
  21. const string = require('./string.js');
  22. const supports = require('./supports.js');
  23. const syncpromise = require('./syncpromise.js');
  24. const time = require('./time.js');
  25. const tracing = require('./tracing.js');
  26. const env = require('./env.js');
  27. const envelope = require('./envelope.js');
  28. const clientreport = require('./clientreport.js');
  29. const ratelimit = require('./ratelimit.js');
  30. const baggage = require('./baggage.js');
  31. const url = require('./url.js');
  32. const userIntegrations = require('./userIntegrations.js');
  33. const cache = require('./cache.js');
  34. const eventbuilder = require('./eventbuilder.js');
  35. const anr = require('./anr.js');
  36. const lru = require('./lru.js');
  37. const _asyncNullishCoalesce = require('./buildPolyfills/_asyncNullishCoalesce.js');
  38. const _asyncOptionalChain = require('./buildPolyfills/_asyncOptionalChain.js');
  39. const _asyncOptionalChainDelete = require('./buildPolyfills/_asyncOptionalChainDelete.js');
  40. const _nullishCoalesce = require('./buildPolyfills/_nullishCoalesce.js');
  41. const _optionalChain = require('./buildPolyfills/_optionalChain.js');
  42. const _optionalChainDelete = require('./buildPolyfills/_optionalChainDelete.js');
  43. const console = require('./instrument/console.js');
  44. const dom = require('./instrument/dom.js');
  45. const xhr = require('./instrument/xhr.js');
  46. const fetch = require('./instrument/fetch.js');
  47. const history = require('./instrument/history.js');
  48. const globalError = require('./instrument/globalError.js');
  49. const globalUnhandledRejection = require('./instrument/globalUnhandledRejection.js');
  50. const _handlers = require('./instrument/_handlers.js');
  51. const nodeStackTrace = require('./node-stack-trace.js');
  52. const escapeStringForRegex = require('./vendor/escapeStringForRegex.js');
  53. const supportsHistory = require('./vendor/supportsHistory.js');
  54. exports.applyAggregateErrorsToEvent = aggregateErrors.applyAggregateErrorsToEvent;
  55. exports.getComponentName = browser.getComponentName;
  56. exports.getDomElement = browser.getDomElement;
  57. exports.getLocationHref = browser.getLocationHref;
  58. exports.htmlTreeAsString = browser.htmlTreeAsString;
  59. exports.dsnFromString = dsn.dsnFromString;
  60. exports.dsnToString = dsn.dsnToString;
  61. exports.makeDsn = dsn.makeDsn;
  62. exports.SentryError = error.SentryError;
  63. exports.GLOBAL_OBJ = worldwide.GLOBAL_OBJ;
  64. exports.getGlobalObject = worldwide.getGlobalObject;
  65. exports.getGlobalSingleton = worldwide.getGlobalSingleton;
  66. exports.addInstrumentationHandler = index.addInstrumentationHandler;
  67. exports.isDOMError = is.isDOMError;
  68. exports.isDOMException = is.isDOMException;
  69. exports.isElement = is.isElement;
  70. exports.isError = is.isError;
  71. exports.isErrorEvent = is.isErrorEvent;
  72. exports.isEvent = is.isEvent;
  73. exports.isInstanceOf = is.isInstanceOf;
  74. exports.isNaN = is.isNaN;
  75. exports.isParameterizedString = is.isParameterizedString;
  76. exports.isPlainObject = is.isPlainObject;
  77. exports.isPrimitive = is.isPrimitive;
  78. exports.isRegExp = is.isRegExp;
  79. exports.isString = is.isString;
  80. exports.isSyntheticEvent = is.isSyntheticEvent;
  81. exports.isThenable = is.isThenable;
  82. exports.isVueViewModel = is.isVueViewModel;
  83. exports.isBrowser = isBrowser.isBrowser;
  84. exports.CONSOLE_LEVELS = logger.CONSOLE_LEVELS;
  85. exports.consoleSandbox = logger.consoleSandbox;
  86. exports.logger = logger.logger;
  87. exports.originalConsoleMethods = logger.originalConsoleMethods;
  88. exports.memoBuilder = memo.memoBuilder;
  89. exports.addContextToFrame = misc.addContextToFrame;
  90. exports.addExceptionMechanism = misc.addExceptionMechanism;
  91. exports.addExceptionTypeValue = misc.addExceptionTypeValue;
  92. exports.arrayify = misc.arrayify;
  93. exports.checkOrSetAlreadyCaught = misc.checkOrSetAlreadyCaught;
  94. exports.getEventDescription = misc.getEventDescription;
  95. exports.parseSemver = misc.parseSemver;
  96. exports.uuid4 = misc.uuid4;
  97. exports.dynamicRequire = node.dynamicRequire;
  98. exports.isNodeEnv = node.isNodeEnv;
  99. exports.loadModule = node.loadModule;
  100. exports.normalize = normalize.normalize;
  101. exports.normalizeToSize = normalize.normalizeToSize;
  102. exports.normalizeUrlToBase = normalize.normalizeUrlToBase;
  103. exports.walk = normalize.walk;
  104. exports.addNonEnumerableProperty = object.addNonEnumerableProperty;
  105. exports.convertToPlainObject = object.convertToPlainObject;
  106. exports.dropUndefinedKeys = object.dropUndefinedKeys;
  107. exports.extractExceptionKeysForMessage = object.extractExceptionKeysForMessage;
  108. exports.fill = object.fill;
  109. exports.getOriginalFunction = object.getOriginalFunction;
  110. exports.markFunctionWrapped = object.markFunctionWrapped;
  111. exports.objectify = object.objectify;
  112. exports.urlEncode = object.urlEncode;
  113. exports.basename = path.basename;
  114. exports.dirname = path.dirname;
  115. exports.isAbsolute = path.isAbsolute;
  116. exports.join = path.join;
  117. exports.normalizePath = path.normalizePath;
  118. exports.relative = path.relative;
  119. exports.resolve = path.resolve;
  120. exports.makePromiseBuffer = promisebuffer.makePromiseBuffer;
  121. exports.DEFAULT_USER_INCLUDES = requestdata.DEFAULT_USER_INCLUDES;
  122. exports.addRequestDataToEvent = requestdata.addRequestDataToEvent;
  123. exports.addRequestDataToTransaction = requestdata.addRequestDataToTransaction;
  124. exports.extractPathForTransaction = requestdata.extractPathForTransaction;
  125. exports.extractRequestData = requestdata.extractRequestData;
  126. exports.winterCGHeadersToDict = requestdata.winterCGHeadersToDict;
  127. exports.winterCGRequestToRequestData = requestdata.winterCGRequestToRequestData;
  128. exports.severityFromString = severity.severityFromString;
  129. exports.severityLevelFromString = severity.severityLevelFromString;
  130. exports.validSeverityLevels = severity.validSeverityLevels;
  131. exports.createStackParser = stacktrace.createStackParser;
  132. exports.getFunctionName = stacktrace.getFunctionName;
  133. exports.nodeStackLineParser = stacktrace.nodeStackLineParser;
  134. exports.stackParserFromStackParserOptions = stacktrace.stackParserFromStackParserOptions;
  135. exports.stripSentryFramesAndReverse = stacktrace.stripSentryFramesAndReverse;
  136. exports.isMatchingPattern = string.isMatchingPattern;
  137. exports.safeJoin = string.safeJoin;
  138. exports.snipLine = string.snipLine;
  139. exports.stringMatchesSomePattern = string.stringMatchesSomePattern;
  140. exports.truncate = string.truncate;
  141. exports.isNativeFetch = supports.isNativeFetch;
  142. exports.supportsDOMError = supports.supportsDOMError;
  143. exports.supportsDOMException = supports.supportsDOMException;
  144. exports.supportsErrorEvent = supports.supportsErrorEvent;
  145. exports.supportsFetch = supports.supportsFetch;
  146. exports.supportsNativeFetch = supports.supportsNativeFetch;
  147. exports.supportsReferrerPolicy = supports.supportsReferrerPolicy;
  148. exports.supportsReportingObserver = supports.supportsReportingObserver;
  149. exports.SyncPromise = syncpromise.SyncPromise;
  150. exports.rejectedSyncPromise = syncpromise.rejectedSyncPromise;
  151. exports.resolvedSyncPromise = syncpromise.resolvedSyncPromise;
  152. Object.defineProperty(exports, '_browserPerformanceTimeOriginMode', {
  153. enumerable: true,
  154. get: () => time._browserPerformanceTimeOriginMode
  155. });
  156. exports.browserPerformanceTimeOrigin = time.browserPerformanceTimeOrigin;
  157. exports.dateTimestampInSeconds = time.dateTimestampInSeconds;
  158. exports.timestampInSeconds = time.timestampInSeconds;
  159. exports.timestampWithMs = time.timestampWithMs;
  160. exports.TRACEPARENT_REGEXP = tracing.TRACEPARENT_REGEXP;
  161. exports.extractTraceparentData = tracing.extractTraceparentData;
  162. exports.generateSentryTraceHeader = tracing.generateSentryTraceHeader;
  163. exports.propagationContextFromHeaders = tracing.propagationContextFromHeaders;
  164. exports.tracingContextFromHeaders = tracing.tracingContextFromHeaders;
  165. exports.getSDKSource = env.getSDKSource;
  166. exports.isBrowserBundle = env.isBrowserBundle;
  167. exports.addItemToEnvelope = envelope.addItemToEnvelope;
  168. exports.createAttachmentEnvelopeItem = envelope.createAttachmentEnvelopeItem;
  169. exports.createEnvelope = envelope.createEnvelope;
  170. exports.createEventEnvelopeHeaders = envelope.createEventEnvelopeHeaders;
  171. exports.envelopeContainsItemType = envelope.envelopeContainsItemType;
  172. exports.envelopeItemTypeToDataCategory = envelope.envelopeItemTypeToDataCategory;
  173. exports.forEachEnvelopeItem = envelope.forEachEnvelopeItem;
  174. exports.getSdkMetadataForEnvelopeHeader = envelope.getSdkMetadataForEnvelopeHeader;
  175. exports.parseEnvelope = envelope.parseEnvelope;
  176. exports.serializeEnvelope = envelope.serializeEnvelope;
  177. exports.createClientReportEnvelope = clientreport.createClientReportEnvelope;
  178. exports.DEFAULT_RETRY_AFTER = ratelimit.DEFAULT_RETRY_AFTER;
  179. exports.disabledUntil = ratelimit.disabledUntil;
  180. exports.isRateLimited = ratelimit.isRateLimited;
  181. exports.parseRetryAfterHeader = ratelimit.parseRetryAfterHeader;
  182. exports.updateRateLimits = ratelimit.updateRateLimits;
  183. exports.BAGGAGE_HEADER_NAME = baggage.BAGGAGE_HEADER_NAME;
  184. exports.MAX_BAGGAGE_STRING_LENGTH = baggage.MAX_BAGGAGE_STRING_LENGTH;
  185. exports.SENTRY_BAGGAGE_KEY_PREFIX = baggage.SENTRY_BAGGAGE_KEY_PREFIX;
  186. exports.SENTRY_BAGGAGE_KEY_PREFIX_REGEX = baggage.SENTRY_BAGGAGE_KEY_PREFIX_REGEX;
  187. exports.baggageHeaderToDynamicSamplingContext = baggage.baggageHeaderToDynamicSamplingContext;
  188. exports.dynamicSamplingContextToSentryBaggageHeader = baggage.dynamicSamplingContextToSentryBaggageHeader;
  189. exports.getNumberOfUrlSegments = url.getNumberOfUrlSegments;
  190. exports.getSanitizedUrlString = url.getSanitizedUrlString;
  191. exports.parseUrl = url.parseUrl;
  192. exports.stripUrlQueryAndFragment = url.stripUrlQueryAndFragment;
  193. exports.addOrUpdateIntegration = userIntegrations.addOrUpdateIntegration;
  194. exports.makeFifoCache = cache.makeFifoCache;
  195. exports.eventFromMessage = eventbuilder.eventFromMessage;
  196. exports.eventFromUnknownInput = eventbuilder.eventFromUnknownInput;
  197. exports.exceptionFromError = eventbuilder.exceptionFromError;
  198. exports.parseStackFrames = eventbuilder.parseStackFrames;
  199. exports.callFrameToStackFrame = anr.callFrameToStackFrame;
  200. exports.watchdogTimer = anr.watchdogTimer;
  201. exports.LRUMap = lru.LRUMap;
  202. exports._asyncNullishCoalesce = _asyncNullishCoalesce._asyncNullishCoalesce;
  203. exports._asyncOptionalChain = _asyncOptionalChain._asyncOptionalChain;
  204. exports._asyncOptionalChainDelete = _asyncOptionalChainDelete._asyncOptionalChainDelete;
  205. exports._nullishCoalesce = _nullishCoalesce._nullishCoalesce;
  206. exports._optionalChain = _optionalChain._optionalChain;
  207. exports._optionalChainDelete = _optionalChainDelete._optionalChainDelete;
  208. exports.addConsoleInstrumentationHandler = console.addConsoleInstrumentationHandler;
  209. exports.addClickKeypressInstrumentationHandler = dom.addClickKeypressInstrumentationHandler;
  210. exports.SENTRY_XHR_DATA_KEY = xhr.SENTRY_XHR_DATA_KEY;
  211. exports.addXhrInstrumentationHandler = xhr.addXhrInstrumentationHandler;
  212. exports.addFetchInstrumentationHandler = fetch.addFetchInstrumentationHandler;
  213. exports.addHistoryInstrumentationHandler = history.addHistoryInstrumentationHandler;
  214. exports.addGlobalErrorInstrumentationHandler = globalError.addGlobalErrorInstrumentationHandler;
  215. exports.addGlobalUnhandledRejectionInstrumentationHandler = globalUnhandledRejection.addGlobalUnhandledRejectionInstrumentationHandler;
  216. exports.resetInstrumentationHandlers = _handlers.resetInstrumentationHandlers;
  217. exports.filenameIsInApp = nodeStackTrace.filenameIsInApp;
  218. exports.escapeStringForRegex = escapeStringForRegex.escapeStringForRegex;
  219. exports.supportsHistory = supportsHistory.supportsHistory;
  220. //# sourceMappingURL=index.js.map