fix os.version shim, improve docker image

This commit is contained in:
Nystik
2026-03-12 22:32:39 +01:00
parent 2aa16341a1
commit 12af8ae010
10 changed files with 79 additions and 41 deletions

View File

@@ -26,9 +26,14 @@ export function request(options, callback) {
if (callback) {
req.once("response", callback);
}
// Immediately error - real HTTP requests need fetch or the proxy
// Immediately error. real HTTP requests need fetch or the proxy
setTimeout(() => {
req.emit("error", new Error("http.request is not available in the web version. Use requestUrl() instead."));
req.emit(
"error",
new Error(
"http.request is not available in the web version. Use requestUrl() instead.",
),
);
}, 0);
return req;
}

View File

@@ -46,4 +46,8 @@ export function endianness() {
return "LE";
}
export function version() {
return "v20.0.0";
}
export const EOL = "\n";