We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12b06d3 commit c4e16cfCopy full SHA for c4e16cf
.changeset/many-plums-agree.md
@@ -0,0 +1,5 @@
1
+---
2
+"@smithy/shared-ini-file-loader": patch
3
4
+
5
+Explicitly check for process.geteuid from global scope
packages/shared-ini-file-loader/src/getHomeDir.ts
@@ -1,13 +1,12 @@
import { homedir } from "os";
import { sep } from "path";
-import { geteuid } from "process";
const homeDirCache: Record<string, string> = {};
6
7
const getHomeDirCacheKey = (): string => {
8
// geteuid is only available on POSIX platforms (i.e. not Windows or Android).
9
- if (geteuid) {
10
- return `${geteuid()}`;
+ if (process && process.geteuid) {
+ return `${process.geteuid()}`;
11
}
12
return "DEFAULT";
13
};
0 commit comments