mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
2.2 KiB
JSON
1 line
2.2 KiB
JSON
{"ast":null,"code":"/**\n * Checks if a given value is a valid measurement value.\n */\nfunction isMeasurementValue(value) {\n return typeof value === 'number' && isFinite(value);\n}\n\n/**\n * Helper function to start child on transactions. This function will make sure that the transaction will\n * use the start timestamp of the created child span if it is earlier than the transactions actual\n * start timestamp.\n */\nfunction _startChild(transaction, {\n startTimestamp,\n ...ctx\n}) {\n if (startTimestamp && transaction.startTimestamp > startTimestamp) {\n transaction.startTimestamp = startTimestamp;\n }\n return transaction.startChild({\n startTimestamp,\n ...ctx\n });\n}\nexport { _startChild, isMeasurementValue };","map":{"version":3,"names":["isMeasurementValue","value","isFinite","_startChild","transaction","startTimestamp","ctx","startChild"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@sentry/tracing/esm/browser/metrics/utils.js"],"sourcesContent":["/**\n * Checks if a given value is a valid measurement value.\n */\nfunction isMeasurementValue(value) {\n return typeof value === 'number' && isFinite(value);\n}\n\n/**\n * Helper function to start child on transactions. This function will make sure that the transaction will\n * use the start timestamp of the created child span if it is earlier than the transactions actual\n * start timestamp.\n */\nfunction _startChild(transaction, { startTimestamp, ...ctx }) {\n if (startTimestamp && transaction.startTimestamp > startTimestamp) {\n transaction.startTimestamp = startTimestamp;\n }\n\n return transaction.startChild({\n startTimestamp,\n ...ctx,\n });\n}\n\nexport { _startChild, isMeasurementValue };\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,kBAAkBA,CAACC,KAAK,EAAE;EACjC,OAAO,OAAOA,KAAK,KAAK,QAAQ,IAAIC,QAAQ,CAACD,KAAK,CAAC;AACrD;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASE,WAAWA,CAACC,WAAW,EAAE;EAAEC,cAAc;EAAE,GAAGC;AAAI,CAAC,EAAE;EAC5D,IAAID,cAAc,IAAID,WAAW,CAACC,cAAc,GAAGA,cAAc,EAAE;IACjED,WAAW,CAACC,cAAc,GAAGA,cAAc;EAC7C;EAEA,OAAOD,WAAW,CAACG,UAAU,CAAC;IAC5BF,cAAc;IACd,GAAGC;EACL,CAAC,CAAC;AACJ;AAEA,SAASH,WAAW,EAAEH,kBAAkB"},"metadata":{},"sourceType":"module"} |