-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Set timeout for refreshing user before launch & track more detai…
…l launch phase
- Loading branch information
Showing
8 changed files
with
203 additions
and
96 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
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 |
---|---|---|
@@ -1,24 +1,25 @@ | ||
import { LaunchOption as ResolvedLaunchOptions } from '@xmcl/core' | ||
import { LaunchOption as ResolvedLaunchOptions, ResolvedVersion } from '@xmcl/core' | ||
import { LaunchOptions } from '@xmcl/runtime-api' | ||
|
||
export interface LaunchMiddleware { | ||
onBeforeLaunch(input: LaunchOptions, output: ResolvedLaunchOptions, context: Record<string, any>): Promise<void> | ||
name: string | ||
onBeforeLaunch(input: LaunchOptions, output: ResolvedLaunchOptions & { version: ResolvedVersion }, context: Record<string, any>): Promise<void> | ||
onAfterLaunch?(result: { | ||
/** | ||
* The code of the process exit. This is the nodejs child process "exit" event arg. | ||
*/ | ||
* The code of the process exit. This is the nodejs child process "exit" event arg. | ||
*/ | ||
code: number | ||
/** | ||
* The signal of the process exit. This is the nodejs child process "exit" event arg. | ||
*/ | ||
* The signal of the process exit. This is the nodejs child process "exit" event arg. | ||
*/ | ||
signal: string | ||
/** | ||
* The crash report content | ||
*/ | ||
* The crash report content | ||
*/ | ||
crashReport: string | ||
/** | ||
* The location of the crash report | ||
*/ | ||
* The location of the crash report | ||
*/ | ||
crashReportLocation: string | ||
}, output: ResolvedLaunchOptions, context: Record<string, any>): void | ||
} |
Oops, something went wrong.