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' ;
2
2
3
3
import { createEnvelope } from './envelope' ;
4
4
import { dateTimestampInSeconds } from './time' ;
@@ -9,14 +9,14 @@ import { dateTimestampInSeconds } from './time';
9
9
* @param dsn A DSN that can be set on the header. Optional.
10
10
*/
11
11
export function createClientReportEnvelope (
12
- discarded_events : ClientReportEnvelopeItemPayload [ 'discarded_events' ] ,
12
+ discarded_events : ClientReport [ 'discarded_events' ] ,
13
13
dsn ?: string ,
14
14
timestamp ?: number ,
15
15
) : ClientReportEnvelope {
16
16
const header = dsn ? { dsn } : { } ;
17
17
18
- const itemHeader : ClientReportEnvelopeItemHeader = { type : 'client_report' } ;
19
- const itemPayload : ClientReportEnvelopeItemPayload = {
18
+ const itemHeader = { type : 'client_report' } ;
19
+ const itemPayload = {
20
20
timestamp : timestamp || dateTimestampInSeconds ( ) ,
21
21
discarded_events,
22
22
} ;
Original file line number Diff line number Diff line change 1
- import { createClientReportEnvelope } from '../src/clientreports ' ;
1
+ import { createClientReportEnvelope } from '../src/clientreport ' ;
2
2
import { serializeEnvelope } from '../src/envelope' ;
3
- import { ClientReportEnvelopeItemPayload } from '@sentry/types' ;
3
+ import { ClientReport } from '@sentry/types' ;
4
4
5
- const DEFAULT_DISCARDED_EVENTS : ClientReportEnvelopeItemPayload [ 'discarded_events' ] = [
5
+ const DEFAULT_DISCARDED_EVENTS : ClientReport [ 'discarded_events' ] = [
6
6
{
7
7
reason : 'before_send' ,
8
8
category : 'event' ,
You can’t perform that action at this time.
0 commit comments