diff --git a/Cargo.toml b/Cargo.toml index f514386..d9b7ecf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,11 +10,11 @@ repository = { workspace = true } links = "tauri-plugin-process" [package.metadata.docs.rs] -rustc-args = [ "--cfg", "docsrs" ] -rustdoc-args = [ "--cfg", "docsrs" ] +rustc-args = ["--cfg", "docsrs"] +rustdoc-args = ["--cfg", "docsrs"] [build-dependencies] -tauri-plugin = { workspace = true, features = [ "build" ] } +tauri-plugin = { workspace = true, features = ["build"] } [dependencies] tauri = { workspace = true } diff --git a/README.md b/README.md index 6b8c650..89c04d5 100644 --- a/README.md +++ b/README.md @@ -60,11 +60,11 @@ fn main() { Afterwards all the plugin's APIs are available through the JavaScript guest bindings: ```javascript -import { exit, relaunch } from "@tauri-apps/plugin-process"; +import { exit, relaunch } from '@tauri-apps/plugin-process' // exit the app with the given status code -await exit(0); +await exit(0) // restart the app -await relaunch(); +await relaunch() ``` ## Contributing diff --git a/SECURITY.md b/SECURITY.md index 67d831f..4f09bba 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -20,4 +20,4 @@ We prefer to receive reports in English. Please disclose a vulnerability or security relevant issue here: [https://github.com/tauri-apps/plugins-workspace/security/advisories/new](https://github.com/tauri-apps/plugins-workspace/security/advisories/new). -Alternatively, you can also contact us by email via [security@tauri.app](mailto:security@tauri.app). \ No newline at end of file +Alternatively, you can also contact us by email via [security@tauri.app](mailto:security@tauri.app). diff --git a/dist-js/index.cjs b/dist-js/index.cjs index 0651ae9..d02d745 100644 --- a/dist-js/index.cjs +++ b/dist-js/index.cjs @@ -23,7 +23,7 @@ var core = require('@tauri-apps/api/core'); * @since 2.0.0 */ async function exit(code = 0) { - await 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() { - await core.invoke("plugin:process|restart"); + await core.invoke('plugin:process|restart'); } exports.exit = exit; diff --git a/dist-js/index.js b/dist-js/index.js index b1e59a9..c6e9fa9 100644 --- a/dist-js/index.js +++ b/dist-js/index.js @@ -21,7 +21,7 @@ import { invoke } from '@tauri-apps/api/core'; * @since 2.0.0 */ async function exit(code = 0) { - await 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() { - await invoke("plugin:process|restart"); + await invoke('plugin:process|restart'); } export { exit, relaunch }; diff --git a/guest-js/index.ts b/guest-js/index.ts index e3c35eb..da15831 100644 --- a/guest-js/index.ts +++ b/guest-js/index.ts @@ -7,7 +7,7 @@ * @module */ -import { invoke } from "@tauri-apps/api/core"; +import { invoke } from '@tauri-apps/api/core' /** * Exits immediately with the given `exitCode`. @@ -23,7 +23,7 @@ import { invoke } from "@tauri-apps/api/core"; * @since 2.0.0 */ async function exit(code = 0): Promise { - await invoke("plugin:process|exit", { code }); + await invoke('plugin:process|exit', { code }) } /** @@ -39,7 +39,7 @@ async function exit(code = 0): Promise { * @since 2.0.0 */ async function relaunch(): Promise { - await invoke("plugin:process|restart"); + await invoke('plugin:process|restart') } -export { exit, relaunch }; +export { exit, relaunch } diff --git a/permissions/default.toml b/permissions/default.toml index e492c55..619eb9d 100644 --- a/permissions/default.toml +++ b/permissions/default.toml @@ -11,7 +11,4 @@ This enables to quit via `allow-exit` and restart via `allow-restart` the application. """ -permissions = [ - "allow-exit", - "allow-restart", -] \ No newline at end of file +permissions = ["allow-exit", "allow-restart"] diff --git a/rollup.config.js b/rollup.config.js index 977dfac..1f349ec 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -2,6 +2,6 @@ // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT -import { createConfig } from "../../shared/rollup.config.js"; +import { createConfig } from '../../shared/rollup.config.js' -export default createConfig(); +export default createConfig()