Selaa lähdekoodia

fix(api): remove `currentDir` API from the `path` module

Lucas Nogueira 3 vuotta sitten
vanhempi
sitoutus
a08509c641
3 muutettua tiedostoa jossa 5 lisäystä ja 17 poistoa
  1. 5 0
      .changes/api-remove-current-dir.md
  2. 0 0
      core/tauri/scripts/bundle.js
  3. 0 17
      tooling/api/src/path.ts

+ 5 - 0
.changes/api-remove-current-dir.md

@@ -0,0 +1,5 @@
+---
+"api": "patch"
+---
+
+Removed the `currentDir` API from the `path` module.

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
core/tauri/scripts/bundle.js


+ 0 - 17
tooling/api/src/path.ts

@@ -412,22 +412,6 @@ async function videoDir(): Promise<string> {
   })
 }
 
-/**
- * Returns the path to the current working directory.
- *
- * @returns
- */
-async function currentDir(): Promise<string> {
-  return invokeTauriCommand<string>({
-    __tauriModule: 'Path',
-    message: {
-      cmd: 'resolvePath',
-      path: '',
-      directory: BaseDirectory.Current
-    }
-  })
-}
-
 /**
  * Returns the path to the suggested log directory.
  *
@@ -578,7 +562,6 @@ export {
   runtimeDir,
   templateDir,
   videoDir,
-  currentDir,
   logDir,
   BaseDirectory,
   sep,

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä