mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-06 22:26:59 +02:00
refactor(os): refactor EOL const (#427)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
1 parent
c8c3191565
commit
db7f4f9a41
8 files changed
+43
-10
No files matched your search
@@ -9,3 +9,4 @@ The os plugin is recieving a few changes to improve consistency and add new feat
|
||||
- Added `family()`,`exe_extension()`, and `hostname()` functions and their equivalents for JS.
|
||||
- Removed `tempdir()` function and its equivalent on JS, use `std::env::temp_dir` instead of `temp_dir` from `tauri::path::PathResolver::temp_dir` and `path.tempDir` on JS.
|
||||
- Modified `platform()` implementation to return `windows` instead of `win32` and `macos` instead of `darwin` to align with Rust's `std::env::consts::OS`
|
||||
- `EOL` const in JS has been modified into a function `eol()` fix import issues in frameworks like `next.js`
|
||||
Reference in new issue
Block a user