mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-24 17:20:51 +02:00
Merge v1 into v2 (#468)
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: FabianLars <fabianlars@fabianlars.de> Co-authored-by: FabianLars <FabianLars@users.noreply.github.com> Co-authored-by: Alexandre Dang <124160233+vdang-crabnebula@users.noreply.github.com> Co-authored-by: Ludea <ludovicw35@hotmail.com> Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com> Co-authored-by: Duke Jones <104690+dukejones@users.noreply.github.com> Co-authored-by: NaokiM03 <37442712+NaokiM03@users.noreply.github.com> Co-authored-by: Thibault <thibault_poisson@orange.fr> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: David Blythe <49919035+writeDavid@users.noreply.github.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> fix(stronghold): change wrong argument name for `remove` (#422) fix(window-state): correctly set decoration state if no saved state exists, fixes #421 (#424) fix(stronghold): return null if there is no record (#129) fix(window-state): propagate promise (#435) closes #432 fix(window-state): manual default implentation (#425) fix(window-state): manual default implentation, closes #421 fix(deps): update rust crate iota-crypto to 0.21 (#438) fix readme example (#447) fix: handle recursive directory correctly (#455) fix(deps): update rust crate sqlx to 0.7. plugin-sql msrv is now 1.65 (#464) fix(persisted-scope): separately save asset protocol patterns (#459) fix(deps): update rust crate iota-crypto to 0.22 (#475) fix(deps): update tauri monorepo to v1.4.0 (#482) resolve to v15.1.0 (#489) fix(deps): update rust crate iota-crypto to 0.23 (#495)
This commit is contained in:
@@ -229,7 +229,7 @@ interface FileEntry {
|
||||
*/
|
||||
async function readTextFile(
|
||||
filePath: string,
|
||||
options: FsOptions = {}
|
||||
options: FsOptions = {},
|
||||
): Promise<string> {
|
||||
return await window.__TAURI_INVOKE__("plugin:fs|read_text_file", {
|
||||
path: filePath,
|
||||
@@ -250,7 +250,7 @@ async function readTextFile(
|
||||
*/
|
||||
async function readBinaryFile(
|
||||
filePath: string,
|
||||
options: FsOptions = {}
|
||||
options: FsOptions = {},
|
||||
): Promise<Uint8Array> {
|
||||
const arr = await window.__TAURI_INVOKE__<number[]>("plugin:fs|read_file", {
|
||||
path: filePath,
|
||||
@@ -274,7 +274,7 @@ async function readBinaryFile(
|
||||
async function writeTextFile(
|
||||
path: string,
|
||||
contents: string,
|
||||
options?: FsOptions
|
||||
options?: FsOptions,
|
||||
): Promise<void>;
|
||||
|
||||
/**
|
||||
@@ -291,7 +291,7 @@ async function writeTextFile(
|
||||
*/
|
||||
async function writeTextFile(
|
||||
file: FsTextFileOption,
|
||||
options?: FsOptions
|
||||
options?: FsOptions,
|
||||
): Promise<void>;
|
||||
|
||||
/**
|
||||
@@ -304,7 +304,7 @@ async function writeTextFile(
|
||||
async function writeTextFile(
|
||||
path: string | FsTextFileOption,
|
||||
contents?: string | FsOptions,
|
||||
options?: FsOptions
|
||||
options?: FsOptions,
|
||||
): Promise<void> {
|
||||
if (typeof options === "object") {
|
||||
Object.freeze(options);
|
||||
@@ -352,7 +352,7 @@ async function writeTextFile(
|
||||
async function writeBinaryFile(
|
||||
path: string,
|
||||
contents: BinaryFileContents,
|
||||
options?: FsOptions
|
||||
options?: FsOptions,
|
||||
): Promise<void>;
|
||||
|
||||
/**
|
||||
@@ -372,7 +372,7 @@ async function writeBinaryFile(
|
||||
*/
|
||||
async function writeBinaryFile(
|
||||
file: FsBinaryFileOption,
|
||||
options?: FsOptions
|
||||
options?: FsOptions,
|
||||
): Promise<void>;
|
||||
|
||||
/**
|
||||
@@ -385,7 +385,7 @@ async function writeBinaryFile(
|
||||
async function writeBinaryFile(
|
||||
path: string | FsBinaryFileOption,
|
||||
contents?: BinaryFileContents | FsOptions,
|
||||
options?: FsOptions
|
||||
options?: FsOptions,
|
||||
): Promise<void> {
|
||||
if (typeof options === "object") {
|
||||
Object.freeze(options);
|
||||
@@ -415,7 +415,7 @@ async function writeBinaryFile(
|
||||
contents: Array.from(
|
||||
file.contents instanceof ArrayBuffer
|
||||
? new Uint8Array(file.contents)
|
||||
: file.contents
|
||||
: file.contents,
|
||||
),
|
||||
options: fileOptions,
|
||||
});
|
||||
@@ -443,7 +443,7 @@ async function writeBinaryFile(
|
||||
*/
|
||||
async function readDir(
|
||||
dir: string,
|
||||
options: FsDirOptions = {}
|
||||
options: FsDirOptions = {},
|
||||
): Promise<FileEntry[]> {
|
||||
return await window.__TAURI_INVOKE__("plugin:fs|read_dir", {
|
||||
path: dir,
|
||||
@@ -468,7 +468,7 @@ async function readDir(
|
||||
*/
|
||||
async function createDir(
|
||||
dir: string,
|
||||
options: FsDirOptions = {}
|
||||
options: FsDirOptions = {},
|
||||
): Promise<void> {
|
||||
return await window.__TAURI_INVOKE__("plugin:fs|create_dir", {
|
||||
path: dir,
|
||||
@@ -492,7 +492,7 @@ async function createDir(
|
||||
*/
|
||||
async function removeDir(
|
||||
dir: string,
|
||||
options: FsDirOptions = {}
|
||||
options: FsDirOptions = {},
|
||||
): Promise<void> {
|
||||
return await window.__TAURI_INVOKE__("plugin:fs|remove_dir", {
|
||||
path: dir,
|
||||
@@ -516,7 +516,7 @@ async function removeDir(
|
||||
async function copyFile(
|
||||
source: string,
|
||||
destination: string,
|
||||
options: FsOptions = {}
|
||||
options: FsOptions = {},
|
||||
): Promise<void> {
|
||||
return await window.__TAURI_INVOKE__("plugin:fs|copy_file", {
|
||||
source,
|
||||
@@ -540,7 +540,7 @@ async function copyFile(
|
||||
*/
|
||||
async function removeFile(
|
||||
file: string,
|
||||
options: FsOptions = {}
|
||||
options: FsOptions = {},
|
||||
): Promise<void> {
|
||||
return await window.__TAURI_INVOKE__("plugin:fs|remove_file", {
|
||||
path: file,
|
||||
@@ -564,7 +564,7 @@ async function removeFile(
|
||||
async function renameFile(
|
||||
oldPath: string,
|
||||
newPath: string,
|
||||
options: FsOptions = {}
|
||||
options: FsOptions = {},
|
||||
): Promise<void> {
|
||||
return await window.__TAURI_INVOKE__("plugin:fs|rename_file", {
|
||||
oldPath,
|
||||
|
||||
@@ -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/],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user