mirror of
https://github.com/Nystik-gh/ignis.git
synced 2026-06-17 04:35:53 +00:00
fix os.version shim, improve docker image
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -46,4 +46,8 @@ export function endianness() {
|
||||
return "LE";
|
||||
}
|
||||
|
||||
export function version() {
|
||||
return "v20.0.0";
|
||||
}
|
||||
|
||||
export const EOL = "\n";
|
||||
|
||||
Reference in New Issue
Block a user