@jsonstudio/zterm-daemon-win32-x64 0.0.0-stage → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +191 -0
- package/README.md +2 -2
- package/package.json +25 -4
- package/runtime/dagpipe.node +0 -0
- package/runtime/node_modules/@roamhq/wrtc/AUTHORS +17 -0
- package/runtime/node_modules/@roamhq/wrtc/CHANGELOG.md +1094 -0
- package/runtime/node_modules/@roamhq/wrtc/LICENSE.md +30 -0
- package/runtime/node_modules/@roamhq/wrtc/README.md +74 -0
- package/runtime/node_modules/@roamhq/wrtc/lib/binding.js +31 -0
- package/runtime/node_modules/@roamhq/wrtc/lib/browser.js +18 -0
- package/runtime/node_modules/@roamhq/wrtc/lib/datachannelevent.js +26 -0
- package/runtime/node_modules/@roamhq/wrtc/lib/datachannelmessageevent.js +9 -0
- package/runtime/node_modules/@roamhq/wrtc/lib/error.js +20 -0
- package/runtime/node_modules/@roamhq/wrtc/lib/eventtarget.js +59 -0
- package/runtime/node_modules/@roamhq/wrtc/lib/icecandidate.js +43 -0
- package/runtime/node_modules/@roamhq/wrtc/lib/index.js +85 -0
- package/runtime/node_modules/@roamhq/wrtc/lib/mediadevices.js +30 -0
- package/runtime/node_modules/@roamhq/wrtc/lib/peerconnection.js +333 -0
- package/runtime/node_modules/@roamhq/wrtc/lib/rtcpeerconnectioniceerrorevent.js +36 -0
- package/runtime/node_modules/@roamhq/wrtc/lib/rtcpeerconnectioniceevent.js +20 -0
- package/runtime/node_modules/@roamhq/wrtc/lib/sessiondescription.js +19 -0
- package/runtime/node_modules/@roamhq/wrtc/package.json +68 -0
- package/runtime/node_modules/@roamhq/wrtc/types/index.d.ts +32 -0
- package/runtime/node_modules/@roamhq/wrtc/types/nonstandard.d.ts +81 -0
- package/runtime/node_modules/@roamhq/wrtc-win32-x64/index.js +1 -0
- package/runtime/node_modules/@roamhq/wrtc-win32-x64/package.json +16 -0
- package/runtime/node_modules/@roamhq/wrtc-win32-x64/wrtc.node +0 -0
- package/runtime/node_modules/node-pty/LICENSE +69 -0
- package/runtime/node_modules/node-pty/README.md +165 -0
- package/runtime/node_modules/node-pty/binding.gyp +111 -0
- package/runtime/node_modules/node-pty/build/Release/conpty/OpenConsole.exe +0 -0
- package/runtime/node_modules/node-pty/build/Release/conpty/conpty.dll +0 -0
- package/runtime/node_modules/node-pty/deps/.editorconfig +2 -0
- package/runtime/node_modules/node-pty/deps/winpty/.drone.yml +17 -0
- package/runtime/node_modules/node-pty/deps/winpty/.gitattributes +19 -0
- package/runtime/node_modules/node-pty/deps/winpty/LICENSE +21 -0
- package/runtime/node_modules/node-pty/deps/winpty/Makefile +166 -0
- package/runtime/node_modules/node-pty/deps/winpty/README.md +151 -0
- package/runtime/node_modules/node-pty/deps/winpty/RELEASES.md +280 -0
- package/runtime/node_modules/node-pty/deps/winpty/VERSION.txt +1 -0
- package/runtime/node_modules/node-pty/deps/winpty/configure +167 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/BufferResizeTests.cc +90 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/ChangeScreenBuffer.cc +53 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/ClearConsole.cc +72 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/ConinMode.cc +117 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/ConinMode.ps1 +116 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/ConoutMode.cc +113 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/DebugClient.py +42 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/DebugServer.py +63 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/DumpLines.py +5 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/EnableExtendedFlags.txt +46 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Consolas.txt +528 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Lucida.txt +633 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP932.txt +630 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP936.txt +630 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP949.txt +630 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP950.txt +630 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/MinimumWindowWidths.txt +16 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Results.txt +4 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Windows10SetFontBugginess.txt +144 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/FontSurvey.cc +100 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/FormatChar.h +21 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/FreezePerfTest.cc +62 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/GetCh.cc +20 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/GetConsolePos.cc +41 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/GetFont.cc +261 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/IdentifyConsoleWindow.ps1 +51 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/IsNewConsole.cc +87 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/MouseInputNotes.txt +90 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/MoveConsoleWindow.cc +34 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Notes.txt +219 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/OSVersion.cc +27 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/ScreenBufferFreezeInactive.cc +101 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest.cc +671 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest2.cc +151 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/SelectAllTest.cc +45 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/SetBufferSize.cc +32 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/SetCursorPos.cc +10 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/SetFont.cc +145 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/SetWindowRect.cc +36 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/ShowArgv.cc +12 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/ShowConsoleInput.cc +40 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Spew.py +5 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/TestUtil.cc +172 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/UnicodeDoubleWidthTest.cc +102 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest1.cc +246 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest2.cc +130 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/UnixEcho.cc +89 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Utf16Echo.cc +46 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/VeryLargeRead.cc +122 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/VkEscapeTest.cc +56 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Win10ResizeWhileFrozen.cc +52 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Win10WrapTest1.cc +57 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Win10WrapTest2.cc +30 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Win32Echo1.cc +26 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Win32Echo2.cc +19 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Win32Test1.cc +46 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Win32Test2.cc +70 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Win32Test3.cc +78 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/Win32Write1.cc +44 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/WindowsBugCrashReader.cc +27 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/WriteConsole.cc +106 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/build32.sh +9 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/build64.sh +9 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/color-test.sh +212 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/font-notes.txt +300 -0
- package/runtime/node_modules/node-pty/deps/winpty/misc/winbug-15048.cc +201 -0
- package/runtime/node_modules/node-pty/deps/winpty/ship/build-pty4j-libpty.bat +36 -0
- package/runtime/node_modules/node-pty/deps/winpty/ship/common_ship.py +53 -0
- package/runtime/node_modules/node-pty/deps/winpty/ship/make_msvc_package.py +165 -0
- package/runtime/node_modules/node-pty/deps/winpty/ship/ship.py +108 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/Agent.cc +613 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/Agent.h +103 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.cc +84 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.h +28 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.cc +632 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.h +28 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.cc +852 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.h +109 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.cc +121 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.h +36 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.cc +152 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.h +41 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/Coord.h +87 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.cc +239 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.h +32 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.cc +422 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.h +28 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/DsrSender.h +30 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/EventLoop.cc +99 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/EventLoop.h +47 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/InputMap.cc +246 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/InputMap.h +114 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.cc +71 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.h +68 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.cc +378 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.h +125 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/Scraper.cc +699 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/Scraper.h +103 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/SimplePool.h +75 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/SmallRect.h +143 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/Terminal.cc +535 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/Terminal.h +69 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncoding.h +157 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncodingTest.cc +189 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/Win32Console.cc +107 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/Win32Console.h +67 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.cc +193 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.h +99 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/main.cc +114 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/agent/subdir.mk +61 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/configurations.gypi +60 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/debugserver/DebugServer.cc +117 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/debugserver/subdir.mk +41 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/include/winpty.h +242 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/include/winpty_constants.h +131 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.cc +75 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.h +28 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/libwinpty/LibWinptyException.h +54 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/libwinpty/WinptyInternal.h +72 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/libwinpty/subdir.mk +46 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/libwinpty/winpty.cc +970 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/AgentMsg.h +38 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.cc +122 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.h +73 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/Buffer.cc +103 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/Buffer.h +102 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/DebugClient.cc +187 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/DebugClient.h +38 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/GenRandom.cc +138 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/GenRandom.h +55 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/GetCommitHash.bat +13 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/Mutex.h +54 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/OsModule.h +63 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.cc +36 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.h +45 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/PrecompiledHeader.h +43 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/StringBuilder.h +227 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/StringBuilderTest.cc +114 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/StringUtil.cc +55 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/StringUtil.h +80 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/TimeMeasurement.h +63 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/UnixCtrlChars.h +45 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/UpdateGenVersion.bat +20 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.cc +460 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.h +104 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.cc +252 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.h +29 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.cc +55 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.h +64 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/WinptyException.cc +57 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/WinptyException.h +43 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.cc +42 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.h +27 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/shared/winpty_snprintf.h +99 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/subdir.mk +5 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/tests/subdir.mk +28 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/tests/trivial_test.cc +158 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.cc +114 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.h +56 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.cc +80 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.h +53 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.cc +86 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.h +31 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.cc +70 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.h +42 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/main.cc +729 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/unix-adapter/subdir.mk +41 -0
- package/runtime/node_modules/node-pty/deps/winpty/src/winpty.gyp +234 -0
- package/runtime/node_modules/node-pty/deps/winpty/vcbuild.bat +83 -0
- package/runtime/node_modules/node-pty/lib/conpty_console_list_agent.js +16 -0
- package/runtime/node_modules/node-pty/lib/conpty_console_list_agent.js.map +1 -0
- package/runtime/node_modules/node-pty/lib/eventEmitter2.js +47 -0
- package/runtime/node_modules/node-pty/lib/eventEmitter2.js.map +1 -0
- package/runtime/node_modules/node-pty/lib/eventEmitter2.test.js +30 -0
- package/runtime/node_modules/node-pty/lib/eventEmitter2.test.js.map +1 -0
- package/runtime/node_modules/node-pty/lib/index.js +52 -0
- package/runtime/node_modules/node-pty/lib/index.js.map +1 -0
- package/runtime/node_modules/node-pty/lib/interfaces.js +7 -0
- package/runtime/node_modules/node-pty/lib/interfaces.js.map +1 -0
- package/runtime/node_modules/node-pty/lib/shared/conout.js +11 -0
- package/runtime/node_modules/node-pty/lib/shared/conout.js.map +1 -0
- package/runtime/node_modules/node-pty/lib/terminal.js +190 -0
- package/runtime/node_modules/node-pty/lib/terminal.js.map +1 -0
- package/runtime/node_modules/node-pty/lib/terminal.test.js +139 -0
- package/runtime/node_modules/node-pty/lib/terminal.test.js.map +1 -0
- package/runtime/node_modules/node-pty/lib/testUtils.test.js +28 -0
- package/runtime/node_modules/node-pty/lib/testUtils.test.js.map +1 -0
- package/runtime/node_modules/node-pty/lib/types.js +7 -0
- package/runtime/node_modules/node-pty/lib/types.js.map +1 -0
- package/runtime/node_modules/node-pty/lib/unixTerminal.js +346 -0
- package/runtime/node_modules/node-pty/lib/unixTerminal.js.map +1 -0
- package/runtime/node_modules/node-pty/lib/unixTerminal.test.js +351 -0
- package/runtime/node_modules/node-pty/lib/unixTerminal.test.js.map +1 -0
- package/runtime/node_modules/node-pty/lib/utils.js +39 -0
- package/runtime/node_modules/node-pty/lib/utils.js.map +1 -0
- package/runtime/node_modules/node-pty/lib/windowsConoutConnection.js +125 -0
- package/runtime/node_modules/node-pty/lib/windowsConoutConnection.js.map +1 -0
- package/runtime/node_modules/node-pty/lib/windowsPtyAgent.js +320 -0
- package/runtime/node_modules/node-pty/lib/windowsPtyAgent.js.map +1 -0
- package/runtime/node_modules/node-pty/lib/windowsPtyAgent.test.js +90 -0
- package/runtime/node_modules/node-pty/lib/windowsPtyAgent.test.js.map +1 -0
- package/runtime/node_modules/node-pty/lib/windowsTerminal.js +199 -0
- package/runtime/node_modules/node-pty/lib/windowsTerminal.js.map +1 -0
- package/runtime/node_modules/node-pty/lib/windowsTerminal.test.js +219 -0
- package/runtime/node_modules/node-pty/lib/windowsTerminal.test.js.map +1 -0
- package/runtime/node_modules/node-pty/lib/worker/conoutSocketWorker.js +22 -0
- package/runtime/node_modules/node-pty/lib/worker/conoutSocketWorker.js.map +1 -0
- package/runtime/node_modules/node-pty/package.json +64 -0
- package/runtime/node_modules/node-pty/prebuilds/darwin-arm64/pty.node +0 -0
- package/runtime/node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper +0 -0
- package/runtime/node_modules/node-pty/prebuilds/darwin-x64/pty.node +0 -0
- package/runtime/node_modules/node-pty/prebuilds/darwin-x64/spawn-helper +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-arm64/conpty/OpenConsole.exe +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-arm64/conpty/conpty.dll +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-arm64/conpty.node +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-arm64/conpty.pdb +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-arm64/conpty_console_list.node +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-arm64/conpty_console_list.pdb +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-arm64/pty.node +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-arm64/pty.pdb +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-arm64/winpty-agent.exe +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-arm64/winpty-agent.pdb +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-arm64/winpty.dll +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-arm64/winpty.pdb +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-x64/conpty.node +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-x64/conpty.pdb +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.pdb +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-x64/pty.node +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-x64/pty.pdb +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.exe +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.pdb +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-x64/winpty.dll +0 -0
- package/runtime/node_modules/node-pty/prebuilds/win32-x64/winpty.pdb +0 -0
- package/runtime/node_modules/node-pty/scripts/gen-compile-commands.js +8 -0
- package/runtime/node_modules/node-pty/scripts/increment-version.js +54 -0
- package/runtime/node_modules/node-pty/scripts/post-install.js +80 -0
- package/runtime/node_modules/node-pty/scripts/prebuild.js +34 -0
- package/runtime/node_modules/node-pty/src/conpty_console_list_agent.ts +15 -0
- package/runtime/node_modules/node-pty/src/eventEmitter2.test.ts +30 -0
- package/runtime/node_modules/node-pty/src/eventEmitter2.ts +48 -0
- package/runtime/node_modules/node-pty/src/index.ts +52 -0
- package/runtime/node_modules/node-pty/src/interfaces.ts +130 -0
- package/runtime/node_modules/node-pty/src/native.d.ts +54 -0
- package/runtime/node_modules/node-pty/src/shared/conout.ts +15 -0
- package/runtime/node_modules/node-pty/src/terminal.test.ts +119 -0
- package/runtime/node_modules/node-pty/src/terminal.ts +211 -0
- package/runtime/node_modules/node-pty/src/testUtils.test.ts +23 -0
- package/runtime/node_modules/node-pty/src/tsconfig.json +22 -0
- package/runtime/node_modules/node-pty/src/types.ts +15 -0
- package/runtime/node_modules/node-pty/src/unix/pty.cc +799 -0
- package/runtime/node_modules/node-pty/src/unix/spawn-helper.cc +23 -0
- package/runtime/node_modules/node-pty/src/unixTerminal.test.ts +367 -0
- package/runtime/node_modules/node-pty/src/unixTerminal.ts +388 -0
- package/runtime/node_modules/node-pty/src/utils.ts +29 -0
- package/runtime/node_modules/node-pty/src/win/conpty.cc +583 -0
- package/runtime/node_modules/node-pty/src/win/conpty.h +41 -0
- package/runtime/node_modules/node-pty/src/win/conpty_console_list.cc +44 -0
- package/runtime/node_modules/node-pty/src/win/path_util.cc +95 -0
- package/runtime/node_modules/node-pty/src/win/path_util.h +26 -0
- package/runtime/node_modules/node-pty/src/win/winpty.cc +333 -0
- package/runtime/node_modules/node-pty/src/windowsConoutConnection.ts +82 -0
- package/runtime/node_modules/node-pty/src/windowsPtyAgent.test.ts +94 -0
- package/runtime/node_modules/node-pty/src/windowsPtyAgent.ts +321 -0
- package/runtime/node_modules/node-pty/src/windowsTerminal.test.ts +229 -0
- package/runtime/node_modules/node-pty/src/windowsTerminal.ts +203 -0
- package/runtime/node_modules/node-pty/src/worker/conoutSocketWorker.ts +22 -0
- package/runtime/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/OpenConsole.exe +0 -0
- package/runtime/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/conpty.dll +0 -0
- package/runtime/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/OpenConsole.exe +0 -0
- package/runtime/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/conpty.dll +0 -0
- package/runtime/node_modules/node-pty/typings/node-pty.d.ts +211 -0
- package/runtime/server.cjs +29778 -0
- package/support/terminal-config-command.cjs +579 -0
- package/support/windows/zterm-daemon.ps1 +438 -0
- package/zterm-package.json +26 -0
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var inherits = require("util").inherits;
|
|
4
|
+
|
|
5
|
+
var _webrtc = require("./binding");
|
|
6
|
+
|
|
7
|
+
var EventTarget = require("./eventtarget");
|
|
8
|
+
|
|
9
|
+
var RTCDataChannelEvent = require("./datachannelevent");
|
|
10
|
+
var RTCIceCandidate = require("./icecandidate");
|
|
11
|
+
var RTCPeerConnectionIceEvent = require("./rtcpeerconnectioniceevent");
|
|
12
|
+
var RTCPeerConnectionIceErrorEvent = require("./rtcpeerconnectioniceerrorevent");
|
|
13
|
+
var RTCSessionDescription = require("./sessiondescription");
|
|
14
|
+
|
|
15
|
+
function RTCPeerConnection() {
|
|
16
|
+
var self = this;
|
|
17
|
+
var pc = new _webrtc.RTCPeerConnection(arguments[0] || {});
|
|
18
|
+
|
|
19
|
+
EventTarget.call(this);
|
|
20
|
+
|
|
21
|
+
//
|
|
22
|
+
// Attach events to the native PeerConnection object
|
|
23
|
+
//
|
|
24
|
+
pc.ontrack = function ontrack(receiver, streams, transceiver) {
|
|
25
|
+
self.dispatchEvent({
|
|
26
|
+
type: "track",
|
|
27
|
+
track: receiver.track,
|
|
28
|
+
receiver: receiver,
|
|
29
|
+
streams: streams,
|
|
30
|
+
transceiver: transceiver,
|
|
31
|
+
target: self,
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
pc.onconnectionstatechange = function onconnectionstatechange() {
|
|
36
|
+
self.dispatchEvent({ type: "connectionstatechange", target: self });
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
pc.onicecandidate = function onicecandidate(candidate) {
|
|
40
|
+
var icecandidate = new RTCIceCandidate(candidate);
|
|
41
|
+
self.dispatchEvent(
|
|
42
|
+
new RTCPeerConnectionIceEvent("icecandidate", {
|
|
43
|
+
candidate: icecandidate,
|
|
44
|
+
target: self,
|
|
45
|
+
}),
|
|
46
|
+
);
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
pc.onicecandidateerror = function onicecandidateerror(eventInitDict) {
|
|
50
|
+
eventInitDict.target = self;
|
|
51
|
+
var icecandidateerror = new RTCPeerConnectionIceErrorEvent(
|
|
52
|
+
"icecandidateerror",
|
|
53
|
+
eventInitDict,
|
|
54
|
+
);
|
|
55
|
+
self.dispatchEvent(icecandidateerror);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
pc.onsignalingstatechange = function onsignalingstatechange() {
|
|
59
|
+
self.dispatchEvent({ type: "signalingstatechange", target: self });
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
pc.oniceconnectionstatechange = function oniceconnectionstatechange() {
|
|
63
|
+
self.dispatchEvent({ type: "iceconnectionstatechange", target: self });
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
pc.onicegatheringstatechange = function onicegatheringstatechange() {
|
|
67
|
+
self.dispatchEvent({ type: "icegatheringstatechange", target: self });
|
|
68
|
+
|
|
69
|
+
// if we have completed gathering candidates, trigger a null candidate event
|
|
70
|
+
if (
|
|
71
|
+
self.iceGatheringState === "complete" &&
|
|
72
|
+
self.connectionState !== "closed"
|
|
73
|
+
) {
|
|
74
|
+
self.dispatchEvent(
|
|
75
|
+
new RTCPeerConnectionIceEvent("icecandidate", {
|
|
76
|
+
candidate: null,
|
|
77
|
+
target: self,
|
|
78
|
+
}),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
pc.onnegotiationneeded = function onnegotiationneeded() {
|
|
84
|
+
self.dispatchEvent({ type: "negotiationneeded", target: self });
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
// [ToDo] onnegotiationneeded
|
|
88
|
+
|
|
89
|
+
pc.ondatachannel = function ondatachannel(channel) {
|
|
90
|
+
self.dispatchEvent(
|
|
91
|
+
new RTCDataChannelEvent("datachannel", { channel, target: self }),
|
|
92
|
+
);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
//
|
|
96
|
+
// PeerConnection properties & attributes
|
|
97
|
+
//
|
|
98
|
+
|
|
99
|
+
Object.defineProperties(this, {
|
|
100
|
+
_pc: {
|
|
101
|
+
value: pc,
|
|
102
|
+
},
|
|
103
|
+
canTrickleIceCandidates: {
|
|
104
|
+
get: function getCanTrickleIceCandidates() {
|
|
105
|
+
return pc.canTrickleIceCandidates;
|
|
106
|
+
},
|
|
107
|
+
enumerable: true,
|
|
108
|
+
},
|
|
109
|
+
connectionState: {
|
|
110
|
+
get: function getConnectionState() {
|
|
111
|
+
return pc.connectionState;
|
|
112
|
+
},
|
|
113
|
+
enumerable: true,
|
|
114
|
+
},
|
|
115
|
+
currentLocalDescription: {
|
|
116
|
+
get: function getCurrentLocalDescription() {
|
|
117
|
+
return pc.currentLocalDescription
|
|
118
|
+
? new RTCSessionDescription(pc.currentLocalDescription)
|
|
119
|
+
: null;
|
|
120
|
+
},
|
|
121
|
+
enumerable: true,
|
|
122
|
+
},
|
|
123
|
+
localDescription: {
|
|
124
|
+
get: function getLocalDescription() {
|
|
125
|
+
return pc.localDescription
|
|
126
|
+
? new RTCSessionDescription(pc.localDescription)
|
|
127
|
+
: null;
|
|
128
|
+
},
|
|
129
|
+
enumerable: true,
|
|
130
|
+
},
|
|
131
|
+
pendingLocalDescription: {
|
|
132
|
+
get: function getPendingLocalDescription() {
|
|
133
|
+
return pc.pendingLocalDescription
|
|
134
|
+
? new RTCSessionDescription(pc.pendingLocalDescription)
|
|
135
|
+
: null;
|
|
136
|
+
},
|
|
137
|
+
enumerable: true,
|
|
138
|
+
},
|
|
139
|
+
currentRemoteDescription: {
|
|
140
|
+
get: function getCurrentRemoteDescription() {
|
|
141
|
+
return pc.currentRemoteDescription
|
|
142
|
+
? new RTCSessionDescription(pc.currentRemoteDescription)
|
|
143
|
+
: null;
|
|
144
|
+
},
|
|
145
|
+
enumerable: true,
|
|
146
|
+
},
|
|
147
|
+
remoteDescription: {
|
|
148
|
+
get: function getRemoteDescription() {
|
|
149
|
+
return pc.remoteDescription
|
|
150
|
+
? new RTCSessionDescription(pc.remoteDescription)
|
|
151
|
+
: null;
|
|
152
|
+
},
|
|
153
|
+
enumerable: true,
|
|
154
|
+
},
|
|
155
|
+
pendingRemoteDescription: {
|
|
156
|
+
get: function getPendingRemoteDescription() {
|
|
157
|
+
return pc.pendingRemoteDescription
|
|
158
|
+
? new RTCSessionDescription(pc.pendingRemoteDescription)
|
|
159
|
+
: null;
|
|
160
|
+
},
|
|
161
|
+
enumerable: true,
|
|
162
|
+
},
|
|
163
|
+
signalingState: {
|
|
164
|
+
get: function getSignalingState() {
|
|
165
|
+
return pc.signalingState;
|
|
166
|
+
},
|
|
167
|
+
enumerable: true,
|
|
168
|
+
},
|
|
169
|
+
sctp: {
|
|
170
|
+
get: function () {
|
|
171
|
+
return pc.sctp;
|
|
172
|
+
},
|
|
173
|
+
enumerable: true,
|
|
174
|
+
},
|
|
175
|
+
iceGatheringState: {
|
|
176
|
+
get: function getIceGatheringState() {
|
|
177
|
+
return pc.iceGatheringState;
|
|
178
|
+
},
|
|
179
|
+
enumerable: true,
|
|
180
|
+
},
|
|
181
|
+
iceConnectionState: {
|
|
182
|
+
get: function getIceConnectionState() {
|
|
183
|
+
return pc.iceConnectionState;
|
|
184
|
+
},
|
|
185
|
+
enumerable: true,
|
|
186
|
+
},
|
|
187
|
+
onconnectionstatechange: {
|
|
188
|
+
value: null,
|
|
189
|
+
writable: true,
|
|
190
|
+
enumerable: true,
|
|
191
|
+
},
|
|
192
|
+
ondatachannel: {
|
|
193
|
+
value: null,
|
|
194
|
+
writable: true,
|
|
195
|
+
enumerable: true,
|
|
196
|
+
},
|
|
197
|
+
oniceconnectionstatechange: {
|
|
198
|
+
value: null,
|
|
199
|
+
writable: true,
|
|
200
|
+
enumerable: true,
|
|
201
|
+
},
|
|
202
|
+
onicegatheringstatechange: {
|
|
203
|
+
value: null,
|
|
204
|
+
writable: true,
|
|
205
|
+
enumerable: true,
|
|
206
|
+
},
|
|
207
|
+
onnegotiationneeded: {
|
|
208
|
+
value: null,
|
|
209
|
+
writable: true,
|
|
210
|
+
enumerable: true,
|
|
211
|
+
},
|
|
212
|
+
onsignalingstatechange: {
|
|
213
|
+
value: null,
|
|
214
|
+
writable: true,
|
|
215
|
+
enumerable: true,
|
|
216
|
+
},
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
inherits(RTCPeerConnection, EventTarget);
|
|
221
|
+
|
|
222
|
+
// NOTE(mroberts): This is a bit of a hack.
|
|
223
|
+
RTCPeerConnection.prototype.ontrack = null;
|
|
224
|
+
|
|
225
|
+
RTCPeerConnection.prototype.addIceCandidate = function addIceCandidate(
|
|
226
|
+
candidate,
|
|
227
|
+
) {
|
|
228
|
+
if (!candidate?.candidate) {
|
|
229
|
+
// The WebRTC specification says:
|
|
230
|
+
// * if the `candidate` is undefined/missing
|
|
231
|
+
// * if the `candidate` parameter is null
|
|
232
|
+
// * if the `candidate` parameter has an undefined/missing `candidate` property
|
|
233
|
+
// * if the `candidate` parameter has a `candidate: ""` property
|
|
234
|
+
// Then, the message is treated as end-of-candidates.
|
|
235
|
+
// This code normalizes all those conditions into a single value, for convenience.
|
|
236
|
+
// eslint-disable-next-line no-undefined
|
|
237
|
+
candidate = undefined;
|
|
238
|
+
}
|
|
239
|
+
var promise = this._pc.addIceCandidate(candidate);
|
|
240
|
+
if (arguments.length === 3) {
|
|
241
|
+
promise.then(arguments[1], arguments[2]);
|
|
242
|
+
}
|
|
243
|
+
return promise;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
RTCPeerConnection.prototype.addTransceiver = function addTransceiver() {
|
|
247
|
+
return this._pc.addTransceiver.apply(this._pc, arguments);
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
RTCPeerConnection.prototype.addTrack = function addTrack(track, ...streams) {
|
|
251
|
+
return this._pc.addTrack(track, streams);
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
RTCPeerConnection.prototype.close = function close() {
|
|
255
|
+
this._pc.close();
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
RTCPeerConnection.prototype.createDataChannel = function createDataChannel() {
|
|
259
|
+
return this._pc.createDataChannel.apply(this._pc, arguments);
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
RTCPeerConnection.prototype.createOffer = function createOffer() {
|
|
263
|
+
var options = arguments.length === 3 ? arguments[2] : arguments[0];
|
|
264
|
+
var promise = this._pc.createOffer(options || {});
|
|
265
|
+
if (arguments.length >= 2) {
|
|
266
|
+
promise.then(arguments[0], arguments[1]);
|
|
267
|
+
}
|
|
268
|
+
return promise;
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
RTCPeerConnection.prototype.createAnswer = function createAnswer() {
|
|
272
|
+
var options = arguments.length === 3 ? arguments[2] : arguments[0];
|
|
273
|
+
var promise = this._pc.createAnswer(options || {});
|
|
274
|
+
if (arguments.length >= 2) {
|
|
275
|
+
promise.then(arguments[0], arguments[1]);
|
|
276
|
+
}
|
|
277
|
+
return promise;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
RTCPeerConnection.prototype.getConfiguration = function getConfiguration() {
|
|
281
|
+
return this._pc.getConfiguration();
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
RTCPeerConnection.prototype.getReceivers = function getReceivers() {
|
|
285
|
+
return this._pc.getReceivers();
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
RTCPeerConnection.prototype.getSenders = function getSenders() {
|
|
289
|
+
return this._pc.getSenders();
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
RTCPeerConnection.prototype.getTransceivers = function getTransceivers() {
|
|
293
|
+
return this._pc.getTransceivers();
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
RTCPeerConnection.prototype.getStats = function getStats() {
|
|
297
|
+
return this._pc.getStats(arguments[0]);
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
RTCPeerConnection.prototype.removeTrack = function removeTrack(sender) {
|
|
301
|
+
this._pc.removeTrack(sender);
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
RTCPeerConnection.prototype.setConfiguration = function setConfiguration(
|
|
305
|
+
configuration,
|
|
306
|
+
) {
|
|
307
|
+
return this._pc.setConfiguration(configuration);
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
RTCPeerConnection.prototype.setLocalDescription = function setLocalDescription(
|
|
311
|
+
description,
|
|
312
|
+
) {
|
|
313
|
+
var promise = this._pc.setLocalDescription(description);
|
|
314
|
+
if (arguments.length === 3) {
|
|
315
|
+
promise.then(arguments[1], arguments[2]);
|
|
316
|
+
}
|
|
317
|
+
return promise;
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
RTCPeerConnection.prototype.setRemoteDescription =
|
|
321
|
+
function setRemoteDescription(description) {
|
|
322
|
+
var promise = this._pc.setRemoteDescription(description);
|
|
323
|
+
if (arguments.length === 3) {
|
|
324
|
+
promise.then(arguments[1], arguments[2]);
|
|
325
|
+
}
|
|
326
|
+
return promise;
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
RTCPeerConnection.prototype.restartIce = function restartIce() {
|
|
330
|
+
return this._pc.restartIce();
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
module.exports = RTCPeerConnection;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function RTCPeerConnectionIceErrorEvent(type, eventInitDict) {
|
|
4
|
+
Object.defineProperties(this, {
|
|
5
|
+
type: {
|
|
6
|
+
value: type,
|
|
7
|
+
enumerable: true,
|
|
8
|
+
},
|
|
9
|
+
address: {
|
|
10
|
+
value: eventInitDict.address,
|
|
11
|
+
enumerable: true,
|
|
12
|
+
},
|
|
13
|
+
port: {
|
|
14
|
+
value: eventInitDict.port,
|
|
15
|
+
enumerable: true,
|
|
16
|
+
},
|
|
17
|
+
url: {
|
|
18
|
+
value: eventInitDict.url,
|
|
19
|
+
enumerable: true,
|
|
20
|
+
},
|
|
21
|
+
errorCode: {
|
|
22
|
+
value: eventInitDict.errorCode,
|
|
23
|
+
enumerable: true,
|
|
24
|
+
},
|
|
25
|
+
errorText: {
|
|
26
|
+
value: eventInitDict.errorText,
|
|
27
|
+
enumerable: true,
|
|
28
|
+
},
|
|
29
|
+
target: {
|
|
30
|
+
value: eventInitDict.target,
|
|
31
|
+
enumerable: true,
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
module.exports = RTCPeerConnectionIceErrorEvent;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function RTCPeerConnectionIceEvent(type, eventInitDict) {
|
|
4
|
+
Object.defineProperties(this, {
|
|
5
|
+
type: {
|
|
6
|
+
value: type,
|
|
7
|
+
enumerable: true,
|
|
8
|
+
},
|
|
9
|
+
candidate: {
|
|
10
|
+
value: eventInitDict.candidate,
|
|
11
|
+
enumerable: true,
|
|
12
|
+
},
|
|
13
|
+
target: {
|
|
14
|
+
value: eventInitDict.target,
|
|
15
|
+
enumerable: true,
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
module.exports = RTCPeerConnectionIceEvent;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function RTCSessionDescription(descriptionInitDict) {
|
|
4
|
+
if (descriptionInitDict) {
|
|
5
|
+
this.type = descriptionInitDict.type;
|
|
6
|
+
this.sdp = descriptionInitDict.sdp;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
this.toJSON = () => {
|
|
10
|
+
const { sdp, type } = this;
|
|
11
|
+
|
|
12
|
+
return {
|
|
13
|
+
sdp,
|
|
14
|
+
type,
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
module.exports = RTCSessionDescription;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@roamhq/wrtc",
|
|
3
|
+
"description": "Standards-compliant WebRTC implementation for Node",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"webrtc",
|
|
6
|
+
"p2p",
|
|
7
|
+
"peer"
|
|
8
|
+
],
|
|
9
|
+
"version": "0.10.0",
|
|
10
|
+
"author": "Jack Duvall <theduvallj@gmail.com> (https://duvallj.pw)",
|
|
11
|
+
"homepage": "https://github.com/WonderInventions/node-webrtc",
|
|
12
|
+
"bugs": "https://github.com/WonderInventions/node-webrtc/issues",
|
|
13
|
+
"license": "BSD-2-Clause",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+ssh://git@github.com/WonderInventions/node-webrtc.git"
|
|
17
|
+
},
|
|
18
|
+
"main": "lib/index.js",
|
|
19
|
+
"types": "types/index.d.ts",
|
|
20
|
+
"browser": "lib/browser.js",
|
|
21
|
+
"files": [
|
|
22
|
+
"AUTHORS",
|
|
23
|
+
"CHANGELOG.md",
|
|
24
|
+
"lib",
|
|
25
|
+
"types"
|
|
26
|
+
],
|
|
27
|
+
"optionalDependencies": {
|
|
28
|
+
"@roamhq/wrtc-darwin-arm64": "0.10.0",
|
|
29
|
+
"@roamhq/wrtc-darwin-x64": "0.10.0",
|
|
30
|
+
"@roamhq/wrtc-linux-arm64": "0.10.0",
|
|
31
|
+
"@roamhq/wrtc-linux-x64": "0.10.0",
|
|
32
|
+
"@roamhq/wrtc-win32-x64": "0.10.0",
|
|
33
|
+
"domexception": "^4.0.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@eslint/eslintrc": "^3.2.0",
|
|
37
|
+
"@eslint/js": "^9.17.0",
|
|
38
|
+
"@fidm/x509": "^1.2.1",
|
|
39
|
+
"cmake-js": "^7.3.0",
|
|
40
|
+
"cross-env": "^5.1.4",
|
|
41
|
+
"eslint": "^9.17.0",
|
|
42
|
+
"eslint-config-prettier": "^9.1.0",
|
|
43
|
+
"globals": "^15.14.0",
|
|
44
|
+
"husky": "^9.1.7",
|
|
45
|
+
"lint-staged": "^15.2.11",
|
|
46
|
+
"node-addon-api": "^7.0.0",
|
|
47
|
+
"patch-package": "^8.0.0",
|
|
48
|
+
"prettier": "^3.4.2",
|
|
49
|
+
"recursive-copy": "^2.0.14",
|
|
50
|
+
"simple-peer": "~9.7.0",
|
|
51
|
+
"tape": "^5.6.1",
|
|
52
|
+
"temp": "^0.9.4"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"patch": "patch-package --error-on-warn",
|
|
56
|
+
"build": "node scripts/build-from-source.js",
|
|
57
|
+
"make-prebuilt": "node scripts/make-prebuilt.js",
|
|
58
|
+
"install-example": "node scripts/install-example.js",
|
|
59
|
+
"lint": "eslint lib/*.js lib/**/*.js test/*.js test/**/*.js scripts/*.js",
|
|
60
|
+
"test": "node --expose-gc test/all.js",
|
|
61
|
+
"prepare": "husky"
|
|
62
|
+
},
|
|
63
|
+
"lint-staged": {
|
|
64
|
+
"*.js": "eslint --cache --fix",
|
|
65
|
+
"*.{js,css,md}": "prettier --write",
|
|
66
|
+
"*.{cc,h}": "clang-format -i"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* Copyright (c) 2023 The node-webrtc project authors. All rights reserved.
|
|
2
|
+
*
|
|
3
|
+
* Use of this source code is governed by a BSD-style license that can be found
|
|
4
|
+
* in the LICENSE.md file in the root of the source tree. All contributing
|
|
5
|
+
* project authors may be found in the AUTHORS file in the root of the source
|
|
6
|
+
* tree.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
// Re-export most types to have the same signature as builtin ones
|
|
10
|
+
// (the signatures actually are slightly different, but we are meant to be
|
|
11
|
+
// a polyfill library so we'll ignore that for now)
|
|
12
|
+
export {
|
|
13
|
+
MediaStream,
|
|
14
|
+
MediaStreamTrack,
|
|
15
|
+
RTCDataChannel,
|
|
16
|
+
RTCDataChannelEvent,
|
|
17
|
+
RTCDtlsTransport,
|
|
18
|
+
RTCIceCandidate,
|
|
19
|
+
RTCIceTransport,
|
|
20
|
+
RTCPeerConnection,
|
|
21
|
+
RTCPeerConnectionIceEvent,
|
|
22
|
+
RTCRtpReceiver,
|
|
23
|
+
RTCRtpSender,
|
|
24
|
+
RTCRtpTransceiver,
|
|
25
|
+
RTCSctpTransport,
|
|
26
|
+
RTCSessionDescription,
|
|
27
|
+
getUserMedia,
|
|
28
|
+
mediaDevices,
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// Include the non-standard APIs too
|
|
32
|
+
export * as nonstandard from "./nonstandard";
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* Copyright (c) 2023 The node-webrtc project authors. All rights reserved.
|
|
2
|
+
*
|
|
3
|
+
* Use of this source code is governed by a BSD-style license that can be found
|
|
4
|
+
* in the LICENSE.md file in the root of the source tree. All contributing
|
|
5
|
+
* project authors may be found in the AUTHORS file in the root of the source
|
|
6
|
+
* tree.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export interface RTCVideoFrame {
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
data: Uint8Array;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const i420ToRgba: (i420: RTCVideoFrame, rgba: RTCVideoFrame) => void;
|
|
16
|
+
export const rgbaToI420: (rgba: RTCVideoFrame, i420: RTCVideoFrame) => void;
|
|
17
|
+
|
|
18
|
+
export interface RTCAudioSink extends EventTarget {
|
|
19
|
+
stop(): void;
|
|
20
|
+
readonly stopped: boolean;
|
|
21
|
+
ondata: EventHandler;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const RTCAudioSink: {
|
|
25
|
+
prototype: RTCAudioSink;
|
|
26
|
+
new (track: MediaStreamTrack): RTCAudioSink;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface RTCAudioData {
|
|
30
|
+
samples: Int16Array;
|
|
31
|
+
sampleRate: number;
|
|
32
|
+
bitsPerSample?: number; // default = 16
|
|
33
|
+
channelCount?: number; // default = 1
|
|
34
|
+
numberOfFrames?: number; // default = 10ms of audio at the given sampleRate
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface RTCAudioSource {
|
|
38
|
+
createTrack(): MediaStreamTrack;
|
|
39
|
+
onData(data: RTCAudioData): void;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export const RTCAudioSource: {
|
|
43
|
+
prototype: RTCAudioSource;
|
|
44
|
+
new (): RTCAudioSource;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface RTCVideoSink extends EventTarget {
|
|
48
|
+
stop(): void;
|
|
49
|
+
readonly stopped: boolean;
|
|
50
|
+
onframe: EventHandler;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export const RTCVideoSink: {
|
|
54
|
+
prototype: RTCVideoSink;
|
|
55
|
+
new (track: MediaStreamTrack): RTCVideoSink;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface RTCVideoData {
|
|
59
|
+
samples: Int16Array;
|
|
60
|
+
sampleRate: number;
|
|
61
|
+
bitsPerSample?: number; // default = 16
|
|
62
|
+
channelCount?: number; // default = 1
|
|
63
|
+
numberOfFrames?: number; // default = 10ms of audio at the given sampleRate
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface RTCVideoSourceInit {
|
|
67
|
+
isScreencast?: boolean; // default = false
|
|
68
|
+
needsDenoising?: boolean;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface RTCVideoSource {
|
|
72
|
+
readonly isScreencast: boolean;
|
|
73
|
+
readonly needsDenoising?: boolean;
|
|
74
|
+
createTrack(): MediaStreamTrack;
|
|
75
|
+
onFrame(data: RTCVideoFrame): void;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export const RTCVideoSource: {
|
|
79
|
+
prototype: RTCVideoSource;
|
|
80
|
+
new (init?: RTCVideoSourceInit): RTCVideoSource;
|
|
81
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./wrtc.node');
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@roamhq/wrtc-win32-x64",
|
|
3
|
+
"version": "0.10.0",
|
|
4
|
+
"description": "The Windows 64-bit binary for @roamhq/wrtc.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/WonderInventions/node-webrtc.git"
|
|
8
|
+
},
|
|
9
|
+
"license": "BSD-2-Clause",
|
|
10
|
+
"os": [
|
|
11
|
+
"win32"
|
|
12
|
+
],
|
|
13
|
+
"cpu": [
|
|
14
|
+
"x64"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
Copyright (c) 2012-2015, Christopher Jeffrey (https://github.com/chjj/)
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
|
11
|
+
all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
THE SOFTWARE.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
The MIT License (MIT)
|
|
24
|
+
|
|
25
|
+
Copyright (c) 2016, Daniel Imms (http://www.growingwiththeweb.com)
|
|
26
|
+
|
|
27
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
28
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
29
|
+
in the Software without restriction, including without limitation the rights
|
|
30
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
31
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
32
|
+
furnished to do so, subject to the following conditions:
|
|
33
|
+
|
|
34
|
+
The above copyright notice and this permission notice shall be included in all
|
|
35
|
+
copies or substantial portions of the Software.
|
|
36
|
+
|
|
37
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
38
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
39
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
40
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
41
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
42
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
43
|
+
SOFTWARE.
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
MIT License
|
|
48
|
+
|
|
49
|
+
Copyright (c) 2018 - present Microsoft Corporation
|
|
50
|
+
|
|
51
|
+
All rights reserved.
|
|
52
|
+
|
|
53
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
54
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
55
|
+
in the Software without restriction, including without limitation the rights
|
|
56
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
57
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
58
|
+
furnished to do so, subject to the following conditions:
|
|
59
|
+
|
|
60
|
+
The above copyright notice and this permission notice shall be included in all
|
|
61
|
+
copies or substantial portions of the Software.
|
|
62
|
+
|
|
63
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
64
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
65
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
66
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
67
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
68
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
69
|
+
SOFTWARE.
|