chore(deps): replace dependency eslint-config-standard-with-typescript with eslint-config-love 43.1.0 (#1228)

* chore(deps): replace dependency eslint-config-standard-with-typescript with eslint-config-love 43.1.0

* actually apply the rules lol

* rebuild

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
This commit is contained in:
renovate[bot]
2024-04-23 00:40:51 +02:00
committed by GitHub
parent 8aacc312cf
commit faa89850d0
53 changed files with 217 additions and 194 deletions
+6 -4
View File
@@ -47,10 +47,12 @@ export default class WebSocket {
const onMessage = new Channel<Message>();
onMessage.onmessage = (message: Message): void => {
listeners.forEach((l) => l(message));
listeners.forEach((l) => {
l(message);
});
};
if (config?.headers) {
if (config?.headers != null) {
config.headers = Array.from(new Headers(config.headers).entries());
}
@@ -78,14 +80,14 @@ export default class WebSocket {
"invalid `message` type, expected a `{ type: string, data: any }` object, a string or a numeric array",
);
}
return await invoke("plugin:websocket|send", {
await invoke("plugin:websocket|send", {
id: this.id,
message: m,
});
}
async disconnect(): Promise<void> {
return await this.send({
await this.send({
type: "Close",
data: {
code: 1000,