Skip to content

Commit

Permalink
ref: Expose sentry request for electron (#2774)
Browse files Browse the repository at this point in the history
  • Loading branch information
HazAT authored Jul 24, 2020
1 parent c6c54a1 commit e771b41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export { addGlobalEventProcessor, getCurrentHub, getHubFromCarrier, Hub, makeMai
export { API } from './api';
export { BaseClient } from './baseclient';
export { BackendClass, BaseBackend } from './basebackend';
export { eventToSentryRequest } from './request';
export { eventToSentryRequest, SentryRequest } from './request';
export { initAndBind, ClientClass } from './sdk';
export { NoopTransport } from './transports/noop';

Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { timestampWithMs } from '@sentry/utils';
import { API } from './api';

/** A generic client request. */
interface SentryRequest {
body: string;
export interface SentryRequest {
body: string | Buffer;
url: string;
// headers would contain auth & content-type headers for @sentry/node, but
// since @sentry/browser avoids custom headers to prevent CORS preflight
Expand Down

0 comments on commit e771b41

Please sign in to comment.