start-slicemachine 0.12.62-beta.4 → 0.12.62-beta.6

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.
Files changed (413) hide show
  1. package/dist/StartSliceMachineProcess.cjs +1 -4
  2. package/dist/StartSliceMachineProcess.cjs.map +1 -1
  3. package/dist/StartSliceMachineProcess.js +1 -4
  4. package/dist/StartSliceMachineProcess.js.map +1 -1
  5. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/api.cjs.map +1 -1
  6. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/api.js.map +1 -1
  7. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/baseclient.cjs.map +1 -1
  8. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/baseclient.js +1 -1
  9. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/baseclient.js.map +1 -1
  10. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/checkin.cjs +1 -1
  11. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/checkin.cjs.map +1 -1
  12. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/checkin.js +1 -1
  13. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/checkin.js.map +1 -1
  14. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/envelope.cjs.map +1 -1
  15. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/envelope.js +1 -1
  16. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/envelope.js.map +1 -1
  17. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/eventProcessors.cjs.map +1 -1
  18. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/eventProcessors.js.map +1 -1
  19. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/exports.cjs.map +1 -1
  20. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/exports.js.map +1 -1
  21. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/hub.cjs +7 -13
  22. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/hub.cjs.map +1 -1
  23. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/hub.js +8 -14
  24. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/hub.js.map +1 -1
  25. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/integration.cjs.map +1 -1
  26. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/integration.js.map +1 -1
  27. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/integrations/functiontostring.cjs.map +1 -1
  28. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/integrations/functiontostring.js.map +1 -1
  29. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/integrations/inboundfilters.cjs.map +1 -1
  30. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/integrations/inboundfilters.js.map +1 -1
  31. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/integrations/linkederrors.cjs.map +1 -1
  32. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/integrations/linkederrors.js.map +1 -1
  33. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/integrations/requestdata.cjs.map +1 -1
  34. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/integrations/requestdata.js +1 -1
  35. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/integrations/requestdata.js.map +1 -1
  36. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/metrics/aggregator.cjs.map +1 -1
  37. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/metrics/aggregator.js.map +1 -1
  38. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/metrics/envelope.cjs +1 -1
  39. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/metrics/envelope.cjs.map +1 -1
  40. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/metrics/envelope.js +1 -1
  41. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/metrics/envelope.js.map +1 -1
  42. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/metrics/instance.cjs.map +1 -1
  43. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/metrics/instance.js +1 -1
  44. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/metrics/instance.js.map +1 -1
  45. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/metrics/metric-summary.cjs.map +1 -1
  46. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/metrics/metric-summary.js.map +1 -1
  47. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/metrics/utils.cjs.map +1 -1
  48. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/metrics/utils.js.map +1 -1
  49. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/scope.cjs.map +1 -1
  50. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/scope.js.map +1 -1
  51. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/sdk.cjs.map +1 -1
  52. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/sdk.js +1 -1
  53. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/sdk.js.map +1 -1
  54. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/server-runtime-client.cjs.map +1 -1
  55. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/server-runtime-client.js.map +1 -1
  56. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/session.cjs +1 -3
  57. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/session.cjs.map +1 -1
  58. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/session.js +1 -3
  59. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/session.js.map +1 -1
  60. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/sessionflusher.cjs.map +1 -1
  61. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/sessionflusher.js.map +1 -1
  62. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/dynamicSamplingContext.cjs.map +1 -1
  63. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/dynamicSamplingContext.js.map +1 -1
  64. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/errors.cjs.map +1 -1
  65. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/errors.js.map +1 -1
  66. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/hubextensions.cjs.map +1 -1
  67. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/hubextensions.js.map +1 -1
  68. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/sampling.cjs.map +1 -1
  69. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/sampling.js.map +1 -1
  70. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/span.cjs.map +1 -1
  71. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/span.js +1 -1
  72. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/span.js.map +1 -1
  73. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/spanstatus.cjs.map +1 -1
  74. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/spanstatus.js.map +1 -1
  75. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/trace.cjs.map +1 -1
  76. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/trace.js.map +1 -1
  77. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/transaction.cjs.map +1 -1
  78. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/transaction.js +1 -1
  79. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/transaction.js.map +1 -1
  80. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/utils.cjs +1 -1
  81. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/utils.cjs.map +1 -1
  82. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/utils.js +1 -1
  83. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/utils.js.map +1 -1
  84. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/transports/base.cjs.map +1 -1
  85. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/transports/base.js +2 -2
  86. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/transports/base.js.map +1 -1
  87. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/applyScopeDataToEvent.cjs.map +1 -1
  88. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/applyScopeDataToEvent.js.map +1 -1
  89. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/hasTracingEnabled.cjs.map +1 -1
  90. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/hasTracingEnabled.js.map +1 -1
  91. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/isSentryRequestUrl.cjs.map +1 -1
  92. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/isSentryRequestUrl.js.map +1 -1
  93. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/prepareEvent.cjs +1 -1
  94. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/prepareEvent.cjs.map +1 -1
  95. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/prepareEvent.js +2 -2
  96. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/prepareEvent.js.map +1 -1
  97. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/sdkMetadata.cjs.map +1 -1
  98. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/sdkMetadata.js.map +1 -1
  99. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/spanUtils.cjs.map +1 -1
  100. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/spanUtils.js.map +1 -1
  101. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/aggregate-errors.cjs.map +1 -1
  102. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/aggregate-errors.js.map +1 -1
  103. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/baggage.cjs.map +1 -1
  104. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/baggage.js.map +1 -1
  105. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/browser.cjs.map +1 -1
  106. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/browser.js.map +1 -1
  107. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/buildPolyfills/_optionalChain.cjs.map +1 -1
  108. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/buildPolyfills/_optionalChain.js.map +1 -1
  109. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/cookie.cjs.map +1 -1
  110. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/cookie.js.map +1 -1
  111. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/dsn.cjs.map +1 -1
  112. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/dsn.js.map +1 -1
  113. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/envelope.cjs.map +1 -1
  114. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/envelope.js.map +1 -1
  115. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/error.cjs.map +1 -1
  116. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/error.js.map +1 -1
  117. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/eventbuilder.cjs +1 -1
  118. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/eventbuilder.cjs.map +1 -1
  119. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/eventbuilder.js +1 -1
  120. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/eventbuilder.js.map +1 -1
  121. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/instrument/_handlers.cjs.map +1 -1
  122. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/instrument/_handlers.js.map +1 -1
  123. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/instrument/console.cjs.map +1 -1
  124. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/instrument/console.js.map +1 -1
  125. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/instrument/globalError.cjs.map +1 -1
  126. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/instrument/globalError.js.map +1 -1
  127. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/instrument/globalUnhandledRejection.cjs.map +1 -1
  128. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/instrument/globalUnhandledRejection.js.map +1 -1
  129. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/is.cjs.map +1 -1
  130. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/is.js.map +1 -1
  131. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/logger.cjs.map +1 -1
  132. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/logger.js.map +1 -1
  133. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/lru.cjs.map +1 -1
  134. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/lru.js.map +1 -1
  135. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/memo.cjs.map +1 -1
  136. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/memo.js.map +1 -1
  137. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/misc.cjs +3 -3
  138. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/misc.cjs.map +1 -1
  139. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/misc.js +3 -3
  140. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/misc.js.map +1 -1
  141. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/node-stack-trace.cjs.map +1 -1
  142. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/node-stack-trace.js.map +1 -1
  143. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/normalize.cjs.map +1 -1
  144. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/normalize.js.map +1 -1
  145. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/object.cjs.map +1 -1
  146. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/object.js.map +1 -1
  147. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/path.cjs.map +1 -1
  148. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/path.js.map +1 -1
  149. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/promisebuffer.cjs.map +1 -1
  150. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/promisebuffer.js +1 -1
  151. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/promisebuffer.js.map +1 -1
  152. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/ratelimit.cjs.map +1 -1
  153. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/ratelimit.js.map +1 -1
  154. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/requestdata.cjs.map +1 -1
  155. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/requestdata.js.map +1 -1
  156. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/stacktrace.cjs.map +1 -1
  157. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/stacktrace.js.map +1 -1
  158. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/string.cjs.map +1 -1
  159. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/string.js.map +1 -1
  160. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/syncpromise.cjs.map +1 -1
  161. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/syncpromise.js.map +1 -1
  162. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/time.cjs.map +1 -1
  163. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/time.js.map +1 -1
  164. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/tracing.cjs.map +1 -1
  165. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/tracing.js.map +1 -1
  166. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/url.cjs.map +1 -1
  167. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/url.js.map +1 -1
  168. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/worldwide.cjs +1 -1
  169. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/worldwide.cjs.map +1 -1
  170. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/worldwide.js +1 -1
  171. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/worldwide.js.map +1 -1
  172. package/dist/_node_modules/@sentry/node/esm/async/domain.cjs.map +1 -1
  173. package/dist/_node_modules/@sentry/node/esm/async/domain.js +1 -1
  174. package/dist/_node_modules/@sentry/node/esm/async/domain.js.map +1 -1
  175. package/dist/_node_modules/@sentry/node/esm/async/hooks.cjs.map +1 -1
  176. package/dist/_node_modules/@sentry/node/esm/async/hooks.js.map +1 -1
  177. package/dist/_node_modules/@sentry/node/esm/async/index.cjs.map +1 -1
  178. package/dist/_node_modules/@sentry/node/esm/async/index.js.map +1 -1
  179. package/dist/_node_modules/@sentry/node/esm/client.cjs.map +1 -1
  180. package/dist/_node_modules/@sentry/node/esm/client.js.map +1 -1
  181. package/dist/_node_modules/@sentry/node/esm/integrations/console.cjs.map +1 -1
  182. package/dist/_node_modules/@sentry/node/esm/integrations/console.js.map +1 -1
  183. package/dist/_node_modules/@sentry/node/esm/integrations/context.cjs.map +1 -1
  184. package/dist/_node_modules/@sentry/node/esm/integrations/context.js +1 -1
  185. package/dist/_node_modules/@sentry/node/esm/integrations/context.js.map +1 -1
  186. package/dist/_node_modules/@sentry/node/esm/integrations/contextlines.cjs +3 -5
  187. package/dist/_node_modules/@sentry/node/esm/integrations/contextlines.cjs.map +1 -1
  188. package/dist/_node_modules/@sentry/node/esm/integrations/contextlines.js +3 -5
  189. package/dist/_node_modules/@sentry/node/esm/integrations/contextlines.js.map +1 -1
  190. package/dist/_node_modules/@sentry/node/esm/integrations/http.cjs +3 -3
  191. package/dist/_node_modules/@sentry/node/esm/integrations/http.cjs.map +1 -1
  192. package/dist/_node_modules/@sentry/node/esm/integrations/http.js +3 -3
  193. package/dist/_node_modules/@sentry/node/esm/integrations/http.js.map +1 -1
  194. package/dist/_node_modules/@sentry/node/esm/integrations/local-variables/common.cjs.map +1 -1
  195. package/dist/_node_modules/@sentry/node/esm/integrations/local-variables/common.js.map +1 -1
  196. package/dist/_node_modules/@sentry/node/esm/integrations/local-variables/local-variables-sync.cjs +1 -1
  197. package/dist/_node_modules/@sentry/node/esm/integrations/local-variables/local-variables-sync.cjs.map +1 -1
  198. package/dist/_node_modules/@sentry/node/esm/integrations/local-variables/local-variables-sync.js +1 -1
  199. package/dist/_node_modules/@sentry/node/esm/integrations/local-variables/local-variables-sync.js.map +1 -1
  200. package/dist/_node_modules/@sentry/node/esm/integrations/modules.cjs.map +1 -1
  201. package/dist/_node_modules/@sentry/node/esm/integrations/modules.js.map +1 -1
  202. package/dist/_node_modules/@sentry/node/esm/integrations/onuncaughtexception.cjs.map +1 -1
  203. package/dist/_node_modules/@sentry/node/esm/integrations/onuncaughtexception.js.map +1 -1
  204. package/dist/_node_modules/@sentry/node/esm/integrations/onunhandledrejection.cjs.map +1 -1
  205. package/dist/_node_modules/@sentry/node/esm/integrations/onunhandledrejection.js.map +1 -1
  206. package/dist/_node_modules/@sentry/node/esm/integrations/spotlight.cjs.map +1 -1
  207. package/dist/_node_modules/@sentry/node/esm/integrations/spotlight.js.map +1 -1
  208. package/dist/_node_modules/@sentry/node/esm/integrations/undici/index.cjs +1 -1
  209. package/dist/_node_modules/@sentry/node/esm/integrations/undici/index.cjs.map +1 -1
  210. package/dist/_node_modules/@sentry/node/esm/integrations/undici/index.js +1 -1
  211. package/dist/_node_modules/@sentry/node/esm/integrations/undici/index.js.map +1 -1
  212. package/dist/_node_modules/@sentry/node/esm/integrations/utils/errorhandling.cjs.map +1 -1
  213. package/dist/_node_modules/@sentry/node/esm/integrations/utils/errorhandling.js.map +1 -1
  214. package/dist/_node_modules/@sentry/node/esm/integrations/utils/http.cjs.map +1 -1
  215. package/dist/_node_modules/@sentry/node/esm/integrations/utils/http.js.map +1 -1
  216. package/dist/_node_modules/@sentry/node/esm/module.cjs +4 -4
  217. package/dist/_node_modules/@sentry/node/esm/module.cjs.map +1 -1
  218. package/dist/_node_modules/@sentry/node/esm/module.js.map +1 -1
  219. package/dist/_node_modules/@sentry/node/esm/nodeVersion.cjs.map +1 -1
  220. package/dist/_node_modules/@sentry/node/esm/proxy/base.cjs +1 -2
  221. package/dist/_node_modules/@sentry/node/esm/proxy/base.cjs.map +1 -1
  222. package/dist/_node_modules/@sentry/node/esm/proxy/base.js +1 -2
  223. package/dist/_node_modules/@sentry/node/esm/proxy/base.js.map +1 -1
  224. package/dist/_node_modules/@sentry/node/esm/proxy/index.cjs.map +1 -1
  225. package/dist/_node_modules/@sentry/node/esm/proxy/index.js.map +1 -1
  226. package/dist/_node_modules/@sentry/node/esm/proxy/parse-proxy-response.cjs +3 -6
  227. package/dist/_node_modules/@sentry/node/esm/proxy/parse-proxy-response.cjs.map +1 -1
  228. package/dist/_node_modules/@sentry/node/esm/proxy/parse-proxy-response.js +3 -6
  229. package/dist/_node_modules/@sentry/node/esm/proxy/parse-proxy-response.js.map +1 -1
  230. package/dist/_node_modules/@sentry/node/esm/sdk.cjs +16 -16
  231. package/dist/_node_modules/@sentry/node/esm/sdk.cjs.map +1 -1
  232. package/dist/_node_modules/@sentry/node/esm/sdk.js +6 -6
  233. package/dist/_node_modules/@sentry/node/esm/sdk.js.map +1 -1
  234. package/dist/_node_modules/@sentry/node/esm/transports/http.cjs.map +1 -1
  235. package/dist/_node_modules/@sentry/node/esm/transports/http.js.map +1 -1
  236. package/dist/_node_modules/data-uri-to-buffer/dist/index.cjs.map +1 -1
  237. package/dist/_node_modules/data-uri-to-buffer/dist/index.js.map +1 -1
  238. package/dist/_node_modules/fetch-blob/file.cjs +9 -21
  239. package/dist/_node_modules/fetch-blob/file.cjs.map +1 -1
  240. package/dist/_node_modules/fetch-blob/file.js +8 -20
  241. package/dist/_node_modules/fetch-blob/file.js.map +1 -1
  242. package/dist/_node_modules/fetch-blob/from.cjs +9 -0
  243. package/dist/_node_modules/fetch-blob/from.cjs.map +1 -0
  244. package/dist/_node_modules/fetch-blob/from.js +9 -0
  245. package/dist/_node_modules/fetch-blob/from.js.map +1 -0
  246. package/dist/_node_modules/fetch-blob/index.cjs +8 -21
  247. package/dist/_node_modules/fetch-blob/index.cjs.map +1 -1
  248. package/dist/_node_modules/fetch-blob/index.js +8 -21
  249. package/dist/_node_modules/fetch-blob/index.js.map +1 -1
  250. package/dist/_node_modules/fetch-blob/streams.cjs.map +1 -1
  251. package/dist/_node_modules/fetch-blob/streams.js.map +1 -1
  252. package/dist/_node_modules/formdata-polyfill/esm.min.cjs +12 -29
  253. package/dist/_node_modules/formdata-polyfill/esm.min.cjs.map +1 -1
  254. package/dist/_node_modules/formdata-polyfill/esm.min.js +12 -29
  255. package/dist/_node_modules/formdata-polyfill/esm.min.js.map +1 -1
  256. package/dist/_node_modules/lru-cache/index.cjs +1 -2
  257. package/dist/_node_modules/lru-cache/index.cjs.map +1 -1
  258. package/dist/_node_modules/lru-cache/index.js +1 -2
  259. package/dist/_node_modules/lru-cache/index.js.map +1 -1
  260. package/dist/_node_modules/node-domexception/index.cjs.map +1 -1
  261. package/dist/_node_modules/node-domexception/index.js.map +1 -1
  262. package/dist/_node_modules/node-fetch/src/body.cjs +4 -7
  263. package/dist/_node_modules/node-fetch/src/body.cjs.map +1 -1
  264. package/dist/_node_modules/node-fetch/src/body.js +5 -8
  265. package/dist/_node_modules/node-fetch/src/body.js.map +1 -1
  266. package/dist/_node_modules/node-fetch/src/errors/abort-error.cjs.map +1 -1
  267. package/dist/_node_modules/node-fetch/src/errors/abort-error.js.map +1 -1
  268. package/dist/_node_modules/node-fetch/src/errors/base.cjs.map +1 -1
  269. package/dist/_node_modules/node-fetch/src/errors/base.js.map +1 -1
  270. package/dist/_node_modules/node-fetch/src/errors/fetch-error.cjs.map +1 -1
  271. package/dist/_node_modules/node-fetch/src/errors/fetch-error.js.map +1 -1
  272. package/dist/_node_modules/node-fetch/src/headers.cjs +1 -2
  273. package/dist/_node_modules/node-fetch/src/headers.cjs.map +1 -1
  274. package/dist/_node_modules/node-fetch/src/headers.js +1 -2
  275. package/dist/_node_modules/node-fetch/src/headers.js.map +1 -1
  276. package/dist/_node_modules/node-fetch/src/index.cjs +2 -4
  277. package/dist/_node_modules/node-fetch/src/index.cjs.map +1 -1
  278. package/dist/_node_modules/node-fetch/src/index.js +3 -5
  279. package/dist/_node_modules/node-fetch/src/index.js.map +1 -1
  280. package/dist/_node_modules/node-fetch/src/request.cjs.map +1 -1
  281. package/dist/_node_modules/node-fetch/src/request.js.map +1 -1
  282. package/dist/_node_modules/node-fetch/src/response.cjs.map +1 -1
  283. package/dist/_node_modules/node-fetch/src/response.js.map +1 -1
  284. package/dist/_node_modules/node-fetch/src/utils/get-search.cjs.map +1 -1
  285. package/dist/_node_modules/node-fetch/src/utils/get-search.js.map +1 -1
  286. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.cjs +2 -5
  287. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.cjs.map +1 -1
  288. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.js +2 -5
  289. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.js.map +1 -1
  290. package/dist/_node_modules/node-fetch/src/utils/referrer.cjs.map +1 -1
  291. package/dist/_node_modules/node-fetch/src/utils/referrer.js.map +1 -1
  292. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.cjs +5 -10
  293. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.cjs.map +1 -1
  294. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +5 -10
  295. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.js.map +1 -1
  296. package/dist/_node_modules/yallist/iterator.cjs +1 -2
  297. package/dist/_node_modules/yallist/iterator.cjs.map +1 -1
  298. package/dist/_node_modules/yallist/iterator.js +1 -2
  299. package/dist/_node_modules/yallist/iterator.js.map +1 -1
  300. package/dist/_node_modules/yallist/yallist.cjs.map +1 -1
  301. package/dist/_node_modules/yallist/yallist.js.map +1 -1
  302. package/dist/cli.cjs.map +1 -1
  303. package/dist/cli.js.map +1 -1
  304. package/dist/constants.cjs +1 -1
  305. package/dist/constants.cjs.map +1 -1
  306. package/dist/constants.js +1 -1
  307. package/dist/constants.js.map +1 -1
  308. package/dist/legacyMigrations/detectFramework.cjs.map +1 -1
  309. package/dist/legacyMigrations/detectFramework.js.map +1 -1
  310. package/dist/legacyMigrations/migrateAssets.cjs.map +1 -1
  311. package/dist/legacyMigrations/migrateAssets.js.map +1 -1
  312. package/dist/legacyMigrations/migrateSMJSON.cjs.map +1 -1
  313. package/dist/legacyMigrations/migrateSMJSON.js.map +1 -1
  314. package/dist/lib/castArray.cjs.map +1 -1
  315. package/dist/lib/castArray.js.map +1 -1
  316. package/dist/lib/createSliceMachineExpressApp.cjs +1 -2
  317. package/dist/lib/createSliceMachineExpressApp.cjs.map +1 -1
  318. package/dist/lib/createSliceMachineExpressApp.js +1 -2
  319. package/dist/lib/createSliceMachineExpressApp.js.map +1 -1
  320. package/dist/lib/locateFileUpward.cjs.map +1 -1
  321. package/dist/lib/locateFileUpward.js.map +1 -1
  322. package/dist/lib/safelyExecute.cjs.map +1 -1
  323. package/dist/lib/safelyExecute.js.map +1 -1
  324. package/dist/lib/sentryErrorHandlers.cjs +2 -4
  325. package/dist/lib/sentryErrorHandlers.cjs.map +1 -1
  326. package/dist/lib/sentryErrorHandlers.js +2 -4
  327. package/dist/lib/sentryErrorHandlers.js.map +1 -1
  328. package/dist/lib/sentryFrontendTunnel.cjs.map +1 -1
  329. package/dist/lib/sentryFrontendTunnel.js.map +1 -1
  330. package/dist/lib/setupSentry.cjs +0 -4
  331. package/dist/lib/setupSentry.cjs.map +1 -1
  332. package/dist/lib/setupSentry.js +0 -4
  333. package/dist/lib/setupSentry.js.map +1 -1
  334. package/dist/packages/start-slicemachine/_node_modules/semver/classes/comparator.cjs +1 -2
  335. package/dist/packages/start-slicemachine/_node_modules/semver/classes/comparator.cjs.map +1 -1
  336. package/dist/packages/start-slicemachine/_node_modules/semver/classes/comparator.js +1 -2
  337. package/dist/packages/start-slicemachine/_node_modules/semver/classes/comparator.js.map +1 -1
  338. package/dist/packages/start-slicemachine/_node_modules/semver/classes/range.cjs +1 -2
  339. package/dist/packages/start-slicemachine/_node_modules/semver/classes/range.cjs.map +1 -1
  340. package/dist/packages/start-slicemachine/_node_modules/semver/classes/range.js +1 -2
  341. package/dist/packages/start-slicemachine/_node_modules/semver/classes/range.js.map +1 -1
  342. package/dist/packages/start-slicemachine/_node_modules/semver/classes/semver.cjs.map +1 -1
  343. package/dist/packages/start-slicemachine/_node_modules/semver/classes/semver.js.map +1 -1
  344. package/dist/packages/start-slicemachine/_node_modules/semver/functions/clean.cjs.map +1 -1
  345. package/dist/packages/start-slicemachine/_node_modules/semver/functions/cmp.cjs.map +1 -1
  346. package/dist/packages/start-slicemachine/_node_modules/semver/functions/cmp.js.map +1 -1
  347. package/dist/packages/start-slicemachine/_node_modules/semver/functions/coerce.cjs.map +1 -1
  348. package/dist/packages/start-slicemachine/_node_modules/semver/functions/coerce.js.map +1 -1
  349. package/dist/packages/start-slicemachine/_node_modules/semver/functions/compare-build.cjs.map +1 -1
  350. package/dist/packages/start-slicemachine/_node_modules/semver/functions/compare-loose.cjs.map +1 -1
  351. package/dist/packages/start-slicemachine/_node_modules/semver/functions/compare.cjs.map +1 -1
  352. package/dist/packages/start-slicemachine/_node_modules/semver/functions/diff.cjs.map +1 -1
  353. package/dist/packages/start-slicemachine/_node_modules/semver/functions/diff.js.map +1 -1
  354. package/dist/packages/start-slicemachine/_node_modules/semver/functions/eq.cjs.map +1 -1
  355. package/dist/packages/start-slicemachine/_node_modules/semver/functions/gt.cjs.map +1 -1
  356. package/dist/packages/start-slicemachine/_node_modules/semver/functions/gte.cjs.map +1 -1
  357. package/dist/packages/start-slicemachine/_node_modules/semver/functions/inc.cjs.map +1 -1
  358. package/dist/packages/start-slicemachine/_node_modules/semver/functions/inc.js.map +1 -1
  359. package/dist/packages/start-slicemachine/_node_modules/semver/functions/lt.cjs.map +1 -1
  360. package/dist/packages/start-slicemachine/_node_modules/semver/functions/lte.cjs.map +1 -1
  361. package/dist/packages/start-slicemachine/_node_modules/semver/functions/major.cjs.map +1 -1
  362. package/dist/packages/start-slicemachine/_node_modules/semver/functions/minor.cjs.map +1 -1
  363. package/dist/packages/start-slicemachine/_node_modules/semver/functions/neq.cjs.map +1 -1
  364. package/dist/packages/start-slicemachine/_node_modules/semver/functions/parse.cjs.map +1 -1
  365. package/dist/packages/start-slicemachine/_node_modules/semver/functions/parse.js.map +1 -1
  366. package/dist/packages/start-slicemachine/_node_modules/semver/functions/patch.cjs.map +1 -1
  367. package/dist/packages/start-slicemachine/_node_modules/semver/functions/prerelease.cjs.map +1 -1
  368. package/dist/packages/start-slicemachine/_node_modules/semver/functions/rcompare.cjs.map +1 -1
  369. package/dist/packages/start-slicemachine/_node_modules/semver/functions/rsort.cjs.map +1 -1
  370. package/dist/packages/start-slicemachine/_node_modules/semver/functions/satisfies.cjs.map +1 -1
  371. package/dist/packages/start-slicemachine/_node_modules/semver/functions/satisfies.js.map +1 -1
  372. package/dist/packages/start-slicemachine/_node_modules/semver/functions/sort.cjs.map +1 -1
  373. package/dist/packages/start-slicemachine/_node_modules/semver/functions/valid.cjs.map +1 -1
  374. package/dist/packages/start-slicemachine/_node_modules/semver/index.cjs +4 -4
  375. package/dist/packages/start-slicemachine/_node_modules/semver/index.cjs.map +1 -1
  376. package/dist/packages/start-slicemachine/_node_modules/semver/index.js.map +1 -1
  377. package/dist/packages/start-slicemachine/_node_modules/semver/internal/debug.cjs.map +1 -1
  378. package/dist/packages/start-slicemachine/_node_modules/semver/internal/debug.js.map +1 -1
  379. package/dist/packages/start-slicemachine/_node_modules/semver/internal/identifiers.cjs.map +1 -1
  380. package/dist/packages/start-slicemachine/_node_modules/semver/internal/identifiers.js.map +1 -1
  381. package/dist/packages/start-slicemachine/_node_modules/semver/internal/parse-options.cjs.map +1 -1
  382. package/dist/packages/start-slicemachine/_node_modules/semver/internal/parse-options.js.map +1 -1
  383. package/dist/packages/start-slicemachine/_node_modules/semver/internal/re.cjs.map +1 -1
  384. package/dist/packages/start-slicemachine/_node_modules/semver/internal/re.js.map +1 -1
  385. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/gtr.cjs.map +1 -1
  386. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/intersects.cjs.map +1 -1
  387. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/intersects.js.map +1 -1
  388. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/ltr.cjs.map +1 -1
  389. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/max-satisfying.cjs.map +1 -1
  390. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/max-satisfying.js.map +1 -1
  391. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/min-satisfying.cjs.map +1 -1
  392. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/min-satisfying.js.map +1 -1
  393. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/min-version.cjs.map +1 -1
  394. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/min-version.js.map +1 -1
  395. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/outside.cjs.map +1 -1
  396. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/outside.js.map +1 -1
  397. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/simplify.cjs.map +1 -1
  398. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/simplify.js.map +1 -1
  399. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/subset.cjs +10 -11
  400. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/subset.cjs.map +1 -1
  401. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/subset.js +10 -11
  402. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/subset.js.map +1 -1
  403. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/to-comparators.cjs.map +1 -1
  404. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/to-comparators.js.map +1 -1
  405. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/valid.cjs.map +1 -1
  406. package/dist/packages/start-slicemachine/_node_modules/semver/ranges/valid.js.map +1 -1
  407. package/dist/packages/start-slicemachine/package.json.cjs +1 -1
  408. package/dist/packages/start-slicemachine/package.json.js +1 -1
  409. package/package.json +3 -3
  410. package/dist/lib/checkIsSentryEnabled.cjs +0 -5
  411. package/dist/lib/checkIsSentryEnabled.cjs.map +0 -1
  412. package/dist/lib/checkIsSentryEnabled.js +0 -5
  413. package/dist/lib/checkIsSentryEnabled.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../node_modules/@sentry/node/esm/integrations/undici/index.js"],"sourcesContent":["import { _optionalChain } from '@sentry/utils';\nimport { defineIntegration, hasTracingEnabled, getClient, isSentryRequestUrl, getCurrentScope, getIsolationScope, getActiveSpan, spanToTraceHeader, getDynamicSamplingContextFromSpan, getDynamicSamplingContextFromClient, setHttpStatus, addBreadcrumb } from '@sentry/core';\nimport { LRUMap, generateSentryTraceHeader, dynamicSamplingContextToSentryBaggageHeader, parseUrl, stringMatchesSomePattern, getSanitizedUrlString } from '@sentry/utils';\nimport { NODE_VERSION } from '../../nodeVersion.js';\n\nvar ChannelName;(function (ChannelName) {\n // https://github.com/nodejs/undici/blob/e6fc80f809d1217814c044f52ed40ef13f21e43c/docs/api/DiagnosticsChannel.md#undicirequestcreate\n const RequestCreate = 'undici:request:create'; ChannelName[\"RequestCreate\"] = RequestCreate;\n const RequestEnd = 'undici:request:headers'; ChannelName[\"RequestEnd\"] = RequestEnd;\n const RequestError = 'undici:request:error'; ChannelName[\"RequestError\"] = RequestError;\n})(ChannelName || (ChannelName = {}));\n\n// Please note that you cannot use `console.log` to debug the callbacks registered to the `diagnostics_channel` API.\n// To debug, you can use `writeFileSync` to write to a file:\n// https://nodejs.org/api/async_hooks.html#printing-in-asynchook-callbacks\n//\n// import { writeFileSync } from 'fs';\n// import { format } from 'util';\n//\n// function debug(...args: any): void {\n// // Use a function like this one when debugging inside an AsyncHook callback\n// // @ts-expect-error any\n// writeFileSync('log.out', `${format(...args)}\\n`, { flag: 'a' });\n// }\n\nconst _nativeNodeFetchintegration = ((options) => {\n // eslint-disable-next-line deprecation/deprecation\n return new Undici(options) ;\n}) ;\n\nconst nativeNodeFetchintegration = defineIntegration(_nativeNodeFetchintegration);\n\n/**\n * Instruments outgoing HTTP requests made with the `undici` package via\n * Node's `diagnostics_channel` API.\n *\n * Supports Undici 4.7.0 or higher.\n *\n * Requires Node 16.17.0 or higher.\n *\n * @deprecated Use `nativeNodeFetchintegration()` instead.\n */\nclass Undici {\n /**\n * @inheritDoc\n */\n static __initStatic() {this.id = 'Undici';}\n\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line deprecation/deprecation\n __init() {this.name = Undici.id;}\n\n __init2() {this._createSpanUrlMap = new LRUMap(100);}\n __init3() {this._headersUrlMap = new LRUMap(100);}\n\n constructor(_options = {}) {Undici.prototype.__init.call(this);Undici.prototype.__init2.call(this);Undici.prototype.__init3.call(this);Undici.prototype.__init4.call(this);Undici.prototype.__init5.call(this);Undici.prototype.__init6.call(this);\n this._options = {\n breadcrumbs: _options.breadcrumbs === undefined ? true : _options.breadcrumbs,\n tracing: _options.tracing,\n shouldCreateSpanForRequest: _options.shouldCreateSpanForRequest,\n };\n }\n\n /**\n * @inheritDoc\n */\n setupOnce(_addGlobalEventProcessor) {\n // Requires Node 16+ to use the diagnostics_channel API.\n if (NODE_VERSION.major < 16) {\n return;\n }\n\n let ds;\n try {\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n ds = require('diagnostics_channel') ;\n } catch (e) {\n // no-op\n }\n\n if (!ds || !ds.subscribe) {\n return;\n }\n\n // https://github.com/nodejs/undici/blob/e6fc80f809d1217814c044f52ed40ef13f21e43c/docs/api/DiagnosticsChannel.md\n ds.subscribe(ChannelName.RequestCreate, this._onRequestCreate);\n ds.subscribe(ChannelName.RequestEnd, this._onRequestEnd);\n ds.subscribe(ChannelName.RequestError, this._onRequestError);\n }\n\n /** Helper that wraps shouldCreateSpanForRequest option */\n _shouldCreateSpan(url) {\n if (this._options.tracing === false || (this._options.tracing === undefined && !hasTracingEnabled())) {\n return false;\n }\n\n if (this._options.shouldCreateSpanForRequest === undefined) {\n return true;\n }\n\n const cachedDecision = this._createSpanUrlMap.get(url);\n if (cachedDecision !== undefined) {\n return cachedDecision;\n }\n\n const decision = this._options.shouldCreateSpanForRequest(url);\n this._createSpanUrlMap.set(url, decision);\n return decision;\n }\n\n __init4() {this._onRequestCreate = (message) => {\n // eslint-disable-next-line deprecation/deprecation\n if (!_optionalChain([getClient, 'call', _10 => _10(), 'optionalAccess', _11 => _11.getIntegration, 'call', _12 => _12(Undici)])) {\n return;\n }\n\n const { request } = message ;\n\n const stringUrl = request.origin ? request.origin.toString() + request.path : request.path;\n\n const client = getClient();\n if (!client) {\n return;\n }\n\n if (isSentryRequestUrl(stringUrl, client) || request.__sentry_span__ !== undefined) {\n return;\n }\n\n const clientOptions = client.getOptions();\n const scope = getCurrentScope();\n const isolationScope = getIsolationScope();\n const parentSpan = getActiveSpan();\n\n const span = this._shouldCreateSpan(stringUrl) ? createRequestSpan(parentSpan, request, stringUrl) : undefined;\n if (span) {\n request.__sentry_span__ = span;\n }\n\n const shouldAttachTraceData = (url) => {\n if (clientOptions.tracePropagationTargets === undefined) {\n return true;\n }\n\n const cachedDecision = this._headersUrlMap.get(url);\n if (cachedDecision !== undefined) {\n return cachedDecision;\n }\n\n const decision = stringMatchesSomePattern(url, clientOptions.tracePropagationTargets);\n this._headersUrlMap.set(url, decision);\n return decision;\n };\n\n if (shouldAttachTraceData(stringUrl)) {\n const { traceId, spanId, sampled, dsc } = {\n ...isolationScope.getPropagationContext(),\n ...scope.getPropagationContext(),\n };\n\n const sentryTraceHeader = span ? spanToTraceHeader(span) : generateSentryTraceHeader(traceId, spanId, sampled);\n\n const sentryBaggageHeader = dynamicSamplingContextToSentryBaggageHeader(\n dsc ||\n (span\n ? getDynamicSamplingContextFromSpan(span)\n : getDynamicSamplingContextFromClient(traceId, client, scope)),\n );\n\n setHeadersOnRequest(request, sentryTraceHeader, sentryBaggageHeader);\n }\n };}\n\n __init5() {this._onRequestEnd = (message) => {\n // eslint-disable-next-line deprecation/deprecation\n if (!_optionalChain([getClient, 'call', _13 => _13(), 'optionalAccess', _14 => _14.getIntegration, 'call', _15 => _15(Undici)])) {\n return;\n }\n\n const { request, response } = message ;\n\n const stringUrl = request.origin ? request.origin.toString() + request.path : request.path;\n\n if (isSentryRequestUrl(stringUrl, getClient())) {\n return;\n }\n\n const span = request.__sentry_span__;\n if (span) {\n setHttpStatus(span, response.statusCode);\n span.end();\n }\n\n if (this._options.breadcrumbs) {\n addBreadcrumb(\n {\n category: 'http',\n data: {\n method: request.method,\n status_code: response.statusCode,\n url: stringUrl,\n },\n type: 'http',\n },\n {\n event: 'response',\n request,\n response,\n },\n );\n }\n };}\n\n __init6() {this._onRequestError = (message) => {\n // eslint-disable-next-line deprecation/deprecation\n if (!_optionalChain([getClient, 'call', _16 => _16(), 'optionalAccess', _17 => _17.getIntegration, 'call', _18 => _18(Undici)])) {\n return;\n }\n\n const { request } = message ;\n\n const stringUrl = request.origin ? request.origin.toString() + request.path : request.path;\n\n if (isSentryRequestUrl(stringUrl, getClient())) {\n return;\n }\n\n const span = request.__sentry_span__;\n if (span) {\n span.setStatus('internal_error');\n span.end();\n }\n\n if (this._options.breadcrumbs) {\n addBreadcrumb(\n {\n category: 'http',\n data: {\n method: request.method,\n url: stringUrl,\n },\n level: 'error',\n type: 'http',\n },\n {\n event: 'error',\n request,\n },\n );\n }\n };}\n}Undici.__initStatic();\n\nfunction setHeadersOnRequest(\n request,\n sentryTrace,\n sentryBaggageHeader,\n) {\n let hasSentryHeaders;\n if (Array.isArray(request.headers)) {\n hasSentryHeaders = request.headers.some(headerLine => headerLine === 'sentry-trace');\n } else {\n const headerLines = request.headers.split('\\r\\n');\n hasSentryHeaders = headerLines.some(headerLine => headerLine.startsWith('sentry-trace:'));\n }\n\n if (hasSentryHeaders) {\n return;\n }\n\n request.addHeader('sentry-trace', sentryTrace);\n if (sentryBaggageHeader) {\n request.addHeader('baggage', sentryBaggageHeader);\n }\n}\n\nfunction createRequestSpan(\n activeSpan,\n request,\n stringUrl,\n) {\n const url = parseUrl(stringUrl);\n\n const method = request.method || 'GET';\n const data = {\n 'http.method': method,\n };\n if (url.search) {\n data['http.query'] = url.search;\n }\n if (url.hash) {\n data['http.fragment'] = url.hash;\n }\n // eslint-disable-next-line deprecation/deprecation\n return _optionalChain([activeSpan, 'optionalAccess', _19 => _19.startChild, 'call', _20 => _20({\n op: 'http.client',\n origin: 'auto.http.node.undici',\n description: `${method} ${getSanitizedUrlString(url)}`,\n data,\n })]);\n}\n\nexport { ChannelName, Undici, nativeNodeFetchintegration };\n//# sourceMappingURL=index.js.map\n"],"names":["ChannelName"],"mappings":";;;;;;;;;;;;;;;;AAKG,IAAC;AAAA,CAAa,SAAUA,cAAa;AAEtC,QAAM,gBAAgB;AAAyB,EAAAA,aAAY,eAAe,IAAI;AAC9E,QAAM,aAAa;AAA0B,EAAAA,aAAY,YAAY,IAAI;AACzE,QAAM,eAAe;AAAwB,EAAAA,aAAY,cAAc,IAAI;AAC7E,GAAG,gBAAgB,cAAc,CAAE,EAAC;AAepC,MAAM,8BAA+B,CAAC,YAAY;AAEhD,SAAO,IAAI,OAAO,OAAO;AAC3B;AAEK,MAAC,6BAA6B,kBAAkB,2BAA2B;AAYhF,MAAM,OAAQ;AAAA;AAAA;AAAA;AAAA,EAIX,OAAO,eAAe;AAAC,SAAK,KAAK;AAAA,EAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAM1C,SAAS;AAAC,SAAK,OAAO,OAAO;AAAA,EAAG;AAAA,EAE/B,UAAU;AAAC,SAAK,oBAAoB,IAAI,OAAO,GAAG;AAAA,EAAE;AAAA,EACpD,UAAU;AAAC,SAAK,iBAAiB,IAAI,OAAO,GAAG;AAAA,EAAE;AAAA,EAElD,YAAY,WAAW,IAAI;AAAC,WAAO,UAAU,OAAO,KAAK,IAAI;AAAE,WAAO,UAAU,QAAQ,KAAK,IAAI;AAAE,WAAO,UAAU,QAAQ,KAAK,IAAI;AAAE,WAAO,UAAU,QAAQ,KAAK,IAAI;AAAE,WAAO,UAAU,QAAQ,KAAK,IAAI;AAAE,WAAO,UAAU,QAAQ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;AAAA,YACP,MAAM;AAAA,UACP;AAAA,UACD;AAAA,YACE,OAAO;AAAA,YACP;AAAA,UACD;AAAA,QACT;AAAA,MACK;AAAA,IACL;AAAA,EAAI;AACJ;AAAC,OAAO,aAAY;AAEpB,SAAS,oBACP,SACA,aACA,qBACA;AACA,MAAI;AACJ,MAAI,MAAM,QAAQ,QAAQ,OAAO,GAAG;AAClC,uBAAmB,QAAQ,QAAQ,KAAK,gBAAc,eAAe,cAAc;AAAA,EACvF,OAAS;AACL,UAAM,cAAc,QAAQ,QAAQ,MAAM,MAAM;AAChD,uBAAmB,YAAY,KAAK,gBAAc,WAAW,WAAW,eAAe,CAAC;AAAA,EACzF;AAED,MAAI,kBAAkB;AACpB;AAAA,EACD;AAED,UAAQ,UAAU,gBAAgB,WAAW;AAC7C,MAAI,qBAAqB;AACvB,YAAQ,UAAU,WAAW,mBAAmB;AAAA,EACjD;AACH;AAEA,SAAS,kBACP,YACA,SACA,WACA;AACA,QAAM,MAAM,SAAS,SAAS;AAE9B,QAAM,SAAS,QAAQ,UAAU;AACjC,QAAM,OAAO;AAAA,IACX,eAAe;AAAA,EACnB;AACE,MAAI,IAAI,QAAQ;AACd,SAAK,YAAY,IAAI,IAAI;AAAA,EAC1B;AACD,MAAI,IAAI,MAAM;AACZ,SAAK,eAAe,IAAI,IAAI;AAAA,EAC7B;AAED,SAAO,eAAe,CAAC,YAAY,kBAAkB,SAAO,IAAI,YAAY,QAAQ,SAAO,IAAI;AAAA,IAC7F,IAAI;AAAA,IACJ,QAAQ;AAAA,IACR,aAAa,GAAG,MAAM,IAAI,sBAAsB,GAAG,CAAC;AAAA,IACpD;AAAA,EACD,CAAA,CAAC,CAAC;AACL;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../../node_modules/@sentry/node/esm/integrations/undici/index.js"],"sourcesContent":["import { _optionalChain } from '@sentry/utils';\nimport { defineIntegration, hasTracingEnabled, getClient, isSentryRequestUrl, getCurrentScope, getIsolationScope, getActiveSpan, spanToTraceHeader, getDynamicSamplingContextFromSpan, getDynamicSamplingContextFromClient, setHttpStatus, addBreadcrumb } from '@sentry/core';\nimport { LRUMap, generateSentryTraceHeader, dynamicSamplingContextToSentryBaggageHeader, parseUrl, stringMatchesSomePattern, getSanitizedUrlString } from '@sentry/utils';\nimport { NODE_VERSION } from '../../nodeVersion.js';\n\nvar ChannelName;(function (ChannelName) {\n // https://github.com/nodejs/undici/blob/e6fc80f809d1217814c044f52ed40ef13f21e43c/docs/api/DiagnosticsChannel.md#undicirequestcreate\n const RequestCreate = 'undici:request:create'; ChannelName[\"RequestCreate\"] = RequestCreate;\n const RequestEnd = 'undici:request:headers'; ChannelName[\"RequestEnd\"] = RequestEnd;\n const RequestError = 'undici:request:error'; ChannelName[\"RequestError\"] = RequestError;\n})(ChannelName || (ChannelName = {}));\n\n// Please note that you cannot use `console.log` to debug the callbacks registered to the `diagnostics_channel` API.\n// To debug, you can use `writeFileSync` to write to a file:\n// https://nodejs.org/api/async_hooks.html#printing-in-asynchook-callbacks\n//\n// import { writeFileSync } from 'fs';\n// import { format } from 'util';\n//\n// function debug(...args: any): void {\n// // Use a function like this one when debugging inside an AsyncHook callback\n// // @ts-expect-error any\n// writeFileSync('log.out', `${format(...args)}\\n`, { flag: 'a' });\n// }\n\nconst _nativeNodeFetchintegration = ((options) => {\n // eslint-disable-next-line deprecation/deprecation\n return new Undici(options) ;\n}) ;\n\nconst nativeNodeFetchintegration = defineIntegration(_nativeNodeFetchintegration);\n\n/**\n * Instruments outgoing HTTP requests made with the `undici` package via\n * Node's `diagnostics_channel` API.\n *\n * Supports Undici 4.7.0 or higher.\n *\n * Requires Node 16.17.0 or higher.\n *\n * @deprecated Use `nativeNodeFetchintegration()` instead.\n */\nclass Undici {\n /**\n * @inheritDoc\n */\n static __initStatic() {this.id = 'Undici';}\n\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line deprecation/deprecation\n __init() {this.name = Undici.id;}\n\n __init2() {this._createSpanUrlMap = new LRUMap(100);}\n __init3() {this._headersUrlMap = new LRUMap(100);}\n\n constructor(_options = {}) {Undici.prototype.__init.call(this);Undici.prototype.__init2.call(this);Undici.prototype.__init3.call(this);Undici.prototype.__init4.call(this);Undici.prototype.__init5.call(this);Undici.prototype.__init6.call(this);\n this._options = {\n breadcrumbs: _options.breadcrumbs === undefined ? true : _options.breadcrumbs,\n tracing: _options.tracing,\n shouldCreateSpanForRequest: _options.shouldCreateSpanForRequest,\n };\n }\n\n /**\n * @inheritDoc\n */\n setupOnce(_addGlobalEventProcessor) {\n // Requires Node 16+ to use the diagnostics_channel API.\n if (NODE_VERSION.major < 16) {\n return;\n }\n\n let ds;\n try {\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n ds = require('diagnostics_channel') ;\n } catch (e) {\n // no-op\n }\n\n if (!ds || !ds.subscribe) {\n return;\n }\n\n // https://github.com/nodejs/undici/blob/e6fc80f809d1217814c044f52ed40ef13f21e43c/docs/api/DiagnosticsChannel.md\n ds.subscribe(ChannelName.RequestCreate, this._onRequestCreate);\n ds.subscribe(ChannelName.RequestEnd, this._onRequestEnd);\n ds.subscribe(ChannelName.RequestError, this._onRequestError);\n }\n\n /** Helper that wraps shouldCreateSpanForRequest option */\n _shouldCreateSpan(url) {\n if (this._options.tracing === false || (this._options.tracing === undefined && !hasTracingEnabled())) {\n return false;\n }\n\n if (this._options.shouldCreateSpanForRequest === undefined) {\n return true;\n }\n\n const cachedDecision = this._createSpanUrlMap.get(url);\n if (cachedDecision !== undefined) {\n return cachedDecision;\n }\n\n const decision = this._options.shouldCreateSpanForRequest(url);\n this._createSpanUrlMap.set(url, decision);\n return decision;\n }\n\n __init4() {this._onRequestCreate = (message) => {\n // eslint-disable-next-line deprecation/deprecation\n if (!_optionalChain([getClient, 'call', _10 => _10(), 'optionalAccess', _11 => _11.getIntegration, 'call', _12 => _12(Undici)])) {\n return;\n }\n\n const { request } = message ;\n\n const stringUrl = request.origin ? request.origin.toString() + request.path : request.path;\n\n const client = getClient();\n if (!client) {\n return;\n }\n\n if (isSentryRequestUrl(stringUrl, client) || request.__sentry_span__ !== undefined) {\n return;\n }\n\n const clientOptions = client.getOptions();\n const scope = getCurrentScope();\n const isolationScope = getIsolationScope();\n const parentSpan = getActiveSpan();\n\n const span = this._shouldCreateSpan(stringUrl) ? createRequestSpan(parentSpan, request, stringUrl) : undefined;\n if (span) {\n request.__sentry_span__ = span;\n }\n\n const shouldAttachTraceData = (url) => {\n if (clientOptions.tracePropagationTargets === undefined) {\n return true;\n }\n\n const cachedDecision = this._headersUrlMap.get(url);\n if (cachedDecision !== undefined) {\n return cachedDecision;\n }\n\n const decision = stringMatchesSomePattern(url, clientOptions.tracePropagationTargets);\n this._headersUrlMap.set(url, decision);\n return decision;\n };\n\n if (shouldAttachTraceData(stringUrl)) {\n const { traceId, spanId, sampled, dsc } = {\n ...isolationScope.getPropagationContext(),\n ...scope.getPropagationContext(),\n };\n\n const sentryTraceHeader = span ? spanToTraceHeader(span) : generateSentryTraceHeader(traceId, spanId, sampled);\n\n const sentryBaggageHeader = dynamicSamplingContextToSentryBaggageHeader(\n dsc ||\n (span\n ? getDynamicSamplingContextFromSpan(span)\n : getDynamicSamplingContextFromClient(traceId, client, scope)),\n );\n\n setHeadersOnRequest(request, sentryTraceHeader, sentryBaggageHeader);\n }\n };}\n\n __init5() {this._onRequestEnd = (message) => {\n // eslint-disable-next-line deprecation/deprecation\n if (!_optionalChain([getClient, 'call', _13 => _13(), 'optionalAccess', _14 => _14.getIntegration, 'call', _15 => _15(Undici)])) {\n return;\n }\n\n const { request, response } = message ;\n\n const stringUrl = request.origin ? request.origin.toString() + request.path : request.path;\n\n if (isSentryRequestUrl(stringUrl, getClient())) {\n return;\n }\n\n const span = request.__sentry_span__;\n if (span) {\n setHttpStatus(span, response.statusCode);\n span.end();\n }\n\n if (this._options.breadcrumbs) {\n addBreadcrumb(\n {\n category: 'http',\n data: {\n method: request.method,\n status_code: response.statusCode,\n url: stringUrl,\n },\n type: 'http',\n },\n {\n event: 'response',\n request,\n response,\n },\n );\n }\n };}\n\n __init6() {this._onRequestError = (message) => {\n // eslint-disable-next-line deprecation/deprecation\n if (!_optionalChain([getClient, 'call', _16 => _16(), 'optionalAccess', _17 => _17.getIntegration, 'call', _18 => _18(Undici)])) {\n return;\n }\n\n const { request } = message ;\n\n const stringUrl = request.origin ? request.origin.toString() + request.path : request.path;\n\n if (isSentryRequestUrl(stringUrl, getClient())) {\n return;\n }\n\n const span = request.__sentry_span__;\n if (span) {\n span.setStatus('internal_error');\n span.end();\n }\n\n if (this._options.breadcrumbs) {\n addBreadcrumb(\n {\n category: 'http',\n data: {\n method: request.method,\n url: stringUrl,\n },\n level: 'error',\n type: 'http',\n },\n {\n event: 'error',\n request,\n },\n );\n }\n };}\n}Undici.__initStatic();\n\nfunction setHeadersOnRequest(\n request,\n sentryTrace,\n sentryBaggageHeader,\n) {\n let hasSentryHeaders;\n if (Array.isArray(request.headers)) {\n hasSentryHeaders = request.headers.some(headerLine => headerLine === 'sentry-trace');\n } else {\n const headerLines = request.headers.split('\\r\\n');\n hasSentryHeaders = headerLines.some(headerLine => headerLine.startsWith('sentry-trace:'));\n }\n\n if (hasSentryHeaders) {\n return;\n }\n\n request.addHeader('sentry-trace', sentryTrace);\n if (sentryBaggageHeader) {\n request.addHeader('baggage', sentryBaggageHeader);\n }\n}\n\nfunction createRequestSpan(\n activeSpan,\n request,\n stringUrl,\n) {\n const url = parseUrl(stringUrl);\n\n const method = request.method || 'GET';\n const data = {\n 'http.method': method,\n };\n if (url.search) {\n data['http.query'] = url.search;\n }\n if (url.hash) {\n data['http.fragment'] = url.hash;\n }\n // eslint-disable-next-line deprecation/deprecation\n return _optionalChain([activeSpan, 'optionalAccess', _19 => _19.startChild, 'call', _20 => _20({\n op: 'http.client',\n origin: 'auto.http.node.undici',\n description: `${method} ${getSanitizedUrlString(url)}`,\n data,\n })]);\n}\n\nexport { ChannelName, Undici, nativeNodeFetchintegration };\n//# sourceMappingURL=index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O,GAAG;AAClC,uBAAmB,QAAQ,QAAQ,KAAK,gBAAc,eAAe,cAAc;AAAA,EACrF,OAAO;AACL,UAAM,cAAc,QAAQ,QAAQ,MAAM,MAAM;AAChD,uBAAmB,YAAY,KAAK,gBAAc,WAAW,WAAW,eAAe,CAAC;AAAA,EAC1F;AAEA,MAAI,kBAAkB;AACpB;AAAA,EACF;AAEA,UAAQ,UAAU,gBAAgB,WAAW;AAC7C,MAAI,qBAAqB;AACvB,YAAQ,UAAU,WAAW,mBAAmB;AAAA,EAClD;AACF;AAEA,SAAS,kBACP,YACA,SACA,WACA;AACA,QAAM,MAAM,SAAS,SAAS;AAE9B,QAAM,SAAS,QAAQ,UAAU;AACjC,QAAM,OAAO;AAAA,IACX,eAAe;AAAA,EACnB;AACE,MAAI,IAAI,QAAQ;AACd,SAAK,YAAY,IAAI,IAAI;AAAA,EAC3B;AACA,MAAI,IAAI,MAAM;AACZ,SAAK,eAAe,IAAI,IAAI;AAAA,EAC9B;AAEA,SAAO,eAAe,CAAC,YAAY,kBAAkB,SAAO,IAAI,YAAY,QAAQ,SAAO,IAAI;AAAA,IAC7F,IAAI;AAAA,IACJ,QAAQ;AAAA,IACR,aAAa,GAAG,MAAM,IAAI,sBAAsB,GAAG,CAAC;AAAA,IACpD;AAAA,EACJ,CAAG,CAAC,CAAC;AACL;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"errorhandling.cjs","sources":["../../../../../../../../../node_modules/@sentry/node/esm/integrations/utils/errorhandling.js"],"sourcesContent":["import { getClient } from '@sentry/core';\nimport { consoleSandbox, logger } from '@sentry/utils';\nimport { DEBUG_BUILD } from '../../debug-build.js';\n\nconst DEFAULT_SHUTDOWN_TIMEOUT = 2000;\n\n/**\n * @hidden\n */\nfunction logAndExitProcess(error) {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.error(error);\n });\n\n const client = getClient();\n\n if (client === undefined) {\n DEBUG_BUILD && logger.warn('No NodeClient was defined, we are exiting the process now.');\n global.process.exit(1);\n }\n\n const options = client.getOptions();\n const timeout =\n (options && options.shutdownTimeout && options.shutdownTimeout > 0 && options.shutdownTimeout) ||\n DEFAULT_SHUTDOWN_TIMEOUT;\n client.close(timeout).then(\n (result) => {\n if (!result) {\n DEBUG_BUILD && logger.warn('We reached the timeout for emptying the request buffer, still exiting now!');\n }\n global.process.exit(1);\n },\n error => {\n DEBUG_BUILD && logger.error(error);\n },\n );\n}\n\nexport { logAndExitProcess };\n//# sourceMappingURL=errorhandling.js.map\n"],"names":["consoleSandbox","getClient","DEBUG_BUILD","logger","error"],"mappings":";;;;;AAIA,MAAM,2BAA2B;AAKjC,SAAS,kBAAkB,OAAO;AAChCA,SAAAA,eAAe,MAAM;AAEnB,YAAQ,MAAM,KAAK;AAAA,EACvB,CAAG;AAED,QAAM,SAASC,UAAAA;AAEf,MAAI,WAAW,QAAW;AACxBC,eAAAA,eAAeC,OAAM,OAAC,KAAK,4DAA4D;AACvF,WAAO,QAAQ,KAAK,CAAC;AAAA,EACtB;AAED,QAAM,UAAU,OAAO;AACvB,QAAM,UACH,WAAW,QAAQ,mBAAmB,QAAQ,kBAAkB,KAAK,QAAQ,mBAC9E;AACF,SAAO,MAAM,OAAO,EAAE;AAAA,IACpB,CAAC,WAAW;AACV,UAAI,CAAC,QAAQ;AACXD,mBAAAA,eAAeC,OAAM,OAAC,KAAK,4EAA4E;AAAA,MACxG;AACD,aAAO,QAAQ,KAAK,CAAC;AAAA,IACtB;AAAA,IACD,CAAAC,WAAS;AACPF,iBAAAA,eAAeC,OAAM,OAAC,MAAMC,MAAK;AAAA,IAClC;AAAA,EACL;AACA;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"errorhandling.cjs","sources":["../../../../../../../../../node_modules/@sentry/node/esm/integrations/utils/errorhandling.js"],"sourcesContent":["import { getClient } from '@sentry/core';\nimport { consoleSandbox, logger } from '@sentry/utils';\nimport { DEBUG_BUILD } from '../../debug-build.js';\n\nconst DEFAULT_SHUTDOWN_TIMEOUT = 2000;\n\n/**\n * @hidden\n */\nfunction logAndExitProcess(error) {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.error(error);\n });\n\n const client = getClient();\n\n if (client === undefined) {\n DEBUG_BUILD && logger.warn('No NodeClient was defined, we are exiting the process now.');\n global.process.exit(1);\n }\n\n const options = client.getOptions();\n const timeout =\n (options && options.shutdownTimeout && options.shutdownTimeout > 0 && options.shutdownTimeout) ||\n DEFAULT_SHUTDOWN_TIMEOUT;\n client.close(timeout).then(\n (result) => {\n if (!result) {\n DEBUG_BUILD && logger.warn('We reached the timeout for emptying the request buffer, still exiting now!');\n }\n global.process.exit(1);\n },\n error => {\n DEBUG_BUILD && logger.error(error);\n },\n );\n}\n\nexport { logAndExitProcess };\n//# sourceMappingURL=errorhandling.js.map\n"],"names":["consoleSandbox","getClient","DEBUG_BUILD","logger","error"],"mappings":";;;;;AAIA,MAAM,2BAA2B;AAKjC,SAAS,kBAAkB,OAAO;AAChCA,SAAAA,eAAe,MAAM;AAEnB,YAAQ,MAAM,KAAK;AAAA,EACrB,CAAC;AAED,QAAM,SAASC,UAAAA,UAAS;AAExB,MAAI,WAAW,QAAW;AACxBC,8BAAeC,OAAAA,OAAO,KAAK,4DAA4D;AACvF,WAAO,QAAQ,KAAK,CAAC;AAAA,EACvB;AAEA,QAAM,UAAU,OAAO,WAAU;AACjC,QAAM,UACH,WAAW,QAAQ,mBAAmB,QAAQ,kBAAkB,KAAK,QAAQ,mBAC9E;AACF,SAAO,MAAM,OAAO,EAAE;AAAA,IACpB,CAAC,WAAW;AACV,UAAI,CAAC,QAAQ;AACXD,kCAAeC,OAAAA,OAAO,KAAK,4EAA4E;AAAA,MACzG;AACA,aAAO,QAAQ,KAAK,CAAC;AAAA,IACvB;AAAA,IACA,CAAAC,WAAS;AACPF,gCAAeC,OAAAA,OAAO,MAAMC,MAAK;AAAA,IACnC;AAAA,EACJ;AACA;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"errorhandling.js","sources":["../../../../../../../../../node_modules/@sentry/node/esm/integrations/utils/errorhandling.js"],"sourcesContent":["import { getClient } from '@sentry/core';\nimport { consoleSandbox, logger } from '@sentry/utils';\nimport { DEBUG_BUILD } from '../../debug-build.js';\n\nconst DEFAULT_SHUTDOWN_TIMEOUT = 2000;\n\n/**\n * @hidden\n */\nfunction logAndExitProcess(error) {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.error(error);\n });\n\n const client = getClient();\n\n if (client === undefined) {\n DEBUG_BUILD && logger.warn('No NodeClient was defined, we are exiting the process now.');\n global.process.exit(1);\n }\n\n const options = client.getOptions();\n const timeout =\n (options && options.shutdownTimeout && options.shutdownTimeout > 0 && options.shutdownTimeout) ||\n DEFAULT_SHUTDOWN_TIMEOUT;\n client.close(timeout).then(\n (result) => {\n if (!result) {\n DEBUG_BUILD && logger.warn('We reached the timeout for emptying the request buffer, still exiting now!');\n }\n global.process.exit(1);\n },\n error => {\n DEBUG_BUILD && logger.error(error);\n },\n );\n}\n\nexport { logAndExitProcess };\n//# sourceMappingURL=errorhandling.js.map\n"],"names":["error"],"mappings":";;;AAIA,MAAM,2BAA2B;AAKjC,SAAS,kBAAkB,OAAO;AAChC,iBAAe,MAAM;AAEnB,YAAQ,MAAM,KAAK;AAAA,EACvB,CAAG;AAED,QAAM,SAAS;AAEf,MAAI,WAAW,QAAW;AACxB,mBAAe,OAAO,KAAK,4DAA4D;AACvF,WAAO,QAAQ,KAAK,CAAC;AAAA,EACtB;AAED,QAAM,UAAU,OAAO;AACvB,QAAM,UACH,WAAW,QAAQ,mBAAmB,QAAQ,kBAAkB,KAAK,QAAQ,mBAC9E;AACF,SAAO,MAAM,OAAO,EAAE;AAAA,IACpB,CAAC,WAAW;AACV,UAAI,CAAC,QAAQ;AACX,uBAAe,OAAO,KAAK,4EAA4E;AAAA,MACxG;AACD,aAAO,QAAQ,KAAK,CAAC;AAAA,IACtB;AAAA,IACD,CAAAA,WAAS;AACP,qBAAe,OAAO,MAAMA,MAAK;AAAA,IAClC;AAAA,EACL;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"errorhandling.js","sources":["../../../../../../../../../node_modules/@sentry/node/esm/integrations/utils/errorhandling.js"],"sourcesContent":["import { getClient } from '@sentry/core';\nimport { consoleSandbox, logger } from '@sentry/utils';\nimport { DEBUG_BUILD } from '../../debug-build.js';\n\nconst DEFAULT_SHUTDOWN_TIMEOUT = 2000;\n\n/**\n * @hidden\n */\nfunction logAndExitProcess(error) {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.error(error);\n });\n\n const client = getClient();\n\n if (client === undefined) {\n DEBUG_BUILD && logger.warn('No NodeClient was defined, we are exiting the process now.');\n global.process.exit(1);\n }\n\n const options = client.getOptions();\n const timeout =\n (options && options.shutdownTimeout && options.shutdownTimeout > 0 && options.shutdownTimeout) ||\n DEFAULT_SHUTDOWN_TIMEOUT;\n client.close(timeout).then(\n (result) => {\n if (!result) {\n DEBUG_BUILD && logger.warn('We reached the timeout for emptying the request buffer, still exiting now!');\n }\n global.process.exit(1);\n },\n error => {\n DEBUG_BUILD && logger.error(error);\n },\n );\n}\n\nexport { logAndExitProcess };\n//# sourceMappingURL=errorhandling.js.map\n"],"names":["error"],"mappings":";;;AAIA,MAAM,2BAA2B;AAKjC,SAAS,kBAAkB,OAAO;AAChC,iBAAe,MAAM;AAEnB,YAAQ,MAAM,KAAK;AAAA,EACrB,CAAC;AAED,QAAM,SAAS,UAAS;AAExB,MAAI,WAAW,QAAW;AACxB,mBAAe,OAAO,KAAK,4DAA4D;AACvF,WAAO,QAAQ,KAAK,CAAC;AAAA,EACvB;AAEA,QAAM,UAAU,OAAO,WAAU;AACjC,QAAM,UACH,WAAW,QAAQ,mBAAmB,QAAQ,kBAAkB,KAAK,QAAQ,mBAC9E;AACF,SAAO,MAAM,OAAO,EAAE;AAAA,IACpB,CAAC,WAAW;AACV,UAAI,CAAC,QAAQ;AACX,uBAAe,OAAO,KAAK,4EAA4E;AAAA,MACzG;AACA,aAAO,QAAQ,KAAK,CAAC;AAAA,IACvB;AAAA,IACA,CAAAA,WAAS;AACP,qBAAe,OAAO,MAAMA,MAAK;AAAA,IACnC;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"http.cjs","sources":["../../../../../../../../../node_modules/@sentry/node/esm/integrations/utils/http.js"],"sourcesContent":["import { _optionalChain } from '@sentry/utils';\nimport { URL } from 'url';\nimport { NODE_VERSION } from '../../nodeVersion.js';\n\n/**\n * Assembles a URL that's passed to the users to filter on.\n * It can include raw (potentially PII containing) data, which we'll allow users to access to filter\n * but won't include in spans or breadcrumbs.\n *\n * @param requestOptions RequestOptions object containing the component parts for a URL\n * @returns Fully-formed URL\n */\n// TODO (v8): This function should include auth, query and fragment (it's breaking, so we need to wait for v8)\nfunction extractRawUrl(requestOptions) {\n const { protocol, hostname, port } = parseRequestOptions(requestOptions);\n const path = requestOptions.path ? requestOptions.path : '/';\n return `${protocol}//${hostname}${port}${path}`;\n}\n\n/**\n * Assemble a URL to be used for breadcrumbs and spans.\n *\n * @param requestOptions RequestOptions object containing the component parts for a URL\n * @returns Fully-formed URL\n */\nfunction extractUrl(requestOptions) {\n const { protocol, hostname, port } = parseRequestOptions(requestOptions);\n\n const path = requestOptions.pathname || '/';\n\n // always filter authority, see https://develop.sentry.dev/sdk/data-handling/#structuring-data\n const authority = requestOptions.auth ? redactAuthority(requestOptions.auth) : '';\n\n return `${protocol}//${authority}${hostname}${port}${path}`;\n}\n\nfunction redactAuthority(auth) {\n const [user, password] = auth.split(':');\n return `${user ? '[Filtered]' : ''}:${password ? '[Filtered]' : ''}@`;\n}\n\n/**\n * Handle various edge cases in the span description (for spans representing http(s) requests).\n *\n * @param description current `description` property of the span representing the request\n * @param requestOptions Configuration data for the request\n * @param Request Request object\n *\n * @returns The cleaned description\n */\nfunction cleanSpanDescription(\n description,\n requestOptions,\n request,\n) {\n // nothing to clean\n if (!description) {\n return description;\n }\n\n // eslint-disable-next-line prefer-const\n let [method, requestUrl] = description.split(' ');\n\n // superagent sticks the protocol in a weird place (we check for host because if both host *and* protocol are missing,\n // we're likely dealing with an internal route and this doesn't apply)\n if (requestOptions.host && !requestOptions.protocol) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any\n requestOptions.protocol = _optionalChain([(request ), 'optionalAccess', _ => _.agent, 'optionalAccess', _2 => _2.protocol]); // worst comes to worst, this is undefined and nothing changes\n // This URL contains the filtered authority ([filtered]:[filtered]@example.com) but no fragment or query params\n requestUrl = extractUrl(requestOptions);\n }\n\n // internal routes can end up starting with a triple slash rather than a single one\n if (_optionalChain([requestUrl, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4('///')])) {\n requestUrl = requestUrl.slice(2);\n }\n\n return `${method} ${requestUrl}`;\n}\n\n// the node types are missing a few properties which node's `urlToOptions` function spits out\n\n/**\n * Convert a URL object into a RequestOptions object.\n *\n * Copied from Node's internals (where it's used in http(s).request() and http(s).get()), modified only to use the\n * RequestOptions type above.\n *\n * See https://github.com/nodejs/node/blob/master/lib/internal/url.js.\n */\nfunction urlToOptions(url) {\n const options = {\n protocol: url.protocol,\n hostname:\n typeof url.hostname === 'string' && url.hostname.startsWith('[') ? url.hostname.slice(1, -1) : url.hostname,\n hash: url.hash,\n search: url.search,\n pathname: url.pathname,\n path: `${url.pathname || ''}${url.search || ''}`,\n href: url.href,\n };\n if (url.port !== '') {\n options.port = Number(url.port);\n }\n if (url.username || url.password) {\n options.auth = `${url.username}:${url.password}`;\n }\n return options;\n}\n\n/**\n * Normalize inputs to `http(s).request()` and `http(s).get()`.\n *\n * Legal inputs to `http(s).request()` and `http(s).get()` can take one of ten forms:\n * [ RequestOptions | string | URL ],\n * [ RequestOptions | string | URL, RequestCallback ],\n * [ string | URL, RequestOptions ], and\n * [ string | URL, RequestOptions, RequestCallback ].\n *\n * This standardizes to one of two forms: [ RequestOptions ] and [ RequestOptions, RequestCallback ]. A similar thing is\n * done as the first step of `http(s).request()` and `http(s).get()`; this just does it early so that we can interact\n * with the args in a standard way.\n *\n * @param requestArgs The inputs to `http(s).request()` or `http(s).get()`, as an array.\n *\n * @returns Equivalent args of the form [ RequestOptions ] or [ RequestOptions, RequestCallback ].\n */\nfunction normalizeRequestArgs(\n httpModule,\n requestArgs,\n) {\n let callback, requestOptions;\n\n // pop off the callback, if there is one\n if (typeof requestArgs[requestArgs.length - 1] === 'function') {\n callback = requestArgs.pop() ;\n }\n\n // create a RequestOptions object of whatever's at index 0\n if (typeof requestArgs[0] === 'string') {\n requestOptions = urlToOptions(new URL(requestArgs[0]));\n } else if (requestArgs[0] instanceof URL) {\n requestOptions = urlToOptions(requestArgs[0]);\n } else {\n requestOptions = requestArgs[0];\n\n try {\n const parsed = new URL(\n requestOptions.path || '',\n `${requestOptions.protocol || 'http:'}//${requestOptions.hostname}`,\n );\n requestOptions = {\n pathname: parsed.pathname,\n search: parsed.search,\n hash: parsed.hash,\n ...requestOptions,\n };\n } catch (e) {\n // ignore\n }\n }\n\n // if the options were given separately from the URL, fold them in\n if (requestArgs.length === 2) {\n requestOptions = { ...requestOptions, ...requestArgs[1] };\n }\n\n // Figure out the protocol if it's currently missing\n if (requestOptions.protocol === undefined) {\n // Worst case we end up populating protocol with undefined, which it already is\n /* eslint-disable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any */\n\n // NOTE: Prior to Node 9, `https` used internals of `http` module, thus we don't patch it.\n // Because of that, we cannot rely on `httpModule` to provide us with valid protocol,\n // as it will always return `http`, even when using `https` module.\n //\n // See test/integrations/http.test.ts for more details on Node <=v8 protocol issue.\n if (NODE_VERSION.major > 8) {\n requestOptions.protocol =\n _optionalChain([(_optionalChain([httpModule, 'optionalAccess', _5 => _5.globalAgent]) ), 'optionalAccess', _6 => _6.protocol]) ||\n _optionalChain([(requestOptions.agent ), 'optionalAccess', _7 => _7.protocol]) ||\n _optionalChain([(requestOptions._defaultAgent ), 'optionalAccess', _8 => _8.protocol]);\n } else {\n requestOptions.protocol =\n _optionalChain([(requestOptions.agent ), 'optionalAccess', _9 => _9.protocol]) ||\n _optionalChain([(requestOptions._defaultAgent ), 'optionalAccess', _10 => _10.protocol]) ||\n _optionalChain([(_optionalChain([httpModule, 'optionalAccess', _11 => _11.globalAgent]) ), 'optionalAccess', _12 => _12.protocol]);\n }\n /* eslint-enable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any */\n }\n\n // return args in standardized form\n if (callback) {\n return [requestOptions, callback];\n } else {\n return [requestOptions];\n }\n}\n\nfunction parseRequestOptions(requestOptions)\n\n {\n const protocol = requestOptions.protocol || '';\n const hostname = requestOptions.hostname || requestOptions.host || '';\n // Don't log standard :80 (http) and :443 (https) ports to reduce the noise\n // Also don't add port if the hostname already includes a port\n const port =\n !requestOptions.port || requestOptions.port === 80 || requestOptions.port === 443 || /^(.*):(\\d+)$/.test(hostname)\n ? ''\n : `:${requestOptions.port}`;\n\n return { protocol, hostname, port };\n}\n\nexport { cleanSpanDescription, extractRawUrl, extractUrl, normalizeRequestArgs, urlToOptions };\n//# sourceMappingURL=http.js.map\n"],"names":["_optionalChain","url","URL","NODE_VERSION"],"mappings":";;;;;AAaA,SAAS,cAAc,gBAAgB;AACrC,QAAM,EAAE,UAAU,UAAU,KAAI,IAAK,oBAAoB,cAAc;AACvE,QAAM,OAAO,eAAe,OAAO,eAAe,OAAO;AACzD,SAAO,GAAG,QAAQ,KAAK,QAAQ,GAAG,IAAI,GAAG,IAAI;AAC/C;AAQA,SAAS,WAAW,gBAAgB;AAClC,QAAM,EAAE,UAAU,UAAU,KAAI,IAAK,oBAAoB,cAAc;AAEvE,QAAM,OAAO,eAAe,YAAY;AAGxC,QAAM,YAAY,eAAe,OAAO,gBAAgB,eAAe,IAAI,IAAI;AAE/E,SAAO,GAAG,QAAQ,KAAK,SAAS,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI;AAC3D;AAEA,SAAS,gB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,kBAAkB,SAAO,IAAI,QAAQ,CAAC,KACvFA,eAAAA,eAAe,CAAEA,eAAc,eAAC,CAAC,YAAY,kBAAkB,SAAO,IAAI,WAAW,CAAC,GAAK,kBAAkB,SAAO,IAAI,QAAQ,CAAC;AAAA,IACpI;AAAA,EAEF;AAGD,MAAI,UAAU;AACZ,WAAO,CAAC,gBAAgB,QAAQ;AAAA,EACpC,OAAS;AACL,WAAO,CAAC,cAAc;AAAA,EACvB;AACH;AAEA,SAAS,oBAAoB,gBAE5B;AACC,QAAM,WAAW,eAAe,YAAY;AAC5C,QAAM,WAAW,eAAe,YAAY,eAAe,QAAQ;AAGnE,QAAM,OACJ,CAAC,eAAe,QAAQ,eAAe,SAAS,MAAM,eAAe,SAAS,OAAO,eAAe,KAAK,QAAQ,IAC7G,KACA,IAAI,eAAe,IAAI;AAE7B,SAAO,EAAE,UAAU,UAAU;AAC/B;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"http.cjs","sources":["../../../../../../../../../node_modules/@sentry/node/esm/integrations/utils/http.js"],"sourcesContent":["import { _optionalChain } from '@sentry/utils';\nimport { URL } from 'url';\nimport { NODE_VERSION } from '../../nodeVersion.js';\n\n/**\n * Assembles a URL that's passed to the users to filter on.\n * It can include raw (potentially PII containing) data, which we'll allow users to access to filter\n * but won't include in spans or breadcrumbs.\n *\n * @param requestOptions RequestOptions object containing the component parts for a URL\n * @returns Fully-formed URL\n */\n// TODO (v8): This function should include auth, query and fragment (it's breaking, so we need to wait for v8)\nfunction extractRawUrl(requestOptions) {\n const { protocol, hostname, port } = parseRequestOptions(requestOptions);\n const path = requestOptions.path ? requestOptions.path : '/';\n return `${protocol}//${hostname}${port}${path}`;\n}\n\n/**\n * Assemble a URL to be used for breadcrumbs and spans.\n *\n * @param requestOptions RequestOptions object containing the component parts for a URL\n * @returns Fully-formed URL\n */\nfunction extractUrl(requestOptions) {\n const { protocol, hostname, port } = parseRequestOptions(requestOptions);\n\n const path = requestOptions.pathname || '/';\n\n // always filter authority, see https://develop.sentry.dev/sdk/data-handling/#structuring-data\n const authority = requestOptions.auth ? redactAuthority(requestOptions.auth) : '';\n\n return `${protocol}//${authority}${hostname}${port}${path}`;\n}\n\nfunction redactAuthority(auth) {\n const [user, password] = auth.split(':');\n return `${user ? '[Filtered]' : ''}:${password ? '[Filtered]' : ''}@`;\n}\n\n/**\n * Handle various edge cases in the span description (for spans representing http(s) requests).\n *\n * @param description current `description` property of the span representing the request\n * @param requestOptions Configuration data for the request\n * @param Request Request object\n *\n * @returns The cleaned description\n */\nfunction cleanSpanDescription(\n description,\n requestOptions,\n request,\n) {\n // nothing to clean\n if (!description) {\n return description;\n }\n\n // eslint-disable-next-line prefer-const\n let [method, requestUrl] = description.split(' ');\n\n // superagent sticks the protocol in a weird place (we check for host because if both host *and* protocol are missing,\n // we're likely dealing with an internal route and this doesn't apply)\n if (requestOptions.host && !requestOptions.protocol) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any\n requestOptions.protocol = _optionalChain([(request ), 'optionalAccess', _ => _.agent, 'optionalAccess', _2 => _2.protocol]); // worst comes to worst, this is undefined and nothing changes\n // This URL contains the filtered authority ([filtered]:[filtered]@example.com) but no fragment or query params\n requestUrl = extractUrl(requestOptions);\n }\n\n // internal routes can end up starting with a triple slash rather than a single one\n if (_optionalChain([requestUrl, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4('///')])) {\n requestUrl = requestUrl.slice(2);\n }\n\n return `${method} ${requestUrl}`;\n}\n\n// the node types are missing a few properties which node's `urlToOptions` function spits out\n\n/**\n * Convert a URL object into a RequestOptions object.\n *\n * Copied from Node's internals (where it's used in http(s).request() and http(s).get()), modified only to use the\n * RequestOptions type above.\n *\n * See https://github.com/nodejs/node/blob/master/lib/internal/url.js.\n */\nfunction urlToOptions(url) {\n const options = {\n protocol: url.protocol,\n hostname:\n typeof url.hostname === 'string' && url.hostname.startsWith('[') ? url.hostname.slice(1, -1) : url.hostname,\n hash: url.hash,\n search: url.search,\n pathname: url.pathname,\n path: `${url.pathname || ''}${url.search || ''}`,\n href: url.href,\n };\n if (url.port !== '') {\n options.port = Number(url.port);\n }\n if (url.username || url.password) {\n options.auth = `${url.username}:${url.password}`;\n }\n return options;\n}\n\n/**\n * Normalize inputs to `http(s).request()` and `http(s).get()`.\n *\n * Legal inputs to `http(s).request()` and `http(s).get()` can take one of ten forms:\n * [ RequestOptions | string | URL ],\n * [ RequestOptions | string | URL, RequestCallback ],\n * [ string | URL, RequestOptions ], and\n * [ string | URL, RequestOptions, RequestCallback ].\n *\n * This standardizes to one of two forms: [ RequestOptions ] and [ RequestOptions, RequestCallback ]. A similar thing is\n * done as the first step of `http(s).request()` and `http(s).get()`; this just does it early so that we can interact\n * with the args in a standard way.\n *\n * @param requestArgs The inputs to `http(s).request()` or `http(s).get()`, as an array.\n *\n * @returns Equivalent args of the form [ RequestOptions ] or [ RequestOptions, RequestCallback ].\n */\nfunction normalizeRequestArgs(\n httpModule,\n requestArgs,\n) {\n let callback, requestOptions;\n\n // pop off the callback, if there is one\n if (typeof requestArgs[requestArgs.length - 1] === 'function') {\n callback = requestArgs.pop() ;\n }\n\n // create a RequestOptions object of whatever's at index 0\n if (typeof requestArgs[0] === 'string') {\n requestOptions = urlToOptions(new URL(requestArgs[0]));\n } else if (requestArgs[0] instanceof URL) {\n requestOptions = urlToOptions(requestArgs[0]);\n } else {\n requestOptions = requestArgs[0];\n\n try {\n const parsed = new URL(\n requestOptions.path || '',\n `${requestOptions.protocol || 'http:'}//${requestOptions.hostname}`,\n );\n requestOptions = {\n pathname: parsed.pathname,\n search: parsed.search,\n hash: parsed.hash,\n ...requestOptions,\n };\n } catch (e) {\n // ignore\n }\n }\n\n // if the options were given separately from the URL, fold them in\n if (requestArgs.length === 2) {\n requestOptions = { ...requestOptions, ...requestArgs[1] };\n }\n\n // Figure out the protocol if it's currently missing\n if (requestOptions.protocol === undefined) {\n // Worst case we end up populating protocol with undefined, which it already is\n /* eslint-disable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any */\n\n // NOTE: Prior to Node 9, `https` used internals of `http` module, thus we don't patch it.\n // Because of that, we cannot rely on `httpModule` to provide us with valid protocol,\n // as it will always return `http`, even when using `https` module.\n //\n // See test/integrations/http.test.ts for more details on Node <=v8 protocol issue.\n if (NODE_VERSION.major > 8) {\n requestOptions.protocol =\n _optionalChain([(_optionalChain([httpModule, 'optionalAccess', _5 => _5.globalAgent]) ), 'optionalAccess', _6 => _6.protocol]) ||\n _optionalChain([(requestOptions.agent ), 'optionalAccess', _7 => _7.protocol]) ||\n _optionalChain([(requestOptions._defaultAgent ), 'optionalAccess', _8 => _8.protocol]);\n } else {\n requestOptions.protocol =\n _optionalChain([(requestOptions.agent ), 'optionalAccess', _9 => _9.protocol]) ||\n _optionalChain([(requestOptions._defaultAgent ), 'optionalAccess', _10 => _10.protocol]) ||\n _optionalChain([(_optionalChain([httpModule, 'optionalAccess', _11 => _11.globalAgent]) ), 'optionalAccess', _12 => _12.protocol]);\n }\n /* eslint-enable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any */\n }\n\n // return args in standardized form\n if (callback) {\n return [requestOptions, callback];\n } else {\n return [requestOptions];\n }\n}\n\nfunction parseRequestOptions(requestOptions)\n\n {\n const protocol = requestOptions.protocol || '';\n const hostname = requestOptions.hostname || requestOptions.host || '';\n // Don't log standard :80 (http) and :443 (https) ports to reduce the noise\n // Also don't add port if the hostname already includes a port\n const port =\n !requestOptions.port || requestOptions.port === 80 || requestOptions.port === 443 || /^(.*):(\\d+)$/.test(hostname)\n ? ''\n : `:${requestOptions.port}`;\n\n return { protocol, hostname, port };\n}\n\nexport { cleanSpanDescription, extractRawUrl, extractUrl, normalizeRequestArgs, urlToOptions };\n//# sourceMappingURL=http.js.map\n"],"names":["_optionalChain","url","URL","NODE_VERSION"],"mappings":";;;;;AAaA,SAAS,cAAc,gBAAgB;AACrC,QAAM,EAAE,UAAU,UAAU,KAAI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AQ,GAAG;AAC1B,qBAAe,WACbH,eAAAA,eAAe,CAAEA,eAAAA,eAAe,CAAC,YAAY,kBAAkB,QAAM,GAAG,WAAW,CAAC,GAAK,kBAAkB,QAAM,GAAG,QAAQ,CAAC,KAC7HA,eAAAA,eAAe,CAAE,eAAe,OAAS,kBAAkB,QAAM,GAAG,QAAQ,CAAC,KAC7EA,eAAAA,eAAe,CAAE,eAAe,eAAiB,kBAAkB,QAAM,GAAG,QAAQ,CAAC;AAAA,IACzF,OAAO;AACL,qBAAe,WACbA,eAAAA,eAAe,CAAE,eAAe,OAAS,kBAAkB,QAAM,GAAG,QAAQ,CAAC,KAC7EA,eAAAA,eAAe,CAAE,eAAe,eAAiB,kBAAkB,SAAO,IAAI,QAAQ,CAAC,KACvFA,eAAAA,eAAe,CAAEA,eAAAA,eAAe,CAAC,YAAY,kBAAkB,SAAO,IAAI,WAAW,CAAC,GAAK,kBAAkB,SAAO,IAAI,QAAQ,CAAC;AAAA,IACrI;AAAA,EAEF;AAGA,MAAI,UAAU;AACZ,WAAO,CAAC,gBAAgB,QAAQ;AAAA,EAClC,OAAO;AACL,WAAO,CAAC,cAAc;AAAA,EACxB;AACF;AAEA,SAAS,oBAAoB,gBAE5B;AACC,QAAM,WAAW,eAAe,YAAY;AAC5C,QAAM,WAAW,eAAe,YAAY,eAAe,QAAQ;AAGnE,QAAM,OACJ,CAAC,eAAe,QAAQ,eAAe,SAAS,MAAM,eAAe,SAAS,OAAO,eAAe,KAAK,QAAQ,IAC7G,KACA,IAAI,eAAe,IAAI;AAE7B,SAAO,EAAE,UAAU,UAAU,KAAI;AACnC;;;;;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"http.js","sources":["../../../../../../../../../node_modules/@sentry/node/esm/integrations/utils/http.js"],"sourcesContent":["import { _optionalChain } from '@sentry/utils';\nimport { URL } from 'url';\nimport { NODE_VERSION } from '../../nodeVersion.js';\n\n/**\n * Assembles a URL that's passed to the users to filter on.\n * It can include raw (potentially PII containing) data, which we'll allow users to access to filter\n * but won't include in spans or breadcrumbs.\n *\n * @param requestOptions RequestOptions object containing the component parts for a URL\n * @returns Fully-formed URL\n */\n// TODO (v8): This function should include auth, query and fragment (it's breaking, so we need to wait for v8)\nfunction extractRawUrl(requestOptions) {\n const { protocol, hostname, port } = parseRequestOptions(requestOptions);\n const path = requestOptions.path ? requestOptions.path : '/';\n return `${protocol}//${hostname}${port}${path}`;\n}\n\n/**\n * Assemble a URL to be used for breadcrumbs and spans.\n *\n * @param requestOptions RequestOptions object containing the component parts for a URL\n * @returns Fully-formed URL\n */\nfunction extractUrl(requestOptions) {\n const { protocol, hostname, port } = parseRequestOptions(requestOptions);\n\n const path = requestOptions.pathname || '/';\n\n // always filter authority, see https://develop.sentry.dev/sdk/data-handling/#structuring-data\n const authority = requestOptions.auth ? redactAuthority(requestOptions.auth) : '';\n\n return `${protocol}//${authority}${hostname}${port}${path}`;\n}\n\nfunction redactAuthority(auth) {\n const [user, password] = auth.split(':');\n return `${user ? '[Filtered]' : ''}:${password ? '[Filtered]' : ''}@`;\n}\n\n/**\n * Handle various edge cases in the span description (for spans representing http(s) requests).\n *\n * @param description current `description` property of the span representing the request\n * @param requestOptions Configuration data for the request\n * @param Request Request object\n *\n * @returns The cleaned description\n */\nfunction cleanSpanDescription(\n description,\n requestOptions,\n request,\n) {\n // nothing to clean\n if (!description) {\n return description;\n }\n\n // eslint-disable-next-line prefer-const\n let [method, requestUrl] = description.split(' ');\n\n // superagent sticks the protocol in a weird place (we check for host because if both host *and* protocol are missing,\n // we're likely dealing with an internal route and this doesn't apply)\n if (requestOptions.host && !requestOptions.protocol) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any\n requestOptions.protocol = _optionalChain([(request ), 'optionalAccess', _ => _.agent, 'optionalAccess', _2 => _2.protocol]); // worst comes to worst, this is undefined and nothing changes\n // This URL contains the filtered authority ([filtered]:[filtered]@example.com) but no fragment or query params\n requestUrl = extractUrl(requestOptions);\n }\n\n // internal routes can end up starting with a triple slash rather than a single one\n if (_optionalChain([requestUrl, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4('///')])) {\n requestUrl = requestUrl.slice(2);\n }\n\n return `${method} ${requestUrl}`;\n}\n\n// the node types are missing a few properties which node's `urlToOptions` function spits out\n\n/**\n * Convert a URL object into a RequestOptions object.\n *\n * Copied from Node's internals (where it's used in http(s).request() and http(s).get()), modified only to use the\n * RequestOptions type above.\n *\n * See https://github.com/nodejs/node/blob/master/lib/internal/url.js.\n */\nfunction urlToOptions(url) {\n const options = {\n protocol: url.protocol,\n hostname:\n typeof url.hostname === 'string' && url.hostname.startsWith('[') ? url.hostname.slice(1, -1) : url.hostname,\n hash: url.hash,\n search: url.search,\n pathname: url.pathname,\n path: `${url.pathname || ''}${url.search || ''}`,\n href: url.href,\n };\n if (url.port !== '') {\n options.port = Number(url.port);\n }\n if (url.username || url.password) {\n options.auth = `${url.username}:${url.password}`;\n }\n return options;\n}\n\n/**\n * Normalize inputs to `http(s).request()` and `http(s).get()`.\n *\n * Legal inputs to `http(s).request()` and `http(s).get()` can take one of ten forms:\n * [ RequestOptions | string | URL ],\n * [ RequestOptions | string | URL, RequestCallback ],\n * [ string | URL, RequestOptions ], and\n * [ string | URL, RequestOptions, RequestCallback ].\n *\n * This standardizes to one of two forms: [ RequestOptions ] and [ RequestOptions, RequestCallback ]. A similar thing is\n * done as the first step of `http(s).request()` and `http(s).get()`; this just does it early so that we can interact\n * with the args in a standard way.\n *\n * @param requestArgs The inputs to `http(s).request()` or `http(s).get()`, as an array.\n *\n * @returns Equivalent args of the form [ RequestOptions ] or [ RequestOptions, RequestCallback ].\n */\nfunction normalizeRequestArgs(\n httpModule,\n requestArgs,\n) {\n let callback, requestOptions;\n\n // pop off the callback, if there is one\n if (typeof requestArgs[requestArgs.length - 1] === 'function') {\n callback = requestArgs.pop() ;\n }\n\n // create a RequestOptions object of whatever's at index 0\n if (typeof requestArgs[0] === 'string') {\n requestOptions = urlToOptions(new URL(requestArgs[0]));\n } else if (requestArgs[0] instanceof URL) {\n requestOptions = urlToOptions(requestArgs[0]);\n } else {\n requestOptions = requestArgs[0];\n\n try {\n const parsed = new URL(\n requestOptions.path || '',\n `${requestOptions.protocol || 'http:'}//${requestOptions.hostname}`,\n );\n requestOptions = {\n pathname: parsed.pathname,\n search: parsed.search,\n hash: parsed.hash,\n ...requestOptions,\n };\n } catch (e) {\n // ignore\n }\n }\n\n // if the options were given separately from the URL, fold them in\n if (requestArgs.length === 2) {\n requestOptions = { ...requestOptions, ...requestArgs[1] };\n }\n\n // Figure out the protocol if it's currently missing\n if (requestOptions.protocol === undefined) {\n // Worst case we end up populating protocol with undefined, which it already is\n /* eslint-disable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any */\n\n // NOTE: Prior to Node 9, `https` used internals of `http` module, thus we don't patch it.\n // Because of that, we cannot rely on `httpModule` to provide us with valid protocol,\n // as it will always return `http`, even when using `https` module.\n //\n // See test/integrations/http.test.ts for more details on Node <=v8 protocol issue.\n if (NODE_VERSION.major > 8) {\n requestOptions.protocol =\n _optionalChain([(_optionalChain([httpModule, 'optionalAccess', _5 => _5.globalAgent]) ), 'optionalAccess', _6 => _6.protocol]) ||\n _optionalChain([(requestOptions.agent ), 'optionalAccess', _7 => _7.protocol]) ||\n _optionalChain([(requestOptions._defaultAgent ), 'optionalAccess', _8 => _8.protocol]);\n } else {\n requestOptions.protocol =\n _optionalChain([(requestOptions.agent ), 'optionalAccess', _9 => _9.protocol]) ||\n _optionalChain([(requestOptions._defaultAgent ), 'optionalAccess', _10 => _10.protocol]) ||\n _optionalChain([(_optionalChain([httpModule, 'optionalAccess', _11 => _11.globalAgent]) ), 'optionalAccess', _12 => _12.protocol]);\n }\n /* eslint-enable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any */\n }\n\n // return args in standardized form\n if (callback) {\n return [requestOptions, callback];\n } else {\n return [requestOptions];\n }\n}\n\nfunction parseRequestOptions(requestOptions)\n\n {\n const protocol = requestOptions.protocol || '';\n const hostname = requestOptions.hostname || requestOptions.host || '';\n // Don't log standard :80 (http) and :443 (https) ports to reduce the noise\n // Also don't add port if the hostname already includes a port\n const port =\n !requestOptions.port || requestOptions.port === 80 || requestOptions.port === 443 || /^(.*):(\\d+)$/.test(hostname)\n ? ''\n : `:${requestOptions.port}`;\n\n return { protocol, hostname, port };\n}\n\nexport { cleanSpanDescription, extractRawUrl, extractUrl, normalizeRequestArgs, urlToOptions };\n//# sourceMappingURL=http.js.map\n"],"names":[],"mappings":";;;AAaA,SAAS,cAAc,gBAAgB;AACrC,QAAM,EAAE,UAAU,UAAU,KAAI,IAAK,oBAAoB,cAAc;AACvE,QAAM,OAAO,eAAe,OAAO,eAAe,OAAO;AACzD,SAAO,GAAG,QAAQ,KAAK,QAAQ,GAAG,IAAI,GAAG,IAAI;AAC/C;AAQA,SAAS,WAAW,gBAAgB;AAClC,QAAM,EAAE,UAAU,UAAU,KAAI,IAAK,oBAAoB,cAAc;AAEvE,QAAM,OAAO,eAAe,YAAY;AAGxC,QAAM,YAAY,eAAe,OAAO,gBAAgB,eAAe,IAAI,IAAI;AAE/E,SAAO,GAAG,QAAQ,KAAK,SAAS,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI;AAC3D;AAEA,SAAS,gBAAgB,MAAM;AAC7B,QAAM,CAAC,MAAM,QAAQ,IAAI,KAAK,MAAM,GAAG;AACvC,SAAO,GAAG,OAAO,eAAe,EAAE,IAAI,WAAW,eAAe,EAAE;AACpE;AAWA,SAAS,qBACP,aACA,gBACA,SACA;AAEA,MAAI,CAAC,aAAa;AAChB,WAAO;AAAA,EACR;AAGD,MAAI,CAAC,QAAQ,UAAU,IAAI,YAAY,MAAM,GAAG;AAIhD,MAAI,eAAe,QAAQ,CAAC,eAAe,UAAU;AAEnD,mBAAe,WAAW,eAAe,CAAE,SAAW,kBAAkB,OAAK,EAAE,OAAO,kBAAkB,QAAM,GAAG,Q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;AAE7B,SAAO,EAAE,UAAU,UAAU;AAC/B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"http.js","sources":["../../../../../../../../../node_modules/@sentry/node/esm/integrations/utils/http.js"],"sourcesContent":["import { _optionalChain } from '@sentry/utils';\nimport { URL } from 'url';\nimport { NODE_VERSION } from '../../nodeVersion.js';\n\n/**\n * Assembles a URL that's passed to the users to filter on.\n * It can include raw (potentially PII containing) data, which we'll allow users to access to filter\n * but won't include in spans or breadcrumbs.\n *\n * @param requestOptions RequestOptions object containing the component parts for a URL\n * @returns Fully-formed URL\n */\n// TODO (v8): This function should include auth, query and fragment (it's breaking, so we need to wait for v8)\nfunction extractRawUrl(requestOptions) {\n const { protocol, hostname, port } = parseRequestOptions(requestOptions);\n const path = requestOptions.path ? requestOptions.path : '/';\n return `${protocol}//${hostname}${port}${path}`;\n}\n\n/**\n * Assemble a URL to be used for breadcrumbs and spans.\n *\n * @param requestOptions RequestOptions object containing the component parts for a URL\n * @returns Fully-formed URL\n */\nfunction extractUrl(requestOptions) {\n const { protocol, hostname, port } = parseRequestOptions(requestOptions);\n\n const path = requestOptions.pathname || '/';\n\n // always filter authority, see https://develop.sentry.dev/sdk/data-handling/#structuring-data\n const authority = requestOptions.auth ? redactAuthority(requestOptions.auth) : '';\n\n return `${protocol}//${authority}${hostname}${port}${path}`;\n}\n\nfunction redactAuthority(auth) {\n const [user, password] = auth.split(':');\n return `${user ? '[Filtered]' : ''}:${password ? '[Filtered]' : ''}@`;\n}\n\n/**\n * Handle various edge cases in the span description (for spans representing http(s) requests).\n *\n * @param description current `description` property of the span representing the request\n * @param requestOptions Configuration data for the request\n * @param Request Request object\n *\n * @returns The cleaned description\n */\nfunction cleanSpanDescription(\n description,\n requestOptions,\n request,\n) {\n // nothing to clean\n if (!description) {\n return description;\n }\n\n // eslint-disable-next-line prefer-const\n let [method, requestUrl] = description.split(' ');\n\n // superagent sticks the protocol in a weird place (we check for host because if both host *and* protocol are missing,\n // we're likely dealing with an internal route and this doesn't apply)\n if (requestOptions.host && !requestOptions.protocol) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any\n requestOptions.protocol = _optionalChain([(request ), 'optionalAccess', _ => _.agent, 'optionalAccess', _2 => _2.protocol]); // worst comes to worst, this is undefined and nothing changes\n // This URL contains the filtered authority ([filtered]:[filtered]@example.com) but no fragment or query params\n requestUrl = extractUrl(requestOptions);\n }\n\n // internal routes can end up starting with a triple slash rather than a single one\n if (_optionalChain([requestUrl, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4('///')])) {\n requestUrl = requestUrl.slice(2);\n }\n\n return `${method} ${requestUrl}`;\n}\n\n// the node types are missing a few properties which node's `urlToOptions` function spits out\n\n/**\n * Convert a URL object into a RequestOptions object.\n *\n * Copied from Node's internals (where it's used in http(s).request() and http(s).get()), modified only to use the\n * RequestOptions type above.\n *\n * See https://github.com/nodejs/node/blob/master/lib/internal/url.js.\n */\nfunction urlToOptions(url) {\n const options = {\n protocol: url.protocol,\n hostname:\n typeof url.hostname === 'string' && url.hostname.startsWith('[') ? url.hostname.slice(1, -1) : url.hostname,\n hash: url.hash,\n search: url.search,\n pathname: url.pathname,\n path: `${url.pathname || ''}${url.search || ''}`,\n href: url.href,\n };\n if (url.port !== '') {\n options.port = Number(url.port);\n }\n if (url.username || url.password) {\n options.auth = `${url.username}:${url.password}`;\n }\n return options;\n}\n\n/**\n * Normalize inputs to `http(s).request()` and `http(s).get()`.\n *\n * Legal inputs to `http(s).request()` and `http(s).get()` can take one of ten forms:\n * [ RequestOptions | string | URL ],\n * [ RequestOptions | string | URL, RequestCallback ],\n * [ string | URL, RequestOptions ], and\n * [ string | URL, RequestOptions, RequestCallback ].\n *\n * This standardizes to one of two forms: [ RequestOptions ] and [ RequestOptions, RequestCallback ]. A similar thing is\n * done as the first step of `http(s).request()` and `http(s).get()`; this just does it early so that we can interact\n * with the args in a standard way.\n *\n * @param requestArgs The inputs to `http(s).request()` or `http(s).get()`, as an array.\n *\n * @returns Equivalent args of the form [ RequestOptions ] or [ RequestOptions, RequestCallback ].\n */\nfunction normalizeRequestArgs(\n httpModule,\n requestArgs,\n) {\n let callback, requestOptions;\n\n // pop off the callback, if there is one\n if (typeof requestArgs[requestArgs.length - 1] === 'function') {\n callback = requestArgs.pop() ;\n }\n\n // create a RequestOptions object of whatever's at index 0\n if (typeof requestArgs[0] === 'string') {\n requestOptions = urlToOptions(new URL(requestArgs[0]));\n } else if (requestArgs[0] instanceof URL) {\n requestOptions = urlToOptions(requestArgs[0]);\n } else {\n requestOptions = requestArgs[0];\n\n try {\n const parsed = new URL(\n requestOptions.path || '',\n `${requestOptions.protocol || 'http:'}//${requestOptions.hostname}`,\n );\n requestOptions = {\n pathname: parsed.pathname,\n search: parsed.search,\n hash: parsed.hash,\n ...requestOptions,\n };\n } catch (e) {\n // ignore\n }\n }\n\n // if the options were given separately from the URL, fold them in\n if (requestArgs.length === 2) {\n requestOptions = { ...requestOptions, ...requestArgs[1] };\n }\n\n // Figure out the protocol if it's currently missing\n if (requestOptions.protocol === undefined) {\n // Worst case we end up populating protocol with undefined, which it already is\n /* eslint-disable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any */\n\n // NOTE: Prior to Node 9, `https` used internals of `http` module, thus we don't patch it.\n // Because of that, we cannot rely on `httpModule` to provide us with valid protocol,\n // as it will always return `http`, even when using `https` module.\n //\n // See test/integrations/http.test.ts for more details on Node <=v8 protocol issue.\n if (NODE_VERSION.major > 8) {\n requestOptions.protocol =\n _optionalChain([(_optionalChain([httpModule, 'optionalAccess', _5 => _5.globalAgent]) ), 'optionalAccess', _6 => _6.protocol]) ||\n _optionalChain([(requestOptions.agent ), 'optionalAccess', _7 => _7.protocol]) ||\n _optionalChain([(requestOptions._defaultAgent ), 'optionalAccess', _8 => _8.protocol]);\n } else {\n requestOptions.protocol =\n _optionalChain([(requestOptions.agent ), 'optionalAccess', _9 => _9.protocol]) ||\n _optionalChain([(requestOptions._defaultAgent ), 'optionalAccess', _10 => _10.protocol]) ||\n _optionalChain([(_optionalChain([httpModule, 'optionalAccess', _11 => _11.globalAgent]) ), 'optionalAccess', _12 => _12.protocol]);\n }\n /* eslint-enable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any */\n }\n\n // return args in standardized form\n if (callback) {\n return [requestOptions, callback];\n } else {\n return [requestOptions];\n }\n}\n\nfunction parseRequestOptions(requestOptions)\n\n {\n const protocol = requestOptions.protocol || '';\n const hostname = requestOptions.hostname || requestOptions.host || '';\n // Don't log standard :80 (http) and :443 (https) ports to reduce the noise\n // Also don't add port if the hostname already includes a port\n const port =\n !requestOptions.port || requestOptions.port === 80 || requestOptions.port === 443 || /^(.*):(\\d+)$/.test(hostname)\n ? ''\n : `:${requestOptions.port}`;\n\n return { protocol, hostname, port };\n}\n\nexport { cleanSpanDescription, extractRawUrl, extractUrl, normalizeRequestArgs, urlToOptions };\n//# sourceMappingURL=http.js.map\n"],"names":[],"mappings":";;;AAaA,SAAS,cAAc,gBAAgB;AACrC,QAAM,EAAE,UAAU,UAAU,KAAI,IAAK,oBAAoB,cAAc;AACvE,QAAM,OAAO,eAAe,OAAO,eAAe,OAAO;AACzD,SAAO,GAAG,QAAQ,KAAK,QAAQ,GAAG,IAAI,GAAG,IAAI;AAC/C;AAQA,SAAS,WAAW,gBAAgB;AAClC,QAAM,EAAE,UAAU,UAAU,KAAI,IAAK,oBAAoB,cAAc;AAEvE,QAAM,OAAO,eAAe,YAAY;AAGxC,QAAM,YAAY,eAAe,OAAO,gBAAgB,eAAe,IAAI,IAAI;AAE/E,SAAO,GAAG,QAAQ,KAAK,SAAS,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI;AAC3D;AAEA,SAAS,gBAAgB,MAAM;AAC7B,QAAM,CAAC,MAAM,QAAQ,IAAI,KAAK,MAAM,GAAG;AACvC,SAAO,GAAG,OAAO,eAAe,EAAE,IAAI,WAAW,eAAe,EAAE;AACpE;AAWA,SAAS,qBAC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ACL,WAAO,CAAC,cAAc;AAAA,EACxB;AACF;AAEA,SAAS,oBAAoB,gBAE5B;AACC,QAAM,WAAW,eAAe,YAAY;AAC5C,QAAM,WAAW,eAAe,YAAY,eAAe,QAAQ;AAGnE,QAAM,OACJ,CAAC,eAAe,QAAQ,eAAe,SAAS,MAAM,eAAe,SAAS,OAAO,eAAe,KAAK,QAAQ,IAC7G,KACA,IAAI,eAAe,IAAI;AAE7B,SAAO,EAAE,UAAU,UAAU,KAAI;AACnC;","x_google_ignoreList":[0]}
@@ -1,18 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const path = require("path");
4
- const path$1 = require('./../_node_modules/@sentry/utils/esm/path.cjs');
3
+ const path$1 = require("path");
4
+ const path = require('./../_node_modules/@sentry/utils/esm/path.cjs');
5
5
  function normalizeWindowsPath(path2) {
6
6
  return path2.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
7
7
  }
8
- function createGetModuleFromFilename(basePath = process.argv[1] ? path$1.dirname(process.argv[1]) : process.cwd(), isWindows = path.sep === "\\") {
8
+ function createGetModuleFromFilename(basePath = process.argv[1] ? path.dirname(process.argv[1]) : process.cwd(), isWindows = path$1.sep === "\\") {
9
9
  const normalizedBase = isWindows ? normalizeWindowsPath(basePath) : basePath;
10
10
  return (filename) => {
11
11
  if (!filename) {
12
12
  return;
13
13
  }
14
14
  const normalizedFilename = isWindows ? normalizeWindowsPath(filename) : filename;
15
- let { dir, base: file, ext } = path.posix.parse(normalizedFilename);
15
+ let { dir, base: file, ext } = path$1.posix.parse(normalizedFilename);
16
16
  if (ext === ".js" || ext === ".mjs" || ext === ".cjs") {
17
17
  file = file.slice(0, ext.length * -1);
18
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"module.cjs","sources":["../../../../../../../node_modules/@sentry/node/esm/module.js"],"sourcesContent":["import { posix, sep } from 'path';\nimport { dirname } from '@sentry/utils';\n\n/** normalizes Windows paths */\nfunction normalizeWindowsPath(path) {\n return path\n .replace(/^[A-Z]:/, '') // remove Windows-style prefix\n .replace(/\\\\/g, '/'); // replace all `\\` instances with `/`\n}\n\n/** Creates a function that gets the module name from a filename */\nfunction createGetModuleFromFilename(\n basePath = process.argv[1] ? dirname(process.argv[1]) : process.cwd(),\n isWindows = sep === '\\\\',\n) {\n const normalizedBase = isWindows ? normalizeWindowsPath(basePath) : basePath;\n\n return (filename) => {\n if (!filename) {\n return;\n }\n\n const normalizedFilename = isWindows ? normalizeWindowsPath(filename) : filename;\n\n // eslint-disable-next-line prefer-const\n let { dir, base: file, ext } = posix.parse(normalizedFilename);\n\n if (ext === '.js' || ext === '.mjs' || ext === '.cjs') {\n file = file.slice(0, ext.length * -1);\n }\n\n if (!dir) {\n // No dirname whatsoever\n dir = '.';\n }\n\n const n = dir.lastIndexOf('/node_modules');\n if (n > -1) {\n return `${dir.slice(n + 14).replace(/\\//g, '.')}:${file}`;\n }\n\n // Let's see if it's a part of the main module\n // To be a part of main module, it has to share the same base\n if (dir.startsWith(normalizedBase)) {\n let moduleName = dir.slice(normalizedBase.length + 1).replace(/\\//g, '.');\n\n if (moduleName) {\n moduleName += ':';\n }\n moduleName += file;\n\n return moduleName;\n }\n\n return file;\n };\n}\n\nexport { createGetModuleFromFilename };\n//# sourceMappingURL=module.js.map\n"],"names":["path","dirname","sep","posix"],"mappings":";;;;AAIA,SAAS,qBAAqBA,OAAM;AAClC,SAAOA,MACJ,QAAQ,WAAW,EAAE,EACrB,QAAQ,OAAO,GAAG;AACvB;AAGA,SAAS,4BACP,WAAW,QAAQ,KAAK,CAAC,IAAIC,OAAO,QAAC,QAAQ,KAAK,CAAC,CAAC,IAAI,QAAQ,IAAK,GACrE,YAAYC,KAAG,QAAK,MACpB;AACA,QAAM,iBAAiB,YAAY,qBAAqB,QAAQ,IAAI;AAEpE,SAAO,CAAC,aAAa;AACnB,QAAI,CAAC,UAAU;AACb;AAAA,IACD;AAED,UAAM,qBAAqB,YAAY,qBAAqB,QAAQ,IAAI;AAGxE,QAAI,EAAE,KAAK,MAAM,MAAM,IAAG,IAAKC,KAAK,MAAC,MAAM,kBAAkB;AAE7D,QAAI,QAAQ,SAAS,QAAQ,UAAU,QAAQ,QAAQ;AACrD,aAAO,KAAK,MAAM,GAAG,IAAI,SAAS,EAAE;AAAA,IACrC;AAED,QAAI,CAAC,KAAK;AAER,YAAM;AAAA,IACP;AAED,UAAM,IAAI,IAAI,YAAY,eAAe;AACzC,QAAI,IAAI,IAAI;AACV,aAAO,GAAG,IAAI,MAAM,IAAI,EAAE,EAAE,QAAQ,OAAO,GAAG,CAAC,IAAI,IAAI;AAAA,IACxD;AAID,QAAI,IAAI,WAAW,cAAc,GAAG;AAClC,UAAI,aAAa,IAAI,MAAM,eAAe,SAAS,CAAC,EAAE,QAAQ,OAAO,GAAG;AAExE,UAAI,YAAY;AACd,sBAAc;AAAA,MACf;AACD,oBAAc;AAEd,aAAO;AAAA,IACR;AAED,WAAO;AAAA,EACX;AACA;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"module.cjs","sources":["../../../../../../../node_modules/@sentry/node/esm/module.js"],"sourcesContent":["import { posix, sep } from 'path';\nimport { dirname } from '@sentry/utils';\n\n/** normalizes Windows paths */\nfunction normalizeWindowsPath(path) {\n return path\n .replace(/^[A-Z]:/, '') // remove Windows-style prefix\n .replace(/\\\\/g, '/'); // replace all `\\` instances with `/`\n}\n\n/** Creates a function that gets the module name from a filename */\nfunction createGetModuleFromFilename(\n basePath = process.argv[1] ? dirname(process.argv[1]) : process.cwd(),\n isWindows = sep === '\\\\',\n) {\n const normalizedBase = isWindows ? normalizeWindowsPath(basePath) : basePath;\n\n return (filename) => {\n if (!filename) {\n return;\n }\n\n const normalizedFilename = isWindows ? normalizeWindowsPath(filename) : filename;\n\n // eslint-disable-next-line prefer-const\n let { dir, base: file, ext } = posix.parse(normalizedFilename);\n\n if (ext === '.js' || ext === '.mjs' || ext === '.cjs') {\n file = file.slice(0, ext.length * -1);\n }\n\n if (!dir) {\n // No dirname whatsoever\n dir = '.';\n }\n\n const n = dir.lastIndexOf('/node_modules');\n if (n > -1) {\n return `${dir.slice(n + 14).replace(/\\//g, '.')}:${file}`;\n }\n\n // Let's see if it's a part of the main module\n // To be a part of main module, it has to share the same base\n if (dir.startsWith(normalizedBase)) {\n let moduleName = dir.slice(normalizedBase.length + 1).replace(/\\//g, '.');\n\n if (moduleName) {\n moduleName += ':';\n }\n moduleName += file;\n\n return moduleName;\n }\n\n return file;\n };\n}\n\nexport { createGetModuleFromFilename };\n//# sourceMappingURL=module.js.map\n"],"names":["path","dirname","sep","posix"],"mappings":";;;;AAIA,SAAS,qBAAqBA,OAAM;AAClC,SAAOA,MACJ,QAAQ,WAAW,EAAE,EACrB,QAAQ,OAAO,GAAG;AACvB;AAGA,SAAS,4BACP,WAAW,QAAQ,KAAK,CAAC,IAAIC,KAAAA,QAAQ,QAAQ,KAAK,CAAC,CAAC,IAAI,QAAQ,IAAG,GACnE,YAAYC,OAAAA,QAAQ,MACpB;AACA,QAAM,iBAAiB,YAAY,qBAAqB,QAAQ,IAAI;AAEpE,SAAO,CAAC,aAAa;AACnB,QAAI,CAAC,UAAU;AACb;AAAA,IACF;AAEA,UAAM,qBAAqB,YAAY,qBAAqB,QAAQ,IAAI;AAGxE,QAAI,EAAE,KAAK,MAAM,MAAM,IAAG,IAAKC,OAAAA,MAAM,MAAM,kBAAkB;AAE7D,QAAI,QAAQ,SAAS,QAAQ,UAAU,QAAQ,QAAQ;AACrD,aAAO,KAAK,MAAM,GAAG,IAAI,SAAS,EAAE;AAAA,IACtC;AAEA,QAAI,CAAC,KAAK;AAER,YAAM;AAAA,IACR;AAEA,UAAM,IAAI,IAAI,YAAY,eAAe;AACzC,QAAI,IAAI,IAAI;AACV,aAAO,GAAG,IAAI,MAAM,IAAI,EAAE,EAAE,QAAQ,OAAO,GAAG,CAAC,IAAI,IAAI;AAAA,IACzD;AAIA,QAAI,IAAI,WAAW,cAAc,GAAG;AAClC,UAAI,aAAa,IAAI,MAAM,eAAe,SAAS,CAAC,EAAE,QAAQ,OAAO,GAAG;AAExE,UAAI,YAAY;AACd,sBAAc;AAAA,MAChB;AACA,oBAAc;AAEd,aAAO;AAAA,IACT;AAEA,WAAO;AAAA,EACT;AACF;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"module.js","sources":["../../../../../../../node_modules/@sentry/node/esm/module.js"],"sourcesContent":["import { posix, sep } from 'path';\nimport { dirname } from '@sentry/utils';\n\n/** normalizes Windows paths */\nfunction normalizeWindowsPath(path) {\n return path\n .replace(/^[A-Z]:/, '') // remove Windows-style prefix\n .replace(/\\\\/g, '/'); // replace all `\\` instances with `/`\n}\n\n/** Creates a function that gets the module name from a filename */\nfunction createGetModuleFromFilename(\n basePath = process.argv[1] ? dirname(process.argv[1]) : process.cwd(),\n isWindows = sep === '\\\\',\n) {\n const normalizedBase = isWindows ? normalizeWindowsPath(basePath) : basePath;\n\n return (filename) => {\n if (!filename) {\n return;\n }\n\n const normalizedFilename = isWindows ? normalizeWindowsPath(filename) : filename;\n\n // eslint-disable-next-line prefer-const\n let { dir, base: file, ext } = posix.parse(normalizedFilename);\n\n if (ext === '.js' || ext === '.mjs' || ext === '.cjs') {\n file = file.slice(0, ext.length * -1);\n }\n\n if (!dir) {\n // No dirname whatsoever\n dir = '.';\n }\n\n const n = dir.lastIndexOf('/node_modules');\n if (n > -1) {\n return `${dir.slice(n + 14).replace(/\\//g, '.')}:${file}`;\n }\n\n // Let's see if it's a part of the main module\n // To be a part of main module, it has to share the same base\n if (dir.startsWith(normalizedBase)) {\n let moduleName = dir.slice(normalizedBase.length + 1).replace(/\\//g, '.');\n\n if (moduleName) {\n moduleName += ':';\n }\n moduleName += file;\n\n return moduleName;\n }\n\n return file;\n };\n}\n\nexport { createGetModuleFromFilename };\n//# sourceMappingURL=module.js.map\n"],"names":[],"mappings":";;AAIA,SAAS,qBAAqB,MAAM;AAClC,SAAO,KACJ,QAAQ,WAAW,EAAE,EACrB,QAAQ,OAAO,GAAG;AACvB;AAGA,SAAS,4BACP,WAAW,QAAQ,KAAK,CAAC,IAAI,QAAQ,QAAQ,KAAK,CAAC,CAAC,IAAI,QAAQ,IAAK,GACrE,YAAY,QAAQ,MACpB;AACA,QAAM,iBAAiB,YAAY,qBAAqB,QAAQ,IAAI;AAEpE,SAAO,CAAC,aAAa;AACnB,QAAI,CAAC,UAAU;AACb;AAAA,IACD;AAED,UAAM,qBAAqB,YAAY,qBAAqB,QAAQ,IAAI;AAGxE,QAAI,EAAE,KAAK,MAAM,MAAM,IAAG,IAAK,MAAM,MAAM,kBAAkB;AAE7D,QAAI,QAAQ,SAAS,QAAQ,UAAU,QAAQ,QAAQ;AACrD,aAAO,KAAK,MAAM,GAAG,IAAI,SAAS,EAAE;AAAA,IACrC;AAED,QAAI,CAAC,KAAK;AAER,YAAM;AAAA,IACP;AAED,UAAM,IAAI,IAAI,YAAY,eAAe;AACzC,QAAI,IAAI,IAAI;AACV,aAAO,GAAG,IAAI,MAAM,IAAI,EAAE,EAAE,QAAQ,OAAO,GAAG,CAAC,IAAI,IAAI;AAAA,IACxD;AAID,QAAI,IAAI,WAAW,cAAc,GAAG;AAClC,UAAI,aAAa,IAAI,MAAM,eAAe,SAAS,CAAC,EAAE,QAAQ,OAAO,GAAG;AAExE,UAAI,YAAY;AACd,sBAAc;AAAA,MACf;AACD,oBAAc;AAEd,aAAO;AAAA,IACR;AAED,WAAO;AAAA,EACX;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"module.js","sources":["../../../../../../../node_modules/@sentry/node/esm/module.js"],"sourcesContent":["import { posix, sep } from 'path';\nimport { dirname } from '@sentry/utils';\n\n/** normalizes Windows paths */\nfunction normalizeWindowsPath(path) {\n return path\n .replace(/^[A-Z]:/, '') // remove Windows-style prefix\n .replace(/\\\\/g, '/'); // replace all `\\` instances with `/`\n}\n\n/** Creates a function that gets the module name from a filename */\nfunction createGetModuleFromFilename(\n basePath = process.argv[1] ? dirname(process.argv[1]) : process.cwd(),\n isWindows = sep === '\\\\',\n) {\n const normalizedBase = isWindows ? normalizeWindowsPath(basePath) : basePath;\n\n return (filename) => {\n if (!filename) {\n return;\n }\n\n const normalizedFilename = isWindows ? normalizeWindowsPath(filename) : filename;\n\n // eslint-disable-next-line prefer-const\n let { dir, base: file, ext } = posix.parse(normalizedFilename);\n\n if (ext === '.js' || ext === '.mjs' || ext === '.cjs') {\n file = file.slice(0, ext.length * -1);\n }\n\n if (!dir) {\n // No dirname whatsoever\n dir = '.';\n }\n\n const n = dir.lastIndexOf('/node_modules');\n if (n > -1) {\n return `${dir.slice(n + 14).replace(/\\//g, '.')}:${file}`;\n }\n\n // Let's see if it's a part of the main module\n // To be a part of main module, it has to share the same base\n if (dir.startsWith(normalizedBase)) {\n let moduleName = dir.slice(normalizedBase.length + 1).replace(/\\//g, '.');\n\n if (moduleName) {\n moduleName += ':';\n }\n moduleName += file;\n\n return moduleName;\n }\n\n return file;\n };\n}\n\nexport { createGetModuleFromFilename };\n//# sourceMappingURL=module.js.map\n"],"names":[],"mappings":";;AAIA,SAAS,qBAAqB,MAAM;AAClC,SAAO,KACJ,QAAQ,WAAW,EAAE,EACrB,QAAQ,OAAO,GAAG;AACvB;AAGA,SAAS,4BACP,WAAW,QAAQ,KAAK,CAAC,IAAI,QAAQ,QAAQ,KAAK,CAAC,CAAC,IAAI,QAAQ,IAAG,GACnE,YAAY,QAAQ,MACpB;AACA,QAAM,iBAAiB,YAAY,qBAAqB,QAAQ,IAAI;AAEpE,SAAO,CAAC,aAAa;AACnB,QAAI,CAAC,UAAU;AACb;AAAA,IACF;AAEA,UAAM,qBAAqB,YAAY,qBAAqB,QAAQ,IAAI;AAGxE,QAAI,EAAE,KAAK,MAAM,MAAM,IAAG,IAAK,MAAM,MAAM,kBAAkB;AAE7D,QAAI,QAAQ,SAAS,QAAQ,UAAU,QAAQ,QAAQ;AACrD,aAAO,KAAK,MAAM,GAAG,IAAI,SAAS,EAAE;AAAA,IACtC;AAEA,QAAI,CAAC,KAAK;AAER,YAAM;AAAA,IACR;AAEA,UAAM,IAAI,IAAI,YAAY,eAAe;AACzC,QAAI,IAAI,IAAI;AACV,aAAO,GAAG,IAAI,MAAM,IAAI,EAAE,EAAE,QAAQ,OAAO,GAAG,CAAC,IAAI,IAAI;AAAA,IACzD;AAIA,QAAI,IAAI,WAAW,cAAc,GAAG;AAClC,UAAI,aAAa,IAAI,MAAM,eAAe,SAAS,CAAC,EAAE,QAAQ,OAAO,GAAG;AAExE,UAAI,YAAY;AACd,sBAAc;AAAA,MAChB;AACA,oBAAc;AAEd,aAAO;AAAA,IACT;AAEA,WAAO;AAAA,EACT;AACF;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"nodeVersion.cjs","sources":["../../../../../../../node_modules/@sentry/node/esm/nodeVersion.js"],"sourcesContent":["import { parseSemver } from '@sentry/utils';\n\nconst NODE_VERSION = parseSemver(process.versions.node) ;\n\nexport { NODE_VERSION };\n//# sourceMappingURL=nodeVersion.js.map\n"],"names":["parseSemver"],"mappings":";;;AAEK,MAAC,eAAeA,KAAW,YAAC,QAAQ,SAAS,IAAI;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"nodeVersion.cjs","sources":["../../../../../../../node_modules/@sentry/node/esm/nodeVersion.js"],"sourcesContent":["import { parseSemver } from '@sentry/utils';\n\nconst NODE_VERSION = parseSemver(process.versions.node) ;\n\nexport { NODE_VERSION };\n//# sourceMappingURL=nodeVersion.js.map\n"],"names":["parseSemver"],"mappings":";;;AAEK,MAAC,eAAeA,KAAAA,YAAY,QAAQ,SAAS,IAAI;;","x_google_ignoreList":[0]}
@@ -40,8 +40,7 @@ class Agent extends http__namespace.Agent {
40
40
  }
41
41
  }
42
42
  const { stack } = new Error();
43
- if (typeof stack !== "string")
44
- return false;
43
+ if (typeof stack !== "string") return false;
45
44
  return stack.split("\n").some((l) => l.indexOf("(https.js:") !== -1 || l.indexOf("node:https:") !== -1);
46
45
  }
47
46
  createSocket(req, options, cb) {
@@ -1 +1 @@
1
- {"version":3,"file":"base.cjs","sources":["../../../../../../../../node_modules/@sentry/node/esm/proxy/base.js"],"sourcesContent":["import { _nullishCoalesce } from '@sentry/utils';\nimport * as http from 'http';\nimport 'https';\n\n/**\n* This code was originally forked from https://github.com/TooTallNate/proxy-agents/tree/b133295fd16f6475578b6b15bd9b4e33ecb0d0b7\n* With the following licence:\n*\n* (The MIT License)\n*\n* Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>*\n*\n* Permission is hereby granted, free of charge, to any person obtaining\n* a copy of this software and associated documentation files (the\n* 'Software'), to deal in the Software without restriction, including\n* without limitation the rights to use, copy, modify, merge, publish,\n* distribute, sublicense, and/or sell copies of the Software, and to\n* permit persons to whom the Software is furnished to do so, subject to\n* the following conditions:*\n*\n* The above copyright notice and this permission notice shall be\n* included in all copies or substantial portions of the Software.*\n*\n* THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\n\nconst INTERNAL = Symbol('AgentBaseInternalState');\n\nclass Agent extends http.Agent {\n\n // Set by `http.Agent` - missing from `@types/node`\n\n constructor(opts) {\n super(opts);\n this[INTERNAL] = {};\n }\n\n /**\n * Determine whether this is an `http` or `https` request.\n */\n isSecureEndpoint(options) {\n if (options) {\n // First check the `secureEndpoint` property explicitly, since this\n // means that a parent `Agent` is \"passing through\" to this instance.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access\n if (typeof (options ).secureEndpoint === 'boolean') {\n return options.secureEndpoint;\n }\n\n // If no explicit `secure` endpoint, check if `protocol` property is\n // set. This will usually be the case since using a full string URL\n // or `URL` instance should be the most common usage.\n if (typeof options.protocol === 'string') {\n return options.protocol === 'https:';\n }\n }\n\n // Finally, if no `protocol` property was set, then fall back to\n // checking the stack trace of the current call stack, and try to\n // detect the \"https\" module.\n const { stack } = new Error();\n if (typeof stack !== 'string') return false;\n return stack.split('\\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1);\n }\n\n createSocket(req, options, cb) {\n const connectOpts = {\n ...options,\n secureEndpoint: this.isSecureEndpoint(options),\n };\n Promise.resolve()\n .then(() => this.connect(req, connectOpts))\n .then(socket => {\n if (socket instanceof http.Agent) {\n // @ts-expect-error `addRequest()` isn't defined in `@types/node`\n return socket.addRequest(req, connectOpts);\n }\n this[INTERNAL].currentSocket = socket;\n // @ts-expect-error `createSocket()` isn't defined in `@types/node`\n super.createSocket(req, options, cb);\n }, cb);\n }\n\n createConnection() {\n const socket = this[INTERNAL].currentSocket;\n this[INTERNAL].currentSocket = undefined;\n if (!socket) {\n throw new Error('No socket was returned in the `connect()` function');\n }\n return socket;\n }\n\n get defaultPort() {\n return _nullishCoalesce(this[INTERNAL].defaultPort, () => ( (this.protocol === 'https:' ? 443 : 80)));\n }\n\n set defaultPort(v) {\n if (this[INTERNAL]) {\n this[INTERNAL].defaultPort = v;\n }\n }\n\n get protocol() {\n return _nullishCoalesce(this[INTERNAL].protocol, () => ( (this.isSecureEndpoint() ? 'https:' : 'http:')));\n }\n\n set protocol(v) {\n if (this[INTERNAL]) {\n this[INTERNAL].protocol = v;\n }\n }\n}\n\nexport { Agent };\n//# sourceMappingURL=base.js.map\n"],"names":["http","_nullishCoalesce"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAgCA,MAAM,WAAW,OAAO,wBAAwB;AAEhD,MA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,YAAY,GAAG;AACjB,QAAI,KAAK,QAAQ,GAAG;AAClB,WAAK,QAAQ,EAAE,cAAc;AAAA,IAC9B;AAAA,EACF;AAAA,EAED,IAAI,WAAW;AACb,WAAOA,kCAAiB,KAAK,QAAQ,EAAE,UAAU,MAAS,KAAK,iBAAkB,IAAG,WAAW,OAAS;AAAA,EACzG;AAAA,EAED,IAAI,SAAS,GAAG;AACd,QAAI,KAAK,QAAQ,GAAG;AAClB,WAAK,QAAQ,EAAE,WAAW;AAAA,IAC3B;AAAA,EACF;AACH;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"base.cjs","sources":["../../../../../../../../node_modules/@sentry/node/esm/proxy/base.js"],"sourcesContent":["import { _nullishCoalesce } from '@sentry/utils';\nimport * as http from 'http';\nimport 'https';\n\n/**\n* This code was originally forked from https://github.com/TooTallNate/proxy-agents/tree/b133295fd16f6475578b6b15bd9b4e33ecb0d0b7\n* With the following licence:\n*\n* (The MIT License)\n*\n* Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>*\n*\n* Permission is hereby granted, free of charge, to any person obtaining\n* a copy of this software and associated documentation files (the\n* 'Software'), to deal in the Software without restriction, including\n* without limitation the rights to use, copy, modify, merge, publish,\n* distribute, sublicense, and/or sell copies of the Software, and to\n* permit persons to whom the Software is furnished to do so, subject to\n* the following conditions:*\n*\n* The above copyright notice and this permission notice shall be\n* included in all copies or substantial portions of the Software.*\n*\n* THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\n\nconst INTERNAL = Symbol('AgentBaseInternalState');\n\nclass Agent extends http.Agent {\n\n // Set by `http.Agent` - missing from `@types/node`\n\n constructor(opts) {\n super(opts);\n this[INTERNAL] = {};\n }\n\n /**\n * Determine whether this is an `http` or `https` request.\n */\n isSecureEndpoint(options) {\n if (options) {\n // First check the `secureEndpoint` property explicitly, since this\n // means that a parent `Agent` is \"passing through\" to this instance.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access\n if (typeof (options ).secureEndpoint === 'boolean') {\n return options.secureEndpoint;\n }\n\n // If no explicit `secure` endpoint, check if `protocol` property is\n // set. This will usually be the case since using a full string URL\n // or `URL` instance should be the most common usage.\n if (typeof options.protocol === 'string') {\n return options.protocol === 'https:';\n }\n }\n\n // Finally, if no `protocol` property was set, then fall back to\n // checking the stack trace of the current call stack, and try to\n // detect the \"https\" module.\n const { stack } = new Error();\n if (typeof stack !== 'string') return false;\n return stack.split('\\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1);\n }\n\n createSocket(req, options, cb) {\n const connectOpts = {\n ...options,\n secureEndpoint: this.isSecureEndpoint(options),\n };\n Promise.resolve()\n .then(() => this.connect(req, connectOpts))\n .then(socket => {\n if (socket instanceof http.Agent) {\n // @ts-expect-error `addRequest()` isn't defined in `@types/node`\n return socket.addRequest(req, connectOpts);\n }\n this[INTERNAL].currentSocket = socket;\n // @ts-expect-error `createSocket()` isn't defined in `@types/node`\n super.createSocket(req, options, cb);\n }, cb);\n }\n\n createConnection() {\n const socket = this[INTERNAL].currentSocket;\n this[INTERNAL].currentSocket = undefined;\n if (!socket) {\n throw new Error('No socket was returned in the `connect()` function');\n }\n return socket;\n }\n\n get defaultPort() {\n return _nullishCoalesce(this[INTERNAL].defaultPort, () => ( (this.protocol === 'https:' ? 443 : 80)));\n }\n\n set defaultPort(v) {\n if (this[INTERNAL]) {\n this[INTERNAL].defaultPort = v;\n }\n }\n\n get protocol() {\n return _nullishCoalesce(this[INTERNAL].protocol, () => ( (this.isSecureEndpoint() ? 'https:' : 'http:')));\n }\n\n set protocol(v) {\n if (this[INTERNAL]) {\n this[INTERNAL].protocol = v;\n }\n }\n}\n\nexport { Agent };\n//# sourceMappingURL=base.js.map\n"],"names":["http","_nullishCoalesce"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAgCA,MAAM,WAAW,OAAO,wBAAwB;AAEhD,MAAM,cAAcA,gBAAK,MAAM;AAAA;AAAA,EAI7B,YAAY,MAAM;AAChB,UAAM,IAAI;AACV,SAAK,QAAQ,IAAI,CAAA;AAAA,EACnB;AAAA;AAAA;AAAA;AAAA,EAKA,iBAAiB,SAAS;AACxB,QAAI,SAAS;AAIX,UAAI,OAAQ,QAAU,mBAAmB,WAAW;AAClD,eAAO,QAAQ;AAAA,MACjB;AAKA,UAAI,OAAO,QAAQ,aAAa,UAAU;AACxC,eAAO,QAAQ,aAAa;AAAA,MAC9B;AAAA,IACF;AAKA,UAAM,EAAE,UAAU,IAAI,MAAK;AAC3B,QAAI,OAAO,UAAU,SAAU,QAAO;AACtC,WAAO,MAAM,MAAM,IAAI,EAAE,KAAK,OAAK,EAAE,QAAQ,YAAY,MAAM,MAAM,EAAE,QAAQ,aAAa,MAAM,EAAE;AAAA,EACtG;AAAA,EAEA,aAAa,KAAK,SAAS,IAAI;AAC7B,UAAM,cAAc;AAAA,MAClB,GAAG;AAAA,MACH,gBAAgB,KAAK,iBAAiB,OAAO;AAAA,IACnD;AACI,YAAQ,QAAO,EACZ,KAAK,MAAM,KAAK,QAAQ,KAAK,WAAW,CAAC,EACzC,KAAK,YAAU;AACd,UAAI,kBAAkBA,gBAAK,OAAO;AAEhC,eAAO,OAAO,WAAW,KAAK,WAAW;AAAA,MAC3C;AACA,WAAK,QAAQ,EAAE,gBAAgB;AAE/B,YAAM,aAAa,KAAK,SAAS,EAAE;AAAA,IACrC,GAAG,EAAE;AAAA,EACT;AAAA,EAEA,mBAAmB;AACjB,UAAM,SAAS,KAAK,QAAQ,EAAE;AAC9B,SAAK,QAAQ,EAAE,gBAAgB;AAC/B,QAAI,CAAC,QAAQ;AACX,YAAM,IAAI,MAAM,oDAAoD;AAAA,IACtE;AACA,WAAO;AAAA,EACT;AAAA,EAEA,IAAI,cAAc;AAChB,WAAOC,kCAAiB,KAAK,QAAQ,EAAE,aAAa,MAAS,KAAK,aAAa,WAAW,MAAM,EAAI;AAAA,EACtG;AAAA,EAEA,IAAI,YAAY,GAAG;AACjB,QAAI,KAAK,QAAQ,GAAG;AAClB,WAAK,QAAQ,EAAE,cAAc;AAAA,IAC/B;AAAA,EACF;AAAA,EAEA,IAAI,WAAW;AACb,WAAOA,kCAAiB,KAAK,QAAQ,EAAE,UAAU,MAAS,KAAK,iBAAgB,IAAK,WAAW,OAAS;AAAA,EAC1G;AAAA,EAEA,IAAI,SAAS,GAAG;AACd,QAAI,KAAK,QAAQ,GAAG;AAClB,WAAK,QAAQ,EAAE,WAAW;AAAA,IAC5B;AAAA,EACF;AACF;;","x_google_ignoreList":[0]}
@@ -21,8 +21,7 @@ class Agent extends http.Agent {
21
21
  }
22
22
  }
23
23
  const { stack } = new Error();
24
- if (typeof stack !== "string")
25
- return false;
24
+ if (typeof stack !== "string") return false;
26
25
  return stack.split("\n").some((l) => l.indexOf("(https.js:") !== -1 || l.indexOf("node:https:") !== -1);
27
26
  }
28
27
  createSocket(req, options, cb) {
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sources":["../../../../../../../../node_modules/@sentry/node/esm/proxy/base.js"],"sourcesContent":["import { _nullishCoalesce } from '@sentry/utils';\nimport * as http from 'http';\nimport 'https';\n\n/**\n* This code was originally forked from https://github.com/TooTallNate/proxy-agents/tree/b133295fd16f6475578b6b15bd9b4e33ecb0d0b7\n* With the following licence:\n*\n* (The MIT License)\n*\n* Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>*\n*\n* Permission is hereby granted, free of charge, to any person obtaining\n* a copy of this software and associated documentation files (the\n* 'Software'), to deal in the Software without restriction, including\n* without limitation the rights to use, copy, modify, merge, publish,\n* distribute, sublicense, and/or sell copies of the Software, and to\n* permit persons to whom the Software is furnished to do so, subject to\n* the following conditions:*\n*\n* The above copyright notice and this permission notice shall be\n* included in all copies or substantial portions of the Software.*\n*\n* THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\n\nconst INTERNAL = Symbol('AgentBaseInternalState');\n\nclass Agent extends http.Agent {\n\n // Set by `http.Agent` - missing from `@types/node`\n\n constructor(opts) {\n super(opts);\n this[INTERNAL] = {};\n }\n\n /**\n * Determine whether this is an `http` or `https` request.\n */\n isSecureEndpoint(options) {\n if (options) {\n // First check the `secureEndpoint` property explicitly, since this\n // means that a parent `Agent` is \"passing through\" to this instance.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access\n if (typeof (options ).secureEndpoint === 'boolean') {\n return options.secureEndpoint;\n }\n\n // If no explicit `secure` endpoint, check if `protocol` property is\n // set. This will usually be the case since using a full string URL\n // or `URL` instance should be the most common usage.\n if (typeof options.protocol === 'string') {\n return options.protocol === 'https:';\n }\n }\n\n // Finally, if no `protocol` property was set, then fall back to\n // checking the stack trace of the current call stack, and try to\n // detect the \"https\" module.\n const { stack } = new Error();\n if (typeof stack !== 'string') return false;\n return stack.split('\\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1);\n }\n\n createSocket(req, options, cb) {\n const connectOpts = {\n ...options,\n secureEndpoint: this.isSecureEndpoint(options),\n };\n Promise.resolve()\n .then(() => this.connect(req, connectOpts))\n .then(socket => {\n if (socket instanceof http.Agent) {\n // @ts-expect-error `addRequest()` isn't defined in `@types/node`\n return socket.addRequest(req, connectOpts);\n }\n this[INTERNAL].currentSocket = socket;\n // @ts-expect-error `createSocket()` isn't defined in `@types/node`\n super.createSocket(req, options, cb);\n }, cb);\n }\n\n createConnection() {\n const socket = this[INTERNAL].currentSocket;\n this[INTERNAL].currentSocket = undefined;\n if (!socket) {\n throw new Error('No socket was returned in the `connect()` function');\n }\n return socket;\n }\n\n get defaultPort() {\n return _nullishCoalesce(this[INTERNAL].defaultPort, () => ( (this.protocol === 'https:' ? 443 : 80)));\n }\n\n set defaultPort(v) {\n if (this[INTERNAL]) {\n this[INTERNAL].defaultPort = v;\n }\n }\n\n get protocol() {\n return _nullishCoalesce(this[INTERNAL].protocol, () => ( (this.isSecureEndpoint() ? 'https:' : 'http:')));\n }\n\n set protocol(v) {\n if (this[INTERNAL]) {\n this[INTERNAL].protocol = v;\n }\n }\n}\n\nexport { Agent };\n//# sourceMappingURL=base.js.map\n"],"names":[],"mappings":";;;AAgCA,MAAM,WAAW,OAAO,wBAAwB;AAEhD,MAAM,cAAc,KAAK,MAAM;AAAA;AAAA,EAI7B,YAAY,MAAM;AAChB,UAAM,IAAI;AACV,SAAK,QAAQ,IAAI;EAClB;AAAA;AAAA;AAAA;AAAA,EAKD,iBAAiB,SAAS;AACxB,QAAI,SAAS;AAIX,UAAI,OAAQ,QAAU,mBAAmB,WAAW;AAClD,eAAO,QAAQ;AAAA,MAChB;AAKD,UAAI,OAAO,QAAQ,aAAa,UAAU;AACxC,eAAO,QAAQ,aAAa;AAAA,MAC7B;AAAA,IACF;AAKD,UAAM,EAAE,MAAK,IAAK,IAAI;AACtB,QAAI,OAAO,U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../../../../../../../../node_modules/@sentry/node/esm/proxy/base.js"],"sourcesContent":["import { _nullishCoalesce } from '@sentry/utils';\nimport * as http from 'http';\nimport 'https';\n\n/**\n* This code was originally forked from https://github.com/TooTallNate/proxy-agents/tree/b133295fd16f6475578b6b15bd9b4e33ecb0d0b7\n* With the following licence:\n*\n* (The MIT License)\n*\n* Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>*\n*\n* Permission is hereby granted, free of charge, to any person obtaining\n* a copy of this software and associated documentation files (the\n* 'Software'), to deal in the Software without restriction, including\n* without limitation the rights to use, copy, modify, merge, publish,\n* distribute, sublicense, and/or sell copies of the Software, and to\n* permit persons to whom the Software is furnished to do so, subject to\n* the following conditions:*\n*\n* The above copyright notice and this permission notice shall be\n* included in all copies or substantial portions of the Software.*\n*\n* THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\n\nconst INTERNAL = Symbol('AgentBaseInternalState');\n\nclass Agent extends http.Agent {\n\n // Set by `http.Agent` - missing from `@types/node`\n\n constructor(opts) {\n super(opts);\n this[INTERNAL] = {};\n }\n\n /**\n * Determine whether this is an `http` or `https` request.\n */\n isSecureEndpoint(options) {\n if (options) {\n // First check the `secureEndpoint` property explicitly, since this\n // means that a parent `Agent` is \"passing through\" to this instance.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access\n if (typeof (options ).secureEndpoint === 'boolean') {\n return options.secureEndpoint;\n }\n\n // If no explicit `secure` endpoint, check if `protocol` property is\n // set. This will usually be the case since using a full string URL\n // or `URL` instance should be the most common usage.\n if (typeof options.protocol === 'string') {\n return options.protocol === 'https:';\n }\n }\n\n // Finally, if no `protocol` property was set, then fall back to\n // checking the stack trace of the current call stack, and try to\n // detect the \"https\" module.\n const { stack } = new Error();\n if (typeof stack !== 'string') return false;\n return stack.split('\\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1);\n }\n\n createSocket(req, options, cb) {\n const connectOpts = {\n ...options,\n secureEndpoint: this.isSecureEndpoint(options),\n };\n Promise.resolve()\n .then(() => this.connect(req, connectOpts))\n .then(socket => {\n if (socket instanceof http.Agent) {\n // @ts-expect-error `addRequest()` isn't defined in `@types/node`\n return socket.addRequest(req, connectOpts);\n }\n this[INTERNAL].currentSocket = socket;\n // @ts-expect-error `createSocket()` isn't defined in `@types/node`\n super.createSocket(req, options, cb);\n }, cb);\n }\n\n createConnection() {\n const socket = this[INTERNAL].currentSocket;\n this[INTERNAL].currentSocket = undefined;\n if (!socket) {\n throw new Error('No socket was returned in the `connect()` function');\n }\n return socket;\n }\n\n get defaultPort() {\n return _nullishCoalesce(this[INTERNAL].defaultPort, () => ( (this.protocol === 'https:' ? 443 : 80)));\n }\n\n set defaultPort(v) {\n if (this[INTERNAL]) {\n this[INTERNAL].defaultPort = v;\n }\n }\n\n get protocol() {\n return _nullishCoalesce(this[INTERNAL].protocol, () => ( (this.isSecureEndpoint() ? 'https:' : 'http:')));\n }\n\n set protocol(v) {\n if (this[INTERNAL]) {\n this[INTERNAL].protocol = v;\n }\n }\n}\n\nexport { Agent };\n//# sourceMappingURL=base.js.map\n"],"names":[],"mappings":";;;AAgCA,MAAM,WAAW,OAAO,wBAAwB;AAEhD,MAAM,cAAc,KAAK,MAAM;AAAA;AAAA,EAI7B,YAAY,MAAM;AAChB,UAAM,IAAI;AACV,SAAK,QAAQ,IAAI,CAAA;AAAA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A,EACF;AAAA,EAEA,IAAI,WAAW;AACb,WAAO,iBAAiB,KAAK,QAAQ,EAAE,UAAU,MAAS,KAAK,iBAAgB,IAAK,WAAW,OAAS;AAAA,EAC1G;AAAA,EAEA,IAAI,SAAS,GAAG;AACd,QAAI,KAAK,QAAQ,GAAG;AAClB,WAAK,QAAQ,EAAE,WAAW;AAAA,IAC5B;AAAA,EACF;AACF;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../../../../../node_modules/@sentry/node/esm/proxy/index.js"],"sourcesContent":["import { _nullishCoalesce, _optionalChain } from '@sentry/utils';\nimport * as net from 'net';\nimport * as tls from 'tls';\nimport { URL } from 'url';\nimport { logger } from '@sentry/utils';\nimport { Agent } from './base.js';\nimport { parseProxyResponse } from './parse-proxy-response.js';\n\nfunction debug(...args) {\n logger.log('[https-proxy-agent]', ...args);\n}\n\n/**\n * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to\n * the specified \"HTTP(s) proxy server\" in order to proxy HTTPS requests.\n *\n * Outgoing HTTP requests are first tunneled through the proxy server using the\n * `CONNECT` HTTP request method to establish a connection to the proxy server,\n * and then the proxy server connects to the destination target and issues the\n * HTTP request from the proxy server.\n *\n * `https:` requests have their socket connection upgraded to TLS once\n * the connection to the proxy server has been established.\n */\nclass HttpsProxyAgent extends Agent {\n static __initStatic() {this.protocols = ['http', 'https']; }\n\n constructor(proxy, opts) {\n super(opts);\n this.options = {};\n this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy;\n this.proxyHeaders = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _2 => _2.headers]), () => ( {}));\n debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href);\n\n // Trim off the brackets from IPv6 addresses\n const host = (this.proxy.hostname || this.proxy.host).replace(/^\\[|\\]$/g, '');\n const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === 'https:' ? 443 : 80;\n this.connectOpts = {\n // Attempt to negotiate http/1.1 for proxy servers that support http/2\n ALPNProtocols: ['http/1.1'],\n ...(opts ? omit(opts, 'headers') : null),\n host,\n port,\n };\n }\n\n /**\n * Called when the node-core HTTP client library is creating a\n * new HTTP request.\n */\n async connect(req, opts) {\n const { proxy } = this;\n\n if (!opts.host) {\n throw new TypeError('No \"host\" provided');\n }\n\n // Create a socket connection to the proxy server.\n let socket;\n if (proxy.protocol === 'https:') {\n debug('Creating `tls.Socket`: %o', this.connectOpts);\n const servername = this.connectOpts.servername || this.connectOpts.host;\n socket = tls.connect({\n ...this.connectOpts,\n servername: servername && net.isIP(servername) ? undefined : servername,\n });\n } else {\n debug('Creating `net.Socket`: %o', this.connectOpts);\n socket = net.connect(this.connectOpts);\n }\n\n const headers =\n typeof this.proxyHeaders === 'function' ? this.proxyHeaders() : { ...this.proxyHeaders };\n const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host;\n let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\\r\\n`;\n\n // Inject the `Proxy-Authorization` header if necessary.\n if (proxy.username || proxy.password) {\n const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;\n headers['Proxy-Authorization'] = `Basic ${Buffer.from(auth).toString('base64')}`;\n }\n\n headers.Host = `${host}:${opts.port}`;\n\n if (!headers['Proxy-Connection']) {\n headers['Proxy-Connection'] = this.keepAlive ? 'Keep-Alive' : 'close';\n }\n for (const name of Object.keys(headers)) {\n payload += `${name}: ${headers[name]}\\r\\n`;\n }\n\n const proxyResponsePromise = parseProxyResponse(socket);\n\n socket.write(`${payload}\\r\\n`);\n\n const { connect, buffered } = await proxyResponsePromise;\n req.emit('proxyConnect', connect);\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore Not EventEmitter in Node types\n this.emit('proxyConnect', connect, req);\n\n if (connect.statusCode === 200) {\n req.once('socket', resume);\n\n if (opts.secureEndpoint) {\n // The proxy is connecting to a TLS server, so upgrade\n // this socket connection to a TLS connection.\n debug('Upgrading socket connection to TLS');\n const servername = opts.servername || opts.host;\n return tls.connect({\n ...omit(opts, 'host', 'path', 'port'),\n socket,\n servername: net.isIP(servername) ? undefined : servername,\n });\n }\n\n return socket;\n }\n\n // Some other status code that's not 200... need to re-play the HTTP\n // header \"data\" events onto the socket once the HTTP machinery is\n // attached so that the node core `http` can parse and handle the\n // error status code.\n\n // Close the original socket, and a new \"fake\" socket is returned\n // instead, so that the proxy doesn't get the HTTP request\n // written to it (which may contain `Authorization` headers or other\n // sensitive data).\n //\n // See: https://hackerone.com/reports/541502\n socket.destroy();\n\n const fakeSocket = new net.Socket({ writable: false });\n fakeSocket.readable = true;\n\n // Need to wait for the \"socket\" event to re-play the \"data\" events.\n req.once('socket', (s) => {\n debug('Replaying proxy buffer for failed request');\n // Replay the \"buffered\" Buffer onto the fake `socket`, since at\n // this point the HTTP module machinery has been hooked up for\n // the user.\n s.push(buffered);\n s.push(null);\n });\n\n return fakeSocket;\n }\n}HttpsProxyAgent.__initStatic();\n\nfunction resume(socket) {\n socket.resume();\n}\n\nfunction omit(\n obj,\n ...keys\n)\n\n {\n const ret = {}\n\n;\n let key;\n for (key in obj) {\n if (!keys.includes(key)) {\n ret[key] = obj[key];\n }\n }\n return ret;\n}\n\nexport { HttpsProxyAgent };\n//# sourceMappingURL=index.js.map\n"],"names":["logger","Agent","URL","_nullishCoalesce","_optionalChain","tls","net","parseProxyResponse"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,SAAS,MAAM;AACtBA,SAAAA,OAAO,IAAI,uBAAuB,GAAG,IAAI;AAC3C;AAcA,MAAM,wBAAwBC,KAAAA,MAAM;AAAA,EAClC,OAAO,eAAe;AAAC,SAAK,YAAY,CAAC,QAAQ,OAAO;AAAA,EAAI;AAAA,EAE5D,YAAY,OAAO,MAAM;AACvB,UAAM,IAAI;AACV,SAAK,UAAU;AACf,SAAK,QAAQ,OAAO,UAAU,WAAW,IAAIC,QAAI,KAAK,IAAI;AAC1D,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gBAAgB,aAAY;AAE7B,SAAS,OAAO,QAAQ;AACtB,SAAO,OAAM;AACf;AAEA,SAAS,KACP,QACG,MAGJ;AACC,QAAM,MAAM,CAAE;AAGd,MAAI;AACJ,OAAK,OAAO,KAAK;AACf,QAAI,CAAC,KAAK,SAAS,GAAG,GAAG;AACvB,UAAI,GAAG,IAAI,IAAI,GAAG;AAAA,IACnB;AAAA,EACF;AACD,SAAO;AACT;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../../../../node_modules/@sentry/node/esm/proxy/index.js"],"sourcesContent":["import { _nullishCoalesce, _optionalChain } from '@sentry/utils';\nimport * as net from 'net';\nimport * as tls from 'tls';\nimport { URL } from 'url';\nimport { logger } from '@sentry/utils';\nimport { Agent } from './base.js';\nimport { parseProxyResponse } from './parse-proxy-response.js';\n\nfunction debug(...args) {\n logger.log('[https-proxy-agent]', ...args);\n}\n\n/**\n * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to\n * the specified \"HTTP(s) proxy server\" in order to proxy HTTPS requests.\n *\n * Outgoing HTTP requests are first tunneled through the proxy server using the\n * `CONNECT` HTTP request method to establish a connection to the proxy server,\n * and then the proxy server connects to the destination target and issues the\n * HTTP request from the proxy server.\n *\n * `https:` requests have their socket connection upgraded to TLS once\n * the connection to the proxy server has been established.\n */\nclass HttpsProxyAgent extends Agent {\n static __initStatic() {this.protocols = ['http', 'https']; }\n\n constructor(proxy, opts) {\n super(opts);\n this.options = {};\n this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy;\n this.proxyHeaders = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _2 => _2.headers]), () => ( {}));\n debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href);\n\n // Trim off the brackets from IPv6 addresses\n const host = (this.proxy.hostname || this.proxy.host).replace(/^\\[|\\]$/g, '');\n const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === 'https:' ? 443 : 80;\n this.connectOpts = {\n // Attempt to negotiate http/1.1 for proxy servers that support http/2\n ALPNProtocols: ['http/1.1'],\n ...(opts ? omit(opts, 'headers') : null),\n host,\n port,\n };\n }\n\n /**\n * Called when the node-core HTTP client library is creating a\n * new HTTP request.\n */\n async connect(req, opts) {\n const { proxy } = this;\n\n if (!opts.host) {\n throw new TypeError('No \"host\" provided');\n }\n\n // Create a socket connection to the proxy server.\n let socket;\n if (proxy.protocol === 'https:') {\n debug('Creating `tls.Socket`: %o', this.connectOpts);\n const servername = this.connectOpts.servername || this.connectOpts.host;\n socket = tls.connect({\n ...this.connectOpts,\n servername: servername && net.isIP(servername) ? undefined : servername,\n });\n } else {\n debug('Creating `net.Socket`: %o', this.connectOpts);\n socket = net.connect(this.connectOpts);\n }\n\n const headers =\n typeof this.proxyHeaders === 'function' ? this.proxyHeaders() : { ...this.proxyHeaders };\n const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host;\n let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\\r\\n`;\n\n // Inject the `Proxy-Authorization` header if necessary.\n if (proxy.username || proxy.password) {\n const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;\n headers['Proxy-Authorization'] = `Basic ${Buffer.from(auth).toString('base64')}`;\n }\n\n headers.Host = `${host}:${opts.port}`;\n\n if (!headers['Proxy-Connection']) {\n headers['Proxy-Connection'] = this.keepAlive ? 'Keep-Alive' : 'close';\n }\n for (const name of Object.keys(headers)) {\n payload += `${name}: ${headers[name]}\\r\\n`;\n }\n\n const proxyResponsePromise = parseProxyResponse(socket);\n\n socket.write(`${payload}\\r\\n`);\n\n const { connect, buffered } = await proxyResponsePromise;\n req.emit('proxyConnect', connect);\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore Not EventEmitter in Node types\n this.emit('proxyConnect', connect, req);\n\n if (connect.statusCode === 200) {\n req.once('socket', resume);\n\n if (opts.secureEndpoint) {\n // The proxy is connecting to a TLS server, so upgrade\n // this socket connection to a TLS connection.\n debug('Upgrading socket connection to TLS');\n const servername = opts.servername || opts.host;\n return tls.connect({\n ...omit(opts, 'host', 'path', 'port'),\n socket,\n servername: net.isIP(servername) ? undefined : servername,\n });\n }\n\n return socket;\n }\n\n // Some other status code that's not 200... need to re-play the HTTP\n // header \"data\" events onto the socket once the HTTP machinery is\n // attached so that the node core `http` can parse and handle the\n // error status code.\n\n // Close the original socket, and a new \"fake\" socket is returned\n // instead, so that the proxy doesn't get the HTTP request\n // written to it (which may contain `Authorization` headers or other\n // sensitive data).\n //\n // See: https://hackerone.com/reports/541502\n socket.destroy();\n\n const fakeSocket = new net.Socket({ writable: false });\n fakeSocket.readable = true;\n\n // Need to wait for the \"socket\" event to re-play the \"data\" events.\n req.once('socket', (s) => {\n debug('Replaying proxy buffer for failed request');\n // Replay the \"buffered\" Buffer onto the fake `socket`, since at\n // this point the HTTP module machinery has been hooked up for\n // the user.\n s.push(buffered);\n s.push(null);\n });\n\n return fakeSocket;\n }\n}HttpsProxyAgent.__initStatic();\n\nfunction resume(socket) {\n socket.resume();\n}\n\nfunction omit(\n obj,\n ...keys\n)\n\n {\n const ret = {}\n\n;\n let key;\n for (key in obj) {\n if (!keys.includes(key)) {\n ret[key] = obj[key];\n }\n }\n return ret;\n}\n\nexport { HttpsProxyAgent };\n//# sourceMappingURL=index.js.map\n"],"names":["logger","Agent","URL","_nullishCoalesce","_optionalChain","tls","net","parseProxyResponse"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,SAAS,MAAM;AACtBA,SAAAA,OAAO,IAAI,uBAAuB,GAAG,IAAI;AAC3C;AAcA,MAAM,wBAAwBC,KAAAA,MAAM;AAAA,EAClC,OAAO,eAAe;AAAC,SAAK,YAAY,CAAC,QAAQ,OAAO;AAAA,EAAG;AAAA,EAE3D,YAAY,OAAO,MAAM;AACvB,UAAM,IAAI;AACV,SAAK,UAAU,CAAA;AACf,SAAK,QAAQ,OAAO,UAAU,WAAW,IAAIC,IAAAA,IAAI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,WAAO;AAAA,EACT;AACF;AAAC,gBAAgB,aAAY;AAE7B,SAAS,OAAO,QAAQ;AACtB,SAAO,OAAM;AACf;AAEA,SAAS,KACP,QACG,MAGJ;AACC,QAAM,MAAM,CAAA;AAGZ,MAAI;AACJ,OAAK,OAAO,KAAK;AACf,QAAI,CAAC,KAAK,SAAS,GAAG,GAAG;AACvB,UAAI,GAAG,IAAI,IAAI,GAAG;AAAA,IACpB;AAAA,EACF;AACA,SAAO;AACT;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../node_modules/@sentry/node/esm/proxy/index.js"],"sourcesContent":["import { _nullishCoalesce, _optionalChain } from '@sentry/utils';\nimport * as net from 'net';\nimport * as tls from 'tls';\nimport { URL } from 'url';\nimport { logger } from '@sentry/utils';\nimport { Agent } from './base.js';\nimport { parseProxyResponse } from './parse-proxy-response.js';\n\nfunction debug(...args) {\n logger.log('[https-proxy-agent]', ...args);\n}\n\n/**\n * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to\n * the specified \"HTTP(s) proxy server\" in order to proxy HTTPS requests.\n *\n * Outgoing HTTP requests are first tunneled through the proxy server using the\n * `CONNECT` HTTP request method to establish a connection to the proxy server,\n * and then the proxy server connects to the destination target and issues the\n * HTTP request from the proxy server.\n *\n * `https:` requests have their socket connection upgraded to TLS once\n * the connection to the proxy server has been established.\n */\nclass HttpsProxyAgent extends Agent {\n static __initStatic() {this.protocols = ['http', 'https']; }\n\n constructor(proxy, opts) {\n super(opts);\n this.options = {};\n this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy;\n this.proxyHeaders = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _2 => _2.headers]), () => ( {}));\n debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href);\n\n // Trim off the brackets from IPv6 addresses\n const host = (this.proxy.hostname || this.proxy.host).replace(/^\\[|\\]$/g, '');\n const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === 'https:' ? 443 : 80;\n this.connectOpts = {\n // Attempt to negotiate http/1.1 for proxy servers that support http/2\n ALPNProtocols: ['http/1.1'],\n ...(opts ? omit(opts, 'headers') : null),\n host,\n port,\n };\n }\n\n /**\n * Called when the node-core HTTP client library is creating a\n * new HTTP request.\n */\n async connect(req, opts) {\n const { proxy } = this;\n\n if (!opts.host) {\n throw new TypeError('No \"host\" provided');\n }\n\n // Create a socket connection to the proxy server.\n let socket;\n if (proxy.protocol === 'https:') {\n debug('Creating `tls.Socket`: %o', this.connectOpts);\n const servername = this.connectOpts.servername || this.connectOpts.host;\n socket = tls.connect({\n ...this.connectOpts,\n servername: servername && net.isIP(servername) ? undefined : servername,\n });\n } else {\n debug('Creating `net.Socket`: %o', this.connectOpts);\n socket = net.connect(this.connectOpts);\n }\n\n const headers =\n typeof this.proxyHeaders === 'function' ? this.proxyHeaders() : { ...this.proxyHeaders };\n const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host;\n let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\\r\\n`;\n\n // Inject the `Proxy-Authorization` header if necessary.\n if (proxy.username || proxy.password) {\n const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;\n headers['Proxy-Authorization'] = `Basic ${Buffer.from(auth).toString('base64')}`;\n }\n\n headers.Host = `${host}:${opts.port}`;\n\n if (!headers['Proxy-Connection']) {\n headers['Proxy-Connection'] = this.keepAlive ? 'Keep-Alive' : 'close';\n }\n for (const name of Object.keys(headers)) {\n payload += `${name}: ${headers[name]}\\r\\n`;\n }\n\n const proxyResponsePromise = parseProxyResponse(socket);\n\n socket.write(`${payload}\\r\\n`);\n\n const { connect, buffered } = await proxyResponsePromise;\n req.emit('proxyConnect', connect);\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore Not EventEmitter in Node types\n this.emit('proxyConnect', connect, req);\n\n if (connect.statusCode === 200) {\n req.once('socket', resume);\n\n if (opts.secureEndpoint) {\n // The proxy is connecting to a TLS server, so upgrade\n // this socket connection to a TLS connection.\n debug('Upgrading socket connection to TLS');\n const servername = opts.servername || opts.host;\n return tls.connect({\n ...omit(opts, 'host', 'path', 'port'),\n socket,\n servername: net.isIP(servername) ? undefined : servername,\n });\n }\n\n return socket;\n }\n\n // Some other status code that's not 200... need to re-play the HTTP\n // header \"data\" events onto the socket once the HTTP machinery is\n // attached so that the node core `http` can parse and handle the\n // error status code.\n\n // Close the original socket, and a new \"fake\" socket is returned\n // instead, so that the proxy doesn't get the HTTP request\n // written to it (which may contain `Authorization` headers or other\n // sensitive data).\n //\n // See: https://hackerone.com/reports/541502\n socket.destroy();\n\n const fakeSocket = new net.Socket({ writable: false });\n fakeSocket.readable = true;\n\n // Need to wait for the \"socket\" event to re-play the \"data\" events.\n req.once('socket', (s) => {\n debug('Replaying proxy buffer for failed request');\n // Replay the \"buffered\" Buffer onto the fake `socket`, since at\n // this point the HTTP module machinery has been hooked up for\n // the user.\n s.push(buffered);\n s.push(null);\n });\n\n return fakeSocket;\n }\n}HttpsProxyAgent.__initStatic();\n\nfunction resume(socket) {\n socket.resume();\n}\n\nfunction omit(\n obj,\n ...keys\n)\n\n {\n const ret = {}\n\n;\n let key;\n for (key in obj) {\n if (!keys.includes(key)) {\n ret[key] = obj[key];\n }\n }\n return ret;\n}\n\nexport { HttpsProxyAgent };\n//# sourceMappingURL=index.js.map\n"],"names":[],"mappings":";;;;;;;;AAQA,SAAS,SAAS,MAAM;AACtB,SAAO,IAAI,uBAAuB,GAAG,IAAI;AAC3C;AAcA,MAAM,wBAAwB,MAAM;AAAA,EAClC,OAAO,eAAe;AAAC,SAAK,YAAY,CAAC,QAAQ,OAAO;AAAA,EAAI;AAAA,EAE5D,YAAY,OAAO,MAAM;AACvB,UAAM,IAAI;AACV,SAAK,UAAU;AACf,SAAK,QAAQ,OAAO,UAAU,WAAW,IAAI,IAAI,KAAK,IAAI;AAC1D,SAAK,eAAe,iBAAiB,eAAe,CAAC,MAAM,kBAA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A,SAAS,KACP,QACG,MAGJ;AACC,QAAM,MAAM,CAAE;AAGd,MAAI;AACJ,OAAK,OAAO,KAAK;AACf,QAAI,CAAC,KAAK,SAAS,GAAG,GAAG;AACvB,UAAI,GAAG,IAAI,IAAI,GAAG;AAAA,IACnB;AAAA,EACF;AACD,SAAO;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../node_modules/@sentry/node/esm/proxy/index.js"],"sourcesContent":["import { _nullishCoalesce, _optionalChain } from '@sentry/utils';\nimport * as net from 'net';\nimport * as tls from 'tls';\nimport { URL } from 'url';\nimport { logger } from '@sentry/utils';\nimport { Agent } from './base.js';\nimport { parseProxyResponse } from './parse-proxy-response.js';\n\nfunction debug(...args) {\n logger.log('[https-proxy-agent]', ...args);\n}\n\n/**\n * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to\n * the specified \"HTTP(s) proxy server\" in order to proxy HTTPS requests.\n *\n * Outgoing HTTP requests are first tunneled through the proxy server using the\n * `CONNECT` HTTP request method to establish a connection to the proxy server,\n * and then the proxy server connects to the destination target and issues the\n * HTTP request from the proxy server.\n *\n * `https:` requests have their socket connection upgraded to TLS once\n * the connection to the proxy server has been established.\n */\nclass HttpsProxyAgent extends Agent {\n static __initStatic() {this.protocols = ['http', 'https']; }\n\n constructor(proxy, opts) {\n super(opts);\n this.options = {};\n this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy;\n this.proxyHeaders = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _2 => _2.headers]), () => ( {}));\n debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href);\n\n // Trim off the brackets from IPv6 addresses\n const host = (this.proxy.hostname || this.proxy.host).replace(/^\\[|\\]$/g, '');\n const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === 'https:' ? 443 : 80;\n this.connectOpts = {\n // Attempt to negotiate http/1.1 for proxy servers that support http/2\n ALPNProtocols: ['http/1.1'],\n ...(opts ? omit(opts, 'headers') : null),\n host,\n port,\n };\n }\n\n /**\n * Called when the node-core HTTP client library is creating a\n * new HTTP request.\n */\n async connect(req, opts) {\n const { proxy } = this;\n\n if (!opts.host) {\n throw new TypeError('No \"host\" provided');\n }\n\n // Create a socket connection to the proxy server.\n let socket;\n if (proxy.protocol === 'https:') {\n debug('Creating `tls.Socket`: %o', this.connectOpts);\n const servername = this.connectOpts.servername || this.connectOpts.host;\n socket = tls.connect({\n ...this.connectOpts,\n servername: servername && net.isIP(servername) ? undefined : servername,\n });\n } else {\n debug('Creating `net.Socket`: %o', this.connectOpts);\n socket = net.connect(this.connectOpts);\n }\n\n const headers =\n typeof this.proxyHeaders === 'function' ? this.proxyHeaders() : { ...this.proxyHeaders };\n const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host;\n let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\\r\\n`;\n\n // Inject the `Proxy-Authorization` header if necessary.\n if (proxy.username || proxy.password) {\n const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;\n headers['Proxy-Authorization'] = `Basic ${Buffer.from(auth).toString('base64')}`;\n }\n\n headers.Host = `${host}:${opts.port}`;\n\n if (!headers['Proxy-Connection']) {\n headers['Proxy-Connection'] = this.keepAlive ? 'Keep-Alive' : 'close';\n }\n for (const name of Object.keys(headers)) {\n payload += `${name}: ${headers[name]}\\r\\n`;\n }\n\n const proxyResponsePromise = parseProxyResponse(socket);\n\n socket.write(`${payload}\\r\\n`);\n\n const { connect, buffered } = await proxyResponsePromise;\n req.emit('proxyConnect', connect);\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore Not EventEmitter in Node types\n this.emit('proxyConnect', connect, req);\n\n if (connect.statusCode === 200) {\n req.once('socket', resume);\n\n if (opts.secureEndpoint) {\n // The proxy is connecting to a TLS server, so upgrade\n // this socket connection to a TLS connection.\n debug('Upgrading socket connection to TLS');\n const servername = opts.servername || opts.host;\n return tls.connect({\n ...omit(opts, 'host', 'path', 'port'),\n socket,\n servername: net.isIP(servername) ? undefined : servername,\n });\n }\n\n return socket;\n }\n\n // Some other status code that's not 200... need to re-play the HTTP\n // header \"data\" events onto the socket once the HTTP machinery is\n // attached so that the node core `http` can parse and handle the\n // error status code.\n\n // Close the original socket, and a new \"fake\" socket is returned\n // instead, so that the proxy doesn't get the HTTP request\n // written to it (which may contain `Authorization` headers or other\n // sensitive data).\n //\n // See: https://hackerone.com/reports/541502\n socket.destroy();\n\n const fakeSocket = new net.Socket({ writable: false });\n fakeSocket.readable = true;\n\n // Need to wait for the \"socket\" event to re-play the \"data\" events.\n req.once('socket', (s) => {\n debug('Replaying proxy buffer for failed request');\n // Replay the \"buffered\" Buffer onto the fake `socket`, since at\n // this point the HTTP module machinery has been hooked up for\n // the user.\n s.push(buffered);\n s.push(null);\n });\n\n return fakeSocket;\n }\n}HttpsProxyAgent.__initStatic();\n\nfunction resume(socket) {\n socket.resume();\n}\n\nfunction omit(\n obj,\n ...keys\n)\n\n {\n const ret = {}\n\n;\n let key;\n for (key in obj) {\n if (!keys.includes(key)) {\n ret[key] = obj[key];\n }\n }\n return ret;\n}\n\nexport { HttpsProxyAgent };\n//# sourceMappingURL=index.js.map\n"],"names":[],"mappings":";;;;;;;;AAQA,SAAS,SAAS,MAAM;AACtB,SAAO,IAAI,uBAAuB,GAAG,IAAI;AAC3C;AAcA,MAAM,wBAAwB,MAAM;AAAA,EAClC,OAAO,eAAe;AAAC,SAAK,YAAY,CAAC,QAAQ,OAAO;AAAA,EAAG;AAAA,EAE3D,YAAY,OAAO,MAAM;AACvB,UAAM,IAAI;AACV,SAAK,UAAU,CAAA;AACf,SAAK,QAAQ,OAAO,UAAU,WAAW,IAAI,IAAI,KAAK,IAAI;AAC1D,SAAK,eAAe,iBAAiB,eAAe,CAAC,MAAM,kBAAkB,QAAM,GAAG,OAAO,CAAC,GAAG,OAAQ,CAAA,EAAG;AAC5G,UAAM,6CAA6C,KAAK,MAAM,IAAI;AAGlE,UAAM,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,SAAS,GAAG,GAAG;AACvB,UAAI,GAAG,IAAI,IAAI,GAAG;AAAA,IACpB;AAAA,EACF;AACA,SAAO;AACT;","x_google_ignoreList":[0]}
@@ -10,10 +10,8 @@ function parseProxyResponse(socket) {
10
10
  const buffers = [];
11
11
  function read() {
12
12
  const b = socket.read();
13
- if (b)
14
- ondata(b);
15
- else
16
- socket.once("readable", read);
13
+ if (b) ondata(b);
14
+ else socket.once("readable", read);
17
15
  }
18
16
  function cleanup() {
19
17
  socket.removeListener("end", onend);
@@ -51,8 +49,7 @@ function parseProxyResponse(socket) {
51
49
  const statusText = firstLineParts.slice(2).join(" ");
52
50
  const headers = {};
53
51
  for (const header of headerParts) {
54
- if (!header)
55
- continue;
52
+ if (!header) continue;
56
53
  const firstColon = header.indexOf(":");
57
54
  if (firstColon === -1) {
58
55
  socket.destroy();
@@ -1 +1 @@
1
- {"version":3,"file":"parse-proxy-response.cjs","sources":["../../../../../../../../node_modules/@sentry/node/esm/proxy/parse-proxy-response.js"],"sourcesContent":["import { logger } from '@sentry/utils';\n\nfunction debug(...args) {\n logger.log('[https-proxy-agent:parse-proxy-response]', ...args);\n}\n\nfunction parseProxyResponse(socket) {\n return new Promise((resolve, reject) => {\n // we need to buffer any HTTP traffic that happens with the proxy before we get\n // the CONNECT response, so that if the response is anything other than an \"200\"\n // response code, then we can re-play the \"data\" events on the socket once the\n // HTTP parser is hooked up...\n let buffersLength = 0;\n const buffers = [];\n\n function read() {\n const b = socket.read();\n if (b) ondata(b);\n else socket.once('readable', read);\n }\n\n function cleanup() {\n socket.removeListener('end', onend);\n socket.removeListener('error', onerror);\n socket.removeListener('readable', read);\n }\n\n function onend() {\n cleanup();\n debug('onend');\n reject(new Error('Proxy connection ended before receiving CONNECT response'));\n }\n\n function onerror(err) {\n cleanup();\n debug('onerror %o', err);\n reject(err);\n }\n\n function ondata(b) {\n buffers.push(b);\n buffersLength += b.length;\n\n const buffered = Buffer.concat(buffers, buffersLength);\n const endOfHeaders = buffered.indexOf('\\r\\n\\r\\n');\n\n if (endOfHeaders === -1) {\n // keep buffering\n debug('have not received end of HTTP headers yet...');\n read();\n return;\n }\n\n const headerParts = buffered.slice(0, endOfHeaders).toString('ascii').split('\\r\\n');\n const firstLine = headerParts.shift();\n if (!firstLine) {\n socket.destroy();\n return reject(new Error('No header received from proxy CONNECT response'));\n }\n const firstLineParts = firstLine.split(' ');\n const statusCode = +firstLineParts[1];\n const statusText = firstLineParts.slice(2).join(' ');\n const headers = {};\n for (const header of headerParts) {\n if (!header) continue;\n const firstColon = header.indexOf(':');\n if (firstColon === -1) {\n socket.destroy();\n return reject(new Error(`Invalid header from proxy CONNECT response: \"${header}\"`));\n }\n const key = header.slice(0, firstColon).toLowerCase();\n const value = header.slice(firstColon + 1).trimStart();\n const current = headers[key];\n if (typeof current === 'string') {\n headers[key] = [current, value];\n } else if (Array.isArray(current)) {\n current.push(value);\n } else {\n headers[key] = value;\n }\n }\n debug('got proxy server response: %o %o', firstLine, headers);\n cleanup();\n resolve({\n connect: {\n statusCode,\n statusText,\n headers,\n },\n buffered,\n });\n }\n\n socket.on('error', onerror);\n socket.on('end', onend);\n\n read();\n });\n}\n\nexport { parseProxyResponse };\n//# sourceMappingURL=parse-proxy-response.js.map\n"],"names":["logger"],"mappings":";;;AAEA,SAAS,SAAS,MAAM;AACtBA,SAAAA,OAAO,IAAI,4CAA4C,GAAG,IAAI;AAChE;AAEA,SAAS,mBAAmB,QAAQ;AAClC,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AAKtC,QAAI,gBAAgB;AACpB,UAAM,UAAU,CAAA;AAEhB,aAAS,OAAO;AACd,YAAM,IAAI,OAAO;AACjB,UAAI;AAAG,eAAO,CAAC;AAAA;AACV,eAAO,KAAK,YAAY,IAAI;AAAA,IAClC;AAED,aAAS,UAAU;AACjB,aAAO,eAAe,OAAO,KAAK;AAClC,aAAO,eAAe,SAAS,OAAO;AACtC,aAAO,eAAe,YAAY,IAAI;AAAA,IACvC;AAED,aA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ACL,kBAAQ,GAAG,IAAI;AAAA,QAChB;AAAA,MACF;AACD,YAAM,oCAAoC,WAAW,OAAO;AAC5D;AACA,cAAQ;AAAA,QACN,SAAS;AAAA,UACP;AAAA,UACA;AAAA,UACA;AAAA,QACD;AAAA,QACD;AAAA,MACR,CAAO;AAAA,IACF;AAED,WAAO,GAAG,SAAS,OAAO;AAC1B,WAAO,GAAG,OAAO,KAAK;AAEtB;EACJ,CAAG;AACH;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"parse-proxy-response.cjs","sources":["../../../../../../../../node_modules/@sentry/node/esm/proxy/parse-proxy-response.js"],"sourcesContent":["import { logger } from '@sentry/utils';\n\nfunction debug(...args) {\n logger.log('[https-proxy-agent:parse-proxy-response]', ...args);\n}\n\nfunction parseProxyResponse(socket) {\n return new Promise((resolve, reject) => {\n // we need to buffer any HTTP traffic that happens with the proxy before we get\n // the CONNECT response, so that if the response is anything other than an \"200\"\n // response code, then we can re-play the \"data\" events on the socket once the\n // HTTP parser is hooked up...\n let buffersLength = 0;\n const buffers = [];\n\n function read() {\n const b = socket.read();\n if (b) ondata(b);\n else socket.once('readable', read);\n }\n\n function cleanup() {\n socket.removeListener('end', onend);\n socket.removeListener('error', onerror);\n socket.removeListener('readable', read);\n }\n\n function onend() {\n cleanup();\n debug('onend');\n reject(new Error('Proxy connection ended before receiving CONNECT response'));\n }\n\n function onerror(err) {\n cleanup();\n debug('onerror %o', err);\n reject(err);\n }\n\n function ondata(b) {\n buffers.push(b);\n buffersLength += b.length;\n\n const buffered = Buffer.concat(buffers, buffersLength);\n const endOfHeaders = buffered.indexOf('\\r\\n\\r\\n');\n\n if (endOfHeaders === -1) {\n // keep buffering\n debug('have not received end of HTTP headers yet...');\n read();\n return;\n }\n\n const headerParts = buffered.slice(0, endOfHeaders).toString('ascii').split('\\r\\n');\n const firstLine = headerParts.shift();\n if (!firstLine) {\n socket.destroy();\n return reject(new Error('No header received from proxy CONNECT response'));\n }\n const firstLineParts = firstLine.split(' ');\n const statusCode = +firstLineParts[1];\n const statusText = firstLineParts.slice(2).join(' ');\n const headers = {};\n for (const header of headerParts) {\n if (!header) continue;\n const firstColon = header.indexOf(':');\n if (firstColon === -1) {\n socket.destroy();\n return reject(new Error(`Invalid header from proxy CONNECT response: \"${header}\"`));\n }\n const key = header.slice(0, firstColon).toLowerCase();\n const value = header.slice(firstColon + 1).trimStart();\n const current = headers[key];\n if (typeof current === 'string') {\n headers[key] = [current, value];\n } else if (Array.isArray(current)) {\n current.push(value);\n } else {\n headers[key] = value;\n }\n }\n debug('got proxy server response: %o %o', firstLine, headers);\n cleanup();\n resolve({\n connect: {\n statusCode,\n statusText,\n headers,\n },\n buffered,\n });\n }\n\n socket.on('error', onerror);\n socket.on('end', onend);\n\n read();\n });\n}\n\nexport { parseProxyResponse };\n//# sourceMappingURL=parse-proxy-response.js.map\n"],"names":["logger"],"mappings":";;;AAEA,SAAS,SAAS,MAAM;AACtBA,SAAAA,OAAO,IAAI,4CAA4C,GAAG,IAAI;AAChE;AAEA,SAAS,mBAAmB,QAAQ;AAClC,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AAKtC,QAAI,gBAAgB;AACpB,UAAM,UAAU,CAAA;AAEhB,aAAS,OAAO;AACd,YAAM,IAAI,OAAO,KAAI;AACrB,UAAI,EAAG,QAAO,CAAC;AAAA,UACV,QAAO,KAAK,YAAY,IAAI;AAAA,IACnC;AAEA,aAAS,UAAU;AACjB,aAAO,eAAe,OAAO,KAAK;AAClC,aAAO,eAAe,SAAS,OAAO;AACtC,aAAO,eAAe,YAAY,IAAI;AAAA,IACxC;AAEA,aAAS,QAAQ;AACf,cAAO;AACP,YAAM,OAAO;AACb,aAAO,IAAI,MAAM,0DAA0D,CAAC;AAAA,IAC9E;AAEA,aAAS,QAAQ,KAAK;AACpB,cAAO;AACP,YAAM,cAAc,GAAG;AACvB,aAAO,GAAG;AAAA,IACZ;AAEA,aAAS,OAAO,GAAG;AACjB,cAAQ,KAAK,CAAC;A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AAAA,IACH;AAEA,WAAO,GAAG,SAAS,OAAO;AAC1B,WAAO,GAAG,OAAO,KAAK;AAEtB,SAAI;AAAA,EACN,CAAC;AACH;;","x_google_ignoreList":[0]}
@@ -8,10 +8,8 @@ function parseProxyResponse(socket) {
8
8
  const buffers = [];
9
9
  function read() {
10
10
  const b = socket.read();
11
- if (b)
12
- ondata(b);
13
- else
14
- socket.once("readable", read);
11
+ if (b) ondata(b);
12
+ else socket.once("readable", read);
15
13
  }
16
14
  function cleanup() {
17
15
  socket.removeListener("end", onend);
@@ -49,8 +47,7 @@ function parseProxyResponse(socket) {
49
47
  const statusText = firstLineParts.slice(2).join(" ");
50
48
  const headers = {};
51
49
  for (const header of headerParts) {
52
- if (!header)
53
- continue;
50
+ if (!header) continue;
54
51
  const firstColon = header.indexOf(":");
55
52
  if (firstColon === -1) {
56
53
  socket.destroy();