tauri-plugin-z9 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # Tauri Plugin z9
@@ -0,0 +1,3 @@
1
+ //#region guest-js/index.d.ts
2
+ export declare function ping(value: string): Promise<string | null>;
3
+ //#endregion
@@ -0,0 +1,7 @@
1
+ import { invoke } from "@tauri-apps/api/core";
2
+ //#region guest-js/index.ts
3
+ async function ping(value) {
4
+ return await invoke("plugin:z9|ping", { payload: { value } }).then((r) => r.value ? r.value : null);
5
+ }
6
+ //#endregion
7
+ export { ping };
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "tauri-plugin-z9",
3
+ "version": "0.1.0",
4
+ "author": "tinysrc",
5
+ "description": "",
6
+ "type": "module",
7
+ "types": "./dist-js/index.d.mts",
8
+ "exports": {
9
+ ".": "./dist-js/index.mjs",
10
+ "./package.json": "./package.json"
11
+ },
12
+ "files": [
13
+ "dist-js",
14
+ "README.md"
15
+ ],
16
+ "scripts": {
17
+ "build": "tsdown"
18
+ },
19
+ "dependencies": {
20
+ "@tauri-apps/api": "^2.12.1"
21
+ },
22
+ "devDependencies": {
23
+ "tsdown": "^0.23.0",
24
+ "typescript": "^6.0.3"
25
+ }
26
+ }