File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed
google-cloud-serverless/src Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { init as initNodeSdk, setTag } from '@sentry/node';
6
6
*
7
7
* @param options
8
8
*/
9
- export function init ( options : NodeOptions ) : NodeClient {
9
+ export function init ( options : NodeOptions ) : NodeClient | undefined {
10
10
const opts = {
11
11
...options ,
12
12
} ;
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ export function getDefaultIntegrations(_options: Options): Integration[] {
74
74
*
75
75
* @param options Configuration options for the SDK, @see {@link AWSLambdaOptions}.
76
76
*/
77
- export function init ( options : NodeOptions = { } ) : NodeClient {
77
+ export function init ( options : NodeOptions = { } ) : NodeClient | undefined {
78
78
const opts = {
79
79
_metadata : { } as SdkMetadata ,
80
80
defaultIntegrations : getDefaultIntegrations ( options ) ,
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ export function getDefaultIntegrations(_options: Options): Integration[] {
92
92
*
93
93
* @see {@link BunOptions } for documentation on configuration options.
94
94
*/
95
- export function init ( options : BunOptions = { } ) : NodeClient {
95
+ export function init ( options : BunOptions = { } ) : NodeClient | undefined {
96
96
options . clientClass = BunClient ;
97
97
options . transport = options . transport || makeFetchTransport ;
98
98
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export function getDefaultIntegrations(_options: Options): Integration[] {
26
26
/**
27
27
* @see {@link Sentry.init }
28
28
*/
29
- export function init ( options : NodeOptions = { } ) : NodeClient {
29
+ export function init ( options : NodeOptions = { } ) : NodeClient | undefined {
30
30
const opts = {
31
31
_metadata : { } as SdkMetadata ,
32
32
defaultIntegrations : getDefaultIntegrations ( options ) ,
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ function shouldAddPerformanceIntegrations(options: Options): boolean {
98
98
/**
99
99
* Initialize Sentry for Node.
100
100
*/
101
- export function init ( options : NodeOptions | undefined = { } ) : NodeClient {
101
+ export function init ( options : NodeOptions | undefined = { } ) : NodeClient | undefined {
102
102
return _init ( options , getDefaultIntegrations ) ;
103
103
}
104
104
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { rewriteFramesIntegration } from './rewriteFramesIntegration';
9
9
*
10
10
* @param options
11
11
*/
12
- export function init ( options : NodeOptions ) : NodeClient {
12
+ export function init ( options : NodeOptions ) : NodeClient | undefined {
13
13
const opts = {
14
14
defaultIntegrations : [ ...getDefaultNodeIntegrations ( options ) , rewriteFramesIntegration ( ) ] ,
15
15
...options ,
You can’t perform that action at this time.
0 commit comments