Skip to content

Commit

Permalink
updated deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Nov 20, 2023
1 parent b254c70 commit 79b3fcb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ libssh-rs-sys = "0.2.1"
flate2 = "1.0"

[dependencies.tauri]
version = "1.5.0"
version = "1.5.2"
default-features = false
features = ["clipboard-all", "dialog-all", "path-all", "protocol-all", "shell-open", "reqwest-client"]

[dependencies.reqwest]
version = "0.11.20"
version = "0.11.22"
features = ["json"]

[dependencies.native-dialog]
Expand All @@ -57,7 +57,7 @@ version = "0.10.57"
[features]
# by default Tauri runs in production mode
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
default = ["custom-protocol"]
default = ["custom-protocol", "vendored-openssl"]
# this feature is used for production builds where `devPath` points to the filesystem
# DO NOT remove this
custom-protocol = ["tauri/custom-protocol"]
Expand Down
5 changes: 3 additions & 2 deletions src/app/core/services/backend-client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {event, tauri} from '@tauri-apps/api';
import {event} from '@tauri-apps/api';
import {invoke} from '@tauri-apps/api/tauri';
import {NgZone} from '@angular/core';
import {omit} from "lodash-es";
import {noop} from "rxjs";
Expand All @@ -11,7 +12,7 @@ export abstract class BackendClient {
return new Promise<T>((resolve, reject) => {
const cmd = `plugin:${(this.category)}|${method}`;
console.debug('invoke', `${this.category}/${method}`, args);
tauri.invoke(cmd, args)
invoke(cmd, args)
.then(result => {
console.debug('invoke', `${this.category}/${method}`, 'result', result);
this.zone.run(() => resolve(result as any));
Expand Down

0 comments on commit 79b3fcb

Please sign in to comment.