@tauri-apps/plugin-fs
Advanced tools
Comparing version 2.0.0-beta.3 to 2.0.0-beta.4
@@ -77,5 +77,5 @@ export { BaseDirectory } from '@tauri-apps/api/path'; | ||
size: r.size, | ||
mtime: r.mtime != null ? new Date(r.mtime) : null, | ||
atime: r.atime != null ? new Date(r.atime) : null, | ||
birthtime: r.birthtime != null ? new Date(r.birthtime) : null, | ||
mtime: r.mtime !== null ? new Date(r.mtime) : null, | ||
atime: r.atime !== null ? new Date(r.atime) : null, | ||
birthtime: r.birthtime !== null ? new Date(r.birthtime) : null, | ||
readonly: r.readonly, | ||
@@ -391,3 +391,5 @@ fileAttributes: r.fileAttributes, | ||
}); | ||
return Uint8Array.from(arr); | ||
return arr instanceof ArrayBuffer | ||
? new Uint8Array(arr) | ||
: Uint8Array.from(arr); | ||
} | ||
@@ -437,3 +439,3 @@ /** | ||
async next() { | ||
if (this.rid == null) { | ||
if (this.rid === null) { | ||
this.rid = await invoke("plugin:fs|read_text_file_lines", { | ||
@@ -594,6 +596,7 @@ path: pathStr, | ||
} | ||
await invoke("plugin:fs|write_file", { | ||
path: path instanceof URL ? path.toString() : path, | ||
data: Array.from(data), | ||
options, | ||
await invoke("plugin:fs|write_file", data, { | ||
headers: { | ||
path: path instanceof URL ? path.toString() : path, | ||
options: JSON.stringify(options), | ||
}, | ||
}); | ||
@@ -600,0 +603,0 @@ } |
{ | ||
"name": "@tauri-apps/plugin-fs", | ||
"version": "2.0.0-beta.3", | ||
"version": "2.0.0-beta.4", | ||
"description": "Access the file system.", | ||
@@ -24,3 +24,3 @@ "license": "MIT or APACHE-2.0", | ||
"dependencies": { | ||
"@tauri-apps/api": "2.0.0-beta.11" | ||
"@tauri-apps/api": "2.0.0-beta.12" | ||
}, | ||
@@ -27,0 +27,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84246
2250
+ Added@tauri-apps/api@2.0.0-beta.12(transitive)
- Removed@tauri-apps/api@2.0.0-beta.11(transitive)