File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- import { ClientReportEnvelope , ClientReportEnvelopeItemHeader , ClientReportEnvelopeItemPayload } from '@sentry/types' ;
1+ import { ClientReport , ClientReportEnvelope } from '@sentry/types' ;
22
33import { createEnvelope } from './envelope' ;
44import { dateTimestampInSeconds } from './time' ;
@@ -9,14 +9,14 @@ import { dateTimestampInSeconds } from './time';
99 * @param dsn A DSN that can be set on the header. Optional.
1010 */
1111export function createClientReportEnvelope (
12- discarded_events : ClientReportEnvelopeItemPayload [ 'discarded_events' ] ,
12+ discarded_events : ClientReport [ 'discarded_events' ] ,
1313 dsn ?: string ,
1414 timestamp ?: number ,
1515) : ClientReportEnvelope {
1616 const header = dsn ? { dsn } : { } ;
1717
18- const itemHeader : ClientReportEnvelopeItemHeader = { type : 'client_report' } ;
19- const itemPayload : ClientReportEnvelopeItemPayload = {
18+ const itemHeader = { type : 'client_report' } ;
19+ const itemPayload = {
2020 timestamp : timestamp || dateTimestampInSeconds ( ) ,
2121 discarded_events,
2222 } ;
Original file line number Diff line number Diff line change 1- import { createClientReportEnvelope } from '../src/clientreports ' ;
1+ import { createClientReportEnvelope } from '../src/clientreport ' ;
22import { serializeEnvelope } from '../src/envelope' ;
3- import { ClientReportEnvelopeItemPayload } from '@sentry/types' ;
3+ import { ClientReport } from '@sentry/types' ;
44
5- const DEFAULT_DISCARDED_EVENTS : ClientReportEnvelopeItemPayload [ 'discarded_events' ] = [
5+ const DEFAULT_DISCARDED_EVENTS : ClientReport [ 'discarded_events' ] = [
66 {
77 reason : 'before_send' ,
88 category : 'event' ,
You can’t perform that action at this time.
0 commit comments