Skip to content

Commit

Permalink
feat: add Database class
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylogmon committed Jun 27, 2024
1 parent 34d461f commit 07b78b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils/invoke_plugin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { appCacheDir, appConfigDir, join } from "@tauri-apps/api/path";
import { readBinaryFile, readTextFile } from "@tauri-apps/api/fs";
import { invoke } from "@tauri-apps/api/tauri";
import { fetch } from "@tauri-apps/api/http";
import Database from "tauri-plugin-sql-api";
import { http } from "@tauri-apps/api";
import CryptoJS from "crypto-js";
import { osType } from "./env";
Expand All @@ -22,9 +22,10 @@ export async function invoke_plugin(pluginType, pluginName) {
}
const utils = {
tauriFetch: http.fetch,
http,
readBinaryFile,
readTextFile,
http,
Database,
CryptoJS,
run,
cacheDir, // String
Expand Down

0 comments on commit 07b78b9

Please sign in to comment.