mirror of
https://github.com/tauri-apps/tauri-plugin-process.git
synced 2026-01-31 00:55:17 +01:00
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> Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/8791882915 Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
This commit is contained in:
@@ -1 +1 @@
|
||||
if("__TAURI__"in window){var __TAURI_PLUGIN_PROCESS__=function(n){"use strict";async function r(n,r={},_){return window.__TAURI_INTERNALS__.invoke(n,r,_)}return"function"==typeof SuppressedError&&SuppressedError,n.exit=async function(n=0){return r("plugin:process|exit",{code:n})},n.relaunch=async function(){return r("plugin:process|restart")},n}({});Object.defineProperty(window.__TAURI__,"process",{value:__TAURI_PLUGIN_PROCESS__})}
|
||||
if("__TAURI__"in window){var __TAURI_PLUGIN_PROCESS__=function(_){"use strict";async function n(_,n={},e){return window.__TAURI_INTERNALS__.invoke(_,n,e)}return"function"==typeof SuppressedError&&SuppressedError,_.exit=async function(_=0){await n("plugin:process|exit",{code:_})},_.relaunch=async function(){await n("plugin:process|restart")},_}({});Object.defineProperty(window.__TAURI__,"process",{value:__TAURI_PLUGIN_PROCESS__})}
|
||||
|
||||
@@ -23,7 +23,7 @@ var core = require('@tauri-apps/api/core');
|
||||
* @since 2.0.0
|
||||
*/
|
||||
async function exit(code = 0) {
|
||||
return core.invoke("plugin:process|exit", { code });
|
||||
await core.invoke("plugin:process|exit", { code });
|
||||
}
|
||||
/**
|
||||
* Exits the current instance of the app then relaunches it.
|
||||
@@ -38,7 +38,7 @@ async function exit(code = 0) {
|
||||
* @since 2.0.0
|
||||
*/
|
||||
async function relaunch() {
|
||||
return core.invoke("plugin:process|restart");
|
||||
await core.invoke("plugin:process|restart");
|
||||
}
|
||||
|
||||
exports.exit = exit;
|
||||
|
||||
@@ -21,7 +21,7 @@ import { invoke } from '@tauri-apps/api/core';
|
||||
* @since 2.0.0
|
||||
*/
|
||||
async function exit(code = 0) {
|
||||
return invoke("plugin:process|exit", { code });
|
||||
await invoke("plugin:process|exit", { code });
|
||||
}
|
||||
/**
|
||||
* Exits the current instance of the app then relaunches it.
|
||||
@@ -36,7 +36,7 @@ async function exit(code = 0) {
|
||||
* @since 2.0.0
|
||||
*/
|
||||
async function relaunch() {
|
||||
return invoke("plugin:process|restart");
|
||||
await invoke("plugin:process|restart");
|
||||
}
|
||||
|
||||
export { exit, relaunch };
|
||||
|
||||
@@ -23,7 +23,7 @@ import { invoke } from "@tauri-apps/api/core";
|
||||
* @since 2.0.0
|
||||
*/
|
||||
async function exit(code = 0): Promise<void> {
|
||||
return invoke("plugin:process|exit", { code });
|
||||
await invoke("plugin:process|exit", { code });
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -39,7 +39,7 @@ async function exit(code = 0): Promise<void> {
|
||||
* @since 2.0.0
|
||||
*/
|
||||
async function relaunch(): Promise<void> {
|
||||
return invoke("plugin:process|restart");
|
||||
await invoke("plugin:process|restart");
|
||||
}
|
||||
|
||||
export { exit, relaunch };
|
||||
|
||||
Reference in New Issue
Block a user