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:
committed by
Facebook GitHub Bot
parent
2736cfeeb6
commit
82e5cfd368
@@ -51,6 +51,7 @@ export function baseFlipperLibImplementation(
|
|||||||
renderHost.flipperServer.exec('intern-graph-get', ...args),
|
renderHost.flipperServer.exec('intern-graph-get', ...args),
|
||||||
graphPost: (...args) =>
|
graphPost: (...args) =>
|
||||||
renderHost.flipperServer.exec('intern-graph-post', ...args),
|
renderHost.flipperServer.exec('intern-graph-post', ...args),
|
||||||
|
isLoggedIn: () => renderHost.flipperServer.exec('is-logged-in'),
|
||||||
},
|
},
|
||||||
remoteServerContext: {
|
remoteServerContext: {
|
||||||
childProcess: {
|
childProcess: {
|
||||||
|
|||||||
@@ -207,6 +207,7 @@ export interface FlipperLib {
|
|||||||
interface InternAPI {
|
interface InternAPI {
|
||||||
graphGet: FlipperServerCommands['intern-graph-get'];
|
graphGet: FlipperServerCommands['intern-graph-get'];
|
||||||
graphPost: FlipperServerCommands['intern-graph-post'];
|
graphPost: FlipperServerCommands['intern-graph-post'];
|
||||||
|
isLoggedIn: FlipperServerCommands['is-logged-in'];
|
||||||
}
|
}
|
||||||
|
|
||||||
export let flipperLibInstance: FlipperLib | undefined;
|
export let flipperLibInstance: FlipperLib | undefined;
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ export function createMockFlipperLib(options?: StartPluginOptions): FlipperLib {
|
|||||||
intern: {
|
intern: {
|
||||||
graphGet: createStubFunction(),
|
graphGet: createStubFunction(),
|
||||||
graphPost: createStubFunction(),
|
graphPost: createStubFunction(),
|
||||||
|
isLoggedIn: createStubFunction(),
|
||||||
},
|
},
|
||||||
remoteServerContext: {
|
remoteServerContext: {
|
||||||
childProcess: {
|
childProcess: {
|
||||||
|
|||||||
Reference in New Issue
Block a user