Skip to content

Commit f0269f6

Browse files
committed
BREAKING CHANGE: startWithDsnString renamed to startWithOptions
1 parent dd26654 commit f0269f6

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/backend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class NativescriptBackend extends BaseBackend<BrowserOptions> {
103103
this._browserBackend = new BrowserBackend(_options);
104104

105105
if (_options.enableNative !== false) {
106-
NSSentry.startWithDsnString(_options.dsn, _options);
106+
NSSentry.startWithOptions(_options.dsn, _options);
107107
}
108108
}
109109

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export {
2020
setUser,
2121
withScope
2222
} from '@sentry/core';
23-
export { Breadcrumb, Event, Exception, Request, Response, SdkInfo, Severity, StackFrame, Stacktrace, Status, Thread, User } from '@sentry/types';
23+
export { Breadcrumb, Event, Exception, Request, SdkInfo, Severity, StackFrame, Stacktrace, Thread, User } from '@sentry/types';
2424
export { NativescriptBackend, NativescriptOptions } from './backend';
2525
export { NativescriptClient as NativescriptClient } from './client';
2626
export { init, nativeCrash, setDist, setRelease } from './sdk';

src/nssentry.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ export namespace NSSentry {
352352
event.setSdk(eventSdk);
353353
}
354354
}
355-
export function startWithDsnString(dsnString: string, options: NativescriptOptions = {}): Promise<Response> {
355+
export function startWithOptions(dsnString: string, options: NativescriptOptions = {}): Promise<Response> {
356356
return new Promise((resolve, reject) => {
357357
if (initialized) {
358358
resolve({ status: Status.Failed });
@@ -511,7 +511,7 @@ export namespace NSSentry {
511511
);
512512
initialized = true;
513513
} catch (e) {
514-
console.error('Catching on startWithDsnString, calling callback', e);
514+
console.error('Catching on startWithOptions, calling callback', e);
515515
reject(e);
516516
return;
517517
}

src/nssentry.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface UserFeedback {
1212
export namespace NSSentry {
1313
function sendEvent(event: Event): Promise<Response>;
1414
// function captureException(exception: any /* nativeException*/): Promise<Response>;
15-
function startWithDsnString(dsn: string, options: NativescriptOptions): Promise<Response>;
15+
function startWithOptions(dsn: string, options: NativescriptOptions): Promise<Response>;
1616
// function setLogLevel(level: number);
1717
function crash();
1818
function flush(timeout: number);

src/nssentry.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export namespace NSSentry {
7777
}
7878
let sentryOptions: NativescriptOptions;
7979
let nSentryOptions: SentryOptions;
80-
export function startWithDsnString(dsnString: string, options: NativescriptOptions = {}): Promise<Response> {
80+
export function startWithOptions(dsnString: string, options: NativescriptOptions = {}): Promise<Response> {
8181
return new Promise((resolve) => {
8282
sentryOptions = options;
8383
NSSentrySDK.startWithConfigureOptions((obj) => {

0 commit comments

Comments
 (0)