feat: add net module to utility process #40017
Merged
Electron Archaeologist / Artifact Comparison
completed
Dec 20, 2023 in 48s
Changes Detected
Looks like the electron.d.ts
file changed.
--- a/electron.old.d.ts
+++ b/electron.new.d.ts
@@ -9129,6 +9129,8 @@ declare namespace Electron {
* protocol handlers will not be called for this request. This allows forwarding an
* intercepted request to the built-in handler. webRequest handlers will still be
* triggered when bypassing custom protocols.
+ *
+ * Note: in the utility process custom protocols are not supported.
*/
fetch(input: (string) | (GlobalRequest), init?: RequestInit & { bypassCustomProtocolHandlers?: boolean }): Promise<GlobalResponse>;
/**
@@ -22481,6 +22483,10 @@ declare namespace Electron {
namespace Utility {
type Event<Params extends object = {}> = Electron.Event<Params>;
+ type ClientRequest = Electron.ClientRequest;
+ type IncomingMessage = Electron.IncomingMessage;
+ const net: Net;
+ type Net = Electron.Net;
type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
type AddRepresentationOptions = Electron.AddRepresentationOptions;
type AdjustSelectionOptions = Electron.AdjustSelectionOptions;
@@ -23119,7 +23125,6 @@ declare namespace Electron {
const webFrame: WebFrame;
const webFrameMain: typeof WebFrameMain;
const webUtils: WebUtils;
- const Utility: {};
}