mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
3.1 KiB
JSON
1 line
3.1 KiB
JSON
{"ast":null,"code":"import { getCurrentHub } from '@sentry/hub';\nimport { logger } from '@sentry/utils';\n\n/** A class object that can instantiate Client objects. */\n\n/**\n * Internal function to create a new SDK client instance. The client is\n * installed and then bound to the current scope.\n *\n * @param clientClass The client class to instantiate.\n * @param options Options to pass to the client.\n */\nfunction initAndBind(clientClass, options) {\n if (options.debug === true) {\n if (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) {\n logger.enable();\n } else {\n // use `console.warn` rather than `logger.warn` since by non-debug bundles have all `logger.x` statements stripped\n console.warn('[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.');\n }\n }\n var hub = getCurrentHub();\n var scope = hub.getScope();\n if (scope) {\n scope.update(options.initialScope);\n }\n var client = new clientClass(options);\n hub.bindClient(client);\n}\nexport { initAndBind };","map":{"version":3,"names":["getCurrentHub","logger","initAndBind","clientClass","options","debug","__SENTRY_DEBUG__","enable","console","warn","hub","scope","getScope","update","initialScope","client","bindClient"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@sentry/core/esm/sdk.js"],"sourcesContent":["import { getCurrentHub } from '@sentry/hub';\nimport { logger } from '@sentry/utils';\n\n/** A class object that can instantiate Client objects. */\n\n/**\n * Internal function to create a new SDK client instance. The client is\n * installed and then bound to the current scope.\n *\n * @param clientClass The client class to instantiate.\n * @param options Options to pass to the client.\n */\nfunction initAndBind(\n clientClass,\n options,\n) {\n if (options.debug === true) {\n if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__)) {\n logger.enable();\n } else {\n // use `console.warn` rather than `logger.warn` since by non-debug bundles have all `logger.x` statements stripped\n console.warn('[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.');\n }\n }\n var hub = getCurrentHub();\n var scope = hub.getScope();\n if (scope) {\n scope.update(options.initialScope);\n }\n\n var client = new clientClass(options);\n hub.bindClient(client);\n}\n\nexport { initAndBind };\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,aAAa;AAC3C,SAASC,MAAM,QAAQ,eAAe;;AAEtC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,WAAWA,CAClBC,WAAW,EACXC,OAAO,EACP;EACA,IAAIA,OAAO,CAACC,KAAK,KAAK,IAAI,EAAE;IAC1B,IAAK,OAAOC,gBAAgB,KAAK,WAAW,IAAIA,gBAAgB,EAAG;MACjEL,MAAM,CAACM,MAAM,CAAC,CAAC;IACjB,CAAC,MAAM;MACL;MACMC,OAAO,CAACC,IAAI,CAAC,8EAA8E,CAAC;IACpG;EACF;EACA,IAAIC,GAAG,GAAGV,aAAa,CAAC,CAAC;EACzB,IAAIW,KAAK,GAAGD,GAAG,CAACE,QAAQ,CAAC,CAAC;EAC1B,IAAID,KAAK,EAAE;IACTA,KAAK,CAACE,MAAM,CAACT,OAAO,CAACU,YAAY,CAAC;EACpC;EAEA,IAAIC,MAAM,GAAG,IAAIZ,WAAW,CAACC,OAAO,CAAC;EACrCM,GAAG,CAACM,UAAU,CAACD,MAAM,CAAC;AACxB;AAEA,SAASb,WAAW"},"metadata":{},"sourceType":"module"} |