diff --git a/.prettierignore b/.prettierignore
index af351877..f49381af 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -5,4 +5,5 @@ dist-js
pnpm-lock.yaml
Cargo.lock
.build
+build
api-iife.js
\ No newline at end of file
diff --git a/plugins/deep-link/examples/app/index.html b/plugins/deep-link/examples/app/index.html
index 1f8e473c..b4f6c18b 100644
--- a/plugins/deep-link/examples/app/index.html
+++ b/plugins/deep-link/examples/app/index.html
@@ -1,4 +1,4 @@
-
+
diff --git a/plugins/deep-link/examples/app/src-tauri/server.js b/plugins/deep-link/examples/app/src-tauri/server.js
index e6efdd2e..c8686631 100644
--- a/plugins/deep-link/examples/app/src-tauri/server.js
+++ b/plugins/deep-link/examples/app/src-tauri/server.js
@@ -19,7 +19,7 @@ http
function (_error, content) {
response.writeHead(200);
response.end(content, "utf-8");
- }
+ },
);
} else {
response.writeHead(404);
diff --git a/plugins/deep-link/examples/app/src/main.ts b/plugins/deep-link/examples/app/src/main.ts
index c569d1b5..f87a6afd 100644
--- a/plugins/deep-link/examples/app/src/main.ts
+++ b/plugins/deep-link/examples/app/src/main.ts
@@ -2,7 +2,10 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
-import { onOpenUrl, getCurrent as getCurrentDeepLinkUrls } from "@tauri-apps/plugin-deep-link";
+import {
+ onOpenUrl,
+ getCurrent as getCurrentDeepLinkUrls,
+} from "@tauri-apps/plugin-deep-link";
function handler(urls: string[]) {
console.log(urls);
diff --git a/plugins/deep-link/guest-js/index.ts b/plugins/deep-link/guest-js/index.ts
index 73335315..44d2455a 100644
--- a/plugins/deep-link/guest-js/index.ts
+++ b/plugins/deep-link/guest-js/index.ts
@@ -6,16 +6,20 @@ import { invoke } from "@tauri-apps/api/tauri";
import { UnlistenFn, listen } from "@tauri-apps/api/event";
export async function getCurrent(): Promise {
- return await invoke("plugin:deep-link|get_current")
+ return await invoke("plugin:deep-link|get_current");
// return await invoke("plugin:deep-link|get_current");
}
-export async function onOpenUrl(handler: (urls: string[]) => void): Promise {
- const current = await getCurrent()
+export async function onOpenUrl(
+ handler: (urls: string[]) => void,
+): Promise {
+ const current = await getCurrent();
if (current != null) {
- handler(current)
+ handler(current);
}
- return await listen("deep-link://new-url", (event) => handler(event.payload))
+ return await listen("deep-link://new-url", (event) =>
+ handler(event.payload),
+ );
}
diff --git a/plugins/deep-link/rollup.config.mjs b/plugins/deep-link/rollup.config.mjs
index 6555e98b..99a3dd31 100644
--- a/plugins/deep-link/rollup.config.mjs
+++ b/plugins/deep-link/rollup.config.mjs
@@ -5,7 +5,7 @@ import { createConfig } from "../../shared/rollup.config.mjs";
export default createConfig({
input: "guest-js/index.ts",
pkg: JSON.parse(
- readFileSync(new URL("./package.json", import.meta.url), "utf8")
+ readFileSync(new URL("./package.json", import.meta.url), "utf8"),
),
external: [/^@tauri-apps\/api/],
});
diff --git a/plugins/websocket/examples/svelte-app/src/routes/+layout.ts b/plugins/websocket/examples/svelte-app/src/routes/+layout.ts
index 9b6b3ca8..050af12d 100644
--- a/plugins/websocket/examples/svelte-app/src/routes/+layout.ts
+++ b/plugins/websocket/examples/svelte-app/src/routes/+layout.ts
@@ -1,2 +1,6 @@
-export const prerender = true
-export const ssr = false
\ No newline at end of file
+// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
+// SPDX-License-Identifier: Apache-2.0
+// SPDX-License-Identifier: MIT
+
+export const prerender = true;
+export const ssr = false;
diff --git a/plugins/websocket/examples/svelte-app/svelte.config.js b/plugins/websocket/examples/svelte-app/svelte.config.js
index 2de0e56e..3aae82d7 100644
--- a/plugins/websocket/examples/svelte-app/svelte.config.js
+++ b/plugins/websocket/examples/svelte-app/svelte.config.js
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
-import adapter from '@sveltejs/adapter-static'
+import adapter from "@sveltejs/adapter-static";
import { vitePreprocess } from "@sveltejs/kit/vite";
/** @type {import('@sveltejs/kit').Config} */