@tauri-apps/plugin-fs 2.4.4 → 2.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-js/index.cjs CHANGED
@@ -494,7 +494,7 @@ async function readTextFileLines(path, options) {
494
494
  this.rid = null;
495
495
  return { value: null, done };
496
496
  }
497
- const line = new TextDecoder().decode(bytes.slice(0, bytes.byteLength));
497
+ const line = new TextDecoder().decode(bytes.slice(0, bytes.byteLength - 1));
498
498
  return {
499
499
  value: line,
500
500
  done
package/dist-js/index.js CHANGED
@@ -492,7 +492,7 @@ async function readTextFileLines(path, options) {
492
492
  this.rid = null;
493
493
  return { value: null, done };
494
494
  }
495
- const line = new TextDecoder().decode(bytes.slice(0, bytes.byteLength));
495
+ const line = new TextDecoder().decode(bytes.slice(0, bytes.byteLength - 1));
496
496
  return {
497
497
  value: line,
498
498
  done
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tauri-apps/plugin-fs",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "description": "Access the file system.",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "authors": [