Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion dist/esm/codePushUtil.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export declare class CodePushUtil {
static getErrorMessage(e: Error | undefined): string;
/**
* Logs the error to the console and then forwards it to the provided ErrorCallback, if any.
* TODO: remove me
*/
static invokeErrorCallback: (error: Error, errorCallback: ErrorCallback) => void;
/**
Expand Down
5 changes: 3 additions & 2 deletions dist/esm/codePushUtil.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/esm/codePushUtil.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions dist/plugin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugin.js.map

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions src/codePushUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ export class CodePushUtil {

/**
* Logs the error to the console and then forwards it to the provided ErrorCallback, if any.
* TODO: remove me
*/
public static invokeErrorCallback = (error: Error, errorCallback: ErrorCallback): void => {
if (errorCallback) {
return errorCallback(error);
}

CodePushUtil.logError(null, error);
errorCallback && errorCallback(error);
}

/**
Expand Down