├── .gitignore ├── readme.md └── webwindow ├── vs_part ├── lib.httpserver │ ├── IController.cs │ ├── Properties │ │ └── launchSettings.json │ ├── allpet.httpserver.csproj.user │ ├── controller │ │ ├── actioncontroller.cs │ │ ├── jsonrpccontroller.cs │ │ └── websocketcontroller.cs │ ├── formdata.cs │ ├── httpserver.cs │ └── lib.httpserver.csproj ├── lib.webwindow │ ├── WebSocketSession.cs │ ├── WindowCreateOption.cs │ ├── WindowMgr.cs │ ├── WindowRemote.cs │ ├── html │ │ ├── host │ │ │ └── index.js │ │ └── win │ │ │ ├── index.html │ │ │ └── main.js │ └── lib.webwindow.csproj ├── samples │ ├── sample00_helloworld │ │ ├── Program.cs │ │ └── sample00_helloworld.csproj │ ├── sample01_sendback │ │ ├── Program.cs │ │ └── sample01_sendback.csproj │ ├── sample02_workwithfiles │ │ ├── Program.cs │ │ ├── files │ │ │ └── tmx.png │ │ └── sample02_workwithfiles.csproj │ └── sample03_workwithhtml │ │ ├── Program.cs │ │ ├── html │ │ ├── event.js │ │ ├── mypage.html │ │ └── tmx.png │ │ └── sample03_workwithhtml.csproj └── webwindow.sln └── vscode_part ├── webhost ├── code │ ├── index.ts │ └── tsconfig.json ├── electron.d.ts ├── node_modules │ └── @types │ │ └── node │ │ ├── LICENSE │ │ ├── README.md │ │ ├── assert.d.ts │ │ ├── async_hooks.d.ts │ │ ├── base.d.ts │ │ ├── buffer.d.ts │ │ ├── child_process.d.ts │ │ ├── cluster.d.ts │ │ ├── console.d.ts │ │ ├── constants.d.ts │ │ ├── crypto.d.ts │ │ ├── dgram.d.ts │ │ ├── dns.d.ts │ │ ├── domain.d.ts │ │ ├── events.d.ts │ │ ├── fs.d.ts │ │ ├── globals.d.ts │ │ ├── http.d.ts │ │ ├── http2.d.ts │ │ ├── https.d.ts │ │ ├── index.d.ts │ │ ├── inspector.d.ts │ │ ├── module.d.ts │ │ ├── net.d.ts │ │ ├── os.d.ts │ │ ├── package.json │ │ ├── path.d.ts │ │ ├── perf_hooks.d.ts │ │ ├── process.d.ts │ │ ├── punycode.d.ts │ │ ├── querystring.d.ts │ │ ├── readline.d.ts │ │ ├── repl.d.ts │ │ ├── stream.d.ts │ │ ├── string_decoder.d.ts │ │ ├── timers.d.ts │ │ ├── tls.d.ts │ │ ├── trace_events.d.ts │ │ ├── ts3.2 │ │ ├── globals.d.ts │ │ ├── index.d.ts │ │ └── util.d.ts │ │ ├── tty.d.ts │ │ ├── url.d.ts │ │ ├── util.d.ts │ │ ├── v8.d.ts │ │ ├── vm.d.ts │ │ ├── worker_threads.d.ts │ │ └── zlib.d.ts └── package-lock.json └── webremotewin ├── code ├── index.html ├── main.ts └── tsconfig.json ├── node_modules └── @types │ └── node │ ├── LICENSE │ ├── README.md │ ├── assert.d.ts │ ├── async_hooks.d.ts │ ├── base.d.ts │ ├── buffer.d.ts │ ├── child_process.d.ts │ ├── cluster.d.ts │ ├── console.d.ts │ ├── constants.d.ts │ ├── crypto.d.ts │ ├── dgram.d.ts │ ├── dns.d.ts │ ├── domain.d.ts │ ├── events.d.ts │ ├── fs.d.ts │ ├── globals.d.ts │ ├── http.d.ts │ ├── http2.d.ts │ ├── https.d.ts │ ├── index.d.ts │ ├── inspector.d.ts │ ├── module.d.ts │ ├── net.d.ts │ ├── os.d.ts │ ├── package.json │ ├── path.d.ts │ ├── perf_hooks.d.ts │ ├── process.d.ts │ ├── punycode.d.ts │ ├── querystring.d.ts │ ├── readline.d.ts │ ├── repl.d.ts │ ├── stream.d.ts │ ├── string_decoder.d.ts │ ├── timers.d.ts │ ├── tls.d.ts │ ├── trace_events.d.ts │ ├── ts3.2 │ ├── globals.d.ts │ ├── index.d.ts │ └── util.d.ts │ ├── tty.d.ts │ ├── url.d.ts │ ├── util.d.ts │ ├── v8.d.ts │ ├── vm.d.ts │ ├── worker_threads.d.ts │ └── zlib.d.ts └── package-lock.json /.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | obj 3 | .vs 4 | /webwindow/html 5 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # webwindow.netcore 2 | 3 | ## 介绍 4 | 5 | 这个库是为dotnet core 程序开发GUI用的 6 | 7 | 他的基本原理是调用electron来完成的,但是和electron.net发布一个独立的版本不同,这个库设计为任何一个你的dotnet core 程序,另外“加上”GUI的部分 8 | 9 | 比如简单的为NEOCLI 加上一个界面,这个界面可以随时通过NEOCLI命令呼叫出来,也可以关闭 10 | 11 | ## 基本使用方法 12 | 13 | ``` 14 | static async void MainAsync() 15 | { 16 | //init 17 | WindowMgr windowmgr = new WindowMgr(); 18 | await windowmgr.Init(); 19 | 20 | //当GUI全关闭时,让这个进程也退出 21 | windowmgr.onAllWindowClose += () => bexit = true; 22 | 23 | //create window 24 | WindowCreateOption op = new WindowCreateOption(); 25 | op.title = "hello world"; 26 | var window = await WindowRemote.Create(windowmgr, op); 27 | 28 | //eval 29 | var time = DateTime.Now.ToString(); 30 | await window.Remote_Eval("document.body.innerHTML='hello world
" + time + "'"); 31 | } 32 | ``` 33 | ### 1.Init 34 | 首先初始化windowmgr。 35 | 这个过程做了比较多的事情,需要时间,所以是一个async方法 36 | ``` 37 | WindowMgr windowmgr = new WindowMgr(); 38 | await windowmgr.Init(); 39 | ``` 40 | ### 2.配置所有窗口全关闭事件 41 | 如果是一个纯粹的图形化程序,所有窗口关闭也就该退出了 42 | ``` 43 | windowmgr.onAllWindowClose += () => bexit = true; 44 | ``` 45 | ### 3.创建window,默认创建就显示 46 | ``` 47 | WindowCreateOption op = new WindowCreateOption(); 48 | op.title = "hello world"; 49 | var window = await WindowRemote.Create(windowmgr, op); 50 | ``` 51 | ### 4.执行js 52 | 这里使用js来给窗口加一点显示内容 53 | ``` 54 | var time = DateTime.Now.ToString(); 55 | await window.Remote_Eval("document.body.innerHTML='hello world
" + time + "'"); 56 | ``` 57 | ## 示例 58 | 例子在本仓库的 vs_part\samples中 59 | 60 | ## 0.helloworld 61 | 62 | 该例子展示基本过程 63 | 64 | ## 1.sendback 65 | 66 | 该例子展示如何从窗口向c#程序发送信息,比如输入内容和响应事件 67 | 68 | ## 2.workwithfiles 69 | 70 | 该例子展示如何使用文件,例子展示了使用一个硬盘上的图片 71 | 72 | ## 3.workwithhtml 73 | 74 | 该例子展示如何配合传统的html工作流开发 75 | 76 | 该例子使用了一个完整的小网站,包括一个html 一个js 一个img 77 | 78 | 展示了如何显示该网站,并且在js中编写和c#交互的逻辑 79 | 80 | ## 原理细节 81 | 82 | ### 1.唤起electron,执行web/host/index.js 83 | 84 | 唤起方式 就是进程调用 85 | 86 | web/host/index.js 实现了一个rpc接口,这个库通过rpc接口让elctron 弹出窗口 87 | 88 | ### 2.打开窗口 执行web/win/index.html 89 | 90 | 利用rpc接口,通知electron进程 打开一个browerwindow 91 | 92 | 这个窗口执行web/win/index.html 他内部包含一个websocket client 93 | 94 | 而本库实现了一个websocket server 95 | 96 | 通过websocket 可以指挥这个窗口做事,主要是jseval 97 | 98 | ### 3.窗口中提供了一个 __api.sendback([])供js 向dotnet core 发送内容 99 | 比如点击事件 100 | 101 | ### 4.协同退出 102 | 情况一 103 | 当本库所在的进程退出,websocket server 失活, 104 | 本程序打开的browserwindow 同时关闭 105 | 而electron进程设定为其打开的所有browserwindow关闭时 退出进程 106 | 107 | 则全部都关闭 108 | 109 | 情况二 110 | 当用户关闭了窗口,会导致该窗口对应的websocket断开,可知,可做适当处理。 111 | 当用户关闭了所有窗口,可知,如需要则同时退出进程 112 | 113 | 114 | -------------------------------------------------------------------------------- /webwindow/vs_part/lib.httpserver/IController.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Http; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace light.http.server 8 | { 9 | public interface IController 10 | { 11 | Task ProcessAsync(HttpContext context); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /webwindow/vs_part/lib.httpserver/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:57650/", 7 | "sslPort": 0 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "environmentVariables": { 15 | "ASPNETCORE_ENVIRONMENT": "Development" 16 | } 17 | }, 18 | "allpet.httpserver": { 19 | "commandName": "Project", 20 | "launchBrowser": true, 21 | "environmentVariables": { 22 | "ASPNETCORE_ENVIRONMENT": "Development" 23 | }, 24 | "applicationUrl": "http://localhost:57651/" 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /webwindow/vs_part/lib.httpserver/allpet.httpserver.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | IIS Express 5 | 6 | -------------------------------------------------------------------------------- /webwindow/vs_part/lib.httpserver/controller/actioncontroller.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Http; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace light.http.server 8 | { 9 | public class ActionController : IController 10 | { 11 | public ActionController(httpserver.deleProcessHttp action) 12 | { 13 | this.action = action; 14 | } 15 | public async Task ProcessAsync(HttpContext context) 16 | { 17 | await action(context); 18 | } 19 | httpserver.deleProcessHttp action; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /webwindow/vs_part/lib.httpserver/controller/websocketcontroller.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Net.WebSockets; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore.Http; 7 | 8 | namespace light.http.server 9 | { 10 | public class WebSocketController : IController 11 | { 12 | httpserver.deleWebSocketCreator CreatePeer; 13 | //httpserver.onProcessWebsocket onEvent; 14 | public WebSocketController(httpserver.deleWebSocketCreator onCreator) 15 | { 16 | this.CreatePeer = onCreator; 17 | } 18 | public async Task ProcessAsync(HttpContext context) 19 | { 20 | if (context.WebSockets.IsWebSocketRequest) 21 | { 22 | WebSocket websocket = null; 23 | httpserver.IWebSocketPeer peer = null; 24 | try 25 | { 26 | websocket = await context.WebSockets.AcceptWebSocketAsync(); 27 | peer = CreatePeer(websocket); 28 | await peer.OnConnect(); 29 | } 30 | catch 31 | { 32 | Console.CursorLeft = 0; 33 | Console.WriteLine("error on connect."); 34 | } 35 | try 36 | { 37 | using (System.IO.MemoryStream ms = new System.IO.MemoryStream(1024 * 1024)) 38 | { 39 | byte[] buf = new byte[1024]; 40 | ArraySegment buffer = new ArraySegment(buf); 41 | while (websocket.State == System.Net.WebSockets.WebSocketState.Open) 42 | { 43 | 44 | var recv = await websocket.ReceiveAsync(buffer, System.Threading.CancellationToken.None); 45 | ms.Write(buffer.Array, buffer.Offset, recv.Count); 46 | if (recv.EndOfMessage) 47 | { 48 | var count = ms.Position; 49 | 50 | ms.Position = 0; 51 | await peer.OnRecv(ms,(int)count);// .onEvent(httpserver.WebsocketEventType.Recieve, websocket, bytes); 52 | 53 | 54 | ms.Position = 0; 55 | } 56 | } 57 | } 58 | } 59 | catch (Exception err) 60 | { 61 | Console.CursorLeft = 0; 62 | Console.WriteLine("error on recv."); 63 | } 64 | try 65 | { 66 | //await context.Response.WriteAsync(""); 67 | await peer.OnDisConnect();// onEvent(httpserver.WebsocketEventType.Disconnect, websocket); 68 | } 69 | catch (Exception err) 70 | { 71 | Console.CursorLeft = 0; 72 | Console.WriteLine("error on disconnect."); 73 | } 74 | 75 | } 76 | else 77 | { 78 | 79 | } 80 | 81 | } 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /webwindow/vs_part/lib.httpserver/httpserver.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Builder; 2 | using Microsoft.AspNetCore.Hosting; 3 | using Microsoft.AspNetCore.Http; 4 | using Microsoft.AspNetCore.ResponseCompression; 5 | using Microsoft.Extensions.DependencyInjection; 6 | using System; 7 | using System.Linq; 8 | using System.Collections.Generic; 9 | using System.IO.Compression; 10 | using System.Net; 11 | using System.Text; 12 | using System.Threading.Tasks; 13 | 14 | namespace light.http.server 15 | { 16 | 17 | 18 | public class httpserver 19 | { 20 | public httpserver() 21 | { 22 | onHttpEvents = new System.Collections.Concurrent.ConcurrentDictionary(); 23 | } 24 | private IWebHost host; 25 | public System.Collections.Concurrent.ConcurrentDictionary onHttpEvents; 26 | deleProcessHttp onHttp404; 27 | 28 | 29 | 30 | public void Start(int port, int portForHttps = 0, string pfxpath = null, string password = null) 31 | { 32 | host = new WebHostBuilder().UseKestrel((options) => 33 | { 34 | options.Listen(IPAddress.Any, port, listenOptions => 35 | { 36 | 37 | }); 38 | if (portForHttps != 0) 39 | { 40 | options.Listen(IPAddress.Any, portForHttps, listenOptions => 41 | { 42 | //if (!string.IsNullOrEmpty(sslCert)) 43 | //if (useHttps) 44 | listenOptions.UseHttps(pfxpath, password); 45 | //sslCert, password); 46 | }); 47 | } 48 | }).Configure(app => 49 | { 50 | 51 | app.UseWebSockets(); 52 | app.UseResponseCompression(); 53 | 54 | app.Run(ProcessAsync); 55 | }).ConfigureServices(services => 56 | { 57 | services.AddResponseCompression(options => 58 | { 59 | options.EnableForHttps = false; 60 | options.Providers.Add(); 61 | options.MimeTypes = ResponseCompressionDefaults.MimeTypes.Concat(new[] { "application/json" }); 62 | }); 63 | 64 | services.Configure(options => 65 | { 66 | options.Level = CompressionLevel.Fastest; 67 | }); 68 | }).Build(); 69 | 70 | host.Start(); 71 | } 72 | 73 | public void AddJsonRPC(string path, string method, JSONRPCController.ActionRPC action) 74 | { 75 | if (onHttpEvents.ContainsKey(path) == false) 76 | { 77 | onHttpEvents[path] = new JSONRPCController(); 78 | } 79 | var jsonc = onHttpEvents[path] as JSONRPCController; 80 | jsonc.AddAction(method, action); 81 | } 82 | public void SetJsonRPCFail(string path, JSONRPCController.ActionRPCFail action) 83 | { 84 | if (onHttpEvents.ContainsKey(path) == false) 85 | { 86 | onHttpEvents[path] = new JSONRPCController(); 87 | } 88 | var jsonc = onHttpEvents[path] as JSONRPCController; 89 | jsonc.SetFailAction(action); 90 | } 91 | public void SetHttpAction(string path, deleProcessHttp httpaction) 92 | { 93 | onHttpEvents[path] = new ActionController(httpaction); 94 | } 95 | public void SetWebsocketAction(string path, deleWebSocketCreator websocketaction) 96 | { 97 | onHttpEvents[path] = new WebSocketController(websocketaction); 98 | } 99 | public void SetHttpController(string path, IController controller) 100 | { 101 | onHttpEvents[path] = controller; 102 | } 103 | public void SetFailAction(deleProcessHttp httpaction) 104 | { 105 | onHttp404 = httpaction; 106 | } 107 | public delegate Task deleProcessHttp(HttpContext context); 108 | public interface IWebSocketPeer 109 | { 110 | Task OnConnect(); 111 | Task OnRecv(System.IO.MemoryStream stream, int count); 112 | Task OnDisConnect(); 113 | } 114 | public delegate IWebSocketPeer deleWebSocketCreator(System.Net.WebSockets.WebSocket websocket); 115 | //public enum WebsocketEventType 116 | //{ 117 | // Connect, 118 | // Disconnect, 119 | // Recieve, 120 | //} 121 | //public delegate Task onProcessWebsocket(WebsocketEventType type, System.Net.WebSockets.WebSocket context, byte[] message = null); 122 | 123 | 124 | private async Task ProcessAsync(HttpContext context) 125 | { 126 | try 127 | { 128 | var path = context.Request.Path.Value; 129 | if (onHttpEvents.TryGetValue(path.ToLower(), out IController controller)) 130 | { 131 | await controller.ProcessAsync(context); 132 | } 133 | else 134 | { 135 | await onHttp404(context); 136 | } 137 | } 138 | catch 139 | { 140 | 141 | } 142 | } 143 | } 144 | } 145 | -------------------------------------------------------------------------------- /webwindow/vs_part/lib.httpserver/lib.httpserver.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | netcoreapp2.2 5 | allpet.http.server 6 | allpet.http.server 7 | true 8 | InProcess 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /webwindow/vs_part/lib.webwindow/WebSocketSession.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json.Linq; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.IO; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using static light.http.server.httpserver; 8 | 9 | namespace WebWindow 10 | { 11 | public class WebSocketSession : IWebSocketPeer 12 | { 13 | System.Net.WebSockets.WebSocket socket; 14 | WindowRemote bindwin; 15 | int winid; 16 | public WebSocketSession(System.Net.WebSockets.WebSocket socket) 17 | { 18 | this.socket = socket; 19 | this.winid = -1; 20 | } 21 | public async Task Send(string cmd, JArray vars) 22 | { 23 | JObject send = new JObject(); 24 | send["cmd"] = cmd; 25 | send["vars"] = vars; 26 | var sendtxt = send.ToString(); 27 | var bs = System.Text.Encoding.UTF8.GetBytes(sendtxt); 28 | await this.socket.SendAsync(bs, System.Net.WebSockets.WebSocketMessageType.Text, true, System.Threading.CancellationToken.None); 29 | } 30 | public async Task OnConnect() 31 | { 32 | Console.WriteLine("WebSocketSession:OnConnect" + socket.GetHashCode()); 33 | } 34 | 35 | public async Task OnDisConnect() 36 | { 37 | if (bindwin != null) 38 | bindwin.SessionClose(); 39 | } 40 | 41 | public async Task OnRecv(MemoryStream stream, int count) 42 | { 43 | if (count == 0) 44 | { 45 | await OnDisConnect(); 46 | return; 47 | } 48 | //路由消息 49 | var buf = new byte[count]; 50 | stream.Read(buf, 0, count); 51 | var txt = System.Text.Encoding.UTF8.GetString(buf); 52 | 53 | var json = JObject.Parse(txt); 54 | var cmd = json["cmd"].ToString(); 55 | var vars = (JArray)json["vars"]; 56 | 57 | if (cmd == "init") 58 | { 59 | this.winid = (int)vars[0]; 60 | bindwin = WindowRemote.Get(this.winid); 61 | bindwin.BindSession(this); 62 | } 63 | 64 | if (bindwin == null) 65 | Console.WriteLine("error socket msg:" + txt); 66 | else 67 | bindwin.OnRecv(cmd, vars); 68 | 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /webwindow/vs_part/lib.webwindow/WindowCreateOption.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json.Linq; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace WebWindow 7 | { 8 | //这边的简单类型只要名字和 electron.BrowserWindowConstructorOptions 匹配 就可以自动生效 string number bool 9 | 10 | //复杂的类型有一些需要底层转换,比如parentwindow,这个随后会在做对话框的时候处理 11 | public class WindowCreateOption 12 | { 13 | public string title; 14 | public int? x; 15 | public int? y; 16 | public int? width; 17 | public int? height; 18 | public bool? autoHideMenuBar; 19 | public JObject ToJson() 20 | { 21 | var objwin =new JObject(); 22 | objwin["title"] = title; 23 | if (x != null)objwin["x"]= x.Value; 24 | if (y != null) objwin["y"] = y.Value; 25 | if (width != null) objwin["x"] = width.Value; 26 | if (height != null) objwin["x"] = height.Value; 27 | if (autoHideMenuBar != null) objwin["autoHideMenuBar"] = autoHideMenuBar.Value; 28 | 29 | return objwin; 30 | 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /webwindow/vs_part/lib.webwindow/WindowRemote.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json.Linq; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace WebWindow 8 | { 9 | 10 | /// 11 | /// 远程管理的window 12 | /// 13 | public class WindowRemote 14 | { 15 | static Dictionary allwindow; 16 | public static WindowRemote Get(int id) 17 | { 18 | if (allwindow.ContainsKey(id)) 19 | return allwindow[id]; 20 | return null; 21 | } 22 | 23 | static void RecordWin(WindowRemote win) 24 | { 25 | if (allwindow == null) 26 | allwindow = new Dictionary(); 27 | allwindow[win.winid] = win; 28 | } 29 | public event Action OnSendBack; 30 | 31 | public void OnRecv(string cmd, JArray vars) 32 | { 33 | Console.WriteLine("Onrecv:" + cmd); 34 | if(cmd=="settitle_back") 35 | { 36 | lock (this) 37 | { 38 | tag_title = true; 39 | } 40 | } 41 | if(cmd=="eval_back") 42 | { 43 | lock (this) 44 | { 45 | tag_eval = vars[0]; 46 | } 47 | } 48 | if(cmd=="sendback") 49 | { 50 | OnSendBack?.Invoke(vars); 51 | } 52 | } 53 | bool tag_title; 54 | public async Task Remote_SetTitle(string title) 55 | { 56 | lock (this) 57 | { 58 | tag_title = false; 59 | } 60 | await bindSession.Send("settitle", new JArray(title)); 61 | while(true) 62 | { 63 | lock (this) 64 | { 65 | if(tag_title) 66 | { 67 | return; 68 | } 69 | } 70 | await Task.Delay(1); 71 | } 72 | } 73 | 74 | JToken tag_eval; 75 | public async Task Remote_Eval(string jscode) 76 | { 77 | lock (this) 78 | { 79 | tag_eval = null; 80 | } 81 | await bindSession.Send("eval", new JArray(jscode)); 82 | while (true) 83 | { 84 | lock (this) 85 | { 86 | if (tag_eval!=null) 87 | { 88 | return tag_eval.DeepClone(); 89 | } 90 | } 91 | await Task.Delay(1); 92 | } 93 | } 94 | public void BindSession(WebSocketSession session) 95 | { 96 | Console.WriteLine("Bind to Session."); 97 | 98 | this.bindSession = session; 99 | } 100 | public void SessionClose() 101 | { 102 | Console.WriteLine("Session close."); 103 | 104 | allwindow.Remove(this.winid); 105 | this.bindSession = null; 106 | } 107 | 108 | 109 | 110 | 111 | WindowMgr WindowMgr; 112 | WebSocketSession bindSession; 113 | public int winid 114 | { 115 | get; 116 | private set; 117 | } 118 | protected WindowRemote(WindowMgr mgr,int windowid) 119 | { 120 | this.WindowMgr = mgr; 121 | this.winid = windowid; 122 | } 123 | public bool hasInit 124 | { 125 | get 126 | { 127 | return bindSession != null; 128 | } 129 | } 130 | public static async Task Create( WebWindow.WindowMgr mgr, WindowCreateOption op) 131 | { 132 | if (!mgr.hadInit) 133 | throw new Exception("windowmgr has not inited."); 134 | 135 | var url = mgr.urlWin; 136 | var windowid = await mgr.window_create(op, url); 137 | 138 | var win = new WindowRemote(mgr, windowid); 139 | 140 | RecordWin(win); 141 | while(!win.hasInit) 142 | { 143 | await Task.Delay(100); 144 | } 145 | return win; 146 | } 147 | 148 | } 149 | } 150 | -------------------------------------------------------------------------------- /webwindow/vs_part/lib.webwindow/html/win/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 |
5 | > 12 | first page. 13 | 14 | -------------------------------------------------------------------------------- /webwindow/vs_part/lib.webwindow/html/win/main.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /// 3 | var remote = require("electron").remote; 4 | //给js调用的API 5 | var API = /** @class */ (function () { 6 | function API() { 7 | } 8 | return API; 9 | }()); 10 | var __api = new API(); 11 | window.onload = function () { 12 | var __pageoption; 13 | //把函数藏起来,尽量不污染空间 14 | var closethis = function () { 15 | var win = remote.getCurrentWindow(); 16 | win.close(); 17 | }; 18 | var settitle = function (title) { 19 | var win = remote.getCurrentWindow(); 20 | win.setTitle(title); 21 | }; 22 | var decodequery = function () { 23 | var url = document.location.toString(); 24 | var arrUrl = url.split("?"); 25 | var query = decodeURIComponent(arrUrl[1]); 26 | var lines = query.split("&"); 27 | var _curl = ""; 28 | var _winid = 0; 29 | for (var i = 0; i < lines.length; i++) { 30 | var line = lines[i]; 31 | var words = line.split("="); 32 | if (words.length > 1 && words[0] == "curl") { 33 | _curl = words[1]; 34 | } 35 | if (words.length > 1 && words[0] == "winid") { 36 | _winid = parseInt(words[1]); 37 | } 38 | } 39 | return { curl: _curl, winid: _winid }; 40 | }; 41 | __pageoption = decodequery(); 42 | console.log("this winid =" + __pageoption.winid); 43 | console.log("curl = " + __pageoption.curl); 44 | var ws = new WebSocket(__pageoption.curl); 45 | ws.onopen = function () { 46 | //链接通,告之接收方 47 | // console.log("this open"); 48 | var ret = { "cmd": "init", "vars": [__pageoption.winid] }; 49 | ws.send(JSON.stringify(ret)); 50 | }; 51 | ws.onclose = function () { 52 | //利用websocket断开去关闭这个窗口 53 | console.log("this close."); 54 | closethis(); 55 | }; 56 | ws.onerror = function () { 57 | console.log("this error."); 58 | closethis(); 59 | }; 60 | ws.onmessage = function (ev) { 61 | //收到一些神马 62 | var json = JSON.parse(ev.data); 63 | var cmd = json["cmd"]; 64 | var vars = json["vars"]; 65 | if (cmd == "eval") { 66 | var got = null; 67 | try { 68 | got = eval(vars[0]); 69 | } 70 | catch (e) { 71 | got = e.toString(); 72 | } 73 | var ret = { "cmd": "eval_back", "vars": [got] }; 74 | ws.send(JSON.stringify(ret)); 75 | } 76 | if (cmd == "settitle") { 77 | var title = vars[0]; 78 | settitle(title); 79 | var ret = { "cmd": "settitle_back" }; 80 | ws.send(JSON.stringify(ret)); 81 | } 82 | }; 83 | //赋予公开的API功能 84 | __api.sendback = function (vars) { 85 | var ret = { "cmd": "sendback", "vars": vars }; 86 | ws.send(JSON.stringify(ret)); 87 | }; 88 | }; 89 | //# sourceMappingURL=main.js.map -------------------------------------------------------------------------------- /webwindow/vs_part/lib.webwindow/lib.webwindow.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Library 5 | netcoreapp3.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | PreserveNewest 21 | 22 | 23 | PreserveNewest 24 | 25 | 26 | PreserveNewest 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /webwindow/vs_part/samples/sample00_helloworld/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using WebWindow; 3 | 4 | namespace sample00_helloworld 5 | { 6 | class Program 7 | { 8 | static bool bexit=false; 9 | static void Main(string[] args) 10 | { 11 | MainAsync(); 12 | while (!bexit) 13 | { 14 | System.Threading.Thread.Sleep(100); 15 | } 16 | } 17 | 18 | 19 | static async void MainAsync() 20 | { 21 | //init 22 | WindowMgr windowmgr = new WindowMgr(); 23 | await windowmgr.Init(); 24 | 25 | //当GUI全关闭时,让这个进程也退出 26 | windowmgr.onAllWindowClose += () => bexit = true; 27 | 28 | //create window 29 | WindowCreateOption op = new WindowCreateOption(); 30 | op.title = "hello world"; 31 | var window = await WindowRemote.Create(windowmgr, op); 32 | 33 | //eval 34 | var time = DateTime.Now.ToString(); 35 | await window.Remote_Eval("document.body.innerHTML='hello world
" + time + "'"); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /webwindow/vs_part/samples/sample00_helloworld/sample00_helloworld.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netcoreapp3.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /webwindow/vs_part/samples/sample01_sendback/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using WebWindow; 3 | 4 | namespace sample01_sendback 5 | { 6 | class Program 7 | { 8 | static bool bexit = false; 9 | static void Main(string[] args) 10 | { 11 | MainAsync(); 12 | while (!bexit) 13 | { 14 | System.Threading.Thread.Sleep(100); 15 | } 16 | } 17 | 18 | 19 | static async void MainAsync() 20 | { 21 | //init 22 | WindowMgr windowmgr = new WindowMgr(); 23 | await windowmgr.Init(); 24 | //当GUI全关闭时,让这个进程也退出 25 | windowmgr.onAllWindowClose += () => bexit = true; 26 | 27 | //create window 28 | WindowCreateOption op = new WindowCreateOption(); 29 | op.title = "sendback"; 30 | var window = await WindowRemote.Create(windowmgr, op); 31 | 32 | //eval sethtmlbody 33 | var html = @" input text here 34 | 35 | "; 36 | await window.Remote_Eval("document.body.innerHTML=\"" + html + "\""); 37 | 38 | //eval bindevent 39 | var bindjs = @" var btn = document.getElementById('btn'); 40 | btn.onclick = function () { 41 | var txt = document.getElementById('textbox'); 42 | __api.sendback(['click', txt.value]); 43 | };"; 44 | //use __api.sendback([]) to send a json array to dotnet core. 45 | await window.Remote_Eval(bindjs); 46 | 47 | 48 | //watch event 49 | window.OnSendBack += (args) => 50 | { 51 | Console.WriteLine("recv:" + args.ToString()); 52 | }; 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /webwindow/vs_part/samples/sample01_sendback/sample01_sendback.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netcoreapp3.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /webwindow/vs_part/samples/sample02_workwithfiles/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using WebWindow; 3 | 4 | namespace sample02_workwithfiles 5 | { 6 | class Program 7 | { 8 | static bool bexit = false; 9 | static void Main(string[] args) 10 | { 11 | MainAsync(); 12 | while (!bexit) 13 | { 14 | System.Threading.Thread.Sleep(100); 15 | } 16 | } 17 | 18 | static async void MainAsync() 19 | { 20 | //init 21 | WindowMgr windowmgr = new WindowMgr(); 22 | await windowmgr.Init(); 23 | //当GUI全关闭时,让这个进程也退出 24 | windowmgr.onAllWindowClose += () => bexit = true; 25 | 26 | //create window 27 | WindowCreateOption op = new WindowCreateOption(); 28 | op.title = "workwithfiles"; 29 | var window = await WindowRemote.Create(windowmgr, op); 30 | 31 | var file = System.IO.Path.GetFullPath("files/tmx.png"); 32 | file = file.Replace("\\", "/"); 33 | //eval sethtmlbody 34 | //file = ""; 35 | var html = @"image here"; 36 | var evalstr = "document.body.innerHTML=\"" + html + "\";"; 37 | var v= await window.Remote_Eval(evalstr); 38 | 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /webwindow/vs_part/samples/sample02_workwithfiles/files/tmx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightszero/webwindow.netcore/abb292880b1e09b0ee98e5bad92ce81f9b426cfe/webwindow/vs_part/samples/sample02_workwithfiles/files/tmx.png -------------------------------------------------------------------------------- /webwindow/vs_part/samples/sample02_workwithfiles/sample02_workwithfiles.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netcoreapp3.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | PreserveNewest 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /webwindow/vs_part/samples/sample03_workwithhtml/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using WebWindow; 3 | 4 | namespace sample02_workwithfiles 5 | { 6 | class Program 7 | { 8 | static bool bexit = false; 9 | static void Main(string[] args) 10 | { 11 | MainAsync(); 12 | while (!bexit) 13 | { 14 | System.Threading.Thread.Sleep(100); 15 | } 16 | } 17 | 18 | 19 | static async void MainAsync() 20 | { 21 | //init 22 | WindowMgr windowmgr = new WindowMgr(); 23 | await windowmgr.Init(); 24 | //当GUI全关闭时,让这个进程也退出 25 | windowmgr.onAllWindowClose += () => bexit = true; 26 | 27 | //create window 28 | WindowCreateOption op = new WindowCreateOption(); 29 | op.title = "workwithhtml"; 30 | var window = await WindowRemote.Create(windowmgr, op); 31 | 32 | var file = System.IO.Path.GetFullPath("html/mypage.html"); 33 | file = file.Replace("\\", "/"); 34 | //eval sethtmlbody 35 | //file = ""; 36 | var html = @""; 37 | var evalstr = "document.body.innerHTML=\"" + html + "\";"; 38 | var v = await window.Remote_Eval(evalstr); 39 | 40 | ////eval bindevent 41 | //var bindjs = @" var btn = document.getElementById('btn'); 42 | // btn.onclick = function () { 43 | // var txt = document.getElementById('textbox'); 44 | // __api.sendback(['click', txt.value]); 45 | // };"; 46 | ////use __api.sendback([]) to send a json array to dotnet core. 47 | //await window.Remote_Eval(bindjs); 48 | 49 | 50 | //watch event 51 | window.OnSendBack += (args) => 52 | { 53 | Console.WriteLine("recv:" + args.ToString()); 54 | }; 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /webwindow/vs_part/samples/sample03_workwithhtml/html/event.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | window.onload = function () { 3 | var btn = document.getElementById('btn'); 4 | btn.onclick = function () { 5 | var txt = document.getElementById('textbox'); 6 | var __api = parent["__api"]; 7 | __api.sendback(['click', txt.value]); 8 | }; 9 | }; 10 | -------------------------------------------------------------------------------- /webwindow/vs_part/samples/sample03_workwithhtml/html/mypage.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | input text here 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /webwindow/vs_part/samples/sample03_workwithhtml/html/tmx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightszero/webwindow.netcore/abb292880b1e09b0ee98e5bad92ce81f9b426cfe/webwindow/vs_part/samples/sample03_workwithhtml/html/tmx.png -------------------------------------------------------------------------------- /webwindow/vs_part/samples/sample03_workwithhtml/sample03_workwithhtml.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Exe 5 | netcoreapp3.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | PreserveNewest 15 | 16 | 17 | PreserveNewest 18 | 19 | 20 | PreserveNewest 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /webwindow/vs_part/webwindow.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.28922.388 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "lib.webwindow", "lib.webwindow\lib.webwindow.csproj", "{D3B44558-14D3-4493-8E6F-B2B05C716403}" 7 | EndProject 8 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "lib.httpserver", "lib.httpserver\lib.httpserver.csproj", "{CDB9138C-E767-4F76-80AF-7B331829835F}" 9 | EndProject 10 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "sample00_helloworld", "samples\sample00_helloworld\sample00_helloworld.csproj", "{0D49F5ED-CA67-41C1-BD48-5A3936CD5FDE}" 11 | EndProject 12 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sample", "sample", "{9CFAA200-048C-45F4-9092-C615B911BA31}" 13 | EndProject 14 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "sample01_sendback", "samples\sample01_sendback\sample01_sendback.csproj", "{80723853-D72E-47C9-BC35-FB19453078DF}" 15 | EndProject 16 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "sample02_workwithfiles", "samples\sample02_workwithfiles\sample02_workwithfiles.csproj", "{FF6A6E8E-5114-4F6F-80BB-3C22A10E44E2}" 17 | EndProject 18 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "sample03_workwithhtml", "samples\sample03_workwithhtml\sample03_workwithhtml.csproj", "{00C1FA4B-D328-45FF-B2C1-CC6BB7DB3955}" 19 | EndProject 20 | Global 21 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 22 | Debug|Any CPU = Debug|Any CPU 23 | Release|Any CPU = Release|Any CPU 24 | EndGlobalSection 25 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 26 | {D3B44558-14D3-4493-8E6F-B2B05C716403}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 27 | {D3B44558-14D3-4493-8E6F-B2B05C716403}.Debug|Any CPU.Build.0 = Debug|Any CPU 28 | {D3B44558-14D3-4493-8E6F-B2B05C716403}.Release|Any CPU.ActiveCfg = Release|Any CPU 29 | {D3B44558-14D3-4493-8E6F-B2B05C716403}.Release|Any CPU.Build.0 = Release|Any CPU 30 | {CDB9138C-E767-4F76-80AF-7B331829835F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 31 | {CDB9138C-E767-4F76-80AF-7B331829835F}.Debug|Any CPU.Build.0 = Debug|Any CPU 32 | {CDB9138C-E767-4F76-80AF-7B331829835F}.Release|Any CPU.ActiveCfg = Release|Any CPU 33 | {CDB9138C-E767-4F76-80AF-7B331829835F}.Release|Any CPU.Build.0 = Release|Any CPU 34 | {0D49F5ED-CA67-41C1-BD48-5A3936CD5FDE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 35 | {0D49F5ED-CA67-41C1-BD48-5A3936CD5FDE}.Debug|Any CPU.Build.0 = Debug|Any CPU 36 | {0D49F5ED-CA67-41C1-BD48-5A3936CD5FDE}.Release|Any CPU.ActiveCfg = Release|Any CPU 37 | {0D49F5ED-CA67-41C1-BD48-5A3936CD5FDE}.Release|Any CPU.Build.0 = Release|Any CPU 38 | {80723853-D72E-47C9-BC35-FB19453078DF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 39 | {80723853-D72E-47C9-BC35-FB19453078DF}.Debug|Any CPU.Build.0 = Debug|Any CPU 40 | {80723853-D72E-47C9-BC35-FB19453078DF}.Release|Any CPU.ActiveCfg = Release|Any CPU 41 | {80723853-D72E-47C9-BC35-FB19453078DF}.Release|Any CPU.Build.0 = Release|Any CPU 42 | {FF6A6E8E-5114-4F6F-80BB-3C22A10E44E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 43 | {FF6A6E8E-5114-4F6F-80BB-3C22A10E44E2}.Debug|Any CPU.Build.0 = Debug|Any CPU 44 | {FF6A6E8E-5114-4F6F-80BB-3C22A10E44E2}.Release|Any CPU.ActiveCfg = Release|Any CPU 45 | {FF6A6E8E-5114-4F6F-80BB-3C22A10E44E2}.Release|Any CPU.Build.0 = Release|Any CPU 46 | {00C1FA4B-D328-45FF-B2C1-CC6BB7DB3955}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 47 | {00C1FA4B-D328-45FF-B2C1-CC6BB7DB3955}.Debug|Any CPU.Build.0 = Debug|Any CPU 48 | {00C1FA4B-D328-45FF-B2C1-CC6BB7DB3955}.Release|Any CPU.ActiveCfg = Release|Any CPU 49 | {00C1FA4B-D328-45FF-B2C1-CC6BB7DB3955}.Release|Any CPU.Build.0 = Release|Any CPU 50 | EndGlobalSection 51 | GlobalSection(SolutionProperties) = preSolution 52 | HideSolutionNode = FALSE 53 | EndGlobalSection 54 | GlobalSection(NestedProjects) = preSolution 55 | {0D49F5ED-CA67-41C1-BD48-5A3936CD5FDE} = {9CFAA200-048C-45F4-9092-C615B911BA31} 56 | {80723853-D72E-47C9-BC35-FB19453078DF} = {9CFAA200-048C-45F4-9092-C615B911BA31} 57 | {FF6A6E8E-5114-4F6F-80BB-3C22A10E44E2} = {9CFAA200-048C-45F4-9092-C615B911BA31} 58 | {00C1FA4B-D328-45FF-B2C1-CC6BB7DB3955} = {9CFAA200-048C-45F4-9092-C615B911BA31} 59 | EndGlobalSection 60 | GlobalSection(ExtensibilityGlobals) = postSolution 61 | SolutionGuid = {C5ACC91B-6ED3-4A0B-BB34-15183234E519} 62 | EndGlobalSection 63 | EndGlobal 64 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/code/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | /* Basic Options */ 4 | // "incremental": true, /* Enable incremental compilation */ 5 | "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ 6 | "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ 7 | // "lib": [], /* Specify library files to be included in the compilation. */ 8 | // "allowJs": true, /* Allow javascript files to be compiled. */ 9 | // "checkJs": true, /* Report errors in .js files. */ 10 | // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ 11 | "declaration": true, /* Generates corresponding '.d.ts' file. */ 12 | // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ 13 | "sourceMap": true, /* Generates corresponding '.map' file. */ 14 | //"outFile": "../../../html/host/index.js", /* Concatenate and emit output to single file. */ 15 | "outDir": "../../../html/host", /* Redirect output structure to the directory. */ 16 | // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ 17 | // "composite": true, /* Enable project compilation */ 18 | // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ 19 | // "removeComments": true, /* Do not emit comments to output. */ 20 | // "noEmit": true, /* Do not emit outputs. */ 21 | // "importHelpers": true, /* Import emit helpers from 'tslib'. */ 22 | // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ 23 | // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ 24 | /* Strict Type-Checking Options */ 25 | "strict": true, /* Enable all strict type-checking options. */ 26 | // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ 27 | // "strictNullChecks": true, /* Enable strict null checks. */ 28 | // "strictFunctionTypes": true, /* Enable strict checking of function types. */ 29 | // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ 30 | // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ 31 | // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ 32 | // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ 33 | /* Additional Checks */ 34 | // "noUnusedLocals": true, /* Report errors on unused locals. */ 35 | // "noUnusedParameters": true, /* Report errors on unused parameters. */ 36 | // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ 37 | // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ 38 | /* Module Resolution Options */ 39 | // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ 40 | // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ 41 | // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ 42 | // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ 43 | // "typeRoots": [], /* List of folders to include type definitions from. */ 44 | // "types": [], /* Type declaration files to be included in compilation. */ 45 | // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ 46 | "esModuleInterop": false /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ 47 | // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ 48 | // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ 49 | /* Source Map Options */ 50 | // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ 51 | // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ 52 | // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ 53 | // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ 54 | /* Experimental Options */ 55 | // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ 56 | // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ 57 | } 58 | } -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Microsoft Corporation. All rights reserved. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE 22 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/README.md: -------------------------------------------------------------------------------- 1 | # Installation 2 | > `npm install --save @types/node` 3 | 4 | # Summary 5 | This package contains type definitions for Node.js (http://nodejs.org/). 6 | 7 | # Details 8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node 9 | 10 | Additional Details 11 | * Last updated: Wed, 11 Sep 2019 05:46:27 GMT 12 | * Dependencies: none 13 | * Global values: Buffer, NodeJS, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, queueMicrotask, require, setImmediate, setInterval, setTimeout 14 | 15 | # Credits 16 | These definitions were written by Microsoft TypeScript , DefinitelyTyped , Alberto Schiabel , Alexander T. , Alvis HT Tang , Andrew Makarov , Benjamin Toueg , Bruno Scheufler , Chigozirim C. , Christian Vaagland Tellnes , David Junger , Deividas Bakanas , Eugene Y. Q. Shen , Flarna , Hannes Magnusson , Hoàng Văn Khải , Huw , Kelvin Jin , Klaus Meinhardt , Lishude , Mariusz Wiktorczyk , Matthieu Sieben , Mohsen Azimi , Nicolas Even , Nicolas Voigt , Parambir Singh , Sebastian Silbermann , Simon Schick , Thomas den Hollander , Wilco Bakker , wwwy3y3 , Zane Hannan AU , Samuel Ainsworth , Kyle Uehlein , Jordi Oliveras Rovira , Thanik Bhongbhibhat , Marcin Kopacz , and Trivikram Kamat . 17 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/assert.d.ts: -------------------------------------------------------------------------------- 1 | declare module "assert" { 2 | function internal(value: any, message?: string | Error): void; 3 | namespace internal { 4 | class AssertionError implements Error { 5 | name: string; 6 | message: string; 7 | actual: any; 8 | expected: any; 9 | operator: string; 10 | generatedMessage: boolean; 11 | code: 'ERR_ASSERTION'; 12 | 13 | constructor(options?: { 14 | message?: string; actual?: any; expected?: any; 15 | operator?: string; stackStartFn?: Function 16 | }); 17 | } 18 | 19 | function fail(message?: string | Error): never; 20 | /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */ 21 | function fail(actual: any, expected: any, message?: string | Error, operator?: string, stackStartFn?: Function): never; 22 | function ok(value: any, message?: string | Error): void; 23 | /** @deprecated since v9.9.0 - use strictEqual() instead. */ 24 | function equal(actual: any, expected: any, message?: string | Error): void; 25 | /** @deprecated since v9.9.0 - use notStrictEqual() instead. */ 26 | function notEqual(actual: any, expected: any, message?: string | Error): void; 27 | /** @deprecated since v9.9.0 - use deepStrictEqual() instead. */ 28 | function deepEqual(actual: any, expected: any, message?: string | Error): void; 29 | /** @deprecated since v9.9.0 - use notDeepStrictEqual() instead. */ 30 | function notDeepEqual(actual: any, expected: any, message?: string | Error): void; 31 | function strictEqual(actual: any, expected: any, message?: string | Error): void; 32 | function notStrictEqual(actual: any, expected: any, message?: string | Error): void; 33 | function deepStrictEqual(actual: any, expected: any, message?: string | Error): void; 34 | function notDeepStrictEqual(actual: any, expected: any, message?: string | Error): void; 35 | 36 | function throws(block: () => any, message?: string | Error): void; 37 | function throws(block: () => any, error: RegExp | Function | Object | Error, message?: string | Error): void; 38 | function doesNotThrow(block: () => any, message?: string | Error): void; 39 | function doesNotThrow(block: () => any, error: RegExp | Function, message?: string | Error): void; 40 | 41 | function ifError(value: any): void; 42 | 43 | function rejects(block: (() => Promise) | Promise, message?: string | Error): Promise; 44 | function rejects(block: (() => Promise) | Promise, error: RegExp | Function | Object | Error, message?: string | Error): Promise; 45 | function doesNotReject(block: (() => Promise) | Promise, message?: string | Error): Promise; 46 | function doesNotReject(block: (() => Promise) | Promise, error: RegExp | Function, message?: string | Error): Promise; 47 | 48 | const strict: typeof internal; 49 | } 50 | 51 | export = internal; 52 | } 53 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/async_hooks.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Async Hooks module: https://nodejs.org/api/async_hooks.html 3 | */ 4 | declare module "async_hooks" { 5 | /** 6 | * Returns the asyncId of the current execution context. 7 | */ 8 | function executionAsyncId(): number; 9 | 10 | /** 11 | * Returns the ID of the resource responsible for calling the callback that is currently being executed. 12 | */ 13 | function triggerAsyncId(): number; 14 | 15 | interface HookCallbacks { 16 | /** 17 | * Called when a class is constructed that has the possibility to emit an asynchronous event. 18 | * @param asyncId a unique ID for the async resource 19 | * @param type the type of the async resource 20 | * @param triggerAsyncId the unique ID of the async resource in whose execution context this async resource was created 21 | * @param resource reference to the resource representing the async operation, needs to be released during destroy 22 | */ 23 | init?(asyncId: number, type: string, triggerAsyncId: number, resource: Object): void; 24 | 25 | /** 26 | * When an asynchronous operation is initiated or completes a callback is called to notify the user. 27 | * The before callback is called just before said callback is executed. 28 | * @param asyncId the unique identifier assigned to the resource about to execute the callback. 29 | */ 30 | before?(asyncId: number): void; 31 | 32 | /** 33 | * Called immediately after the callback specified in before is completed. 34 | * @param asyncId the unique identifier assigned to the resource which has executed the callback. 35 | */ 36 | after?(asyncId: number): void; 37 | 38 | /** 39 | * Called when a promise has resolve() called. This may not be in the same execution id 40 | * as the promise itself. 41 | * @param asyncId the unique id for the promise that was resolve()d. 42 | */ 43 | promiseResolve?(asyncId: number): void; 44 | 45 | /** 46 | * Called after the resource corresponding to asyncId is destroyed 47 | * @param asyncId a unique ID for the async resource 48 | */ 49 | destroy?(asyncId: number): void; 50 | } 51 | 52 | interface AsyncHook { 53 | /** 54 | * Enable the callbacks for a given AsyncHook instance. If no callbacks are provided enabling is a noop. 55 | */ 56 | enable(): this; 57 | 58 | /** 59 | * Disable the callbacks for a given AsyncHook instance from the global pool of AsyncHook callbacks to be executed. Once a hook has been disabled it will not be called again until enabled. 60 | */ 61 | disable(): this; 62 | } 63 | 64 | /** 65 | * Registers functions to be called for different lifetime events of each async operation. 66 | * @param options the callbacks to register 67 | * @return an AsyncHooks instance used for disabling and enabling hooks 68 | */ 69 | function createHook(options: HookCallbacks): AsyncHook; 70 | 71 | interface AsyncResourceOptions { 72 | /** 73 | * The ID of the execution context that created this async event. 74 | * Default: `executionAsyncId()` 75 | */ 76 | triggerAsyncId?: number; 77 | 78 | /** 79 | * Disables automatic `emitDestroy` when the object is garbage collected. 80 | * This usually does not need to be set (even if `emitDestroy` is called 81 | * manually), unless the resource's `asyncId` is retrieved and the 82 | * sensitive API's `emitDestroy` is called with it. 83 | * Default: `false` 84 | */ 85 | requireManualDestroy?: boolean; 86 | } 87 | 88 | /** 89 | * The class AsyncResource was designed to be extended by the embedder's async resources. 90 | * Using this users can easily trigger the lifetime events of their own resources. 91 | */ 92 | class AsyncResource { 93 | /** 94 | * AsyncResource() is meant to be extended. Instantiating a 95 | * new AsyncResource() also triggers init. If triggerAsyncId is omitted then 96 | * async_hook.executionAsyncId() is used. 97 | * @param type The type of async event. 98 | * @param triggerAsyncId The ID of the execution context that created 99 | * this async event (default: `executionAsyncId()`), or an 100 | * AsyncResourceOptions object (since 9.3) 101 | */ 102 | constructor(type: string, triggerAsyncId?: number|AsyncResourceOptions); 103 | 104 | /** 105 | * Call the provided function with the provided arguments in the 106 | * execution context of the async resource. This will establish the 107 | * context, trigger the AsyncHooks before callbacks, call the function, 108 | * trigger the AsyncHooks after callbacks, and then restore the original 109 | * execution context. 110 | * @param fn The function to call in the execution context of this 111 | * async resource. 112 | * @param thisArg The receiver to be used for the function call. 113 | * @param args Optional arguments to pass to the function. 114 | */ 115 | runInAsyncScope(fn: (this: This, ...args: any[]) => Result, thisArg?: This, ...args: any[]): Result; 116 | 117 | /** 118 | * Call AsyncHooks destroy callbacks. 119 | */ 120 | emitDestroy(): void; 121 | 122 | /** 123 | * @return the unique ID assigned to this AsyncResource instance. 124 | */ 125 | asyncId(): number; 126 | 127 | /** 128 | * @return the trigger ID for this AsyncResource instance. 129 | */ 130 | triggerAsyncId(): number; 131 | } 132 | } 133 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/base.d.ts: -------------------------------------------------------------------------------- 1 | // base definnitions for all NodeJS modules that are not specific to any version of TypeScript 2 | /// 3 | /// 4 | /// 5 | /// 6 | /// 7 | /// 8 | /// 9 | /// 10 | /// 11 | /// 12 | /// 13 | /// 14 | /// 15 | /// 16 | /// 17 | /// 18 | /// 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// 26 | /// 27 | /// 28 | /// 29 | /// 30 | /// 31 | /// 32 | /// 33 | /// 34 | /// 35 | /// 36 | /// 37 | /// 38 | /// 39 | /// 40 | /// 41 | /// 42 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/buffer.d.ts: -------------------------------------------------------------------------------- 1 | declare module "buffer" { 2 | export const INSPECT_MAX_BYTES: number; 3 | export const kMaxLength: number; 4 | export const kStringMaxLength: number; 5 | export const constants: { 6 | MAX_LENGTH: number; 7 | MAX_STRING_LENGTH: number; 8 | }; 9 | const BuffType: typeof Buffer; 10 | 11 | export type TranscodeEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "latin1" | "binary"; 12 | 13 | export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer; 14 | 15 | export const SlowBuffer: { 16 | /** @deprecated since v6.0.0, use Buffer.allocUnsafeSlow() */ 17 | new(size: number): Buffer; 18 | prototype: Buffer; 19 | }; 20 | 21 | export { BuffType as Buffer }; 22 | } 23 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/console.d.ts: -------------------------------------------------------------------------------- 1 | declare module "console" { 2 | export = console; 3 | } 4 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/dgram.d.ts: -------------------------------------------------------------------------------- 1 | declare module "dgram" { 2 | import { AddressInfo } from "net"; 3 | import * as dns from "dns"; 4 | import * as events from "events"; 5 | 6 | interface RemoteInfo { 7 | address: string; 8 | family: 'IPv4' | 'IPv6'; 9 | port: number; 10 | size: number; 11 | } 12 | 13 | interface BindOptions { 14 | port: number; 15 | address?: string; 16 | exclusive?: boolean; 17 | } 18 | 19 | type SocketType = "udp4" | "udp6"; 20 | 21 | interface SocketOptions { 22 | type: SocketType; 23 | reuseAddr?: boolean; 24 | /** 25 | * @default false 26 | */ 27 | ipv6Only?: boolean; 28 | recvBufferSize?: number; 29 | sendBufferSize?: number; 30 | lookup?: (hostname: string, options: dns.LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void) => void; 31 | } 32 | 33 | function createSocket(type: SocketType, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket; 34 | function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket; 35 | 36 | class Socket extends events.EventEmitter { 37 | send(msg: string | Uint8Array | any[], port: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void; 38 | send(msg: string | Uint8Array, offset: number, length: number, port: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void; 39 | bind(port?: number, address?: string, callback?: () => void): void; 40 | bind(port?: number, callback?: () => void): void; 41 | bind(callback?: () => void): void; 42 | bind(options: BindOptions, callback?: () => void): void; 43 | close(callback?: () => void): void; 44 | address(): AddressInfo | string; 45 | setBroadcast(flag: boolean): void; 46 | setTTL(ttl: number): void; 47 | setMulticastTTL(ttl: number): void; 48 | setMulticastInterface(multicastInterface: string): void; 49 | setMulticastLoopback(flag: boolean): void; 50 | addMembership(multicastAddress: string, multicastInterface?: string): void; 51 | dropMembership(multicastAddress: string, multicastInterface?: string): void; 52 | ref(): this; 53 | unref(): this; 54 | setRecvBufferSize(size: number): void; 55 | setSendBufferSize(size: number): void; 56 | getRecvBufferSize(): number; 57 | getSendBufferSize(): number; 58 | 59 | /** 60 | * events.EventEmitter 61 | * 1. close 62 | * 2. error 63 | * 3. listening 64 | * 4. message 65 | */ 66 | addListener(event: string, listener: (...args: any[]) => void): this; 67 | addListener(event: "close", listener: () => void): this; 68 | addListener(event: "error", listener: (err: Error) => void): this; 69 | addListener(event: "listening", listener: () => void): this; 70 | addListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; 71 | 72 | emit(event: string | symbol, ...args: any[]): boolean; 73 | emit(event: "close"): boolean; 74 | emit(event: "error", err: Error): boolean; 75 | emit(event: "listening"): boolean; 76 | emit(event: "message", msg: Buffer, rinfo: RemoteInfo): boolean; 77 | 78 | on(event: string, listener: (...args: any[]) => void): this; 79 | on(event: "close", listener: () => void): this; 80 | on(event: "error", listener: (err: Error) => void): this; 81 | on(event: "listening", listener: () => void): this; 82 | on(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; 83 | 84 | once(event: string, listener: (...args: any[]) => void): this; 85 | once(event: "close", listener: () => void): this; 86 | once(event: "error", listener: (err: Error) => void): this; 87 | once(event: "listening", listener: () => void): this; 88 | once(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; 89 | 90 | prependListener(event: string, listener: (...args: any[]) => void): this; 91 | prependListener(event: "close", listener: () => void): this; 92 | prependListener(event: "error", listener: (err: Error) => void): this; 93 | prependListener(event: "listening", listener: () => void): this; 94 | prependListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; 95 | 96 | prependOnceListener(event: string, listener: (...args: any[]) => void): this; 97 | prependOnceListener(event: "close", listener: () => void): this; 98 | prependOnceListener(event: "error", listener: (err: Error) => void): this; 99 | prependOnceListener(event: "listening", listener: () => void): this; 100 | prependOnceListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/domain.d.ts: -------------------------------------------------------------------------------- 1 | declare module "domain" { 2 | import * as events from "events"; 3 | 4 | class Domain extends events.EventEmitter implements NodeJS.Domain { 5 | run(fn: (...args: any[]) => T, ...args: any[]): T; 6 | add(emitter: events.EventEmitter | NodeJS.Timer): void; 7 | remove(emitter: events.EventEmitter | NodeJS.Timer): void; 8 | bind(cb: T): T; 9 | intercept(cb: T): T; 10 | members: Array; 11 | enter(): void; 12 | exit(): void; 13 | } 14 | 15 | function create(): Domain; 16 | } 17 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/events.d.ts: -------------------------------------------------------------------------------- 1 | declare module "events" { 2 | class internal extends NodeJS.EventEmitter { } 3 | 4 | namespace internal { 5 | function once(emitter: EventEmitter, event: string | symbol): Promise; 6 | class EventEmitter extends internal { 7 | /** @deprecated since v4.0.0 */ 8 | static listenerCount(emitter: EventEmitter, event: string | symbol): number; 9 | static defaultMaxListeners: number; 10 | 11 | addListener(event: string | symbol, listener: (...args: any[]) => void): this; 12 | on(event: string | symbol, listener: (...args: any[]) => void): this; 13 | once(event: string | symbol, listener: (...args: any[]) => void): this; 14 | prependListener(event: string | symbol, listener: (...args: any[]) => void): this; 15 | prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; 16 | removeListener(event: string | symbol, listener: (...args: any[]) => void): this; 17 | off(event: string | symbol, listener: (...args: any[]) => void): this; 18 | removeAllListeners(event?: string | symbol): this; 19 | setMaxListeners(n: number): this; 20 | getMaxListeners(): number; 21 | listeners(event: string | symbol): Function[]; 22 | rawListeners(event: string | symbol): Function[]; 23 | emit(event: string | symbol, ...args: any[]): boolean; 24 | eventNames(): Array; 25 | listenerCount(type: string | symbol): number; 26 | } 27 | } 28 | 29 | export = internal; 30 | } 31 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/https.d.ts: -------------------------------------------------------------------------------- 1 | declare module "https" { 2 | import * as tls from "tls"; 3 | import * as events from "events"; 4 | import * as http from "http"; 5 | import { URL } from "url"; 6 | 7 | type ServerOptions = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions; 8 | 9 | type RequestOptions = http.RequestOptions & tls.SecureContextOptions & { 10 | rejectUnauthorized?: boolean; // Defaults to true 11 | servername?: string; // SNI TLS Extension 12 | }; 13 | 14 | interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions { 15 | rejectUnauthorized?: boolean; 16 | maxCachedSessions?: number; 17 | } 18 | 19 | class Agent extends http.Agent { 20 | constructor(options?: AgentOptions); 21 | options: AgentOptions; 22 | } 23 | 24 | class Server extends tls.Server { 25 | constructor(requestListener?: http.RequestListener); 26 | constructor(options: ServerOptions, requestListener?: http.RequestListener); 27 | 28 | setTimeout(callback: () => void): this; 29 | setTimeout(msecs?: number, callback?: () => void): this; 30 | /** 31 | * Limits maximum incoming headers count. If set to 0, no limit will be applied. 32 | * @default 2000 33 | * {@link https://nodejs.org/api/http.html#http_server_maxheaderscount} 34 | */ 35 | maxHeadersCount: number | null; 36 | timeout: number; 37 | /** 38 | * Limit the amount of time the parser will wait to receive the complete HTTP headers. 39 | * @default 40000 40 | * {@link https://nodejs.org/api/http.html#http_server_headerstimeout} 41 | */ 42 | headersTimeout: number; 43 | keepAliveTimeout: number; 44 | } 45 | 46 | function createServer(requestListener?: http.RequestListener): Server; 47 | function createServer(options: ServerOptions, requestListener?: http.RequestListener): Server; 48 | function request(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; 49 | function request(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; 50 | function get(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; 51 | function get(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; 52 | let globalAgent: Agent; 53 | } 54 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/index.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for non-npm package Node.js 12.7 2 | // Project: http://nodejs.org/ 3 | // Definitions by: Microsoft TypeScript 4 | // DefinitelyTyped 5 | // Alberto Schiabel 6 | // Alexander T. 7 | // Alvis HT Tang 8 | // Andrew Makarov 9 | // Benjamin Toueg 10 | // Bruno Scheufler 11 | // Chigozirim C. 12 | // Christian Vaagland Tellnes 13 | // David Junger 14 | // Deividas Bakanas 15 | // Eugene Y. Q. Shen 16 | // Flarna 17 | // Hannes Magnusson 18 | // Hoàng Văn Khải 19 | // Huw 20 | // Kelvin Jin 21 | // Klaus Meinhardt 22 | // Lishude 23 | // Mariusz Wiktorczyk 24 | // Matthieu Sieben 25 | // Mohsen Azimi 26 | // Nicolas Even 27 | // Nicolas Voigt 28 | // Parambir Singh 29 | // Sebastian Silbermann 30 | // Simon Schick 31 | // Thomas den Hollander 32 | // Wilco Bakker 33 | // wwwy3y3 34 | // Zane Hannan AU 35 | // Samuel Ainsworth 36 | // Kyle Uehlein 37 | // Jordi Oliveras Rovira 38 | // Thanik Bhongbhibhat 39 | // Marcin Kopacz 40 | // Trivikram Kamat 41 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped 42 | 43 | // NOTE: These definitions support NodeJS and TypeScript 3.2. 44 | 45 | // NOTE: TypeScript version-specific augmentations can be found in the following paths: 46 | // - ~/base.d.ts - Shared definitions common to all TypeScript versions 47 | // - ~/index.d.ts - Definitions specific to TypeScript 2.1 48 | // - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2 49 | 50 | // NOTE: Augmentations for TypeScript 3.2 and later should use individual files for overrides 51 | // within the respective ~/ts3.2 (or later) folder. However, this is disallowed for versions 52 | // prior to TypeScript 3.2, so the older definitions will be found here. 53 | 54 | // Base definitions for all NodeJS modules that are not specific to any version of TypeScript: 55 | /// 56 | 57 | // TypeScript 2.1-specific augmentations: 58 | 59 | // Forward-declarations for needed types from es2015 and later (in case users are using `--lib es5`) 60 | // Empty interfaces are used here which merge fine with the real declarations in the lib XXX files 61 | // just to ensure the names are known and node typings can be sued without importing these libs. 62 | // if someone really needs these types the libs need to be added via --lib or in tsconfig.json 63 | interface MapConstructor { } 64 | interface WeakMapConstructor { } 65 | interface SetConstructor { } 66 | interface WeakSetConstructor { } 67 | interface Set {} 68 | interface Map {} 69 | interface ReadonlySet {} 70 | interface IteratorResult { } 71 | interface Iterable { } 72 | interface AsyncIterable { } 73 | interface Iterator { 74 | next(value?: any): IteratorResult; 75 | } 76 | interface IterableIterator { } 77 | interface AsyncIterableIterator {} 78 | interface SymbolConstructor { 79 | readonly iterator: symbol; 80 | readonly asyncIterator: symbol; 81 | } 82 | declare var Symbol: SymbolConstructor; 83 | // even this is just a forward declaration some properties are added otherwise 84 | // it would be allowed to pass anything to e.g. Buffer.from() 85 | interface SharedArrayBuffer { 86 | readonly byteLength: number; 87 | slice(begin?: number, end?: number): SharedArrayBuffer; 88 | } 89 | 90 | declare module "util" { 91 | namespace inspect { 92 | const custom: symbol; 93 | } 94 | namespace promisify { 95 | const custom: symbol; 96 | } 97 | namespace types { 98 | function isBigInt64Array(value: any): boolean; 99 | function isBigUint64Array(value: any): boolean; 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/module.d.ts: -------------------------------------------------------------------------------- 1 | declare module "module" { 2 | export = NodeJS.Module; 3 | } 4 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/os.d.ts: -------------------------------------------------------------------------------- 1 | declare module "os" { 2 | interface CpuInfo { 3 | model: string; 4 | speed: number; 5 | times: { 6 | user: number; 7 | nice: number; 8 | sys: number; 9 | idle: number; 10 | irq: number; 11 | }; 12 | } 13 | 14 | interface NetworkInterfaceBase { 15 | address: string; 16 | netmask: string; 17 | mac: string; 18 | internal: boolean; 19 | cidr: string | null; 20 | } 21 | 22 | interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase { 23 | family: "IPv4"; 24 | } 25 | 26 | interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase { 27 | family: "IPv6"; 28 | scopeid: number; 29 | } 30 | 31 | interface UserInfo { 32 | username: T; 33 | uid: number; 34 | gid: number; 35 | shell: T; 36 | homedir: T; 37 | } 38 | 39 | type NetworkInterfaceInfo = NetworkInterfaceInfoIPv4 | NetworkInterfaceInfoIPv6; 40 | 41 | function hostname(): string; 42 | function loadavg(): number[]; 43 | function uptime(): number; 44 | function freemem(): number; 45 | function totalmem(): number; 46 | function cpus(): CpuInfo[]; 47 | function type(): string; 48 | function release(): string; 49 | function networkInterfaces(): { [index: string]: NetworkInterfaceInfo[] }; 50 | function homedir(): string; 51 | function userInfo(options: { encoding: 'buffer' }): UserInfo; 52 | function userInfo(options?: { encoding: string }): UserInfo; 53 | const constants: { 54 | UV_UDP_REUSEADDR: number; 55 | signals: { 56 | SIGHUP: number; 57 | SIGINT: number; 58 | SIGQUIT: number; 59 | SIGILL: number; 60 | SIGTRAP: number; 61 | SIGABRT: number; 62 | SIGIOT: number; 63 | SIGBUS: number; 64 | SIGFPE: number; 65 | SIGKILL: number; 66 | SIGUSR1: number; 67 | SIGSEGV: number; 68 | SIGUSR2: number; 69 | SIGPIPE: number; 70 | SIGALRM: number; 71 | SIGTERM: number; 72 | SIGCHLD: number; 73 | SIGSTKFLT: number; 74 | SIGCONT: number; 75 | SIGSTOP: number; 76 | SIGTSTP: number; 77 | SIGTTIN: number; 78 | SIGTTOU: number; 79 | SIGURG: number; 80 | SIGXCPU: number; 81 | SIGXFSZ: number; 82 | SIGVTALRM: number; 83 | SIGPROF: number; 84 | SIGWINCH: number; 85 | SIGIO: number; 86 | SIGPOLL: number; 87 | SIGPWR: number; 88 | SIGSYS: number; 89 | SIGUNUSED: number; 90 | }; 91 | errno: { 92 | E2BIG: number; 93 | EACCES: number; 94 | EADDRINUSE: number; 95 | EADDRNOTAVAIL: number; 96 | EAFNOSUPPORT: number; 97 | EAGAIN: number; 98 | EALREADY: number; 99 | EBADF: number; 100 | EBADMSG: number; 101 | EBUSY: number; 102 | ECANCELED: number; 103 | ECHILD: number; 104 | ECONNABORTED: number; 105 | ECONNREFUSED: number; 106 | ECONNRESET: number; 107 | EDEADLK: number; 108 | EDESTADDRREQ: number; 109 | EDOM: number; 110 | EDQUOT: number; 111 | EEXIST: number; 112 | EFAULT: number; 113 | EFBIG: number; 114 | EHOSTUNREACH: number; 115 | EIDRM: number; 116 | EILSEQ: number; 117 | EINPROGRESS: number; 118 | EINTR: number; 119 | EINVAL: number; 120 | EIO: number; 121 | EISCONN: number; 122 | EISDIR: number; 123 | ELOOP: number; 124 | EMFILE: number; 125 | EMLINK: number; 126 | EMSGSIZE: number; 127 | EMULTIHOP: number; 128 | ENAMETOOLONG: number; 129 | ENETDOWN: number; 130 | ENETRESET: number; 131 | ENETUNREACH: number; 132 | ENFILE: number; 133 | ENOBUFS: number; 134 | ENODATA: number; 135 | ENODEV: number; 136 | ENOENT: number; 137 | ENOEXEC: number; 138 | ENOLCK: number; 139 | ENOLINK: number; 140 | ENOMEM: number; 141 | ENOMSG: number; 142 | ENOPROTOOPT: number; 143 | ENOSPC: number; 144 | ENOSR: number; 145 | ENOSTR: number; 146 | ENOSYS: number; 147 | ENOTCONN: number; 148 | ENOTDIR: number; 149 | ENOTEMPTY: number; 150 | ENOTSOCK: number; 151 | ENOTSUP: number; 152 | ENOTTY: number; 153 | ENXIO: number; 154 | EOPNOTSUPP: number; 155 | EOVERFLOW: number; 156 | EPERM: number; 157 | EPIPE: number; 158 | EPROTO: number; 159 | EPROTONOSUPPORT: number; 160 | EPROTOTYPE: number; 161 | ERANGE: number; 162 | EROFS: number; 163 | ESPIPE: number; 164 | ESRCH: number; 165 | ESTALE: number; 166 | ETIME: number; 167 | ETIMEDOUT: number; 168 | ETXTBSY: number; 169 | EWOULDBLOCK: number; 170 | EXDEV: number; 171 | }; 172 | priority: { 173 | PRIORITY_LOW: number; 174 | PRIORITY_BELOW_NORMAL: number; 175 | PRIORITY_NORMAL: number; 176 | PRIORITY_ABOVE_NORMAL: number; 177 | PRIORITY_HIGH: number; 178 | PRIORITY_HIGHEST: number; 179 | } 180 | }; 181 | function arch(): string; 182 | function platform(): NodeJS.Platform; 183 | function tmpdir(): string; 184 | const EOL: string; 185 | function endianness(): "BE" | "LE"; 186 | /** 187 | * Gets the priority of a process. 188 | * Defaults to current process. 189 | */ 190 | function getPriority(pid?: number): number; 191 | /** 192 | * Sets the priority of the current process. 193 | * @param priority Must be in range of -20 to 19 194 | */ 195 | function setPriority(priority: number): void; 196 | /** 197 | * Sets the priority of the process specified process. 198 | * @param priority Must be in range of -20 to 19 199 | */ 200 | function setPriority(pid: number, priority: number): void; 201 | } 202 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "_from": "@types/node", 3 | "_id": "@types/node@12.7.5", 4 | "_inBundle": false, 5 | "_integrity": "sha512-9fq4jZVhPNW8r+UYKnxF1e2HkDWOWKM5bC2/7c9wPV835I0aOrVbS/Hw/pWPk2uKrNXQqg9Z959Kz+IYDd5p3w==", 6 | "_location": "/@types/node", 7 | "_phantomChildren": {}, 8 | "_requested": { 9 | "type": "tag", 10 | "registry": true, 11 | "raw": "@types/node", 12 | "name": "@types/node", 13 | "escapedName": "@types%2fnode", 14 | "scope": "@types", 15 | "rawSpec": "", 16 | "saveSpec": null, 17 | "fetchSpec": "latest" 18 | }, 19 | "_requiredBy": [ 20 | "#USER", 21 | "/" 22 | ], 23 | "_resolved": "https://registry.npmjs.org/@types/node/-/node-12.7.5.tgz", 24 | "_shasum": "e19436e7f8e9b4601005d73673b6dc4784ffcc2f", 25 | "_spec": "@types/node", 26 | "_where": "D:\\git\\webwindow.netcore\\webwindow\\webhost", 27 | "bugs": { 28 | "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" 29 | }, 30 | "bundleDependencies": false, 31 | "contributors": [ 32 | { 33 | "name": "Microsoft TypeScript", 34 | "url": "https://github.com/Microsoft" 35 | }, 36 | { 37 | "name": "DefinitelyTyped", 38 | "url": "https://github.com/DefinitelyTyped" 39 | }, 40 | { 41 | "name": "Alberto Schiabel", 42 | "url": "https://github.com/jkomyno" 43 | }, 44 | { 45 | "name": "Alexander T.", 46 | "url": "https://github.com/a-tarasyuk" 47 | }, 48 | { 49 | "name": "Alvis HT Tang", 50 | "url": "https://github.com/alvis" 51 | }, 52 | { 53 | "name": "Andrew Makarov", 54 | "url": "https://github.com/r3nya" 55 | }, 56 | { 57 | "name": "Benjamin Toueg", 58 | "url": "https://github.com/btoueg" 59 | }, 60 | { 61 | "name": "Bruno Scheufler", 62 | "url": "https://github.com/brunoscheufler" 63 | }, 64 | { 65 | "name": "Chigozirim C.", 66 | "url": "https://github.com/smac89" 67 | }, 68 | { 69 | "name": "Christian Vaagland Tellnes", 70 | "url": "https://github.com/tellnes" 71 | }, 72 | { 73 | "name": "David Junger", 74 | "url": "https://github.com/touffy" 75 | }, 76 | { 77 | "name": "Deividas Bakanas", 78 | "url": "https://github.com/DeividasBakanas" 79 | }, 80 | { 81 | "name": "Eugene Y. Q. Shen", 82 | "url": "https://github.com/eyqs" 83 | }, 84 | { 85 | "name": "Flarna", 86 | "url": "https://github.com/Flarna" 87 | }, 88 | { 89 | "name": "Hannes Magnusson", 90 | "url": "https://github.com/Hannes-Magnusson-CK" 91 | }, 92 | { 93 | "name": "Hoàng Văn Khải", 94 | "url": "https://github.com/KSXGitHub" 95 | }, 96 | { 97 | "name": "Huw", 98 | "url": "https://github.com/hoo29" 99 | }, 100 | { 101 | "name": "Kelvin Jin", 102 | "url": "https://github.com/kjin" 103 | }, 104 | { 105 | "name": "Klaus Meinhardt", 106 | "url": "https://github.com/ajafff" 107 | }, 108 | { 109 | "name": "Lishude", 110 | "url": "https://github.com/islishude" 111 | }, 112 | { 113 | "name": "Mariusz Wiktorczyk", 114 | "url": "https://github.com/mwiktorczyk" 115 | }, 116 | { 117 | "name": "Matthieu Sieben", 118 | "url": "https://github.com/matthieusieben" 119 | }, 120 | { 121 | "name": "Mohsen Azimi", 122 | "url": "https://github.com/mohsen1" 123 | }, 124 | { 125 | "name": "Nicolas Even", 126 | "url": "https://github.com/n-e" 127 | }, 128 | { 129 | "name": "Nicolas Voigt", 130 | "url": "https://github.com/octo-sniffle" 131 | }, 132 | { 133 | "name": "Parambir Singh", 134 | "url": "https://github.com/parambirs" 135 | }, 136 | { 137 | "name": "Sebastian Silbermann", 138 | "url": "https://github.com/eps1lon" 139 | }, 140 | { 141 | "name": "Simon Schick", 142 | "url": "https://github.com/SimonSchick" 143 | }, 144 | { 145 | "name": "Thomas den Hollander", 146 | "url": "https://github.com/ThomasdenH" 147 | }, 148 | { 149 | "name": "Wilco Bakker", 150 | "url": "https://github.com/WilcoBakker" 151 | }, 152 | { 153 | "name": "wwwy3y3", 154 | "url": "https://github.com/wwwy3y3" 155 | }, 156 | { 157 | "name": "Zane Hannan AU", 158 | "url": "https://github.com/ZaneHannanAU" 159 | }, 160 | { 161 | "name": "Samuel Ainsworth", 162 | "url": "https://github.com/samuela" 163 | }, 164 | { 165 | "name": "Kyle Uehlein", 166 | "url": "https://github.com/kuehlein" 167 | }, 168 | { 169 | "name": "Jordi Oliveras Rovira", 170 | "url": "https://github.com/j-oliveras" 171 | }, 172 | { 173 | "name": "Thanik Bhongbhibhat", 174 | "url": "https://github.com/bhongy" 175 | }, 176 | { 177 | "name": "Marcin Kopacz", 178 | "url": "https://github.com/chyzwar" 179 | }, 180 | { 181 | "name": "Trivikram Kamat", 182 | "url": "https://github.com/trivikr" 183 | } 184 | ], 185 | "dependencies": {}, 186 | "deprecated": false, 187 | "description": "TypeScript definitions for Node.js", 188 | "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped#readme", 189 | "license": "MIT", 190 | "main": "", 191 | "name": "@types/node", 192 | "repository": { 193 | "type": "git", 194 | "url": "git+https://github.com/DefinitelyTyped/DefinitelyTyped.git", 195 | "directory": "types/node" 196 | }, 197 | "scripts": {}, 198 | "typeScriptVersion": "2.0", 199 | "types": "index", 200 | "typesPublisherContentHash": "f0d8295c97f3f4bafe268435e951340e846630f23bf920def70d6d0d454de5f3", 201 | "typesVersions": { 202 | ">=3.2.0-0": { 203 | "*": [ 204 | "ts3.2/*" 205 | ] 206 | } 207 | }, 208 | "version": "12.7.5" 209 | } 210 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/path.d.ts: -------------------------------------------------------------------------------- 1 | declare module "path" { 2 | /** 3 | * A parsed path object generated by path.parse() or consumed by path.format(). 4 | */ 5 | interface ParsedPath { 6 | /** 7 | * The root of the path such as '/' or 'c:\' 8 | */ 9 | root: string; 10 | /** 11 | * The full directory path such as '/home/user/dir' or 'c:\path\dir' 12 | */ 13 | dir: string; 14 | /** 15 | * The file name including extension (if any) such as 'index.html' 16 | */ 17 | base: string; 18 | /** 19 | * The file extension (if any) such as '.html' 20 | */ 21 | ext: string; 22 | /** 23 | * The file name without extension (if any) such as 'index' 24 | */ 25 | name: string; 26 | } 27 | interface FormatInputPathObject { 28 | /** 29 | * The root of the path such as '/' or 'c:\' 30 | */ 31 | root?: string; 32 | /** 33 | * The full directory path such as '/home/user/dir' or 'c:\path\dir' 34 | */ 35 | dir?: string; 36 | /** 37 | * The file name including extension (if any) such as 'index.html' 38 | */ 39 | base?: string; 40 | /** 41 | * The file extension (if any) such as '.html' 42 | */ 43 | ext?: string; 44 | /** 45 | * The file name without extension (if any) such as 'index' 46 | */ 47 | name?: string; 48 | } 49 | 50 | /** 51 | * Normalize a string path, reducing '..' and '.' parts. 52 | * When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used. 53 | * 54 | * @param p string path to normalize. 55 | */ 56 | function normalize(p: string): string; 57 | /** 58 | * Join all arguments together and normalize the resulting path. 59 | * Arguments must be strings. In v0.8, non-string arguments were silently ignored. In v0.10 and up, an exception is thrown. 60 | * 61 | * @param paths paths to join. 62 | */ 63 | function join(...paths: string[]): string; 64 | /** 65 | * The right-most parameter is considered {to}. Other parameters are considered an array of {from}. 66 | * 67 | * Starting from leftmost {from} parameter, resolves {to} to an absolute path. 68 | * 69 | * If {to} isn't already absolute, {from} arguments are prepended in right to left order, 70 | * until an absolute path is found. If after using all {from} paths still no absolute path is found, 71 | * the current working directory is used as well. The resulting path is normalized, 72 | * and trailing slashes are removed unless the path gets resolved to the root directory. 73 | * 74 | * @param pathSegments string paths to join. Non-string arguments are ignored. 75 | */ 76 | function resolve(...pathSegments: string[]): string; 77 | /** 78 | * Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory. 79 | * 80 | * @param path path to test. 81 | */ 82 | function isAbsolute(path: string): boolean; 83 | /** 84 | * Solve the relative path from {from} to {to}. 85 | * At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve. 86 | */ 87 | function relative(from: string, to: string): string; 88 | /** 89 | * Return the directory name of a path. Similar to the Unix dirname command. 90 | * 91 | * @param p the path to evaluate. 92 | */ 93 | function dirname(p: string): string; 94 | /** 95 | * Return the last portion of a path. Similar to the Unix basename command. 96 | * Often used to extract the file name from a fully qualified path. 97 | * 98 | * @param p the path to evaluate. 99 | * @param ext optionally, an extension to remove from the result. 100 | */ 101 | function basename(p: string, ext?: string): string; 102 | /** 103 | * Return the extension of the path, from the last '.' to end of string in the last portion of the path. 104 | * If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string 105 | * 106 | * @param p the path to evaluate. 107 | */ 108 | function extname(p: string): string; 109 | /** 110 | * The platform-specific file separator. '\\' or '/'. 111 | */ 112 | const sep: '\\' | '/'; 113 | /** 114 | * The platform-specific file delimiter. ';' or ':'. 115 | */ 116 | const delimiter: ';' | ':'; 117 | /** 118 | * Returns an object from a path string - the opposite of format(). 119 | * 120 | * @param pathString path to evaluate. 121 | */ 122 | function parse(pathString: string): ParsedPath; 123 | /** 124 | * Returns a path string from an object - the opposite of parse(). 125 | * 126 | * @param pathString path to evaluate. 127 | */ 128 | function format(pathObject: FormatInputPathObject): string; 129 | 130 | namespace posix { 131 | function normalize(p: string): string; 132 | function join(...paths: string[]): string; 133 | function resolve(...pathSegments: string[]): string; 134 | function isAbsolute(p: string): boolean; 135 | function relative(from: string, to: string): string; 136 | function dirname(p: string): string; 137 | function basename(p: string, ext?: string): string; 138 | function extname(p: string): string; 139 | const sep: string; 140 | const delimiter: string; 141 | function parse(p: string): ParsedPath; 142 | function format(pP: FormatInputPathObject): string; 143 | } 144 | 145 | namespace win32 { 146 | function normalize(p: string): string; 147 | function join(...paths: string[]): string; 148 | function resolve(...pathSegments: string[]): string; 149 | function isAbsolute(p: string): boolean; 150 | function relative(from: string, to: string): string; 151 | function dirname(p: string): string; 152 | function basename(p: string, ext?: string): string; 153 | function extname(p: string): string; 154 | const sep: string; 155 | const delimiter: string; 156 | function parse(p: string): ParsedPath; 157 | function format(pP: FormatInputPathObject): string; 158 | } 159 | } 160 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/process.d.ts: -------------------------------------------------------------------------------- 1 | declare module "process" { 2 | export = process; 3 | } 4 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/punycode.d.ts: -------------------------------------------------------------------------------- 1 | declare module "punycode" { 2 | function decode(string: string): string; 3 | function encode(string: string): string; 4 | function toUnicode(domain: string): string; 5 | function toASCII(domain: string): string; 6 | const ucs2: ucs2; 7 | interface ucs2 { 8 | decode(string: string): number[]; 9 | encode(codePoints: number[]): string; 10 | } 11 | const version: string; 12 | } 13 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/querystring.d.ts: -------------------------------------------------------------------------------- 1 | declare module "querystring" { 2 | interface StringifyOptions { 3 | encodeURIComponent?: (str: string) => string; 4 | } 5 | 6 | interface ParseOptions { 7 | maxKeys?: number; 8 | decodeURIComponent?: (str: string) => string; 9 | } 10 | 11 | interface ParsedUrlQuery { [key: string]: string | string[]; } 12 | 13 | interface ParsedUrlQueryInput { 14 | [key: string]: 15 | // The value type here is a "poor man's `unknown`". When these types support TypeScript 16 | // 3.0+, we can replace this with `unknown`. 17 | {} | null | undefined; 18 | } 19 | 20 | function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string; 21 | function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery; 22 | /** 23 | * The querystring.encode() function is an alias for querystring.stringify(). 24 | */ 25 | const encode: typeof stringify; 26 | /** 27 | * The querystring.decode() function is an alias for querystring.parse(). 28 | */ 29 | const decode: typeof parse; 30 | function escape(str: string): string; 31 | function unescape(str: string): string; 32 | } 33 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/readline.d.ts: -------------------------------------------------------------------------------- 1 | declare module "readline" { 2 | import * as events from "events"; 3 | import * as stream from "stream"; 4 | 5 | interface Key { 6 | sequence?: string; 7 | name?: string; 8 | ctrl?: boolean; 9 | meta?: boolean; 10 | shift?: boolean; 11 | } 12 | 13 | class Interface extends events.EventEmitter { 14 | readonly terminal: boolean; 15 | 16 | /** 17 | * NOTE: According to the documentation: 18 | * 19 | * > Instances of the `readline.Interface` class are constructed using the 20 | * > `readline.createInterface()` method. 21 | * 22 | * @see https://nodejs.org/dist/latest-v10.x/docs/api/readline.html#readline_class_interface 23 | */ 24 | protected constructor(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean); 25 | /** 26 | * NOTE: According to the documentation: 27 | * 28 | * > Instances of the `readline.Interface` class are constructed using the 29 | * > `readline.createInterface()` method. 30 | * 31 | * @see https://nodejs.org/dist/latest-v10.x/docs/api/readline.html#readline_class_interface 32 | */ 33 | protected constructor(options: ReadLineOptions); 34 | 35 | setPrompt(prompt: string): void; 36 | prompt(preserveCursor?: boolean): void; 37 | question(query: string, callback: (answer: string) => void): void; 38 | pause(): this; 39 | resume(): this; 40 | close(): void; 41 | write(data: string | Buffer, key?: Key): void; 42 | 43 | /** 44 | * events.EventEmitter 45 | * 1. close 46 | * 2. line 47 | * 3. pause 48 | * 4. resume 49 | * 5. SIGCONT 50 | * 6. SIGINT 51 | * 7. SIGTSTP 52 | */ 53 | 54 | addListener(event: string, listener: (...args: any[]) => void): this; 55 | addListener(event: "close", listener: () => void): this; 56 | addListener(event: "line", listener: (input: string) => void): this; 57 | addListener(event: "pause", listener: () => void): this; 58 | addListener(event: "resume", listener: () => void): this; 59 | addListener(event: "SIGCONT", listener: () => void): this; 60 | addListener(event: "SIGINT", listener: () => void): this; 61 | addListener(event: "SIGTSTP", listener: () => void): this; 62 | 63 | emit(event: string | symbol, ...args: any[]): boolean; 64 | emit(event: "close"): boolean; 65 | emit(event: "line", input: string): boolean; 66 | emit(event: "pause"): boolean; 67 | emit(event: "resume"): boolean; 68 | emit(event: "SIGCONT"): boolean; 69 | emit(event: "SIGINT"): boolean; 70 | emit(event: "SIGTSTP"): boolean; 71 | 72 | on(event: string, listener: (...args: any[]) => void): this; 73 | on(event: "close", listener: () => void): this; 74 | on(event: "line", listener: (input: string) => void): this; 75 | on(event: "pause", listener: () => void): this; 76 | on(event: "resume", listener: () => void): this; 77 | on(event: "SIGCONT", listener: () => void): this; 78 | on(event: "SIGINT", listener: () => void): this; 79 | on(event: "SIGTSTP", listener: () => void): this; 80 | 81 | once(event: string, listener: (...args: any[]) => void): this; 82 | once(event: "close", listener: () => void): this; 83 | once(event: "line", listener: (input: string) => void): this; 84 | once(event: "pause", listener: () => void): this; 85 | once(event: "resume", listener: () => void): this; 86 | once(event: "SIGCONT", listener: () => void): this; 87 | once(event: "SIGINT", listener: () => void): this; 88 | once(event: "SIGTSTP", listener: () => void): this; 89 | 90 | prependListener(event: string, listener: (...args: any[]) => void): this; 91 | prependListener(event: "close", listener: () => void): this; 92 | prependListener(event: "line", listener: (input: string) => void): this; 93 | prependListener(event: "pause", listener: () => void): this; 94 | prependListener(event: "resume", listener: () => void): this; 95 | prependListener(event: "SIGCONT", listener: () => void): this; 96 | prependListener(event: "SIGINT", listener: () => void): this; 97 | prependListener(event: "SIGTSTP", listener: () => void): this; 98 | 99 | prependOnceListener(event: string, listener: (...args: any[]) => void): this; 100 | prependOnceListener(event: "close", listener: () => void): this; 101 | prependOnceListener(event: "line", listener: (input: string) => void): this; 102 | prependOnceListener(event: "pause", listener: () => void): this; 103 | prependOnceListener(event: "resume", listener: () => void): this; 104 | prependOnceListener(event: "SIGCONT", listener: () => void): this; 105 | prependOnceListener(event: "SIGINT", listener: () => void): this; 106 | prependOnceListener(event: "SIGTSTP", listener: () => void): this; 107 | [Symbol.asyncIterator](): AsyncIterableIterator; 108 | } 109 | 110 | type ReadLine = Interface; // type forwarded for backwards compatiblity 111 | 112 | type Completer = (line: string) => CompleterResult; 113 | type AsyncCompleter = (line: string, callback: (err?: null | Error, result?: CompleterResult) => void) => any; 114 | 115 | type CompleterResult = [string[], string]; 116 | 117 | interface ReadLineOptions { 118 | input: NodeJS.ReadableStream; 119 | output?: NodeJS.WritableStream; 120 | completer?: Completer | AsyncCompleter; 121 | terminal?: boolean; 122 | historySize?: number; 123 | prompt?: string; 124 | crlfDelay?: number; 125 | removeHistoryDuplicates?: boolean; 126 | } 127 | 128 | function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean): Interface; 129 | function createInterface(options: ReadLineOptions): Interface; 130 | function emitKeypressEvents(stream: NodeJS.ReadableStream, interface?: Interface): void; 131 | 132 | type Direction = -1 | 0 | 1; 133 | 134 | /** 135 | * Clears the current line of this WriteStream in a direction identified by `dir`. 136 | */ 137 | function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean; 138 | /** 139 | * Clears this `WriteStream` from the current cursor down. 140 | */ 141 | function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean; 142 | /** 143 | * Moves this WriteStream's cursor to the specified position. 144 | */ 145 | function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean; 146 | /** 147 | * Moves this WriteStream's cursor relative to its current position. 148 | */ 149 | function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean; 150 | } 151 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/string_decoder.d.ts: -------------------------------------------------------------------------------- 1 | declare module "string_decoder" { 2 | class StringDecoder { 3 | constructor(encoding?: string); 4 | write(buffer: Buffer): string; 5 | end(buffer?: Buffer): string; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/timers.d.ts: -------------------------------------------------------------------------------- 1 | declare module "timers" { 2 | function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout; 3 | namespace setTimeout { 4 | function __promisify__(ms: number): Promise; 5 | function __promisify__(ms: number, value: T): Promise; 6 | } 7 | function clearTimeout(timeoutId: NodeJS.Timeout): void; 8 | function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout; 9 | function clearInterval(intervalId: NodeJS.Timeout): void; 10 | function setImmediate(callback: (...args: any[]) => void, ...args: any[]): NodeJS.Immediate; 11 | namespace setImmediate { 12 | function __promisify__(): Promise; 13 | function __promisify__(value: T): Promise; 14 | } 15 | function clearImmediate(immediateId: NodeJS.Immediate): void; 16 | } 17 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/trace_events.d.ts: -------------------------------------------------------------------------------- 1 | declare module "trace_events" { 2 | /** 3 | * The `Tracing` object is used to enable or disable tracing for sets of 4 | * categories. Instances are created using the 5 | * `trace_events.createTracing()` method. 6 | * 7 | * When created, the `Tracing` object is disabled. Calling the 8 | * `tracing.enable()` method adds the categories to the set of enabled trace 9 | * event categories. Calling `tracing.disable()` will remove the categories 10 | * from the set of enabled trace event categories. 11 | */ 12 | export interface Tracing { 13 | /** 14 | * A comma-separated list of the trace event categories covered by this 15 | * `Tracing` object. 16 | */ 17 | readonly categories: string; 18 | 19 | /** 20 | * Disables this `Tracing` object. 21 | * 22 | * Only trace event categories _not_ covered by other enabled `Tracing` 23 | * objects and _not_ specified by the `--trace-event-categories` flag 24 | * will be disabled. 25 | */ 26 | disable(): void; 27 | 28 | /** 29 | * Enables this `Tracing` object for the set of categories covered by 30 | * the `Tracing` object. 31 | */ 32 | enable(): void; 33 | 34 | /** 35 | * `true` only if the `Tracing` object has been enabled. 36 | */ 37 | readonly enabled: boolean; 38 | } 39 | 40 | interface CreateTracingOptions { 41 | /** 42 | * An array of trace category names. Values included in the array are 43 | * coerced to a string when possible. An error will be thrown if the 44 | * value cannot be coerced. 45 | */ 46 | categories: string[]; 47 | } 48 | 49 | /** 50 | * Creates and returns a Tracing object for the given set of categories. 51 | */ 52 | export function createTracing(options: CreateTracingOptions): Tracing; 53 | 54 | /** 55 | * Returns a comma-separated list of all currently-enabled trace event 56 | * categories. The current set of enabled trace event categories is 57 | * determined by the union of all currently-enabled `Tracing` objects and 58 | * any categories enabled using the `--trace-event-categories` flag. 59 | */ 60 | export function getEnabledCategories(): string; 61 | } 62 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/ts3.2/globals.d.ts: -------------------------------------------------------------------------------- 1 | // tslint:disable-next-line:no-bad-reference 2 | /// 3 | 4 | declare namespace NodeJS { 5 | interface HRTime { 6 | bigint(): bigint; 7 | } 8 | } 9 | 10 | interface Buffer extends Uint8Array { 11 | readBigUInt64BE(offset?: number): bigint; 12 | readBigUInt64LE(offset?: number): bigint; 13 | readBigInt64BE(offset?: number): bigint; 14 | readBigInt64LE(offset?: number): bigint; 15 | writeBigInt64BE(value: bigint, offset?: number): number; 16 | writeBigInt64LE(value: bigint, offset?: number): number; 17 | writeBigUInt64BE(value: bigint, offset?: number): number; 18 | writeBigUInt64LE(value: bigint, offset?: number): number; 19 | } 20 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/ts3.2/index.d.ts: -------------------------------------------------------------------------------- 1 | // NOTE: These definitions support NodeJS and TypeScript 3.2. 2 | 3 | // NOTE: TypeScript version-specific augmentations can be found in the following paths: 4 | // - ~/base.d.ts - Shared definitions common to all TypeScript versions 5 | // - ~/index.d.ts - Definitions specific to TypeScript 2.1 6 | // - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2 7 | 8 | // Reference required types from the default lib: 9 | /// 10 | /// 11 | /// 12 | /// 13 | 14 | // Base definitions for all NodeJS modules that are not specific to any version of TypeScript: 15 | // tslint:disable-next-line:no-bad-reference 16 | /// 17 | 18 | // TypeScript 3.2-specific augmentations: 19 | /// 20 | /// 21 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/ts3.2/util.d.ts: -------------------------------------------------------------------------------- 1 | // tslint:disable-next-line:no-bad-reference 2 | /// 3 | 4 | declare module "util" { 5 | namespace inspect { 6 | const custom: unique symbol; 7 | } 8 | namespace promisify { 9 | const custom: unique symbol; 10 | } 11 | namespace types { 12 | function isBigInt64Array(value: any): value is BigInt64Array; 13 | function isBigUint64Array(value: any): value is BigUint64Array; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/tty.d.ts: -------------------------------------------------------------------------------- 1 | declare module "tty" { 2 | import * as net from "net"; 3 | 4 | function isatty(fd: number): boolean; 5 | class ReadStream extends net.Socket { 6 | constructor(fd: number, options?: net.SocketConstructorOpts); 7 | isRaw: boolean; 8 | setRawMode(mode: boolean): void; 9 | isTTY: boolean; 10 | } 11 | /** 12 | * -1 - to the left from cursor 13 | * 0 - the entire line 14 | * 1 - to the right from cursor 15 | */ 16 | type Direction = -1 | 0 | 1; 17 | class WriteStream extends net.Socket { 18 | constructor(fd: number); 19 | addListener(event: string, listener: (...args: any[]) => void): this; 20 | addListener(event: "resize", listener: () => void): this; 21 | 22 | emit(event: string | symbol, ...args: any[]): boolean; 23 | emit(event: "resize"): boolean; 24 | 25 | on(event: string, listener: (...args: any[]) => void): this; 26 | on(event: "resize", listener: () => void): this; 27 | 28 | once(event: string, listener: (...args: any[]) => void): this; 29 | once(event: "resize", listener: () => void): this; 30 | 31 | prependListener(event: string, listener: (...args: any[]) => void): this; 32 | prependListener(event: "resize", listener: () => void): this; 33 | 34 | prependOnceListener(event: string, listener: (...args: any[]) => void): this; 35 | prependOnceListener(event: "resize", listener: () => void): this; 36 | 37 | /** 38 | * Clears the current line of this WriteStream in a direction identified by `dir`. 39 | */ 40 | clearLine(dir: Direction, callback?: () => void): boolean; 41 | /** 42 | * Clears this `WriteStream` from the current cursor down. 43 | */ 44 | clearScreenDown(callback?: () => void): boolean; 45 | /** 46 | * Moves this WriteStream's cursor to the specified position. 47 | */ 48 | cursorTo(x: number, y: number, callback?: () => void): boolean; 49 | /** 50 | * Moves this WriteStream's cursor relative to its current position. 51 | */ 52 | moveCursor(dx: number, dy: number, callback?: () => void): boolean; 53 | /** 54 | * @default `process.env` 55 | */ 56 | getColorDepth(env?: {}): number; 57 | hasColors(depth?: number): boolean; 58 | hasColors(env?: {}): boolean; 59 | hasColors(depth: number, env?: {}): boolean; 60 | getWindowSize(): [number, number]; 61 | columns: number; 62 | rows: number; 63 | isTTY: boolean; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/url.d.ts: -------------------------------------------------------------------------------- 1 | declare module "url" { 2 | import { ParsedUrlQuery, ParsedUrlQueryInput } from 'querystring'; 3 | 4 | interface UrlObjectCommon { 5 | auth?: string; 6 | hash?: string; 7 | host?: string; 8 | hostname?: string; 9 | href?: string; 10 | path?: string; 11 | pathname?: string; 12 | protocol?: string; 13 | search?: string; 14 | slashes?: boolean; 15 | } 16 | 17 | // Input to `url.format` 18 | interface UrlObject extends UrlObjectCommon { 19 | port?: string | number; 20 | query?: string | null | ParsedUrlQueryInput; 21 | } 22 | 23 | // Output of `url.parse` 24 | interface Url extends UrlObjectCommon { 25 | port?: string; 26 | query?: string | null | ParsedUrlQuery; 27 | } 28 | 29 | interface UrlWithParsedQuery extends Url { 30 | query: ParsedUrlQuery; 31 | } 32 | 33 | interface UrlWithStringQuery extends Url { 34 | query: string | null; 35 | } 36 | 37 | function parse(urlStr: string): UrlWithStringQuery; 38 | function parse(urlStr: string, parseQueryString: false | undefined, slashesDenoteHost?: boolean): UrlWithStringQuery; 39 | function parse(urlStr: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery; 40 | function parse(urlStr: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url; 41 | 42 | function format(URL: URL, options?: URLFormatOptions): string; 43 | function format(urlObject: UrlObject | string): string; 44 | function resolve(from: string, to: string): string; 45 | 46 | function domainToASCII(domain: string): string; 47 | function domainToUnicode(domain: string): string; 48 | 49 | /** 50 | * This function ensures the correct decodings of percent-encoded characters as 51 | * well as ensuring a cross-platform valid absolute path string. 52 | * @param url The file URL string or URL object to convert to a path. 53 | */ 54 | function fileURLToPath(url: string | URL): string; 55 | 56 | /** 57 | * This function ensures that path is resolved absolutely, and that the URL 58 | * control characters are correctly encoded when converting into a File URL. 59 | * @param url The path to convert to a File URL. 60 | */ 61 | function pathToFileURL(url: string): URL; 62 | 63 | interface URLFormatOptions { 64 | auth?: boolean; 65 | fragment?: boolean; 66 | search?: boolean; 67 | unicode?: boolean; 68 | } 69 | 70 | class URL { 71 | constructor(input: string, base?: string | URL); 72 | hash: string; 73 | host: string; 74 | hostname: string; 75 | href: string; 76 | readonly origin: string; 77 | password: string; 78 | pathname: string; 79 | port: string; 80 | protocol: string; 81 | search: string; 82 | readonly searchParams: URLSearchParams; 83 | username: string; 84 | toString(): string; 85 | toJSON(): string; 86 | } 87 | 88 | class URLSearchParams implements Iterable<[string, string]> { 89 | constructor(init?: URLSearchParams | string | { [key: string]: string | string[] | undefined } | Iterable<[string, string]> | Array<[string, string]>); 90 | append(name: string, value: string): void; 91 | delete(name: string): void; 92 | entries(): IterableIterator<[string, string]>; 93 | forEach(callback: (value: string, name: string, searchParams: this) => void): void; 94 | get(name: string): string | null; 95 | getAll(name: string): string[]; 96 | has(name: string): boolean; 97 | keys(): IterableIterator; 98 | set(name: string, value: string): void; 99 | sort(): void; 100 | toString(): string; 101 | values(): IterableIterator; 102 | [Symbol.iterator](): IterableIterator<[string, string]>; 103 | } 104 | } 105 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/v8.d.ts: -------------------------------------------------------------------------------- 1 | declare module "v8" { 2 | import { Readable } from "stream"; 3 | 4 | interface HeapSpaceInfo { 5 | space_name: string; 6 | space_size: number; 7 | space_used_size: number; 8 | space_available_size: number; 9 | physical_space_size: number; 10 | } 11 | 12 | // ** Signifies if the --zap_code_space option is enabled or not. 1 == enabled, 0 == disabled. */ 13 | type DoesZapCodeSpaceFlag = 0 | 1; 14 | 15 | interface HeapInfo { 16 | total_heap_size: number; 17 | total_heap_size_executable: number; 18 | total_physical_size: number; 19 | total_available_size: number; 20 | used_heap_size: number; 21 | heap_size_limit: number; 22 | malloced_memory: number; 23 | peak_malloced_memory: number; 24 | does_zap_garbage: DoesZapCodeSpaceFlag; 25 | number_of_native_contexts: number; 26 | number_of_detached_contexts: number; 27 | } 28 | 29 | function getHeapStatistics(): HeapInfo; 30 | function getHeapSpaceStatistics(): HeapSpaceInfo[]; 31 | function setFlagsFromString(flags: string): void; 32 | /** 33 | * Generates a snapshot of the current V8 heap and returns a Readable 34 | * Stream that may be used to read the JSON serialized representation. 35 | * This conversation was marked as resolved by joyeecheung 36 | * This JSON stream format is intended to be used with tools such as 37 | * Chrome DevTools. The JSON schema is undocumented and specific to the 38 | * V8 engine, and may change from one version of V8 to the next. 39 | */ 40 | function getHeapSnapshot(): Readable; 41 | 42 | /** 43 | * 44 | * @param fileName The file path where the V8 heap snapshot is to be 45 | * saved. If not specified, a file name with the pattern 46 | * `'Heap-${yyyymmdd}-${hhmmss}-${pid}-${thread_id}.heapsnapshot'` will be 47 | * generated, where `{pid}` will be the PID of the Node.js process, 48 | * `{thread_id}` will be `0` when `writeHeapSnapshot()` is called from 49 | * the main Node.js thread or the id of a worker thread. 50 | */ 51 | function writeHeapSnapshot(fileName?: string): string; 52 | } 53 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/vm.d.ts: -------------------------------------------------------------------------------- 1 | declare module "vm" { 2 | interface Context { 3 | [key: string]: any; 4 | } 5 | interface BaseOptions { 6 | /** 7 | * Specifies the filename used in stack traces produced by this script. 8 | * Default: `''`. 9 | */ 10 | filename?: string; 11 | /** 12 | * Specifies the line number offset that is displayed in stack traces produced by this script. 13 | * Default: `0`. 14 | */ 15 | lineOffset?: number; 16 | /** 17 | * Specifies the column number offset that is displayed in stack traces produced by this script. 18 | * Default: `0` 19 | */ 20 | columnOffset?: number; 21 | } 22 | interface ScriptOptions extends BaseOptions { 23 | displayErrors?: boolean; 24 | timeout?: number; 25 | cachedData?: Buffer; 26 | produceCachedData?: boolean; 27 | } 28 | interface RunningScriptOptions extends BaseOptions { 29 | displayErrors?: boolean; 30 | timeout?: number; 31 | } 32 | interface CompileFunctionOptions extends BaseOptions { 33 | /** 34 | * Provides an optional data with V8's code cache data for the supplied source. 35 | */ 36 | cachedData?: Buffer; 37 | /** 38 | * Specifies whether to produce new cache data. 39 | * Default: `false`, 40 | */ 41 | produceCachedData?: boolean; 42 | /** 43 | * The sandbox/context in which the said function should be compiled in. 44 | */ 45 | parsingContext?: Context; 46 | 47 | /** 48 | * An array containing a collection of context extensions (objects wrapping the current scope) to be applied while compiling 49 | */ 50 | contextExtensions?: Object[]; 51 | } 52 | 53 | interface CreateContextOptions { 54 | /** 55 | * Human-readable name of the newly created context. 56 | * @default 'VM Context i' Where i is an ascending numerical index of the created context. 57 | */ 58 | name?: string; 59 | /** 60 | * Corresponds to the newly created context for display purposes. 61 | * The origin should be formatted like a `URL`, but with only the scheme, host, and port (if necessary), 62 | * like the value of the `url.origin` property of a URL object. 63 | * Most notably, this string should omit the trailing slash, as that denotes a path. 64 | * @default '' 65 | */ 66 | origin?: string; 67 | codeGeneration?: { 68 | /** 69 | * If set to false any calls to eval or function constructors (Function, GeneratorFunction, etc) 70 | * will throw an EvalError. 71 | * @default true 72 | */ 73 | strings?: boolean; 74 | /** 75 | * If set to false any attempt to compile a WebAssembly module will throw a WebAssembly.CompileError. 76 | * @default true 77 | */ 78 | wasm?: boolean; 79 | }; 80 | } 81 | 82 | class Script { 83 | constructor(code: string, options?: ScriptOptions); 84 | runInContext(contextifiedSandbox: Context, options?: RunningScriptOptions): any; 85 | runInNewContext(sandbox?: Context, options?: RunningScriptOptions): any; 86 | runInThisContext(options?: RunningScriptOptions): any; 87 | createCachedData(): Buffer; 88 | } 89 | function createContext(sandbox?: Context, options?: CreateContextOptions): Context; 90 | function isContext(sandbox: Context): boolean; 91 | function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions | string): any; 92 | function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions | string): any; 93 | function runInThisContext(code: string, options?: RunningScriptOptions | string): any; 94 | function compileFunction(code: string, params: string[], options: CompileFunctionOptions): Function; 95 | } 96 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/node_modules/@types/node/worker_threads.d.ts: -------------------------------------------------------------------------------- 1 | declare module "worker_threads" { 2 | import { Context } from "vm"; 3 | import { EventEmitter } from "events"; 4 | import { Readable, Writable } from "stream"; 5 | 6 | const isMainThread: boolean; 7 | const parentPort: null | MessagePort; 8 | const threadId: number; 9 | const workerData: any; 10 | 11 | class MessageChannel { 12 | readonly port1: MessagePort; 13 | readonly port2: MessagePort; 14 | } 15 | 16 | class MessagePort extends EventEmitter { 17 | close(): void; 18 | postMessage(value: any, transferList?: Array): void; 19 | ref(): void; 20 | unref(): void; 21 | start(): void; 22 | 23 | addListener(event: "close", listener: () => void): this; 24 | addListener(event: "message", listener: (value: any) => void): this; 25 | addListener(event: string | symbol, listener: (...args: any[]) => void): this; 26 | 27 | emit(event: "close"): boolean; 28 | emit(event: "message", value: any): boolean; 29 | emit(event: string | symbol, ...args: any[]): boolean; 30 | 31 | on(event: "close", listener: () => void): this; 32 | on(event: "message", listener: (value: any) => void): this; 33 | on(event: string | symbol, listener: (...args: any[]) => void): this; 34 | 35 | once(event: "close", listener: () => void): this; 36 | once(event: "message", listener: (value: any) => void): this; 37 | once(event: string | symbol, listener: (...args: any[]) => void): this; 38 | 39 | prependListener(event: "close", listener: () => void): this; 40 | prependListener(event: "message", listener: (value: any) => void): this; 41 | prependListener(event: string | symbol, listener: (...args: any[]) => void): this; 42 | 43 | prependOnceListener(event: "close", listener: () => void): this; 44 | prependOnceListener(event: "message", listener: (value: any) => void): this; 45 | prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; 46 | 47 | removeListener(event: "close", listener: () => void): this; 48 | removeListener(event: "message", listener: (value: any) => void): this; 49 | removeListener(event: string | symbol, listener: (...args: any[]) => void): this; 50 | 51 | off(event: "close", listener: () => void): this; 52 | off(event: "message", listener: (value: any) => void): this; 53 | off(event: string | symbol, listener: (...args: any[]) => void): this; 54 | } 55 | 56 | interface WorkerOptions { 57 | eval?: boolean; 58 | workerData?: any; 59 | stdin?: boolean; 60 | stdout?: boolean; 61 | stderr?: boolean; 62 | execArgv?: string[]; 63 | } 64 | 65 | class Worker extends EventEmitter { 66 | readonly stdin: Writable | null; 67 | readonly stdout: Readable; 68 | readonly stderr: Readable; 69 | readonly threadId: number; 70 | 71 | constructor(filename: string, options?: WorkerOptions); 72 | 73 | postMessage(value: any, transferList?: Array): void; 74 | ref(): void; 75 | unref(): void; 76 | /** 77 | * Stop all JavaScript execution in the worker thread as soon as possible. 78 | * Returns a Promise for the exit code that is fulfilled when the `exit` event is emitted. 79 | */ 80 | terminate(): Promise; 81 | /** 82 | * Transfer a `MessagePort` to a different `vm` Context. The original `port` 83 | * object will be rendered unusable, and the returned `MessagePort` instance will 84 | * take its place. 85 | * 86 | * The returned `MessagePort` will be an object in the target context, and will 87 | * inherit from its global `Object` class. Objects passed to the 88 | * `port.onmessage()` listener will also be created in the target context 89 | * and inherit from its global `Object` class. 90 | * 91 | * However, the created `MessagePort` will no longer inherit from 92 | * `EventEmitter`, and only `port.onmessage()` can be used to receive 93 | * events using it. 94 | */ 95 | moveMessagePortToContext(port: MessagePort, context: Context): MessagePort; 96 | 97 | /** 98 | * Receive a single message from a given `MessagePort`. If no message is available, 99 | * `undefined` is returned, otherwise an object with a single `message` property 100 | * that contains the message payload, corresponding to the oldest message in the 101 | * `MessagePort`’s queue. 102 | */ 103 | receiveMessageOnPort(port: MessagePort): {} | undefined; 104 | 105 | addListener(event: "error", listener: (err: Error) => void): this; 106 | addListener(event: "exit", listener: (exitCode: number) => void): this; 107 | addListener(event: "message", listener: (value: any) => void): this; 108 | addListener(event: "online", listener: () => void): this; 109 | addListener(event: string | symbol, listener: (...args: any[]) => void): this; 110 | 111 | emit(event: "error", err: Error): boolean; 112 | emit(event: "exit", exitCode: number): boolean; 113 | emit(event: "message", value: any): boolean; 114 | emit(event: "online"): boolean; 115 | emit(event: string | symbol, ...args: any[]): boolean; 116 | 117 | on(event: "error", listener: (err: Error) => void): this; 118 | on(event: "exit", listener: (exitCode: number) => void): this; 119 | on(event: "message", listener: (value: any) => void): this; 120 | on(event: "online", listener: () => void): this; 121 | on(event: string | symbol, listener: (...args: any[]) => void): this; 122 | 123 | once(event: "error", listener: (err: Error) => void): this; 124 | once(event: "exit", listener: (exitCode: number) => void): this; 125 | once(event: "message", listener: (value: any) => void): this; 126 | once(event: "online", listener: () => void): this; 127 | once(event: string | symbol, listener: (...args: any[]) => void): this; 128 | 129 | prependListener(event: "error", listener: (err: Error) => void): this; 130 | prependListener(event: "exit", listener: (exitCode: number) => void): this; 131 | prependListener(event: "message", listener: (value: any) => void): this; 132 | prependListener(event: "online", listener: () => void): this; 133 | prependListener(event: string | symbol, listener: (...args: any[]) => void): this; 134 | 135 | prependOnceListener(event: "error", listener: (err: Error) => void): this; 136 | prependOnceListener(event: "exit", listener: (exitCode: number) => void): this; 137 | prependOnceListener(event: "message", listener: (value: any) => void): this; 138 | prependOnceListener(event: "online", listener: () => void): this; 139 | prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; 140 | 141 | removeListener(event: "error", listener: (err: Error) => void): this; 142 | removeListener(event: "exit", listener: (exitCode: number) => void): this; 143 | removeListener(event: "message", listener: (value: any) => void): this; 144 | removeListener(event: "online", listener: () => void): this; 145 | removeListener(event: string | symbol, listener: (...args: any[]) => void): this; 146 | 147 | off(event: "error", listener: (err: Error) => void): this; 148 | off(event: "exit", listener: (exitCode: number) => void): this; 149 | off(event: "message", listener: (value: any) => void): this; 150 | off(event: "online", listener: () => void): this; 151 | off(event: string | symbol, listener: (...args: any[]) => void): this; 152 | } 153 | } 154 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webhost/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "requires": true, 3 | "lockfileVersion": 1, 4 | "dependencies": { 5 | "@types/node": { 6 | "version": "12.7.5", 7 | "resolved": "https://registry.npmjs.org/@types/node/-/node-12.7.5.tgz", 8 | "integrity": "sha512-9fq4jZVhPNW8r+UYKnxF1e2HkDWOWKM5bC2/7c9wPV835I0aOrVbS/Hw/pWPk2uKrNXQqg9Z959Kz+IYDd5p3w==" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/code/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 |
5 | 6 | first page. 7 | 8 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/code/main.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | const remote = require("electron").remote; 4 | 5 | //给js调用的API 6 | class API 7 | { 8 | sendback: ((vars: any[]) => void) | undefined; 9 | } 10 | var __api: API = new API(); 11 | window.onload = () => 12 | { 13 | let __pageoption: { curl: string, winid: number }; 14 | 15 | //把函数藏起来,尽量不污染空间 16 | let closethis: () => void = () => 17 | { 18 | let win = remote.getCurrentWindow(); 19 | win.close(); 20 | } 21 | let settitle: (title: string) => void = (title: string) => 22 | { 23 | let win = remote.getCurrentWindow(); 24 | win.setTitle(title); 25 | } 26 | let decodequery: () => { curl: string, winid: number } = () => 27 | { 28 | let url = document.location.toString(); 29 | let arrUrl = url.split("?"); 30 | let query = decodeURIComponent(arrUrl[1]); 31 | let lines = query.split("&"); 32 | let _curl: string = ""; 33 | let _winid: number = 0; 34 | for (let i = 0; i < lines.length; i++) 35 | { 36 | let line = lines[i]; 37 | let words = line.split("="); 38 | if (words.length > 1 && words[0] == "curl") 39 | { 40 | _curl = words[1]; 41 | } 42 | if (words.length > 1 && words[0] == "winid") 43 | { 44 | _winid = parseInt(words[1]); 45 | } 46 | } 47 | return { curl: _curl, winid: _winid }; 48 | } 49 | __pageoption = decodequery(); 50 | console.log("this winid =" + __pageoption.winid); 51 | console.log("curl = " + __pageoption.curl); 52 | let ws: WebSocket = new WebSocket(__pageoption.curl); 53 | 54 | 55 | ws.onopen = () => 56 | { 57 | //链接通,告之接收方 58 | // console.log("this open"); 59 | let ret = { "cmd": "init", "vars": [__pageoption.winid] }; 60 | ws.send(JSON.stringify(ret)); 61 | } 62 | ws.onclose = () => 63 | { 64 | //利用websocket断开去关闭这个窗口 65 | console.log("this close."); 66 | closethis(); 67 | } 68 | ws.onerror = () => 69 | { 70 | console.log("this error."); 71 | closethis(); 72 | 73 | } 74 | ws.onmessage = (ev: MessageEvent) => 75 | { 76 | //收到一些神马 77 | let json = JSON.parse(ev.data as string); 78 | let cmd = json["cmd"]; 79 | let vars = json["vars"]; 80 | if (cmd == "eval") 81 | { 82 | let got = null; 83 | try 84 | { 85 | got = eval(vars[0]); 86 | } 87 | catch (e) 88 | { 89 | got = e.toString(); 90 | } 91 | let ret = { "cmd": "eval_back", "vars": [got] }; 92 | ws.send(JSON.stringify(ret)); 93 | } 94 | if (cmd == "settitle") 95 | { 96 | let title = vars[0]; 97 | settitle(title); 98 | let ret = { "cmd": "settitle_back" }; 99 | ws.send(JSON.stringify(ret)); 100 | } 101 | } 102 | 103 | 104 | //赋予公开的API功能 105 | __api.sendback = (vars: any[]) => 106 | { 107 | let ret = { "cmd": "sendback", "vars": vars }; 108 | ws.send(JSON.stringify(ret)); 109 | } 110 | } 111 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/code/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | /* Basic Options */ 4 | // "incremental": true, /* Enable incremental compilation */ 5 | "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ 6 | "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ 7 | // "lib": [], /* Specify library files to be included in the compilation. */ 8 | // "allowJs": true, /* Allow javascript files to be compiled. */ 9 | // "checkJs": true, /* Report errors in .js files. */ 10 | // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ 11 | "declaration": true, /* Generates corresponding '.d.ts' file. */ 12 | // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ 13 | "sourceMap": true, /* Generates corresponding '.map' file. */ 14 | //"outFile": "../../../html/win/main.js", /* Concatenate and emit output to single file. */ 15 | "outDir": "../../../html/win", /* Redirect output structure to the directory. */ 16 | // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ 17 | // "composite": true, /* Enable project compilation */ 18 | // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ 19 | // "removeComments": true, /* Do not emit comments to output. */ 20 | // "noEmit": true, /* Do not emit outputs. */ 21 | // "importHelpers": true, /* Import emit helpers from 'tslib'. */ 22 | // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ 23 | // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ 24 | /* Strict Type-Checking Options */ 25 | "strict": true, /* Enable all strict type-checking options. */ 26 | // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ 27 | // "strictNullChecks": true, /* Enable strict null checks. */ 28 | // "strictFunctionTypes": true, /* Enable strict checking of function types. */ 29 | // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ 30 | // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ 31 | // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ 32 | // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ 33 | /* Additional Checks */ 34 | // "noUnusedLocals": true, /* Report errors on unused locals. */ 35 | // "noUnusedParameters": true, /* Report errors on unused parameters. */ 36 | // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ 37 | // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ 38 | /* Module Resolution Options */ 39 | // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ 40 | // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ 41 | // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ 42 | // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ 43 | // "typeRoots": [], /* List of folders to include type definitions from. */ 44 | // "types": [], /* Type declaration files to be included in compilation. */ 45 | // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ 46 | "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ 47 | // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ 48 | // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ 49 | /* Source Map Options */ 50 | // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ 51 | // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ 52 | // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ 53 | // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ 54 | /* Experimental Options */ 55 | // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ 56 | // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ 57 | } 58 | } -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Microsoft Corporation. All rights reserved. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE 22 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/README.md: -------------------------------------------------------------------------------- 1 | # Installation 2 | > `npm install --save @types/node` 3 | 4 | # Summary 5 | This package contains type definitions for Node.js (http://nodejs.org/). 6 | 7 | # Details 8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node 9 | 10 | Additional Details 11 | * Last updated: Wed, 11 Sep 2019 05:46:27 GMT 12 | * Dependencies: none 13 | * Global values: Buffer, NodeJS, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, queueMicrotask, require, setImmediate, setInterval, setTimeout 14 | 15 | # Credits 16 | These definitions were written by Microsoft TypeScript , DefinitelyTyped , Alberto Schiabel , Alexander T. , Alvis HT Tang , Andrew Makarov , Benjamin Toueg , Bruno Scheufler , Chigozirim C. , Christian Vaagland Tellnes , David Junger , Deividas Bakanas , Eugene Y. Q. Shen , Flarna , Hannes Magnusson , Hoàng Văn Khải , Huw , Kelvin Jin , Klaus Meinhardt , Lishude , Mariusz Wiktorczyk , Matthieu Sieben , Mohsen Azimi , Nicolas Even , Nicolas Voigt , Parambir Singh , Sebastian Silbermann , Simon Schick , Thomas den Hollander , Wilco Bakker , wwwy3y3 , Zane Hannan AU , Samuel Ainsworth , Kyle Uehlein , Jordi Oliveras Rovira , Thanik Bhongbhibhat , Marcin Kopacz , and Trivikram Kamat . 17 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/assert.d.ts: -------------------------------------------------------------------------------- 1 | declare module "assert" { 2 | function internal(value: any, message?: string | Error): void; 3 | namespace internal { 4 | class AssertionError implements Error { 5 | name: string; 6 | message: string; 7 | actual: any; 8 | expected: any; 9 | operator: string; 10 | generatedMessage: boolean; 11 | code: 'ERR_ASSERTION'; 12 | 13 | constructor(options?: { 14 | message?: string; actual?: any; expected?: any; 15 | operator?: string; stackStartFn?: Function 16 | }); 17 | } 18 | 19 | function fail(message?: string | Error): never; 20 | /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */ 21 | function fail(actual: any, expected: any, message?: string | Error, operator?: string, stackStartFn?: Function): never; 22 | function ok(value: any, message?: string | Error): void; 23 | /** @deprecated since v9.9.0 - use strictEqual() instead. */ 24 | function equal(actual: any, expected: any, message?: string | Error): void; 25 | /** @deprecated since v9.9.0 - use notStrictEqual() instead. */ 26 | function notEqual(actual: any, expected: any, message?: string | Error): void; 27 | /** @deprecated since v9.9.0 - use deepStrictEqual() instead. */ 28 | function deepEqual(actual: any, expected: any, message?: string | Error): void; 29 | /** @deprecated since v9.9.0 - use notDeepStrictEqual() instead. */ 30 | function notDeepEqual(actual: any, expected: any, message?: string | Error): void; 31 | function strictEqual(actual: any, expected: any, message?: string | Error): void; 32 | function notStrictEqual(actual: any, expected: any, message?: string | Error): void; 33 | function deepStrictEqual(actual: any, expected: any, message?: string | Error): void; 34 | function notDeepStrictEqual(actual: any, expected: any, message?: string | Error): void; 35 | 36 | function throws(block: () => any, message?: string | Error): void; 37 | function throws(block: () => any, error: RegExp | Function | Object | Error, message?: string | Error): void; 38 | function doesNotThrow(block: () => any, message?: string | Error): void; 39 | function doesNotThrow(block: () => any, error: RegExp | Function, message?: string | Error): void; 40 | 41 | function ifError(value: any): void; 42 | 43 | function rejects(block: (() => Promise) | Promise, message?: string | Error): Promise; 44 | function rejects(block: (() => Promise) | Promise, error: RegExp | Function | Object | Error, message?: string | Error): Promise; 45 | function doesNotReject(block: (() => Promise) | Promise, message?: string | Error): Promise; 46 | function doesNotReject(block: (() => Promise) | Promise, error: RegExp | Function, message?: string | Error): Promise; 47 | 48 | const strict: typeof internal; 49 | } 50 | 51 | export = internal; 52 | } 53 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/async_hooks.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Async Hooks module: https://nodejs.org/api/async_hooks.html 3 | */ 4 | declare module "async_hooks" { 5 | /** 6 | * Returns the asyncId of the current execution context. 7 | */ 8 | function executionAsyncId(): number; 9 | 10 | /** 11 | * Returns the ID of the resource responsible for calling the callback that is currently being executed. 12 | */ 13 | function triggerAsyncId(): number; 14 | 15 | interface HookCallbacks { 16 | /** 17 | * Called when a class is constructed that has the possibility to emit an asynchronous event. 18 | * @param asyncId a unique ID for the async resource 19 | * @param type the type of the async resource 20 | * @param triggerAsyncId the unique ID of the async resource in whose execution context this async resource was created 21 | * @param resource reference to the resource representing the async operation, needs to be released during destroy 22 | */ 23 | init?(asyncId: number, type: string, triggerAsyncId: number, resource: Object): void; 24 | 25 | /** 26 | * When an asynchronous operation is initiated or completes a callback is called to notify the user. 27 | * The before callback is called just before said callback is executed. 28 | * @param asyncId the unique identifier assigned to the resource about to execute the callback. 29 | */ 30 | before?(asyncId: number): void; 31 | 32 | /** 33 | * Called immediately after the callback specified in before is completed. 34 | * @param asyncId the unique identifier assigned to the resource which has executed the callback. 35 | */ 36 | after?(asyncId: number): void; 37 | 38 | /** 39 | * Called when a promise has resolve() called. This may not be in the same execution id 40 | * as the promise itself. 41 | * @param asyncId the unique id for the promise that was resolve()d. 42 | */ 43 | promiseResolve?(asyncId: number): void; 44 | 45 | /** 46 | * Called after the resource corresponding to asyncId is destroyed 47 | * @param asyncId a unique ID for the async resource 48 | */ 49 | destroy?(asyncId: number): void; 50 | } 51 | 52 | interface AsyncHook { 53 | /** 54 | * Enable the callbacks for a given AsyncHook instance. If no callbacks are provided enabling is a noop. 55 | */ 56 | enable(): this; 57 | 58 | /** 59 | * Disable the callbacks for a given AsyncHook instance from the global pool of AsyncHook callbacks to be executed. Once a hook has been disabled it will not be called again until enabled. 60 | */ 61 | disable(): this; 62 | } 63 | 64 | /** 65 | * Registers functions to be called for different lifetime events of each async operation. 66 | * @param options the callbacks to register 67 | * @return an AsyncHooks instance used for disabling and enabling hooks 68 | */ 69 | function createHook(options: HookCallbacks): AsyncHook; 70 | 71 | interface AsyncResourceOptions { 72 | /** 73 | * The ID of the execution context that created this async event. 74 | * Default: `executionAsyncId()` 75 | */ 76 | triggerAsyncId?: number; 77 | 78 | /** 79 | * Disables automatic `emitDestroy` when the object is garbage collected. 80 | * This usually does not need to be set (even if `emitDestroy` is called 81 | * manually), unless the resource's `asyncId` is retrieved and the 82 | * sensitive API's `emitDestroy` is called with it. 83 | * Default: `false` 84 | */ 85 | requireManualDestroy?: boolean; 86 | } 87 | 88 | /** 89 | * The class AsyncResource was designed to be extended by the embedder's async resources. 90 | * Using this users can easily trigger the lifetime events of their own resources. 91 | */ 92 | class AsyncResource { 93 | /** 94 | * AsyncResource() is meant to be extended. Instantiating a 95 | * new AsyncResource() also triggers init. If triggerAsyncId is omitted then 96 | * async_hook.executionAsyncId() is used. 97 | * @param type The type of async event. 98 | * @param triggerAsyncId The ID of the execution context that created 99 | * this async event (default: `executionAsyncId()`), or an 100 | * AsyncResourceOptions object (since 9.3) 101 | */ 102 | constructor(type: string, triggerAsyncId?: number|AsyncResourceOptions); 103 | 104 | /** 105 | * Call the provided function with the provided arguments in the 106 | * execution context of the async resource. This will establish the 107 | * context, trigger the AsyncHooks before callbacks, call the function, 108 | * trigger the AsyncHooks after callbacks, and then restore the original 109 | * execution context. 110 | * @param fn The function to call in the execution context of this 111 | * async resource. 112 | * @param thisArg The receiver to be used for the function call. 113 | * @param args Optional arguments to pass to the function. 114 | */ 115 | runInAsyncScope(fn: (this: This, ...args: any[]) => Result, thisArg?: This, ...args: any[]): Result; 116 | 117 | /** 118 | * Call AsyncHooks destroy callbacks. 119 | */ 120 | emitDestroy(): void; 121 | 122 | /** 123 | * @return the unique ID assigned to this AsyncResource instance. 124 | */ 125 | asyncId(): number; 126 | 127 | /** 128 | * @return the trigger ID for this AsyncResource instance. 129 | */ 130 | triggerAsyncId(): number; 131 | } 132 | } 133 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/base.d.ts: -------------------------------------------------------------------------------- 1 | // base definnitions for all NodeJS modules that are not specific to any version of TypeScript 2 | /// 3 | /// 4 | /// 5 | /// 6 | /// 7 | /// 8 | /// 9 | /// 10 | /// 11 | /// 12 | /// 13 | /// 14 | /// 15 | /// 16 | /// 17 | /// 18 | /// 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// 26 | /// 27 | /// 28 | /// 29 | /// 30 | /// 31 | /// 32 | /// 33 | /// 34 | /// 35 | /// 36 | /// 37 | /// 38 | /// 39 | /// 40 | /// 41 | /// 42 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/buffer.d.ts: -------------------------------------------------------------------------------- 1 | declare module "buffer" { 2 | export const INSPECT_MAX_BYTES: number; 3 | export const kMaxLength: number; 4 | export const kStringMaxLength: number; 5 | export const constants: { 6 | MAX_LENGTH: number; 7 | MAX_STRING_LENGTH: number; 8 | }; 9 | const BuffType: typeof Buffer; 10 | 11 | export type TranscodeEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "latin1" | "binary"; 12 | 13 | export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer; 14 | 15 | export const SlowBuffer: { 16 | /** @deprecated since v6.0.0, use Buffer.allocUnsafeSlow() */ 17 | new(size: number): Buffer; 18 | prototype: Buffer; 19 | }; 20 | 21 | export { BuffType as Buffer }; 22 | } 23 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/console.d.ts: -------------------------------------------------------------------------------- 1 | declare module "console" { 2 | export = console; 3 | } 4 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/dgram.d.ts: -------------------------------------------------------------------------------- 1 | declare module "dgram" { 2 | import { AddressInfo } from "net"; 3 | import * as dns from "dns"; 4 | import * as events from "events"; 5 | 6 | interface RemoteInfo { 7 | address: string; 8 | family: 'IPv4' | 'IPv6'; 9 | port: number; 10 | size: number; 11 | } 12 | 13 | interface BindOptions { 14 | port: number; 15 | address?: string; 16 | exclusive?: boolean; 17 | } 18 | 19 | type SocketType = "udp4" | "udp6"; 20 | 21 | interface SocketOptions { 22 | type: SocketType; 23 | reuseAddr?: boolean; 24 | /** 25 | * @default false 26 | */ 27 | ipv6Only?: boolean; 28 | recvBufferSize?: number; 29 | sendBufferSize?: number; 30 | lookup?: (hostname: string, options: dns.LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void) => void; 31 | } 32 | 33 | function createSocket(type: SocketType, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket; 34 | function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket; 35 | 36 | class Socket extends events.EventEmitter { 37 | send(msg: string | Uint8Array | any[], port: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void; 38 | send(msg: string | Uint8Array, offset: number, length: number, port: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void; 39 | bind(port?: number, address?: string, callback?: () => void): void; 40 | bind(port?: number, callback?: () => void): void; 41 | bind(callback?: () => void): void; 42 | bind(options: BindOptions, callback?: () => void): void; 43 | close(callback?: () => void): void; 44 | address(): AddressInfo | string; 45 | setBroadcast(flag: boolean): void; 46 | setTTL(ttl: number): void; 47 | setMulticastTTL(ttl: number): void; 48 | setMulticastInterface(multicastInterface: string): void; 49 | setMulticastLoopback(flag: boolean): void; 50 | addMembership(multicastAddress: string, multicastInterface?: string): void; 51 | dropMembership(multicastAddress: string, multicastInterface?: string): void; 52 | ref(): this; 53 | unref(): this; 54 | setRecvBufferSize(size: number): void; 55 | setSendBufferSize(size: number): void; 56 | getRecvBufferSize(): number; 57 | getSendBufferSize(): number; 58 | 59 | /** 60 | * events.EventEmitter 61 | * 1. close 62 | * 2. error 63 | * 3. listening 64 | * 4. message 65 | */ 66 | addListener(event: string, listener: (...args: any[]) => void): this; 67 | addListener(event: "close", listener: () => void): this; 68 | addListener(event: "error", listener: (err: Error) => void): this; 69 | addListener(event: "listening", listener: () => void): this; 70 | addListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; 71 | 72 | emit(event: string | symbol, ...args: any[]): boolean; 73 | emit(event: "close"): boolean; 74 | emit(event: "error", err: Error): boolean; 75 | emit(event: "listening"): boolean; 76 | emit(event: "message", msg: Buffer, rinfo: RemoteInfo): boolean; 77 | 78 | on(event: string, listener: (...args: any[]) => void): this; 79 | on(event: "close", listener: () => void): this; 80 | on(event: "error", listener: (err: Error) => void): this; 81 | on(event: "listening", listener: () => void): this; 82 | on(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; 83 | 84 | once(event: string, listener: (...args: any[]) => void): this; 85 | once(event: "close", listener: () => void): this; 86 | once(event: "error", listener: (err: Error) => void): this; 87 | once(event: "listening", listener: () => void): this; 88 | once(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; 89 | 90 | prependListener(event: string, listener: (...args: any[]) => void): this; 91 | prependListener(event: "close", listener: () => void): this; 92 | prependListener(event: "error", listener: (err: Error) => void): this; 93 | prependListener(event: "listening", listener: () => void): this; 94 | prependListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; 95 | 96 | prependOnceListener(event: string, listener: (...args: any[]) => void): this; 97 | prependOnceListener(event: "close", listener: () => void): this; 98 | prependOnceListener(event: "error", listener: (err: Error) => void): this; 99 | prependOnceListener(event: "listening", listener: () => void): this; 100 | prependOnceListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/domain.d.ts: -------------------------------------------------------------------------------- 1 | declare module "domain" { 2 | import * as events from "events"; 3 | 4 | class Domain extends events.EventEmitter implements NodeJS.Domain { 5 | run(fn: (...args: any[]) => T, ...args: any[]): T; 6 | add(emitter: events.EventEmitter | NodeJS.Timer): void; 7 | remove(emitter: events.EventEmitter | NodeJS.Timer): void; 8 | bind(cb: T): T; 9 | intercept(cb: T): T; 10 | members: Array; 11 | enter(): void; 12 | exit(): void; 13 | } 14 | 15 | function create(): Domain; 16 | } 17 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/events.d.ts: -------------------------------------------------------------------------------- 1 | declare module "events" { 2 | class internal extends NodeJS.EventEmitter { } 3 | 4 | namespace internal { 5 | function once(emitter: EventEmitter, event: string | symbol): Promise; 6 | class EventEmitter extends internal { 7 | /** @deprecated since v4.0.0 */ 8 | static listenerCount(emitter: EventEmitter, event: string | symbol): number; 9 | static defaultMaxListeners: number; 10 | 11 | addListener(event: string | symbol, listener: (...args: any[]) => void): this; 12 | on(event: string | symbol, listener: (...args: any[]) => void): this; 13 | once(event: string | symbol, listener: (...args: any[]) => void): this; 14 | prependListener(event: string | symbol, listener: (...args: any[]) => void): this; 15 | prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; 16 | removeListener(event: string | symbol, listener: (...args: any[]) => void): this; 17 | off(event: string | symbol, listener: (...args: any[]) => void): this; 18 | removeAllListeners(event?: string | symbol): this; 19 | setMaxListeners(n: number): this; 20 | getMaxListeners(): number; 21 | listeners(event: string | symbol): Function[]; 22 | rawListeners(event: string | symbol): Function[]; 23 | emit(event: string | symbol, ...args: any[]): boolean; 24 | eventNames(): Array; 25 | listenerCount(type: string | symbol): number; 26 | } 27 | } 28 | 29 | export = internal; 30 | } 31 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/https.d.ts: -------------------------------------------------------------------------------- 1 | declare module "https" { 2 | import * as tls from "tls"; 3 | import * as events from "events"; 4 | import * as http from "http"; 5 | import { URL } from "url"; 6 | 7 | type ServerOptions = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions; 8 | 9 | type RequestOptions = http.RequestOptions & tls.SecureContextOptions & { 10 | rejectUnauthorized?: boolean; // Defaults to true 11 | servername?: string; // SNI TLS Extension 12 | }; 13 | 14 | interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions { 15 | rejectUnauthorized?: boolean; 16 | maxCachedSessions?: number; 17 | } 18 | 19 | class Agent extends http.Agent { 20 | constructor(options?: AgentOptions); 21 | options: AgentOptions; 22 | } 23 | 24 | class Server extends tls.Server { 25 | constructor(requestListener?: http.RequestListener); 26 | constructor(options: ServerOptions, requestListener?: http.RequestListener); 27 | 28 | setTimeout(callback: () => void): this; 29 | setTimeout(msecs?: number, callback?: () => void): this; 30 | /** 31 | * Limits maximum incoming headers count. If set to 0, no limit will be applied. 32 | * @default 2000 33 | * {@link https://nodejs.org/api/http.html#http_server_maxheaderscount} 34 | */ 35 | maxHeadersCount: number | null; 36 | timeout: number; 37 | /** 38 | * Limit the amount of time the parser will wait to receive the complete HTTP headers. 39 | * @default 40000 40 | * {@link https://nodejs.org/api/http.html#http_server_headerstimeout} 41 | */ 42 | headersTimeout: number; 43 | keepAliveTimeout: number; 44 | } 45 | 46 | function createServer(requestListener?: http.RequestListener): Server; 47 | function createServer(options: ServerOptions, requestListener?: http.RequestListener): Server; 48 | function request(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; 49 | function request(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; 50 | function get(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; 51 | function get(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; 52 | let globalAgent: Agent; 53 | } 54 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/index.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for non-npm package Node.js 12.7 2 | // Project: http://nodejs.org/ 3 | // Definitions by: Microsoft TypeScript 4 | // DefinitelyTyped 5 | // Alberto Schiabel 6 | // Alexander T. 7 | // Alvis HT Tang 8 | // Andrew Makarov 9 | // Benjamin Toueg 10 | // Bruno Scheufler 11 | // Chigozirim C. 12 | // Christian Vaagland Tellnes 13 | // David Junger 14 | // Deividas Bakanas 15 | // Eugene Y. Q. Shen 16 | // Flarna 17 | // Hannes Magnusson 18 | // Hoàng Văn Khải 19 | // Huw 20 | // Kelvin Jin 21 | // Klaus Meinhardt 22 | // Lishude 23 | // Mariusz Wiktorczyk 24 | // Matthieu Sieben 25 | // Mohsen Azimi 26 | // Nicolas Even 27 | // Nicolas Voigt 28 | // Parambir Singh 29 | // Sebastian Silbermann 30 | // Simon Schick 31 | // Thomas den Hollander 32 | // Wilco Bakker 33 | // wwwy3y3 34 | // Zane Hannan AU 35 | // Samuel Ainsworth 36 | // Kyle Uehlein 37 | // Jordi Oliveras Rovira 38 | // Thanik Bhongbhibhat 39 | // Marcin Kopacz 40 | // Trivikram Kamat 41 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped 42 | 43 | // NOTE: These definitions support NodeJS and TypeScript 3.2. 44 | 45 | // NOTE: TypeScript version-specific augmentations can be found in the following paths: 46 | // - ~/base.d.ts - Shared definitions common to all TypeScript versions 47 | // - ~/index.d.ts - Definitions specific to TypeScript 2.1 48 | // - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2 49 | 50 | // NOTE: Augmentations for TypeScript 3.2 and later should use individual files for overrides 51 | // within the respective ~/ts3.2 (or later) folder. However, this is disallowed for versions 52 | // prior to TypeScript 3.2, so the older definitions will be found here. 53 | 54 | // Base definitions for all NodeJS modules that are not specific to any version of TypeScript: 55 | /// 56 | 57 | // TypeScript 2.1-specific augmentations: 58 | 59 | // Forward-declarations for needed types from es2015 and later (in case users are using `--lib es5`) 60 | // Empty interfaces are used here which merge fine with the real declarations in the lib XXX files 61 | // just to ensure the names are known and node typings can be sued without importing these libs. 62 | // if someone really needs these types the libs need to be added via --lib or in tsconfig.json 63 | interface MapConstructor { } 64 | interface WeakMapConstructor { } 65 | interface SetConstructor { } 66 | interface WeakSetConstructor { } 67 | interface Set {} 68 | interface Map {} 69 | interface ReadonlySet {} 70 | interface IteratorResult { } 71 | interface Iterable { } 72 | interface AsyncIterable { } 73 | interface Iterator { 74 | next(value?: any): IteratorResult; 75 | } 76 | interface IterableIterator { } 77 | interface AsyncIterableIterator {} 78 | interface SymbolConstructor { 79 | readonly iterator: symbol; 80 | readonly asyncIterator: symbol; 81 | } 82 | declare var Symbol: SymbolConstructor; 83 | // even this is just a forward declaration some properties are added otherwise 84 | // it would be allowed to pass anything to e.g. Buffer.from() 85 | interface SharedArrayBuffer { 86 | readonly byteLength: number; 87 | slice(begin?: number, end?: number): SharedArrayBuffer; 88 | } 89 | 90 | declare module "util" { 91 | namespace inspect { 92 | const custom: symbol; 93 | } 94 | namespace promisify { 95 | const custom: symbol; 96 | } 97 | namespace types { 98 | function isBigInt64Array(value: any): boolean; 99 | function isBigUint64Array(value: any): boolean; 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/module.d.ts: -------------------------------------------------------------------------------- 1 | declare module "module" { 2 | export = NodeJS.Module; 3 | } 4 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/os.d.ts: -------------------------------------------------------------------------------- 1 | declare module "os" { 2 | interface CpuInfo { 3 | model: string; 4 | speed: number; 5 | times: { 6 | user: number; 7 | nice: number; 8 | sys: number; 9 | idle: number; 10 | irq: number; 11 | }; 12 | } 13 | 14 | interface NetworkInterfaceBase { 15 | address: string; 16 | netmask: string; 17 | mac: string; 18 | internal: boolean; 19 | cidr: string | null; 20 | } 21 | 22 | interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase { 23 | family: "IPv4"; 24 | } 25 | 26 | interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase { 27 | family: "IPv6"; 28 | scopeid: number; 29 | } 30 | 31 | interface UserInfo { 32 | username: T; 33 | uid: number; 34 | gid: number; 35 | shell: T; 36 | homedir: T; 37 | } 38 | 39 | type NetworkInterfaceInfo = NetworkInterfaceInfoIPv4 | NetworkInterfaceInfoIPv6; 40 | 41 | function hostname(): string; 42 | function loadavg(): number[]; 43 | function uptime(): number; 44 | function freemem(): number; 45 | function totalmem(): number; 46 | function cpus(): CpuInfo[]; 47 | function type(): string; 48 | function release(): string; 49 | function networkInterfaces(): { [index: string]: NetworkInterfaceInfo[] }; 50 | function homedir(): string; 51 | function userInfo(options: { encoding: 'buffer' }): UserInfo; 52 | function userInfo(options?: { encoding: string }): UserInfo; 53 | const constants: { 54 | UV_UDP_REUSEADDR: number; 55 | signals: { 56 | SIGHUP: number; 57 | SIGINT: number; 58 | SIGQUIT: number; 59 | SIGILL: number; 60 | SIGTRAP: number; 61 | SIGABRT: number; 62 | SIGIOT: number; 63 | SIGBUS: number; 64 | SIGFPE: number; 65 | SIGKILL: number; 66 | SIGUSR1: number; 67 | SIGSEGV: number; 68 | SIGUSR2: number; 69 | SIGPIPE: number; 70 | SIGALRM: number; 71 | SIGTERM: number; 72 | SIGCHLD: number; 73 | SIGSTKFLT: number; 74 | SIGCONT: number; 75 | SIGSTOP: number; 76 | SIGTSTP: number; 77 | SIGTTIN: number; 78 | SIGTTOU: number; 79 | SIGURG: number; 80 | SIGXCPU: number; 81 | SIGXFSZ: number; 82 | SIGVTALRM: number; 83 | SIGPROF: number; 84 | SIGWINCH: number; 85 | SIGIO: number; 86 | SIGPOLL: number; 87 | SIGPWR: number; 88 | SIGSYS: number; 89 | SIGUNUSED: number; 90 | }; 91 | errno: { 92 | E2BIG: number; 93 | EACCES: number; 94 | EADDRINUSE: number; 95 | EADDRNOTAVAIL: number; 96 | EAFNOSUPPORT: number; 97 | EAGAIN: number; 98 | EALREADY: number; 99 | EBADF: number; 100 | EBADMSG: number; 101 | EBUSY: number; 102 | ECANCELED: number; 103 | ECHILD: number; 104 | ECONNABORTED: number; 105 | ECONNREFUSED: number; 106 | ECONNRESET: number; 107 | EDEADLK: number; 108 | EDESTADDRREQ: number; 109 | EDOM: number; 110 | EDQUOT: number; 111 | EEXIST: number; 112 | EFAULT: number; 113 | EFBIG: number; 114 | EHOSTUNREACH: number; 115 | EIDRM: number; 116 | EILSEQ: number; 117 | EINPROGRESS: number; 118 | EINTR: number; 119 | EINVAL: number; 120 | EIO: number; 121 | EISCONN: number; 122 | EISDIR: number; 123 | ELOOP: number; 124 | EMFILE: number; 125 | EMLINK: number; 126 | EMSGSIZE: number; 127 | EMULTIHOP: number; 128 | ENAMETOOLONG: number; 129 | ENETDOWN: number; 130 | ENETRESET: number; 131 | ENETUNREACH: number; 132 | ENFILE: number; 133 | ENOBUFS: number; 134 | ENODATA: number; 135 | ENODEV: number; 136 | ENOENT: number; 137 | ENOEXEC: number; 138 | ENOLCK: number; 139 | ENOLINK: number; 140 | ENOMEM: number; 141 | ENOMSG: number; 142 | ENOPROTOOPT: number; 143 | ENOSPC: number; 144 | ENOSR: number; 145 | ENOSTR: number; 146 | ENOSYS: number; 147 | ENOTCONN: number; 148 | ENOTDIR: number; 149 | ENOTEMPTY: number; 150 | ENOTSOCK: number; 151 | ENOTSUP: number; 152 | ENOTTY: number; 153 | ENXIO: number; 154 | EOPNOTSUPP: number; 155 | EOVERFLOW: number; 156 | EPERM: number; 157 | EPIPE: number; 158 | EPROTO: number; 159 | EPROTONOSUPPORT: number; 160 | EPROTOTYPE: number; 161 | ERANGE: number; 162 | EROFS: number; 163 | ESPIPE: number; 164 | ESRCH: number; 165 | ESTALE: number; 166 | ETIME: number; 167 | ETIMEDOUT: number; 168 | ETXTBSY: number; 169 | EWOULDBLOCK: number; 170 | EXDEV: number; 171 | }; 172 | priority: { 173 | PRIORITY_LOW: number; 174 | PRIORITY_BELOW_NORMAL: number; 175 | PRIORITY_NORMAL: number; 176 | PRIORITY_ABOVE_NORMAL: number; 177 | PRIORITY_HIGH: number; 178 | PRIORITY_HIGHEST: number; 179 | } 180 | }; 181 | function arch(): string; 182 | function platform(): NodeJS.Platform; 183 | function tmpdir(): string; 184 | const EOL: string; 185 | function endianness(): "BE" | "LE"; 186 | /** 187 | * Gets the priority of a process. 188 | * Defaults to current process. 189 | */ 190 | function getPriority(pid?: number): number; 191 | /** 192 | * Sets the priority of the current process. 193 | * @param priority Must be in range of -20 to 19 194 | */ 195 | function setPriority(priority: number): void; 196 | /** 197 | * Sets the priority of the process specified process. 198 | * @param priority Must be in range of -20 to 19 199 | */ 200 | function setPriority(pid: number, priority: number): void; 201 | } 202 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "_from": "@types/node", 3 | "_id": "@types/node@12.7.5", 4 | "_inBundle": false, 5 | "_integrity": "sha512-9fq4jZVhPNW8r+UYKnxF1e2HkDWOWKM5bC2/7c9wPV835I0aOrVbS/Hw/pWPk2uKrNXQqg9Z959Kz+IYDd5p3w==", 6 | "_location": "/@types/node", 7 | "_phantomChildren": {}, 8 | "_requested": { 9 | "type": "tag", 10 | "registry": true, 11 | "raw": "@types/node", 12 | "name": "@types/node", 13 | "escapedName": "@types%2fnode", 14 | "scope": "@types", 15 | "rawSpec": "", 16 | "saveSpec": null, 17 | "fetchSpec": "latest" 18 | }, 19 | "_requiredBy": [ 20 | "#USER", 21 | "/" 22 | ], 23 | "_resolved": "https://registry.npmjs.org/@types/node/-/node-12.7.5.tgz", 24 | "_shasum": "e19436e7f8e9b4601005d73673b6dc4784ffcc2f", 25 | "_spec": "@types/node", 26 | "_where": "D:\\git\\webwindow.netcore\\webwindow\\webhost", 27 | "bugs": { 28 | "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" 29 | }, 30 | "bundleDependencies": false, 31 | "contributors": [ 32 | { 33 | "name": "Microsoft TypeScript", 34 | "url": "https://github.com/Microsoft" 35 | }, 36 | { 37 | "name": "DefinitelyTyped", 38 | "url": "https://github.com/DefinitelyTyped" 39 | }, 40 | { 41 | "name": "Alberto Schiabel", 42 | "url": "https://github.com/jkomyno" 43 | }, 44 | { 45 | "name": "Alexander T.", 46 | "url": "https://github.com/a-tarasyuk" 47 | }, 48 | { 49 | "name": "Alvis HT Tang", 50 | "url": "https://github.com/alvis" 51 | }, 52 | { 53 | "name": "Andrew Makarov", 54 | "url": "https://github.com/r3nya" 55 | }, 56 | { 57 | "name": "Benjamin Toueg", 58 | "url": "https://github.com/btoueg" 59 | }, 60 | { 61 | "name": "Bruno Scheufler", 62 | "url": "https://github.com/brunoscheufler" 63 | }, 64 | { 65 | "name": "Chigozirim C.", 66 | "url": "https://github.com/smac89" 67 | }, 68 | { 69 | "name": "Christian Vaagland Tellnes", 70 | "url": "https://github.com/tellnes" 71 | }, 72 | { 73 | "name": "David Junger", 74 | "url": "https://github.com/touffy" 75 | }, 76 | { 77 | "name": "Deividas Bakanas", 78 | "url": "https://github.com/DeividasBakanas" 79 | }, 80 | { 81 | "name": "Eugene Y. Q. Shen", 82 | "url": "https://github.com/eyqs" 83 | }, 84 | { 85 | "name": "Flarna", 86 | "url": "https://github.com/Flarna" 87 | }, 88 | { 89 | "name": "Hannes Magnusson", 90 | "url": "https://github.com/Hannes-Magnusson-CK" 91 | }, 92 | { 93 | "name": "Hoàng Văn Khải", 94 | "url": "https://github.com/KSXGitHub" 95 | }, 96 | { 97 | "name": "Huw", 98 | "url": "https://github.com/hoo29" 99 | }, 100 | { 101 | "name": "Kelvin Jin", 102 | "url": "https://github.com/kjin" 103 | }, 104 | { 105 | "name": "Klaus Meinhardt", 106 | "url": "https://github.com/ajafff" 107 | }, 108 | { 109 | "name": "Lishude", 110 | "url": "https://github.com/islishude" 111 | }, 112 | { 113 | "name": "Mariusz Wiktorczyk", 114 | "url": "https://github.com/mwiktorczyk" 115 | }, 116 | { 117 | "name": "Matthieu Sieben", 118 | "url": "https://github.com/matthieusieben" 119 | }, 120 | { 121 | "name": "Mohsen Azimi", 122 | "url": "https://github.com/mohsen1" 123 | }, 124 | { 125 | "name": "Nicolas Even", 126 | "url": "https://github.com/n-e" 127 | }, 128 | { 129 | "name": "Nicolas Voigt", 130 | "url": "https://github.com/octo-sniffle" 131 | }, 132 | { 133 | "name": "Parambir Singh", 134 | "url": "https://github.com/parambirs" 135 | }, 136 | { 137 | "name": "Sebastian Silbermann", 138 | "url": "https://github.com/eps1lon" 139 | }, 140 | { 141 | "name": "Simon Schick", 142 | "url": "https://github.com/SimonSchick" 143 | }, 144 | { 145 | "name": "Thomas den Hollander", 146 | "url": "https://github.com/ThomasdenH" 147 | }, 148 | { 149 | "name": "Wilco Bakker", 150 | "url": "https://github.com/WilcoBakker" 151 | }, 152 | { 153 | "name": "wwwy3y3", 154 | "url": "https://github.com/wwwy3y3" 155 | }, 156 | { 157 | "name": "Zane Hannan AU", 158 | "url": "https://github.com/ZaneHannanAU" 159 | }, 160 | { 161 | "name": "Samuel Ainsworth", 162 | "url": "https://github.com/samuela" 163 | }, 164 | { 165 | "name": "Kyle Uehlein", 166 | "url": "https://github.com/kuehlein" 167 | }, 168 | { 169 | "name": "Jordi Oliveras Rovira", 170 | "url": "https://github.com/j-oliveras" 171 | }, 172 | { 173 | "name": "Thanik Bhongbhibhat", 174 | "url": "https://github.com/bhongy" 175 | }, 176 | { 177 | "name": "Marcin Kopacz", 178 | "url": "https://github.com/chyzwar" 179 | }, 180 | { 181 | "name": "Trivikram Kamat", 182 | "url": "https://github.com/trivikr" 183 | } 184 | ], 185 | "dependencies": {}, 186 | "deprecated": false, 187 | "description": "TypeScript definitions for Node.js", 188 | "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped#readme", 189 | "license": "MIT", 190 | "main": "", 191 | "name": "@types/node", 192 | "repository": { 193 | "type": "git", 194 | "url": "git+https://github.com/DefinitelyTyped/DefinitelyTyped.git", 195 | "directory": "types/node" 196 | }, 197 | "scripts": {}, 198 | "typeScriptVersion": "2.0", 199 | "types": "index", 200 | "typesPublisherContentHash": "f0d8295c97f3f4bafe268435e951340e846630f23bf920def70d6d0d454de5f3", 201 | "typesVersions": { 202 | ">=3.2.0-0": { 203 | "*": [ 204 | "ts3.2/*" 205 | ] 206 | } 207 | }, 208 | "version": "12.7.5" 209 | } 210 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/path.d.ts: -------------------------------------------------------------------------------- 1 | declare module "path" { 2 | /** 3 | * A parsed path object generated by path.parse() or consumed by path.format(). 4 | */ 5 | interface ParsedPath { 6 | /** 7 | * The root of the path such as '/' or 'c:\' 8 | */ 9 | root: string; 10 | /** 11 | * The full directory path such as '/home/user/dir' or 'c:\path\dir' 12 | */ 13 | dir: string; 14 | /** 15 | * The file name including extension (if any) such as 'index.html' 16 | */ 17 | base: string; 18 | /** 19 | * The file extension (if any) such as '.html' 20 | */ 21 | ext: string; 22 | /** 23 | * The file name without extension (if any) such as 'index' 24 | */ 25 | name: string; 26 | } 27 | interface FormatInputPathObject { 28 | /** 29 | * The root of the path such as '/' or 'c:\' 30 | */ 31 | root?: string; 32 | /** 33 | * The full directory path such as '/home/user/dir' or 'c:\path\dir' 34 | */ 35 | dir?: string; 36 | /** 37 | * The file name including extension (if any) such as 'index.html' 38 | */ 39 | base?: string; 40 | /** 41 | * The file extension (if any) such as '.html' 42 | */ 43 | ext?: string; 44 | /** 45 | * The file name without extension (if any) such as 'index' 46 | */ 47 | name?: string; 48 | } 49 | 50 | /** 51 | * Normalize a string path, reducing '..' and '.' parts. 52 | * When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used. 53 | * 54 | * @param p string path to normalize. 55 | */ 56 | function normalize(p: string): string; 57 | /** 58 | * Join all arguments together and normalize the resulting path. 59 | * Arguments must be strings. In v0.8, non-string arguments were silently ignored. In v0.10 and up, an exception is thrown. 60 | * 61 | * @param paths paths to join. 62 | */ 63 | function join(...paths: string[]): string; 64 | /** 65 | * The right-most parameter is considered {to}. Other parameters are considered an array of {from}. 66 | * 67 | * Starting from leftmost {from} parameter, resolves {to} to an absolute path. 68 | * 69 | * If {to} isn't already absolute, {from} arguments are prepended in right to left order, 70 | * until an absolute path is found. If after using all {from} paths still no absolute path is found, 71 | * the current working directory is used as well. The resulting path is normalized, 72 | * and trailing slashes are removed unless the path gets resolved to the root directory. 73 | * 74 | * @param pathSegments string paths to join. Non-string arguments are ignored. 75 | */ 76 | function resolve(...pathSegments: string[]): string; 77 | /** 78 | * Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory. 79 | * 80 | * @param path path to test. 81 | */ 82 | function isAbsolute(path: string): boolean; 83 | /** 84 | * Solve the relative path from {from} to {to}. 85 | * At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve. 86 | */ 87 | function relative(from: string, to: string): string; 88 | /** 89 | * Return the directory name of a path. Similar to the Unix dirname command. 90 | * 91 | * @param p the path to evaluate. 92 | */ 93 | function dirname(p: string): string; 94 | /** 95 | * Return the last portion of a path. Similar to the Unix basename command. 96 | * Often used to extract the file name from a fully qualified path. 97 | * 98 | * @param p the path to evaluate. 99 | * @param ext optionally, an extension to remove from the result. 100 | */ 101 | function basename(p: string, ext?: string): string; 102 | /** 103 | * Return the extension of the path, from the last '.' to end of string in the last portion of the path. 104 | * If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string 105 | * 106 | * @param p the path to evaluate. 107 | */ 108 | function extname(p: string): string; 109 | /** 110 | * The platform-specific file separator. '\\' or '/'. 111 | */ 112 | const sep: '\\' | '/'; 113 | /** 114 | * The platform-specific file delimiter. ';' or ':'. 115 | */ 116 | const delimiter: ';' | ':'; 117 | /** 118 | * Returns an object from a path string - the opposite of format(). 119 | * 120 | * @param pathString path to evaluate. 121 | */ 122 | function parse(pathString: string): ParsedPath; 123 | /** 124 | * Returns a path string from an object - the opposite of parse(). 125 | * 126 | * @param pathString path to evaluate. 127 | */ 128 | function format(pathObject: FormatInputPathObject): string; 129 | 130 | namespace posix { 131 | function normalize(p: string): string; 132 | function join(...paths: string[]): string; 133 | function resolve(...pathSegments: string[]): string; 134 | function isAbsolute(p: string): boolean; 135 | function relative(from: string, to: string): string; 136 | function dirname(p: string): string; 137 | function basename(p: string, ext?: string): string; 138 | function extname(p: string): string; 139 | const sep: string; 140 | const delimiter: string; 141 | function parse(p: string): ParsedPath; 142 | function format(pP: FormatInputPathObject): string; 143 | } 144 | 145 | namespace win32 { 146 | function normalize(p: string): string; 147 | function join(...paths: string[]): string; 148 | function resolve(...pathSegments: string[]): string; 149 | function isAbsolute(p: string): boolean; 150 | function relative(from: string, to: string): string; 151 | function dirname(p: string): string; 152 | function basename(p: string, ext?: string): string; 153 | function extname(p: string): string; 154 | const sep: string; 155 | const delimiter: string; 156 | function parse(p: string): ParsedPath; 157 | function format(pP: FormatInputPathObject): string; 158 | } 159 | } 160 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/process.d.ts: -------------------------------------------------------------------------------- 1 | declare module "process" { 2 | export = process; 3 | } 4 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/punycode.d.ts: -------------------------------------------------------------------------------- 1 | declare module "punycode" { 2 | function decode(string: string): string; 3 | function encode(string: string): string; 4 | function toUnicode(domain: string): string; 5 | function toASCII(domain: string): string; 6 | const ucs2: ucs2; 7 | interface ucs2 { 8 | decode(string: string): number[]; 9 | encode(codePoints: number[]): string; 10 | } 11 | const version: string; 12 | } 13 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/querystring.d.ts: -------------------------------------------------------------------------------- 1 | declare module "querystring" { 2 | interface StringifyOptions { 3 | encodeURIComponent?: (str: string) => string; 4 | } 5 | 6 | interface ParseOptions { 7 | maxKeys?: number; 8 | decodeURIComponent?: (str: string) => string; 9 | } 10 | 11 | interface ParsedUrlQuery { [key: string]: string | string[]; } 12 | 13 | interface ParsedUrlQueryInput { 14 | [key: string]: 15 | // The value type here is a "poor man's `unknown`". When these types support TypeScript 16 | // 3.0+, we can replace this with `unknown`. 17 | {} | null | undefined; 18 | } 19 | 20 | function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string; 21 | function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery; 22 | /** 23 | * The querystring.encode() function is an alias for querystring.stringify(). 24 | */ 25 | const encode: typeof stringify; 26 | /** 27 | * The querystring.decode() function is an alias for querystring.parse(). 28 | */ 29 | const decode: typeof parse; 30 | function escape(str: string): string; 31 | function unescape(str: string): string; 32 | } 33 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/readline.d.ts: -------------------------------------------------------------------------------- 1 | declare module "readline" { 2 | import * as events from "events"; 3 | import * as stream from "stream"; 4 | 5 | interface Key { 6 | sequence?: string; 7 | name?: string; 8 | ctrl?: boolean; 9 | meta?: boolean; 10 | shift?: boolean; 11 | } 12 | 13 | class Interface extends events.EventEmitter { 14 | readonly terminal: boolean; 15 | 16 | /** 17 | * NOTE: According to the documentation: 18 | * 19 | * > Instances of the `readline.Interface` class are constructed using the 20 | * > `readline.createInterface()` method. 21 | * 22 | * @see https://nodejs.org/dist/latest-v10.x/docs/api/readline.html#readline_class_interface 23 | */ 24 | protected constructor(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean); 25 | /** 26 | * NOTE: According to the documentation: 27 | * 28 | * > Instances of the `readline.Interface` class are constructed using the 29 | * > `readline.createInterface()` method. 30 | * 31 | * @see https://nodejs.org/dist/latest-v10.x/docs/api/readline.html#readline_class_interface 32 | */ 33 | protected constructor(options: ReadLineOptions); 34 | 35 | setPrompt(prompt: string): void; 36 | prompt(preserveCursor?: boolean): void; 37 | question(query: string, callback: (answer: string) => void): void; 38 | pause(): this; 39 | resume(): this; 40 | close(): void; 41 | write(data: string | Buffer, key?: Key): void; 42 | 43 | /** 44 | * events.EventEmitter 45 | * 1. close 46 | * 2. line 47 | * 3. pause 48 | * 4. resume 49 | * 5. SIGCONT 50 | * 6. SIGINT 51 | * 7. SIGTSTP 52 | */ 53 | 54 | addListener(event: string, listener: (...args: any[]) => void): this; 55 | addListener(event: "close", listener: () => void): this; 56 | addListener(event: "line", listener: (input: string) => void): this; 57 | addListener(event: "pause", listener: () => void): this; 58 | addListener(event: "resume", listener: () => void): this; 59 | addListener(event: "SIGCONT", listener: () => void): this; 60 | addListener(event: "SIGINT", listener: () => void): this; 61 | addListener(event: "SIGTSTP", listener: () => void): this; 62 | 63 | emit(event: string | symbol, ...args: any[]): boolean; 64 | emit(event: "close"): boolean; 65 | emit(event: "line", input: string): boolean; 66 | emit(event: "pause"): boolean; 67 | emit(event: "resume"): boolean; 68 | emit(event: "SIGCONT"): boolean; 69 | emit(event: "SIGINT"): boolean; 70 | emit(event: "SIGTSTP"): boolean; 71 | 72 | on(event: string, listener: (...args: any[]) => void): this; 73 | on(event: "close", listener: () => void): this; 74 | on(event: "line", listener: (input: string) => void): this; 75 | on(event: "pause", listener: () => void): this; 76 | on(event: "resume", listener: () => void): this; 77 | on(event: "SIGCONT", listener: () => void): this; 78 | on(event: "SIGINT", listener: () => void): this; 79 | on(event: "SIGTSTP", listener: () => void): this; 80 | 81 | once(event: string, listener: (...args: any[]) => void): this; 82 | once(event: "close", listener: () => void): this; 83 | once(event: "line", listener: (input: string) => void): this; 84 | once(event: "pause", listener: () => void): this; 85 | once(event: "resume", listener: () => void): this; 86 | once(event: "SIGCONT", listener: () => void): this; 87 | once(event: "SIGINT", listener: () => void): this; 88 | once(event: "SIGTSTP", listener: () => void): this; 89 | 90 | prependListener(event: string, listener: (...args: any[]) => void): this; 91 | prependListener(event: "close", listener: () => void): this; 92 | prependListener(event: "line", listener: (input: string) => void): this; 93 | prependListener(event: "pause", listener: () => void): this; 94 | prependListener(event: "resume", listener: () => void): this; 95 | prependListener(event: "SIGCONT", listener: () => void): this; 96 | prependListener(event: "SIGINT", listener: () => void): this; 97 | prependListener(event: "SIGTSTP", listener: () => void): this; 98 | 99 | prependOnceListener(event: string, listener: (...args: any[]) => void): this; 100 | prependOnceListener(event: "close", listener: () => void): this; 101 | prependOnceListener(event: "line", listener: (input: string) => void): this; 102 | prependOnceListener(event: "pause", listener: () => void): this; 103 | prependOnceListener(event: "resume", listener: () => void): this; 104 | prependOnceListener(event: "SIGCONT", listener: () => void): this; 105 | prependOnceListener(event: "SIGINT", listener: () => void): this; 106 | prependOnceListener(event: "SIGTSTP", listener: () => void): this; 107 | [Symbol.asyncIterator](): AsyncIterableIterator; 108 | } 109 | 110 | type ReadLine = Interface; // type forwarded for backwards compatiblity 111 | 112 | type Completer = (line: string) => CompleterResult; 113 | type AsyncCompleter = (line: string, callback: (err?: null | Error, result?: CompleterResult) => void) => any; 114 | 115 | type CompleterResult = [string[], string]; 116 | 117 | interface ReadLineOptions { 118 | input: NodeJS.ReadableStream; 119 | output?: NodeJS.WritableStream; 120 | completer?: Completer | AsyncCompleter; 121 | terminal?: boolean; 122 | historySize?: number; 123 | prompt?: string; 124 | crlfDelay?: number; 125 | removeHistoryDuplicates?: boolean; 126 | } 127 | 128 | function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean): Interface; 129 | function createInterface(options: ReadLineOptions): Interface; 130 | function emitKeypressEvents(stream: NodeJS.ReadableStream, interface?: Interface): void; 131 | 132 | type Direction = -1 | 0 | 1; 133 | 134 | /** 135 | * Clears the current line of this WriteStream in a direction identified by `dir`. 136 | */ 137 | function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean; 138 | /** 139 | * Clears this `WriteStream` from the current cursor down. 140 | */ 141 | function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean; 142 | /** 143 | * Moves this WriteStream's cursor to the specified position. 144 | */ 145 | function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean; 146 | /** 147 | * Moves this WriteStream's cursor relative to its current position. 148 | */ 149 | function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean; 150 | } 151 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/string_decoder.d.ts: -------------------------------------------------------------------------------- 1 | declare module "string_decoder" { 2 | class StringDecoder { 3 | constructor(encoding?: string); 4 | write(buffer: Buffer): string; 5 | end(buffer?: Buffer): string; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/timers.d.ts: -------------------------------------------------------------------------------- 1 | declare module "timers" { 2 | function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout; 3 | namespace setTimeout { 4 | function __promisify__(ms: number): Promise; 5 | function __promisify__(ms: number, value: T): Promise; 6 | } 7 | function clearTimeout(timeoutId: NodeJS.Timeout): void; 8 | function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout; 9 | function clearInterval(intervalId: NodeJS.Timeout): void; 10 | function setImmediate(callback: (...args: any[]) => void, ...args: any[]): NodeJS.Immediate; 11 | namespace setImmediate { 12 | function __promisify__(): Promise; 13 | function __promisify__(value: T): Promise; 14 | } 15 | function clearImmediate(immediateId: NodeJS.Immediate): void; 16 | } 17 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/trace_events.d.ts: -------------------------------------------------------------------------------- 1 | declare module "trace_events" { 2 | /** 3 | * The `Tracing` object is used to enable or disable tracing for sets of 4 | * categories. Instances are created using the 5 | * `trace_events.createTracing()` method. 6 | * 7 | * When created, the `Tracing` object is disabled. Calling the 8 | * `tracing.enable()` method adds the categories to the set of enabled trace 9 | * event categories. Calling `tracing.disable()` will remove the categories 10 | * from the set of enabled trace event categories. 11 | */ 12 | export interface Tracing { 13 | /** 14 | * A comma-separated list of the trace event categories covered by this 15 | * `Tracing` object. 16 | */ 17 | readonly categories: string; 18 | 19 | /** 20 | * Disables this `Tracing` object. 21 | * 22 | * Only trace event categories _not_ covered by other enabled `Tracing` 23 | * objects and _not_ specified by the `--trace-event-categories` flag 24 | * will be disabled. 25 | */ 26 | disable(): void; 27 | 28 | /** 29 | * Enables this `Tracing` object for the set of categories covered by 30 | * the `Tracing` object. 31 | */ 32 | enable(): void; 33 | 34 | /** 35 | * `true` only if the `Tracing` object has been enabled. 36 | */ 37 | readonly enabled: boolean; 38 | } 39 | 40 | interface CreateTracingOptions { 41 | /** 42 | * An array of trace category names. Values included in the array are 43 | * coerced to a string when possible. An error will be thrown if the 44 | * value cannot be coerced. 45 | */ 46 | categories: string[]; 47 | } 48 | 49 | /** 50 | * Creates and returns a Tracing object for the given set of categories. 51 | */ 52 | export function createTracing(options: CreateTracingOptions): Tracing; 53 | 54 | /** 55 | * Returns a comma-separated list of all currently-enabled trace event 56 | * categories. The current set of enabled trace event categories is 57 | * determined by the union of all currently-enabled `Tracing` objects and 58 | * any categories enabled using the `--trace-event-categories` flag. 59 | */ 60 | export function getEnabledCategories(): string; 61 | } 62 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/ts3.2/globals.d.ts: -------------------------------------------------------------------------------- 1 | // tslint:disable-next-line:no-bad-reference 2 | /// 3 | 4 | declare namespace NodeJS { 5 | interface HRTime { 6 | bigint(): bigint; 7 | } 8 | } 9 | 10 | interface Buffer extends Uint8Array { 11 | readBigUInt64BE(offset?: number): bigint; 12 | readBigUInt64LE(offset?: number): bigint; 13 | readBigInt64BE(offset?: number): bigint; 14 | readBigInt64LE(offset?: number): bigint; 15 | writeBigInt64BE(value: bigint, offset?: number): number; 16 | writeBigInt64LE(value: bigint, offset?: number): number; 17 | writeBigUInt64BE(value: bigint, offset?: number): number; 18 | writeBigUInt64LE(value: bigint, offset?: number): number; 19 | } 20 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/ts3.2/index.d.ts: -------------------------------------------------------------------------------- 1 | // NOTE: These definitions support NodeJS and TypeScript 3.2. 2 | 3 | // NOTE: TypeScript version-specific augmentations can be found in the following paths: 4 | // - ~/base.d.ts - Shared definitions common to all TypeScript versions 5 | // - ~/index.d.ts - Definitions specific to TypeScript 2.1 6 | // - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2 7 | 8 | // Reference required types from the default lib: 9 | /// 10 | /// 11 | /// 12 | /// 13 | 14 | // Base definitions for all NodeJS modules that are not specific to any version of TypeScript: 15 | // tslint:disable-next-line:no-bad-reference 16 | /// 17 | 18 | // TypeScript 3.2-specific augmentations: 19 | /// 20 | /// 21 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/ts3.2/util.d.ts: -------------------------------------------------------------------------------- 1 | // tslint:disable-next-line:no-bad-reference 2 | /// 3 | 4 | declare module "util" { 5 | namespace inspect { 6 | const custom: unique symbol; 7 | } 8 | namespace promisify { 9 | const custom: unique symbol; 10 | } 11 | namespace types { 12 | function isBigInt64Array(value: any): value is BigInt64Array; 13 | function isBigUint64Array(value: any): value is BigUint64Array; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/tty.d.ts: -------------------------------------------------------------------------------- 1 | declare module "tty" { 2 | import * as net from "net"; 3 | 4 | function isatty(fd: number): boolean; 5 | class ReadStream extends net.Socket { 6 | constructor(fd: number, options?: net.SocketConstructorOpts); 7 | isRaw: boolean; 8 | setRawMode(mode: boolean): void; 9 | isTTY: boolean; 10 | } 11 | /** 12 | * -1 - to the left from cursor 13 | * 0 - the entire line 14 | * 1 - to the right from cursor 15 | */ 16 | type Direction = -1 | 0 | 1; 17 | class WriteStream extends net.Socket { 18 | constructor(fd: number); 19 | addListener(event: string, listener: (...args: any[]) => void): this; 20 | addListener(event: "resize", listener: () => void): this; 21 | 22 | emit(event: string | symbol, ...args: any[]): boolean; 23 | emit(event: "resize"): boolean; 24 | 25 | on(event: string, listener: (...args: any[]) => void): this; 26 | on(event: "resize", listener: () => void): this; 27 | 28 | once(event: string, listener: (...args: any[]) => void): this; 29 | once(event: "resize", listener: () => void): this; 30 | 31 | prependListener(event: string, listener: (...args: any[]) => void): this; 32 | prependListener(event: "resize", listener: () => void): this; 33 | 34 | prependOnceListener(event: string, listener: (...args: any[]) => void): this; 35 | prependOnceListener(event: "resize", listener: () => void): this; 36 | 37 | /** 38 | * Clears the current line of this WriteStream in a direction identified by `dir`. 39 | */ 40 | clearLine(dir: Direction, callback?: () => void): boolean; 41 | /** 42 | * Clears this `WriteStream` from the current cursor down. 43 | */ 44 | clearScreenDown(callback?: () => void): boolean; 45 | /** 46 | * Moves this WriteStream's cursor to the specified position. 47 | */ 48 | cursorTo(x: number, y: number, callback?: () => void): boolean; 49 | /** 50 | * Moves this WriteStream's cursor relative to its current position. 51 | */ 52 | moveCursor(dx: number, dy: number, callback?: () => void): boolean; 53 | /** 54 | * @default `process.env` 55 | */ 56 | getColorDepth(env?: {}): number; 57 | hasColors(depth?: number): boolean; 58 | hasColors(env?: {}): boolean; 59 | hasColors(depth: number, env?: {}): boolean; 60 | getWindowSize(): [number, number]; 61 | columns: number; 62 | rows: number; 63 | isTTY: boolean; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/url.d.ts: -------------------------------------------------------------------------------- 1 | declare module "url" { 2 | import { ParsedUrlQuery, ParsedUrlQueryInput } from 'querystring'; 3 | 4 | interface UrlObjectCommon { 5 | auth?: string; 6 | hash?: string; 7 | host?: string; 8 | hostname?: string; 9 | href?: string; 10 | path?: string; 11 | pathname?: string; 12 | protocol?: string; 13 | search?: string; 14 | slashes?: boolean; 15 | } 16 | 17 | // Input to `url.format` 18 | interface UrlObject extends UrlObjectCommon { 19 | port?: string | number; 20 | query?: string | null | ParsedUrlQueryInput; 21 | } 22 | 23 | // Output of `url.parse` 24 | interface Url extends UrlObjectCommon { 25 | port?: string; 26 | query?: string | null | ParsedUrlQuery; 27 | } 28 | 29 | interface UrlWithParsedQuery extends Url { 30 | query: ParsedUrlQuery; 31 | } 32 | 33 | interface UrlWithStringQuery extends Url { 34 | query: string | null; 35 | } 36 | 37 | function parse(urlStr: string): UrlWithStringQuery; 38 | function parse(urlStr: string, parseQueryString: false | undefined, slashesDenoteHost?: boolean): UrlWithStringQuery; 39 | function parse(urlStr: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery; 40 | function parse(urlStr: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url; 41 | 42 | function format(URL: URL, options?: URLFormatOptions): string; 43 | function format(urlObject: UrlObject | string): string; 44 | function resolve(from: string, to: string): string; 45 | 46 | function domainToASCII(domain: string): string; 47 | function domainToUnicode(domain: string): string; 48 | 49 | /** 50 | * This function ensures the correct decodings of percent-encoded characters as 51 | * well as ensuring a cross-platform valid absolute path string. 52 | * @param url The file URL string or URL object to convert to a path. 53 | */ 54 | function fileURLToPath(url: string | URL): string; 55 | 56 | /** 57 | * This function ensures that path is resolved absolutely, and that the URL 58 | * control characters are correctly encoded when converting into a File URL. 59 | * @param url The path to convert to a File URL. 60 | */ 61 | function pathToFileURL(url: string): URL; 62 | 63 | interface URLFormatOptions { 64 | auth?: boolean; 65 | fragment?: boolean; 66 | search?: boolean; 67 | unicode?: boolean; 68 | } 69 | 70 | class URL { 71 | constructor(input: string, base?: string | URL); 72 | hash: string; 73 | host: string; 74 | hostname: string; 75 | href: string; 76 | readonly origin: string; 77 | password: string; 78 | pathname: string; 79 | port: string; 80 | protocol: string; 81 | search: string; 82 | readonly searchParams: URLSearchParams; 83 | username: string; 84 | toString(): string; 85 | toJSON(): string; 86 | } 87 | 88 | class URLSearchParams implements Iterable<[string, string]> { 89 | constructor(init?: URLSearchParams | string | { [key: string]: string | string[] | undefined } | Iterable<[string, string]> | Array<[string, string]>); 90 | append(name: string, value: string): void; 91 | delete(name: string): void; 92 | entries(): IterableIterator<[string, string]>; 93 | forEach(callback: (value: string, name: string, searchParams: this) => void): void; 94 | get(name: string): string | null; 95 | getAll(name: string): string[]; 96 | has(name: string): boolean; 97 | keys(): IterableIterator; 98 | set(name: string, value: string): void; 99 | sort(): void; 100 | toString(): string; 101 | values(): IterableIterator; 102 | [Symbol.iterator](): IterableIterator<[string, string]>; 103 | } 104 | } 105 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/v8.d.ts: -------------------------------------------------------------------------------- 1 | declare module "v8" { 2 | import { Readable } from "stream"; 3 | 4 | interface HeapSpaceInfo { 5 | space_name: string; 6 | space_size: number; 7 | space_used_size: number; 8 | space_available_size: number; 9 | physical_space_size: number; 10 | } 11 | 12 | // ** Signifies if the --zap_code_space option is enabled or not. 1 == enabled, 0 == disabled. */ 13 | type DoesZapCodeSpaceFlag = 0 | 1; 14 | 15 | interface HeapInfo { 16 | total_heap_size: number; 17 | total_heap_size_executable: number; 18 | total_physical_size: number; 19 | total_available_size: number; 20 | used_heap_size: number; 21 | heap_size_limit: number; 22 | malloced_memory: number; 23 | peak_malloced_memory: number; 24 | does_zap_garbage: DoesZapCodeSpaceFlag; 25 | number_of_native_contexts: number; 26 | number_of_detached_contexts: number; 27 | } 28 | 29 | function getHeapStatistics(): HeapInfo; 30 | function getHeapSpaceStatistics(): HeapSpaceInfo[]; 31 | function setFlagsFromString(flags: string): void; 32 | /** 33 | * Generates a snapshot of the current V8 heap and returns a Readable 34 | * Stream that may be used to read the JSON serialized representation. 35 | * This conversation was marked as resolved by joyeecheung 36 | * This JSON stream format is intended to be used with tools such as 37 | * Chrome DevTools. The JSON schema is undocumented and specific to the 38 | * V8 engine, and may change from one version of V8 to the next. 39 | */ 40 | function getHeapSnapshot(): Readable; 41 | 42 | /** 43 | * 44 | * @param fileName The file path where the V8 heap snapshot is to be 45 | * saved. If not specified, a file name with the pattern 46 | * `'Heap-${yyyymmdd}-${hhmmss}-${pid}-${thread_id}.heapsnapshot'` will be 47 | * generated, where `{pid}` will be the PID of the Node.js process, 48 | * `{thread_id}` will be `0` when `writeHeapSnapshot()` is called from 49 | * the main Node.js thread or the id of a worker thread. 50 | */ 51 | function writeHeapSnapshot(fileName?: string): string; 52 | } 53 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/node_modules/@types/node/vm.d.ts: -------------------------------------------------------------------------------- 1 | declare module "vm" { 2 | interface Context { 3 | [key: string]: any; 4 | } 5 | interface BaseOptions { 6 | /** 7 | * Specifies the filename used in stack traces produced by this script. 8 | * Default: `''`. 9 | */ 10 | filename?: string; 11 | /** 12 | * Specifies the line number offset that is displayed in stack traces produced by this script. 13 | * Default: `0`. 14 | */ 15 | lineOffset?: number; 16 | /** 17 | * Specifies the column number offset that is displayed in stack traces produced by this script. 18 | * Default: `0` 19 | */ 20 | columnOffset?: number; 21 | } 22 | interface ScriptOptions extends BaseOptions { 23 | displayErrors?: boolean; 24 | timeout?: number; 25 | cachedData?: Buffer; 26 | produceCachedData?: boolean; 27 | } 28 | interface RunningScriptOptions extends BaseOptions { 29 | displayErrors?: boolean; 30 | timeout?: number; 31 | } 32 | interface CompileFunctionOptions extends BaseOptions { 33 | /** 34 | * Provides an optional data with V8's code cache data for the supplied source. 35 | */ 36 | cachedData?: Buffer; 37 | /** 38 | * Specifies whether to produce new cache data. 39 | * Default: `false`, 40 | */ 41 | produceCachedData?: boolean; 42 | /** 43 | * The sandbox/context in which the said function should be compiled in. 44 | */ 45 | parsingContext?: Context; 46 | 47 | /** 48 | * An array containing a collection of context extensions (objects wrapping the current scope) to be applied while compiling 49 | */ 50 | contextExtensions?: Object[]; 51 | } 52 | 53 | interface CreateContextOptions { 54 | /** 55 | * Human-readable name of the newly created context. 56 | * @default 'VM Context i' Where i is an ascending numerical index of the created context. 57 | */ 58 | name?: string; 59 | /** 60 | * Corresponds to the newly created context for display purposes. 61 | * The origin should be formatted like a `URL`, but with only the scheme, host, and port (if necessary), 62 | * like the value of the `url.origin` property of a URL object. 63 | * Most notably, this string should omit the trailing slash, as that denotes a path. 64 | * @default '' 65 | */ 66 | origin?: string; 67 | codeGeneration?: { 68 | /** 69 | * If set to false any calls to eval or function constructors (Function, GeneratorFunction, etc) 70 | * will throw an EvalError. 71 | * @default true 72 | */ 73 | strings?: boolean; 74 | /** 75 | * If set to false any attempt to compile a WebAssembly module will throw a WebAssembly.CompileError. 76 | * @default true 77 | */ 78 | wasm?: boolean; 79 | }; 80 | } 81 | 82 | class Script { 83 | constructor(code: string, options?: ScriptOptions); 84 | runInContext(contextifiedSandbox: Context, options?: RunningScriptOptions): any; 85 | runInNewContext(sandbox?: Context, options?: RunningScriptOptions): any; 86 | runInThisContext(options?: RunningScriptOptions): any; 87 | createCachedData(): Buffer; 88 | } 89 | function createContext(sandbox?: Context, options?: CreateContextOptions): Context; 90 | function isContext(sandbox: Context): boolean; 91 | function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions | string): any; 92 | function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions | string): any; 93 | function runInThisContext(code: string, options?: RunningScriptOptions | string): any; 94 | function compileFunction(code: string, params: string[], options: CompileFunctionOptions): Function; 95 | } 96 | -------------------------------------------------------------------------------- /webwindow/vscode_part/webremotewin/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "requires": true, 3 | "lockfileVersion": 1, 4 | "dependencies": { 5 | "@types/node": { 6 | "version": "12.7.5", 7 | "resolved": "https://registry.npmjs.org/@types/node/-/node-12.7.5.tgz", 8 | "integrity": "sha512-9fq4jZVhPNW8r+UYKnxF1e2HkDWOWKM5bC2/7c9wPV835I0aOrVbS/Hw/pWPk2uKrNXQqg9Z959Kz+IYDd5p3w==" 9 | } 10 | } 11 | } 12 | --------------------------------------------------------------------------------