import { Event , Response , Transport } from '@sentry/types' ; import { resolvedSyncPromise } from '@sentry/utils' ; /** Noop transport */ export class NoopTransport implements Transport { inheritDoc public sendEvent ( _ ) { return resolvedSyncPromise ( { reason : `NoopTransport: Event has been skipped because no Dsn is configured.` , status : 'skipped' , } ) ; } inheritDoc public close ( _ ? ) { return resolvedSyncPromise ( true ) ; } }