mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
3.3 KiB
JSON
1 line
3.3 KiB
JSON
{"ast":null,"code":"import { makePromiseBuffer } from '@sentry/utils';\nimport { NATIVE } from '../wrapper';\n/** Native Transport class implementation */\nexport class NativeTransport {\n constructor() {\n /** A simple buffer holding all requests. */\n this._buffer = makePromiseBuffer(30);\n }\n /**\n * Sends the envelope to the Store endpoint in Sentry.\n *\n * @param envelope Envelope that should be sent to Sentry.\n */\n send(envelope) {\n return this._buffer.add(() => NATIVE.sendEnvelope(envelope));\n }\n /**\n * Wait for all envelopes to be sent or the timeout to expire, whichever comes first.\n *\n * @param timeout Maximum time in ms the transport should wait for envelopes to be flushed. Omitting this parameter will\n * cause the transport to wait until all events are sent before resolving the promise.\n * @returns A promise that will resolve with `true` if all events are sent before the timeout, or `false` if there are\n * still events in the queue when the timeout is reached.\n */\n flush(timeout) {\n return this._buffer.drain(timeout);\n }\n}\n/**\n * Creates a Native Transport.\n */\nexport function makeCapacitorTransport() {\n return new NativeTransport();\n}","map":{"version":3,"names":["makePromiseBuffer","NATIVE","NativeTransport","constructor","_buffer","send","envelope","add","sendEnvelope","flush","timeout","drain","makeCapacitorTransport"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@sentry/capacitor/dist/esm/transports/native.js"],"sourcesContent":["import { makePromiseBuffer } from '@sentry/utils';\nimport { NATIVE } from '../wrapper';\n/** Native Transport class implementation */\nexport class NativeTransport {\n constructor() {\n /** A simple buffer holding all requests. */\n this._buffer = makePromiseBuffer(30);\n }\n /**\n * Sends the envelope to the Store endpoint in Sentry.\n *\n * @param envelope Envelope that should be sent to Sentry.\n */\n send(envelope) {\n return this._buffer.add(() => NATIVE.sendEnvelope(envelope));\n }\n /**\n * Wait for all envelopes to be sent or the timeout to expire, whichever comes first.\n *\n * @param timeout Maximum time in ms the transport should wait for envelopes to be flushed. Omitting this parameter will\n * cause the transport to wait until all events are sent before resolving the promise.\n * @returns A promise that will resolve with `true` if all events are sent before the timeout, or `false` if there are\n * still events in the queue when the timeout is reached.\n */\n flush(timeout) {\n return this._buffer.drain(timeout);\n }\n}\n/**\n * Creates a Native Transport.\n */\nexport function makeCapacitorTransport() { return new NativeTransport(); }\n"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,eAAe;AACjD,SAASC,MAAM,QAAQ,YAAY;AACnC;AACA,OAAO,MAAMC,eAAe,CAAC;EACzBC,WAAWA,CAAA,EAAG;IACV;IACA,IAAI,CAACC,OAAO,GAAGJ,iBAAiB,CAAC,EAAE,CAAC;EACxC;EACA;AACJ;AACA;AACA;AACA;EACIK,IAAIA,CAACC,QAAQ,EAAE;IACX,OAAO,IAAI,CAACF,OAAO,CAACG,GAAG,CAAC,MAAMN,MAAM,CAACO,YAAY,CAACF,QAAQ,CAAC,CAAC;EAChE;EACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;EACIG,KAAKA,CAACC,OAAO,EAAE;IACX,OAAO,IAAI,CAACN,OAAO,CAACO,KAAK,CAACD,OAAO,CAAC;EACtC;AACJ;AACA;AACA;AACA;AACA,OAAO,SAASE,sBAAsBA,CAAA,EAAG;EAAE,OAAO,IAAIV,eAAe,CAAC,CAAC;AAAE"},"metadata":{},"sourceType":"module"} |