1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00
denoland-deno/ext/node
Divy Srivastava bba553bea5
fix(ext/node): homedir() getpwuid/SHGetKnownFolderPath fallback (#23841)
**Unix**: Returns the value of the HOME environment variable if it is
set even if it is an empty string. Otherwise, it tries to determine the
home directory by invoking the
[getpwuid_r](https://linux.die.net/man/3/getpwuid_r) function with the
UID of the current user.

**Windows**: Returns the value of the USERPROFILE environment variable
if it is set and it is not an empty string. Otherwise, it tries to
determine the home directory by invoking the
[SHGetKnownFolderPath](https://learn.microsoft.com/en-us/windows/win32/api/shlobj_core/nf-shlobj_core-shgetknownfolderpath)
function with
[FOLDERID_Profile](https://learn.microsoft.com/en-us/windows/win32/shell/knownfolderid).

Fixes https://github.com/denoland/deno/issues/23824
2024-05-16 10:52:40 +05:30
..
benchmarks fix: implement child_process IPC (#21490) 2023-12-13 11:14:16 +01:00
ops fix(ext/node): homedir() getpwuid/SHGetKnownFolderPath fallback (#23841) 2024-05-16 10:52:40 +05:30
polyfills fix(ext/node): homedir() getpwuid/SHGetKnownFolderPath fallback (#23841) 2024-05-16 10:52:40 +05:30
analyze.rs fix(node): better cjs re-export handling (#23760) 2024-05-10 09:55:20 -04:00
build.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
Cargo.toml fix(ext/node): homedir() getpwuid/SHGetKnownFolderPath fallback (#23841) 2024-05-16 10:52:40 +05:30
clippy.toml refactor(ext/fs): deno_fs::FileSystem - conditional Send + Sync (#18993) 2023-05-08 11:02:02 -04:00
errors.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
global.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
lib.rs fix(ext/node): homedir() getpwuid/SHGetKnownFolderPath fallback (#23841) 2024-05-16 10:52:40 +05:30
package_json.rs feat(runtime): Allow embedders to perform additional access checks on file open (#23208) 2024-04-19 18:12:03 -06:00
path.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
polyfill.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
README.md chore(ext/node): correct publishing for ext/node (#15461) 2022-08-11 17:25:41 -04:00
resolution.rs perf(node): put pkg json into an Rc (#23156) 2024-04-01 09:10:04 -04:00

deno_node

require and other node related functionality for Deno.