-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat-support-json-schema-validation
- Loading branch information
Showing
5 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* This is a HACK to work around inso cli using the database module used for Insomnia desktop client. | ||
* Now this is getting coupled with Electron side, and CLI should not be really related to the electron at all. | ||
* That is another tech debt. | ||
*/ | ||
export type ExceptionCallback = (exception: unknown, captureContext?: unknown) => string; | ||
|
||
let captureException: ExceptionCallback = (exception: unknown) => { | ||
console.error(exception); | ||
return ''; | ||
}; | ||
|
||
export function loadCaptureException() { | ||
return captureException; | ||
} | ||
|
||
export function registerCaptureException(fn: ExceptionCallback) { | ||
captureException = fn; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters