@jsonstudio/zterm-daemon-darwin-arm64 0.0.0-stage → 0.1.3
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-darwin-arm64/index.js +1 -0
- package/runtime/node_modules/@roamhq/wrtc-darwin-arm64/package.json +16 -0
- package/runtime/node_modules/@roamhq/wrtc-darwin-arm64/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/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 +27142 -0
- package/support/terminal-config-command.cjs +579 -0
- package/support/zterm-daemon +0 -0
- package/support/zterm-daemon.sh +742 -0
- package/zterm-package.json +27 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
The following license applies to all parts of this software except as documented
|
|
2
|
+
below.
|
|
3
|
+
|
|
4
|
+
```
|
|
5
|
+
Copyright (c) 2019 The node-webrtc project authors. All rights reserved.
|
|
6
|
+
|
|
7
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
8
|
+
are permitted provided that the following conditions are met:
|
|
9
|
+
|
|
10
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
11
|
+
list of conditions and the following disclaimer.
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
17
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
18
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
19
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
20
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
21
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
22
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
23
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
|
24
|
+
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
25
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Binary distributions of this software include WebRTC and other third-party
|
|
29
|
+
libraries. These libraries and licenses are documented in
|
|
30
|
+
THIRD_PARTY_LICENSES.md.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<h1 align="center">
|
|
2
|
+
<img height="120px" src="https://upload.wikimedia.org/wikipedia/commons/d/d9/Node.js_logo.svg">
|
|
3
|
+
<img height="120px" src="https://webrtc.github.io/webrtc-org/assets/images/webrtc-logo-vert-retro-dist.svg">
|
|
4
|
+
</h1>
|
|
5
|
+
|
|
6
|
+
[](https://www.npmjs.com/package/@roamhq/wrtc)
|
|
7
|
+
|
|
8
|
+
node-webrtc is a Node.js Native Addon that provides bindings to [WebRTC
|
|
9
|
+
M106](https://webrtc.googlesource.com/src/+/branch-heads/5249). This project is
|
|
10
|
+
aiming for spec-compliance and will eventually be tested using the W3C's
|
|
11
|
+
[web-platform-tests](https://github.com/web-platform-tests/wpt) project. A
|
|
12
|
+
number of [nonstandard APIs](docs/nonstandard-apis.md) for testing are also
|
|
13
|
+
included.
|
|
14
|
+
|
|
15
|
+
## Install
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
npm install @roamhq/wrtc
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Installing from NPM downloads a prebuilt binary for your operating system ×
|
|
22
|
+
architecture, based on optional dependency filters.
|
|
23
|
+
|
|
24
|
+
To install a debug build or cross-compile, you should [build from
|
|
25
|
+
source](docs/build-from-source.md).
|
|
26
|
+
|
|
27
|
+
## Supported Platforms
|
|
28
|
+
|
|
29
|
+
The following platforms are confirmed to work with node-webrtc and have
|
|
30
|
+
prebuilt binaries available. Since node-webrtc targets [N-API version
|
|
31
|
+
3](https://nodejs.org/api/n-api.html), there may be additional platforms
|
|
32
|
+
supported that are not listed here. If your platform is not supported, you may
|
|
33
|
+
still be able to [build from source](docs/build-from-source.md).
|
|
34
|
+
|
|
35
|
+
<table>
|
|
36
|
+
<thead>
|
|
37
|
+
<tr>
|
|
38
|
+
<td colspan="2" rowspan="2"></td>
|
|
39
|
+
<th colspan="2">Linux</th>
|
|
40
|
+
<th colspan="2">macOS</th>
|
|
41
|
+
<th>Windows</th>
|
|
42
|
+
</tr>
|
|
43
|
+
<tr>
|
|
44
|
+
<th>x64</th>
|
|
45
|
+
<th>arm64</th>
|
|
46
|
+
<th>x64</th>
|
|
47
|
+
<th>arm64</th>
|
|
48
|
+
<th>x64</th>
|
|
49
|
+
</tr>
|
|
50
|
+
</thead>
|
|
51
|
+
<tbody>
|
|
52
|
+
<tr>
|
|
53
|
+
<th rowspan="2">Node</th>
|
|
54
|
+
<th>20</th>
|
|
55
|
+
<td align="center">✓</td>
|
|
56
|
+
<td align="center">?</td>
|
|
57
|
+
<td align="center">✓</td>
|
|
58
|
+
<td align="center">✓</td>
|
|
59
|
+
<td align="center">✓</td>
|
|
60
|
+
</tr>
|
|
61
|
+
<tr>
|
|
62
|
+
<th>22</th>
|
|
63
|
+
<td align="center">✓</td>
|
|
64
|
+
<td align="center">?</td>
|
|
65
|
+
<td align="center">✓</td>
|
|
66
|
+
<td align="center">✓</td>
|
|
67
|
+
<td align="center">✓</td>
|
|
68
|
+
</tr>
|
|
69
|
+
</tbody>
|
|
70
|
+
</table>
|
|
71
|
+
|
|
72
|
+
## Examples
|
|
73
|
+
|
|
74
|
+
See [node-webrtc/node-webrtc-examples](https://github.com/node-webrtc/node-webrtc-examples).
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const os = require("os");
|
|
4
|
+
const triple = `${os.platform()}-${os.arch()}`;
|
|
5
|
+
const pathsToTry = [
|
|
6
|
+
`../build-${triple}/wrtc.node`,
|
|
7
|
+
`../build-${triple}/Debug/wrtc.node`,
|
|
8
|
+
`../build-${triple}/Release/wrtc.node`,
|
|
9
|
+
`@roamhq/wrtc-${triple}`,
|
|
10
|
+
// For installations that can't resolve node_modules directly, like AWS Lambda
|
|
11
|
+
`./node_modules/@roamhq/wrtc-${triple}`,
|
|
12
|
+
`./node_modules/@roamhq/wrtc-${triple}/wrtc.node`,
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
let succeeded = false;
|
|
16
|
+
for (const path of pathsToTry) {
|
|
17
|
+
try {
|
|
18
|
+
module.exports = require(path);
|
|
19
|
+
succeeded = true;
|
|
20
|
+
break;
|
|
21
|
+
} catch (error) {
|
|
22
|
+
// Ignore any errors, just continue
|
|
23
|
+
void error;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (!succeeded) {
|
|
28
|
+
throw new Error(
|
|
29
|
+
`Could not find wrtc binary on any of the paths: ${pathsToTry}`,
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.MediaStream = window.MediaStream;
|
|
4
|
+
exports.MediaStreamTrack = window.MediaStreamTrack;
|
|
5
|
+
exports.RTCDataChannel = window.RTCDataChannel;
|
|
6
|
+
exports.RTCDataChannelEvent = window.RTCDataChannelEvent;
|
|
7
|
+
exports.RTCDtlsTransport = window.RTCDtlsTransport;
|
|
8
|
+
exports.RTCIceCandidate = window.RTCIceCandidate;
|
|
9
|
+
exports.RTCIceTransport = window.RTCIceTransport;
|
|
10
|
+
exports.RTCPeerConnection = window.RTCPeerConnection;
|
|
11
|
+
exports.RTCPeerConnectionIceEvent = window.RTCPeerConnectionIceEvent;
|
|
12
|
+
exports.RTCRtpReceiver = window.RTCRtpReceiver;
|
|
13
|
+
exports.RTCRtpSender = window.RTCRtpSender;
|
|
14
|
+
exports.RTCRtpTransceiver = window.RTCRtpTransceiver;
|
|
15
|
+
exports.RTCSctpTransport = window.RTCSctpTransport;
|
|
16
|
+
exports.RTCSessionDescription = window.RTCSessionDescription;
|
|
17
|
+
exports.getUserMedia = window.getUserMedia;
|
|
18
|
+
exports.mediaDevices = navigator.mediaDevices;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function RTCDataChannelEvent(type, eventInitDict) {
|
|
4
|
+
Object.defineProperties(this, {
|
|
5
|
+
bubbles: {
|
|
6
|
+
value: false,
|
|
7
|
+
},
|
|
8
|
+
cancelable: {
|
|
9
|
+
value: false,
|
|
10
|
+
},
|
|
11
|
+
type: {
|
|
12
|
+
value: type,
|
|
13
|
+
enumerable: true,
|
|
14
|
+
},
|
|
15
|
+
channel: {
|
|
16
|
+
value: eventInitDict.channel,
|
|
17
|
+
enumerable: true,
|
|
18
|
+
},
|
|
19
|
+
target: {
|
|
20
|
+
value: eventInitDict.target,
|
|
21
|
+
enumerable: true,
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
module.exports = RTCDataChannelEvent;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function RTCError(code, message) {
|
|
4
|
+
this.name = this.reasonName[Math.min(code, this.reasonName.length - 1)];
|
|
5
|
+
this.message = typeof message === "string" ? message : this.name;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
RTCError.prototype.reasonName = [
|
|
9
|
+
// These strings must match those defined in the WebRTC spec.
|
|
10
|
+
"NO_ERROR", // Should never happen -- only used for testing
|
|
11
|
+
"INVALID_CONSTRAINTS_TYPE",
|
|
12
|
+
"INVALID_CANDIDATE_TYPE",
|
|
13
|
+
"INVALID_STATE",
|
|
14
|
+
"INVALID_SESSION_DESCRIPTION",
|
|
15
|
+
"INCOMPATIBLE_SESSION_DESCRIPTION",
|
|
16
|
+
"INCOMPATIBLE_CONSTRAINTS",
|
|
17
|
+
"INTERNAL_ERROR",
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
module.exports = RTCError;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author mrdoob / http://mrdoob.com/
|
|
5
|
+
* @author Jesús Leganés Combarro "Piranna" <piranna@gmail.com>
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
function EventTarget() {
|
|
9
|
+
this._listeners = {};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
EventTarget.prototype.addEventListener = function addEventListener(
|
|
13
|
+
type,
|
|
14
|
+
listener,
|
|
15
|
+
) {
|
|
16
|
+
const listeners = (this._listeners = this._listeners || {});
|
|
17
|
+
|
|
18
|
+
if (!listeners[type]) {
|
|
19
|
+
listeners[type] = new Set();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
listeners[type].add(listener);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
EventTarget.prototype.dispatchEvent = function dispatchEvent(event) {
|
|
26
|
+
let listeners = (this._listeners = this._listeners || {});
|
|
27
|
+
|
|
28
|
+
process.nextTick(() => {
|
|
29
|
+
listeners = new Set(listeners[event.type] || []);
|
|
30
|
+
|
|
31
|
+
const dummyListener = this["on" + event.type];
|
|
32
|
+
if (typeof dummyListener === "function") {
|
|
33
|
+
listeners.add(dummyListener);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
listeners.forEach((listener) => {
|
|
37
|
+
if (
|
|
38
|
+
typeof listener === "object" &&
|
|
39
|
+
typeof listener.handleEvent === "function"
|
|
40
|
+
) {
|
|
41
|
+
listener.handleEvent(event);
|
|
42
|
+
} else {
|
|
43
|
+
listener.call(this, event);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
EventTarget.prototype.removeEventListener = function removeEventListener(
|
|
50
|
+
type,
|
|
51
|
+
listener,
|
|
52
|
+
) {
|
|
53
|
+
const listeners = (this._listeners = this._listeners || {});
|
|
54
|
+
if (listeners[type]) {
|
|
55
|
+
listeners[type].delete(listener);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
module.exports = EventTarget;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function RTCIceCandidate(candidateInitDict) {
|
|
4
|
+
[
|
|
5
|
+
"candidate",
|
|
6
|
+
"sdpMid",
|
|
7
|
+
"sdpMLineIndex",
|
|
8
|
+
"foundation",
|
|
9
|
+
"component",
|
|
10
|
+
"priority",
|
|
11
|
+
"address",
|
|
12
|
+
"protocol",
|
|
13
|
+
"port",
|
|
14
|
+
"type",
|
|
15
|
+
"tcpType",
|
|
16
|
+
"relatedAddress",
|
|
17
|
+
"relatedPort",
|
|
18
|
+
"usernameFragment",
|
|
19
|
+
].forEach((property) => {
|
|
20
|
+
if (candidateInitDict && property in candidateInitDict) {
|
|
21
|
+
this[property] = candidateInitDict[property];
|
|
22
|
+
} else {
|
|
23
|
+
this[property] = null;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
this.toJSON = () => {
|
|
28
|
+
const { candidate, sdpMid, sdpMLineIndex, usernameFragment } = this;
|
|
29
|
+
let json = {
|
|
30
|
+
candidate,
|
|
31
|
+
sdpMid,
|
|
32
|
+
sdpMLineIndex,
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
if (usernameFragment) {
|
|
36
|
+
json.usernameFragment = usernameFragment;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return json;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
module.exports = RTCIceCandidate;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const { inherits } = require("util");
|
|
4
|
+
|
|
5
|
+
const {
|
|
6
|
+
MediaStream,
|
|
7
|
+
MediaStreamTrack,
|
|
8
|
+
RTCAudioSink,
|
|
9
|
+
RTCAudioSource,
|
|
10
|
+
RTCDataChannel,
|
|
11
|
+
RTCDtlsTransport,
|
|
12
|
+
RTCIceTransport,
|
|
13
|
+
RTCRtpReceiver,
|
|
14
|
+
RTCRtpSender,
|
|
15
|
+
RTCRtpTransceiver,
|
|
16
|
+
RTCSctpTransport,
|
|
17
|
+
RTCVideoSink,
|
|
18
|
+
RTCVideoSource,
|
|
19
|
+
getUserMedia,
|
|
20
|
+
i420ToRgba,
|
|
21
|
+
rgbaToI420,
|
|
22
|
+
setDOMException,
|
|
23
|
+
} = require("./binding");
|
|
24
|
+
|
|
25
|
+
const EventTarget = require("./eventtarget");
|
|
26
|
+
const MediaDevices = require("./mediadevices");
|
|
27
|
+
|
|
28
|
+
inherits(MediaStream, EventTarget);
|
|
29
|
+
inherits(MediaStreamTrack, EventTarget);
|
|
30
|
+
inherits(RTCAudioSink, EventTarget);
|
|
31
|
+
inherits(RTCDataChannel, EventTarget);
|
|
32
|
+
inherits(RTCDtlsTransport, EventTarget);
|
|
33
|
+
inherits(RTCIceTransport, EventTarget);
|
|
34
|
+
inherits(RTCSctpTransport, EventTarget);
|
|
35
|
+
inherits(RTCVideoSink, EventTarget);
|
|
36
|
+
|
|
37
|
+
try {
|
|
38
|
+
setDOMException(require("domexception"));
|
|
39
|
+
} catch (error) {
|
|
40
|
+
// Do nothing
|
|
41
|
+
void error;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// NOTE(mroberts): Here's a hack to support jsdom's Blob implementation.
|
|
45
|
+
RTCDataChannel.prototype.send = function send(data) {
|
|
46
|
+
const implSymbol = Object.getOwnPropertySymbols(data).find(
|
|
47
|
+
(symbol) => symbol.toString() === "Symbol(impl)",
|
|
48
|
+
);
|
|
49
|
+
if (data[implSymbol] && data[implSymbol]._buffer) {
|
|
50
|
+
data = data[implSymbol]._buffer;
|
|
51
|
+
}
|
|
52
|
+
this._send(data);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const mediaDevices = new MediaDevices();
|
|
56
|
+
|
|
57
|
+
const nonstandard = {
|
|
58
|
+
i420ToRgba,
|
|
59
|
+
RTCAudioSink,
|
|
60
|
+
RTCAudioSource,
|
|
61
|
+
RTCVideoSink,
|
|
62
|
+
RTCVideoSource,
|
|
63
|
+
rgbaToI420,
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
module.exports = {
|
|
67
|
+
MediaStream,
|
|
68
|
+
MediaStreamTrack,
|
|
69
|
+
RTCDataChannel,
|
|
70
|
+
RTCDataChannelEvent: require("./datachannelevent"),
|
|
71
|
+
RTCDtlsTransport,
|
|
72
|
+
RTCIceCandidate: require("./icecandidate"),
|
|
73
|
+
RTCIceTransport,
|
|
74
|
+
RTCPeerConnection: require("./peerconnection"),
|
|
75
|
+
RTCPeerConnectionIceEvent: require("./rtcpeerconnectioniceevent"),
|
|
76
|
+
RTCPeerConnectionIceErrorEvent: require("./rtcpeerconnectioniceerrorevent"),
|
|
77
|
+
RTCRtpReceiver,
|
|
78
|
+
RTCRtpSender,
|
|
79
|
+
RTCRtpTransceiver,
|
|
80
|
+
RTCSctpTransport,
|
|
81
|
+
RTCSessionDescription: require("./sessiondescription"),
|
|
82
|
+
getUserMedia,
|
|
83
|
+
mediaDevices,
|
|
84
|
+
nonstandard,
|
|
85
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var inherits = require("util").inherits;
|
|
4
|
+
|
|
5
|
+
const { getDisplayMedia, getUserMedia } = require("./binding");
|
|
6
|
+
|
|
7
|
+
var EventTarget = require("./eventtarget");
|
|
8
|
+
|
|
9
|
+
function MediaDevices() {}
|
|
10
|
+
|
|
11
|
+
inherits(MediaDevices, EventTarget);
|
|
12
|
+
|
|
13
|
+
MediaDevices.prototype.enumerateDevices = function enumerateDevices() {
|
|
14
|
+
throw new Error(
|
|
15
|
+
"Not yet implemented; file a feature request against node-webrtc",
|
|
16
|
+
);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
MediaDevices.prototype.getSupportedConstraints =
|
|
20
|
+
function getSupportedConstraints() {
|
|
21
|
+
return {
|
|
22
|
+
width: true,
|
|
23
|
+
height: true,
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
MediaDevices.prototype.getDisplayMedia = getDisplayMedia;
|
|
28
|
+
MediaDevices.prototype.getUserMedia = getUserMedia;
|
|
29
|
+
|
|
30
|
+
module.exports = MediaDevices;
|