mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
1 line
3.5 KiB
JSON
1 line
3.5 KiB
JSON
|
|
{"ast":null,"code":"import { getCurrentHub } from '@sentry/hub';\nexport { TRACEPARENT_REGEXP, extractTraceparentData, stripUrlQueryAndFragment } from '@sentry/utils';\n\n/**\n * Determines if tracing is currently enabled.\n *\n * Tracing is enabled when at least one of `tracesSampleRate` and `tracesSampler` is defined in the SDK config.\n */\nfunction hasTracingEnabled(maybeOptions) {\n var client = getCurrentHub().getClient();\n var options = maybeOptions || client && client.getOptions();\n return !!options && ('tracesSampleRate' in options || 'tracesSampler' in options);\n}\n\n/** Grabs active transaction off scope, if any */\nfunction getActiveTransaction(maybeHub) {\n var hub = maybeHub || getCurrentHub();\n var scope = hub.getScope();\n return scope && scope.getTransaction();\n}\n\n/**\n * Converts from milliseconds to seconds\n * @param time time in ms\n */\nfunction msToSec(time) {\n return time / 1000;\n}\n\n/**\n * Converts from seconds to milliseconds\n * @param time time in seconds\n */\nfunction secToMs(time) {\n return time * 1000;\n}\nexport { getActiveTransaction, hasTracingEnabled, msToSec, secToMs };","map":{"version":3,"names":["getCurrentHub","TRACEPARENT_REGEXP","extractTraceparentData","stripUrlQueryAndFragment","hasTracingEnabled","maybeOptions","client","getClient","options","getOptions","getActiveTransaction","maybeHub","hub","scope","getScope","getTransaction","msToSec","time","secToMs"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@sentry/tracing/esm/utils.js"],"sourcesContent":["import { getCurrentHub } from '@sentry/hub';\nexport { TRACEPARENT_REGEXP, extractTraceparentData, stripUrlQueryAndFragment } from '@sentry/utils';\n\n/**\n * Determines if tracing is currently enabled.\n *\n * Tracing is enabled when at least one of `tracesSampleRate` and `tracesSampler` is defined in the SDK config.\n */\nfunction hasTracingEnabled(\n maybeOptions,\n) {\n var client = getCurrentHub().getClient();\n var options = maybeOptions || (client && client.getOptions());\n return !!options && ('tracesSampleRate' in options || 'tracesSampler' in options);\n}\n\n/** Grabs active transaction off scope, if any */\nfunction getActiveTransaction(maybeHub) {\n var hub = maybeHub || getCurrentHub();\n var scope = hub.getScope();\n return scope && (scope.getTransaction() );\n}\n\n/**\n * Converts from milliseconds to seconds\n * @param time time in ms\n */\nfunction msToSec(time) {\n return time / 1000;\n}\n\n/**\n * Converts from seconds to milliseconds\n * @param time time in seconds\n */\nfunction secToMs(time) {\n return time * 1000;\n}\n\nexport { getActiveTransaction, hasTracingEnabled, msToSec, secToMs };\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,aAAa;AAC3C,SAASC,kBAAkB,EAAEC,sBAAsB,EAAEC,wBAAwB,QAAQ,eAAe;;AAEpG;AACA;AACA;AACA;AACA;AACA,SAASC,iBAAiBA,CACxBC,YAAY,EACZ;EACA,IAAIC,MAAM,GAAGN,aAAa,CAAC,CAAC,CAACO,SAAS,CAAC,CAAC;EACxC,IAAIC,OAAO,GAAGH,YAAY,IAAKC,MAAM,IAAIA,MAAM,CAACG,UAAU,CAAC,CAAE;EAC7D,OAAO,CAAC,CAACD,OAAO,KAAK,kBAAkB,IAAIA,OAAO,IAAI,eAAe,IAAIA,OAAO,CAAC;AACnF;;AAEA;AACA,SAASE,oBAAoBA,CAACC,QAAQ,EAAE;EACtC,IAAIC,GAAG,GAAGD,QAAQ,IAAIX,aAAa,CAAC,CAAC;EACrC,IAAIa,KAAK,GAAGD,GAAG,CAACE,QAAQ,CAAC,CAAC;EAC1B,OAAOD,KAAK,IAAKA,KAAK,CAACE,cAAc,CAAC,CAAG;AAC3C;;AAEA;AACA;AACA;AACA;AACA,SAASC,OAAOA,CAACC,IAAI,EAAE;EACrB,OAAOA,IAAI,GAAG,IAAI;AACpB;;AAEA;AACA;AACA;AACA;AACA,SAASC,OAAOA,CAACD,IAAI,EAAE;EACrB,OAAOA,IAAI,GAAG,IAAI;AACpB;AAEA,SAASP,oBAAoB,EAAEN,iBAAiB,EAAEY,OAAO,EAAEE,OAAO"},"metadata":{},"sourceType":"module"}
|