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
+4 -4
View File
@@ -60,10 +60,10 @@ class Update extends Resource {
onEvent?: (progress: DownloadEvent) => void,
): Promise<void> {
const channel = new Channel<DownloadEvent>();
if (onEvent) {
if (onEvent != null) {
channel.onmessage = onEvent;
}
return invoke("plugin:updater|download_and_install", {
await invoke("plugin:updater|download_and_install", {
onEvent: channel,
rid: this.rid,
});
@@ -72,11 +72,11 @@ class Update extends Resource {
/** Check for updates, resolves to `null` if no updates are available */
async function check(options?: CheckOptions): Promise<Update | null> {
if (options?.headers) {
if (options?.headers != null) {
options.headers = Array.from(new Headers(options.headers).entries());
}
return invoke<UpdateMetadata>("plugin:updater|check", {
return await invoke<UpdateMetadata>("plugin:updater|check", {
...options,
}).then((meta) => (meta.available ? new Update(meta) : null));
}