@tauri-apps/plugin-fs 2.4.3 → 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 +1 -1
- package/dist-js/index.js +1 -1
- package/package.json +1 -1
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
|