Skip to content

Commit a1db665

Browse files
committed
One unified client that works in the browser or node!
1 parent bb45062 commit a1db665

19 files changed

+310
-3264
lines changed

dist/exceptionless.es5.d.ts

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
export interface IBootstrapper {
2+
register(): void;
3+
}
14
export interface ILastReferenceIdManager {
25
getLast(): string;
36
clearLast(): void;
@@ -312,10 +315,16 @@ export declare class SubmissionMethodPlugin implements IEventPlugin {
312315
name: string;
313316
run(context: EventPluginContext): Promise<any>;
314317
}
315-
export declare class ConsoleLog implements ILog {
316-
info(message: any): void;
317-
warn(message: any): void;
318-
error(message: any): void;
318+
export declare class NodeSubmissionClient implements ISubmissionClient {
319+
submit(events: IEvent[], config: Configuration): Promise<SubmissionResponse>;
320+
submitDescription(referenceId: string, description: IUserDescription, config: Configuration): Promise<SubmissionResponse>;
321+
getSettings(config: Configuration): Promise<SettingsResponse>;
322+
private getResponseMessage(msg);
323+
private sendRequest(method, host, path, data?);
324+
}
325+
export declare class NodeBootstrapper implements IBootstrapper {
326+
register(): void;
327+
private isNode();
319328
}
320329
export declare class DefaultSubmissionClient implements ISubmissionClient {
321330
submit(events: IEvent[], config: Configuration): Promise<SubmissionResponse>;
@@ -325,3 +334,13 @@ export declare class DefaultSubmissionClient implements ISubmissionClient {
325334
private createRequest(method, url);
326335
private sendRequest(method, url, data?);
327336
}
337+
export declare class WindowBootstrapper implements IBootstrapper {
338+
register(): void;
339+
private getDefaultsSettingsFromScriptTag();
340+
private handleWindowOnError();
341+
}
342+
export declare class ConsoleLog implements ILog {
343+
info(message: any): void;
344+
warn(message: any): void;
345+
error(message: any): void;
346+
}

dist/exceptionless.es5.js

Lines changed: 169 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.es5.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.es5.min.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.es5.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)