Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Sep 4, 2024
2 parents 005cec0 + 9feabac commit bf35047
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 39 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## \[2.0.0-rc.1]

- [`e2e97db5`](https://github.com/tauri-apps/plugins-workspace/commit/e2e97db51983267f5be84d4f6f0278d58834d1f5) ([#1701](https://github.com/tauri-apps/plugins-workspace/pull/1701) by [@lucasfernog](https://github.com/tauri-apps/plugins-workspace/../../lucasfernog)) Update to tauri 2.0.0-rc.8

## \[2.0.0-rc.0]

- [`9887d1`](https://github.com/tauri-apps/plugins-workspace/commit/9887d14bd0e971c4c0f5c1188fc4005d3fc2e29e) Update to tauri RC.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tauri-plugin-process"
version = "2.0.0-rc.0"
version = "2.0.0-rc.1"
description = "Access the current process of your Tauri application."
edition = { workspace = true }
authors = { workspace = true }
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ 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
Expand Down
3 changes: 1 addition & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,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
[[email protected]](mailto:[email protected]).
Alternatively, you can also contact us by email via [[email protected]](mailto:[email protected]).
4 changes: 2 additions & 2 deletions dist-js/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions dist-js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 };
8 changes: 4 additions & 4 deletions guest-js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand All @@ -23,7 +23,7 @@ import { invoke } from "@tauri-apps/api/core";
* @since 2.0.0
*/
async function exit(code = 0): Promise<void> {
await invoke("plugin:process|exit", { code });
await invoke('plugin:process|exit', { code })
}

/**
Expand All @@ -39,7 +39,7 @@ async function exit(code = 0): Promise<void> {
* @since 2.0.0
*/
async function relaunch(): Promise<void> {
await invoke("plugin:process|restart");
await invoke('plugin:process|restart')
}

export { exit, relaunch };
export { exit, relaunch }
1 change: 1 addition & 0 deletions node_modules/@tauri-apps/api

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 27 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
{
"authors": [
"Tauri Programme within The Commons Conservancy"
],
"dependencies": {
"@tauri-apps/api": "2.0.0-rc.4"
},
"exports": {
"import": "./dist-js/index.js",
"require": "./dist-js/index.cjs",
"types": "./dist-js/index.d.ts"
},
"files": [
"dist-js",
"README.md",
"LICENSE"
],
"main": "./dist-js/index.cjs",
"module": "./dist-js/index.js",
"name": "@tauri-apps/plugin-process",
"scripts": {
"build": "rollup -c"
},
"types": "./dist-js/index.d.ts"
"name": "@tauri-apps/plugin-process",
"version": "2.0.0-rc.1",
"license": "MIT or APACHE-2.0",
"authors": [
"Tauri Programme within The Commons Conservancy"
],
"repository": "https://github.com/tauri-apps/plugins-workspace",
"type": "module",
"types": "./dist-js/index.d.ts",
"main": "./dist-js/index.cjs",
"module": "./dist-js/index.js",
"exports": {
"types": "./dist-js/index.d.ts",
"import": "./dist-js/index.js",
"require": "./dist-js/index.cjs"
},
"scripts": {
"build": "rollup -c"
},
"files": [
"dist-js",
"README.md",
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.4"
}
}
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit bf35047

Please sign in to comment.