1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 15:49:44 -05:00
denoland-deno/ext/node/polyfills/_fs
Nathan Whitaker ff4226a3cd
fix(node/fs): Use correct offset and length in node:fs.read and write (#25049)
My fix in #25030 was buggy, I forgot to pass the `byteOffset` and
`byteLength`. Whoops.

I also discovered that fs.read was not respecting the `offset` argument,
and we were constructing a new `Buffer` for the callback instead of just
passing the original one (which is what node does, and the @types/node
definitions also indicate the callback should get the same type).
Fixes #25028.
2024-08-16 09:48:57 -07:00
..
_fs_access.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_appendFile.ts chore: update deno_lint for CI (#21802) 2024-01-05 15:03:06 +00:00
_fs_chmod.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_chown.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_close.ts feat: deprecate Deno.close() (#22066) 2024-01-24 15:59:55 +01:00
_fs_common.ts fix(node/fs): node:fs.read and write should accept typed arrays other than Uint8Array (#25030) 2024-08-14 09:42:31 -07:00
_fs_constants.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_copy.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_cp.js fix(ext/node): use primordials in ext/node/polyfills/_fs/_fs_cp.js (#24320) 2024-06-24 16:17:26 +10:00
_fs_dir.ts fix(ext/node): use primordials in ext/node/polyfills/_fs/_fs_dir.ts (#24319) 2024-06-24 06:22:55 +00:00
_fs_dirent.ts fix: revert accidentally added parentPath on DirEntry (#24438) 2024-07-04 20:58:30 -04:00
_fs_exists.ts perf(ext/node): optimize fs.exists[Sync] (#24613) 2024-07-17 18:05:51 +05:30
_fs_fdatasync.ts fix(fs): instanceof check for Deno.FsFile (#22121) 2024-01-25 23:51:29 +01:00
_fs_fstat.ts fix(fs): instanceof check for Deno.FsFile (#22121) 2024-01-25 23:51:29 +01:00
_fs_fsync.ts fix(fs): instanceof check for Deno.FsFile (#22121) 2024-01-25 23:51:29 +01:00
_fs_ftruncate.ts fix(fs): instanceof check for Deno.FsFile (#22121) 2024-01-25 23:51:29 +01:00
_fs_futimes.ts fix(ext/node): Add fs.lutimes / fs.lutimesSync (#23172) 2024-07-02 19:33:32 -07:00
_fs_lchown.ts fix(node): Implement fs.lchown (and process.getegid) (#24418) 2024-07-05 18:32:51 +00:00
_fs_link.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_lstat.ts fix(ext/node): add throwIfNoEntry option in fs.lstatSync (#24006) 2024-05-28 12:24:54 +02:00
_fs_lutimes.ts fix(ext/node): Add fs.lutimes / fs.lutimesSync (#23172) 2024-07-02 19:33:32 -07:00
_fs_mkdir.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_mkdtemp.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_open.ts chore: upgrade deno_core (#22124) 2024-01-26 14:04:07 -05:00
_fs_opendir.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_read.ts fix(node/fs): Use correct offset and length in node:fs.read and write (#25049) 2024-08-16 09:48:57 -07:00
_fs_readdir.ts fix: revert accidentally added parentPath on DirEntry (#24438) 2024-07-04 20:58:30 -04:00
_fs_readFile.ts fix(fs): instanceof check for Deno.FsFile (#22121) 2024-01-25 23:51:29 +01:00
_fs_readlink.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_readv.ts fix(ext/node): Add fs.readv, fs.readvSync (#23166) 2024-04-01 20:42:49 -07:00
_fs_realpath.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_rename.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_rm.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_rmdir.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_stat.ts fix(ext/node): add default methods to fs.StatsBase (#22750) 2024-03-06 23:01:20 +01:00
_fs_statfs.js feat(node): implement fs.statfs() (#22862) 2024-03-13 10:57:59 +00:00
_fs_symlink.ts fix(ext/node): support junction symlinks on Windows (#22762) 2024-03-09 09:07:29 +05:30
_fs_truncate.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_unlink.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_utimes.ts fix(ext/node): Add fs.lutimes / fs.lutimesSync (#23172) 2024-07-02 19:33:32 -07:00
_fs_watch.ts fix: rename watch event missing (#24893) 2024-08-07 18:15:57 +02:00
_fs_write.d.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_write.mjs fix(node/fs): node:fs.read and write should accept typed arrays other than Uint8Array (#25030) 2024-08-14 09:42:31 -07:00
_fs_writeFile.ts chore: sync up Node.js test files for v20.11.1 (#24066) 2024-06-11 11:41:44 +00:00
_fs_writev.d.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_writev.mjs chore: update the copyright of c, mjs, and jsx (#25005) 2024-08-12 12:41:32 -04:00