Bump dependencies in flipper-js-client-sdk

Summary: Dependabot bumping deps one by one create a shitload of PRs, so creating a bunch of diffs that bumps all deps per subproject, using `yarn upgrade-interactive`

Reviewed By: passy

Differential Revision: D24137398

fbshipit-source-id: 2a653a5a92742f8a063e529007949c26899f35e5
This commit is contained in:
Michel Weststrate
2020-10-08 01:37:53 -07:00
committed by Facebook GitHub Bot
parent 51293406d6
commit 8b111e48e6
3 changed files with 161 additions and 99 deletions

View File

@@ -21,11 +21,11 @@ export class FlipperResponder {
}
success(response?: any) {
this.client.sendData({ id: this.messageID, success: response });
this.client.sendData({id: this.messageID, success: response});
}
error(response?: any) {
this.client.sendData({ id: this.messageID, error: response });
this.client.sendData({id: this.messageID, error: response});
}
}
@@ -63,7 +63,7 @@ export class FlipperConnection {
const receiver = this.subscriptions.get(method);
if (receiver == null) {
const errorMessage = `Receiver ${method} not found.`;
responder.error({ message: errorMessage });
responder.error({message: errorMessage});
return;
}
receiver.call(receiver, params, responder);
@@ -145,11 +145,11 @@ export abstract class FlipperClient {
}) {
let responder: FlipperResponder | undefined;
try {
const { method, params, id } = message;
const {method, params, id} = message;
responder = new FlipperResponder(id, this);
if (method === 'getPlugins') {
responder.success({ plugins: [...this.plugins.keys()] });
responder.success({plugins: [...this.plugins.keys()]});
return;
}
@@ -167,7 +167,7 @@ export abstract class FlipperClient {
const plugin = this.plugins.get(identifier);
if (plugin == null) {
const errorMessage = `Plugin ${identifier} not found for method ${method}`;
responder.error({ message: errorMessage, name: 'PluginNotFound' });
responder.error({message: errorMessage, name: 'PluginNotFound'});
return;
}
@@ -180,7 +180,7 @@ export abstract class FlipperClient {
const plugin = this.plugins.get(identifier);
if (plugin == null) {
const errorMessage = `Plugin ${identifier} not found for method ${method}`;
responder.error({ message: errorMessage, name: 'PluginNotFound' });
responder.error({message: errorMessage, name: 'PluginNotFound'});
return;
}
@@ -194,7 +194,7 @@ export abstract class FlipperClient {
if (connection == null) {
const errorMessage = `Connection ${identifier} not found for plugin identifier`;
responder.error({ message: errorMessage, name: 'ConnectionNotFound' });
responder.error({message: errorMessage, name: 'ConnectionNotFound'});
return;
}
@@ -212,17 +212,17 @@ export abstract class FlipperClient {
if (connection == null) {
const errorMessage = `Connection ${identifier} not found for plugin identifier`;
responder.error({ message: errorMessage, name: 'ConnectionNotFound' });
responder.error({message: errorMessage, name: 'ConnectionNotFound'});
return;
}
const isSupported = connection.hasReceiver(
params['method'].getString(),
);
responder.success({ isSupported: isSupported });
responder.success({isSupported: isSupported});
return;
}
const response = { message: 'Received unknown method: ' + method };
const response = {message: 'Received unknown method: ' + method};
responder.error(response);
} catch (e) {
if (responder) {