Expose isLoggedIn to plugin creators

Summary: Re-expose one of the legacy exports we had before. Requested by MSYS

Reviewed By: passy

Differential Revision: D40979328

fbshipit-source-id: 7e8f089a182a62f392f3a720bee9b81698930f9d
This commit is contained in:
Andrey Goncharov
2022-11-03 06:29:24 -07:00
committed by Facebook GitHub Bot
parent 2736cfeeb6
commit 82e5cfd368
3 changed files with 3 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ export function baseFlipperLibImplementation(
renderHost.flipperServer.exec('intern-graph-get', ...args),
graphPost: (...args) =>
renderHost.flipperServer.exec('intern-graph-post', ...args),
isLoggedIn: () => renderHost.flipperServer.exec('is-logged-in'),
},
remoteServerContext: {
childProcess: {

View File

@@ -207,6 +207,7 @@ export interface FlipperLib {
interface InternAPI {
graphGet: FlipperServerCommands['intern-graph-get'];
graphPost: FlipperServerCommands['intern-graph-post'];
isLoggedIn: FlipperServerCommands['is-logged-in'];
}
export let flipperLibInstance: FlipperLib | undefined;

View File

@@ -78,6 +78,7 @@ export function createMockFlipperLib(options?: StartPluginOptions): FlipperLib {
intern: {
graphGet: createStubFunction(),
graphPost: createStubFunction(),
isLoggedIn: createStubFunction(),
},
remoteServerContext: {
childProcess: {