diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8e29cb8..67639a60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,10 +26,15 @@ jobs: - name: Install dependencies run: npm ci - - name: Build tests - run: npm run test:build + - name: Run tests + run: npm run test + env: + ROKU_DEV_TARGET: ${{ secrets.ROKU_DEV_TARGET }} + ROKU_DEV_TARGET_PORT: ${{ secrets.ROKU_DEV_TARGET_PORT }} + ROKU_DEVPASSWORD: ${{ secrets.ROKU_DEVPASSWORD }} + ROKU_DEV_TARGET_TELNET_PORT: ${{ secrets.ROKU_DEV_TARGET_TELNET_PORT }} - - name: Build Playlet + - name: Build Playlet for release run: npm run build:release env: ROKU_DEV_TARGET: ${{ secrets.ROKU_DEV_TARGET }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b85a9d7..7464ce76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -441,7 +441,7 @@ This version went through a major refactor, which resulted in a different arcite - It reads the response data, headers, error codes and etc even if they are not needed - Excessive logging without a way to toggle it, or redirect it to a file - Some unused parts of the code (Like basic auth in the server, WebSockets, RegistryRouter, Kanji QR Code) - - These were unsued and/or feature flagged features. Things can be restored as needed. + - These were unused and/or feature flagged features. Things can be restored as needed. - The video player loading spinner when the video is minimized: this added too much hacky code with minimum value. ### Fixed diff --git a/playlet-lib/src/components/ContentNode/ChannelContentTask.bs b/playlet-lib/src/components/ContentNode/ChannelContentTask.bs index 92d6d7ef..0c1c037b 100644 --- a/playlet-lib/src/components/ContentNode/ChannelContentTask.bs +++ b/playlet-lib/src/components/ContentNode/ChannelContentTask.bs @@ -29,8 +29,7 @@ function ChannelContentTask(input as object) as object } end if - instance = service.GetInstance() - InvidiousContent.ToChannelContentNode(contentNode, metadata, instance) + InvidiousContent.ToChannelContentNode(contentNode, metadata) contentNode.loadState = FeedLoadState.Loaded diff --git a/playlet-lib/src/components/ContextMenu/ContextMenu.bs b/playlet-lib/src/components/ContextMenu/ContextMenu.bs index 8a055934..d139bd36 100644 --- a/playlet-lib/src/components/ContextMenu/ContextMenu.bs +++ b/playlet-lib/src/components/ContextMenu/ContextMenu.bs @@ -86,7 +86,7 @@ function Init() m.showAnimation = m.top.findNode("showAnimation") end function -function Show(unsued as dynamic) +function Show(_unused as dynamic) m.optionsList.ObserveField("itemSelected", FuncName(OnItemSelected)) m.showAnimation.control = "start" end function diff --git a/playlet-lib/src/components/Dialog/TimedDialog.bs b/playlet-lib/src/components/Dialog/TimedDialog.bs index 409d165f..81dbaf61 100644 --- a/playlet-lib/src/components/Dialog/TimedDialog.bs +++ b/playlet-lib/src/components/Dialog/TimedDialog.bs @@ -67,7 +67,7 @@ function OnDialogClosed() CancelTimer() end function -function onKeyEvent(key as string, press as boolean) as boolean +function onKeyEvent(_key as string, _press as boolean) as boolean if m.timer = invalid return false end if diff --git a/playlet-lib/src/components/PlaylistView/PlaylistView.bs b/playlet-lib/src/components/PlaylistView/PlaylistView.bs index 4bbd2ac5..25e6427c 100644 --- a/playlet-lib/src/components/PlaylistView/PlaylistView.bs +++ b/playlet-lib/src/components/PlaylistView/PlaylistView.bs @@ -197,7 +197,7 @@ function OpenPlaylistChannel(playlist as object) as void LogWarn("Invalid authorId:", authorId) return end if - channel = InvidiousContent.ToChannelContentNode(invalid, { authorId: authorId }, invalid) + channel = InvidiousContent.ToChannelContentNode(invalid, { authorId: authorId }) ChannelUtils.Open(channel) end function @@ -207,7 +207,7 @@ function OpenVideoChannel(video as object) as void LogWarn("Invalid authorId:", authorId) return end if - channel = InvidiousContent.ToChannelContentNode(invalid, { authorId: authorId }, invalid) + channel = InvidiousContent.ToChannelContentNode(invalid, { authorId: authorId }) ChannelUtils.Open(channel) end function diff --git a/playlet-lib/src/components/Screens/BookmarksScreen/BookmarksScreen.bs b/playlet-lib/src/components/Screens/BookmarksScreen/BookmarksScreen.bs index 9d93707f..a0111191 100644 --- a/playlet-lib/src/components/Screens/BookmarksScreen/BookmarksScreen.bs +++ b/playlet-lib/src/components/Screens/BookmarksScreen/BookmarksScreen.bs @@ -80,7 +80,7 @@ function OnkeyEvent(key as string, press as boolean) as boolean return false end function -function GetContextMenuOptionsForItem(rowItem as object) as object +function GetContextMenuOptionsForItem(_rowItem as object) as object refreshItem = ContextMenuUtils.CreateOption(Tr(Locale.ContextMenu.RefreshBookmarks), m.top, "Refresh", [invalid]) return [refreshItem] end function diff --git a/playlet-lib/src/components/Screens/HomeScreen/HomeScreen.bs b/playlet-lib/src/components/Screens/HomeScreen/HomeScreen.bs index ab1fefd4..02517af4 100644 --- a/playlet-lib/src/components/Screens/HomeScreen/HomeScreen.bs +++ b/playlet-lib/src/components/Screens/HomeScreen/HomeScreen.bs @@ -41,7 +41,7 @@ function OnkeyEvent(key as string, press as boolean) as boolean return false end function -function GetContextMenuOptionsForItem(rowItem as object) as object +function GetContextMenuOptionsForItem(_rowItem as object) as object refresh = ContextMenuUtils.CreateOption(Tr(Locale.ContextMenu.RefreshHome), m.rowList, "Refresh", [invalid]) return [refresh] end function diff --git a/playlet-lib/src/components/Screens/SettingsScreen/ClearSearchHistoryControl.bs b/playlet-lib/src/components/Screens/SettingsScreen/ClearSearchHistoryControl.bs index 61bbe9e7..c27b09ef 100644 --- a/playlet-lib/src/components/Screens/SettingsScreen/ClearSearchHistoryControl.bs +++ b/playlet-lib/src/components/Screens/SettingsScreen/ClearSearchHistoryControl.bs @@ -17,7 +17,7 @@ function OnFocusChange() as void NodeSetFocus(m.button, true) end function -function BindPreference(preferences as object, key as string) +function BindPreference(_preferences as object, _key as string) ' Do nothing end function diff --git a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTesting.bs b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTesting.bs index 67079334..f147e422 100644 --- a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTesting.bs +++ b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTesting.bs @@ -66,7 +66,7 @@ function RunTestsTask() }) end function -function ShowTestDetails(event as object) as void +function ShowTestDetails() as void selected = m.testList.itemSelected itemContent = m.testList.content.GetChild(selected) details = itemContent.details diff --git a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTestingTask.bs b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTestingTask.bs index 71f5de7a..ea0c02c2 100644 --- a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTestingTask.bs +++ b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTestingTask.bs @@ -70,7 +70,7 @@ function RunTests(instance as string, content as object, cancellation as object) end for end function -function IsValidUrl(instance as string, testNode as object, cancellation as object) as void +function IsValidUrl(instance as string, testNode as object, _cancellation as object) as void try if not instance.StartsWith("http://") and not instance.StartsWith("https://") testNode.state = "failed" diff --git a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousPublicInstances/InvidiousPublicInstances.bs b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousPublicInstances/InvidiousPublicInstances.bs index 11148d3f..a6941a81 100644 --- a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousPublicInstances/InvidiousPublicInstances.bs +++ b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousPublicInstances/InvidiousPublicInstances.bs @@ -140,7 +140,7 @@ function OnInvidiousPublicInstancesTaskResults(output as object) as void end if end function -function OnInstanceSelected(event as object) as void +function OnInstanceSelected() as void selected = m.instances.itemSelected itemContent = m.instances.content.GetChild(selected) m.top.instance = itemContent.uri diff --git a/playlet-lib/src/components/Services/BookmarksService/BookmarksService.bs b/playlet-lib/src/components/Services/BookmarksService/BookmarksService.bs index 7bb2ea41..d34df216 100644 --- a/playlet-lib/src/components/Services/BookmarksService/BookmarksService.bs +++ b/playlet-lib/src/components/Services/BookmarksService/BookmarksService.bs @@ -210,7 +210,7 @@ function RemoveBookmark(id as string) as void m.top.contentChange = true end function -function OnContentChange(event as object) as void +function OnContentChange() as void Save() end function diff --git a/playlet-lib/src/components/Services/Invidious/InvidiousToContentNode.bs b/playlet-lib/src/components/Services/Invidious/InvidiousToContentNode.bs index a0e2dd5a..4c9aad7f 100644 --- a/playlet-lib/src/components/Services/Invidious/InvidiousToContentNode.bs +++ b/playlet-lib/src/components/Services/Invidious/InvidiousToContentNode.bs @@ -24,7 +24,7 @@ namespace InvidiousContent else if item.type = "playlist" return ToPlaylistContentNode(invalid, item, instance) else if item.type = "channel" - return ToChannelContentNode(invalid, item, instance) + return ToChannelContentNode(invalid, item) else return invalid end if @@ -102,7 +102,7 @@ namespace InvidiousContent return node end function - function ToChannelContentNode(node as object, item as object, instance as dynamic) as object + function ToChannelContentNode(node as object, item as object) as object if node = invalid node = CreateObject("roSGNode", "ChannelContentNode") node.loadState = FeedLoadState.None diff --git a/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs b/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs index 9960cac7..68301714 100644 --- a/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs +++ b/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs @@ -307,21 +307,21 @@ class LoungeApi end for end function - function HandleIgnoreCommand(commandId as integer, commandType as string, commandArgs as object, messagesToSend as object) + function HandleIgnoreCommand(_commandId as integer, commandType as string, commandArgs as object, _messagesToSend as object) LogDebug("Ignoring command:", commandType, "args:", commandArgs) end function - function HandleSessionId(commandId as integer, commandType as string, commandArgs as object, messagesToSend as object) + function HandleSessionId(_commandId as integer, _commandType as string, commandArgs as object, _messagesToSend as object) m.sessionId = commandArgs LogInfo("sessionId:", m.sessionId) end function - function HandleGSessionId(commandId as integer, commandType as string, commandArgs as object, messagesToSend as object) + function HandleGSessionId(_commandId as integer, _commandType as string, commandArgs as object, _messagesToSend as object) m.gSessionId = commandArgs LogInfo("gSessionId:", m.gSessionId) end function - function HandleGetPlayingNow(commandId as integer, commandType as string, commandArgs as object, messagesToSend as object) as void + function HandleGetPlayingNow(commandId as integer, _commandType as string, _commandArgs as object, messagesToSend as object) as void player = m.videoQueueNode.player message = LoungeMessages.OnHasPreviousNextChanged(m.videoQueueNode.hasPrevious, m.videoQueueNode.hasNext) @@ -337,7 +337,7 @@ class LoungeApi messagesToSend.Push(message) end function - function HandleLoungeStatus(commandId as integer, commandType as string, commandArgs as object, messagesToSend as object) as void + function HandleLoungeStatus(_commandId as integer, commandType as string, commandArgs as object, _messagesToSend as object) as void LogInfo(commandType, FormatJson(commandArgs)) devices = commandArgs["devices"] if not IsString(devices) @@ -356,7 +356,7 @@ class LoungeApi end for end function - function HandleRemoteConnected(commandId as integer, commandType as string, commandArgs as object, messagesToSend as object) as void + function HandleRemoteConnected(_commandId as integer, commandType as string, commandArgs as object, _messagesToSend as object) as void LogInfo(commandType, FormatJson(commandArgs)) newDevice = commandArgs id = newDevice.id @@ -388,7 +388,7 @@ class LoungeApi LoungeDeviceConnected.ShowNotifcation(m.notificationsNode, deviceName, userName, userAvatarUri) end function - function HandleSetVolume(commandId as integer, commandType as string, commandArgs as object, messagesToSend as object) as void + function HandleSetVolume(_commandId as integer, _commandType as string, commandArgs as object, _messagesToSend as object) as void player = m.videoQueueNode.player if player = invalid return @@ -402,29 +402,29 @@ class LoungeApi player.mute = isMute end function - function HandleSetPlaylist(commandId as integer, commandType as string, commandArgs as object, messagesToSend as object) + function HandleSetPlaylist(_commandId as integer, commandType as string, commandArgs as object, _messagesToSend as object) LogDebug(commandType, commandArgs) LoungeVideoQueue.SetPlaylist(m.videoQueueNode, m.invService, commandArgs) end function - function HandleUpdatePlaylist(commandId as integer, commandType as string, commandArgs as object, messagesToSend as object) + function HandleUpdatePlaylist(_commandId as integer, commandType as string, commandArgs as object, _messagesToSend as object) LogDebug(commandType, commandArgs) LoungeVideoQueue.UpdatePlaylist(m.videoQueueNode, m.invService, commandArgs) end function - function HandlePause(commandId as integer, commandType as string, commandArgs as object, messagesToSend as object) + function HandlePause(_commandId as integer, _commandType as string, _commandArgs as object, _messagesToSend as object) m.videoQueueNode.pause = true end function - function HandlePlay(commandId as integer, commandType as string, commandArgs as object, messagesToSend as object) + function HandlePlay(_commandId as integer, _commandType as string, _commandArgs as object, _messagesToSend as object) m.videoQueueNode.play = true end function - function HandleStopVideo(commandId as integer, commandType as string, commandArgs as object, messagesToSend as object) + function HandleStopVideo(_commandId as integer, _commandType as string, _commandArgs as object, _messagesToSend as object) m.videoQueueNode.closePlayer = true end function - function HandleSeekTo(commandId as integer, commandType as string, commandArgs as object, messagesToSend as object) as void + function HandleSeekTo(_commandId as integer, _commandType as string, commandArgs as object, _messagesToSend as object) as void player = m.videoQueueNode.player if player = invalid return diff --git a/playlet-lib/src/components/VideoFeed/VideoRowList.bs b/playlet-lib/src/components/VideoFeed/VideoRowList.bs index e503448b..6404db4a 100644 --- a/playlet-lib/src/components/VideoFeed/VideoRowList.bs +++ b/playlet-lib/src/components/VideoFeed/VideoRowList.bs @@ -186,7 +186,7 @@ function OpenVideoChannel(video as object) as void LogWarn("Invalid authorId:", authorId) return end if - channel = InvidiousContent.ToChannelContentNode(invalid, { authorId: authorId }, invalid) + channel = InvidiousContent.ToChannelContentNode(invalid, { authorId: authorId }) ChannelUtils.Open(channel) end function @@ -196,11 +196,11 @@ function OpenPlaylistChannel(playlist as object) as void LogWarn("Invalid authorId:", authorId) return end if - channel = InvidiousContent.ToChannelContentNode(invalid, { authorId: authorId }, invalid) + channel = InvidiousContent.ToChannelContentNode(invalid, { authorId: authorId }) ChannelUtils.Open(channel) end function -function Refresh(unsued as dynamic) +function Refresh(_unused as dynamic) InitContent() end function diff --git a/playlet-lib/src/components/VideoQueue/VideoQueueView.bs b/playlet-lib/src/components/VideoQueue/VideoQueueView.bs index 595a10d1..725754ed 100644 --- a/playlet-lib/src/components/VideoQueue/VideoQueueView.bs +++ b/playlet-lib/src/components/VideoQueue/VideoQueueView.bs @@ -22,7 +22,7 @@ function Init() m.videosDetailsToLoad = [] end function -function Show(unsued as dynamic) +function Show(_unused as dynamic) m.showAnimation.control = "start" end function diff --git a/playlet-lib/src/components/Web/PlayletWebServer/Middleware/ViewRouter.bs b/playlet-lib/src/components/Web/PlayletWebServer/Middleware/ViewRouter.bs index 11f34a57..12a38a27 100644 --- a/playlet-lib/src/components/Web/PlayletWebServer/Middleware/ViewRouter.bs +++ b/playlet-lib/src/components/Web/PlayletWebServer/Middleware/ViewRouter.bs @@ -31,7 +31,7 @@ namespace Http end if response.Default(204, "OK") else if not StringUtils.IsNullOrEmpty(authorId) - contentNode = InvidiousContent.ToChannelContentNode(invalid, { authorId: authorId }, invalid) + contentNode = InvidiousContent.ToChannelContentNode(invalid, { authorId: authorId }) ChannelUtils.Open(contentNode, m.appController) if VideoQueueUtils.IsVideoPlayerOpen(m.videoQueue) and VideoQueueUtils.IsVideoPlayerFullScreen(m.videoQueue) VideoQueueUtils.ToggleVideoPictureInPicture(m.videoQueue) diff --git a/playlet-lib/src/components/Web/WebServer/Http/HttpConnection.bs b/playlet-lib/src/components/Web/WebServer/Http/HttpConnection.bs index 430d59e7..8fc5a333 100644 --- a/playlet-lib/src/components/Web/WebServer/Http/HttpConnection.bs +++ b/playlet-lib/src/components/Web/WebServer/Http/HttpConnection.bs @@ -113,7 +113,7 @@ namespace Http LogError("illegal header state @" + m.client) end if - sent = m.response.SendHeader(m.socket, Http.BUFSIZE) + sent = m.response.SendHeader(m.socket) if m.CheckResult(sent, "send header") m.total_sent = m.total_sent + sent @@ -135,7 +135,7 @@ namespace Http LogError("illegal response state @" + m.client) end if - sent = m.response.Send(m.socket, Http.BUFSIZE) + sent = m.response.Send(m.socket) if m.CheckResult(sent, "send response") m.total_sent = m.total_sent + sent server.total_out = server.total_out + sent diff --git a/playlet-lib/src/components/Web/WebServer/Http/HttpRequest.bs b/playlet-lib/src/components/Web/WebServer/Http/HttpRequest.bs index c2c8f608..8a4c750a 100644 --- a/playlet-lib/src/components/Web/WebServer/Http/HttpRequest.bs +++ b/playlet-lib/src/components/Web/WebServer/Http/HttpRequest.bs @@ -52,7 +52,7 @@ namespace Http if m.state = Http.HttpRequestState.READING_OPERATION if m.ParseOperation() - m.ProcessOperation(connection.server.utils) + m.ProcessOperation() m.state = Http.HttpRequestState.READING_HEADERS end if end if @@ -198,7 +198,7 @@ namespace Http m.ParseConnection(connection) end function - function ProcessOperation(utils as Http.Utils) + function ProcessOperation() m.route = m.uri split = m.route.Instr("?") if split <> -1 diff --git a/playlet-lib/src/components/Web/WebServer/Http/HttpResponse.bs b/playlet-lib/src/components/Web/WebServer/Http/HttpResponse.bs index 31cccfb8..db5ec4a3 100644 --- a/playlet-lib/src/components/Web/WebServer/Http/HttpResponse.bs +++ b/playlet-lib/src/components/Web/WebServer/Http/HttpResponse.bs @@ -116,7 +116,7 @@ ${m.GeneratedBy()} m.headers["Content-Type"] = mimeType end function - function Send(sock as object, bufsize as integer) as integer + function Send(sock as object) as integer sent = -1 buf_pos = m.start + m.sent - m.buf_start buf_remaining = m.body_buffer.count() - buf_pos @@ -135,7 +135,7 @@ ${m.GeneratedBy()} return sent end function - function SendHeader(sock as object, bufsize as integer) as integer + function SendHeader(sock as object) as integer if m.header = invalid m.GenerateHeader() end if diff --git a/playlet-lib/src/components/Web/WebServer/WebServer.bs b/playlet-lib/src/components/Web/WebServer/WebServer.bs index 99668686..3e38f15b 100644 --- a/playlet-lib/src/components/Web/WebServer/WebServer.bs +++ b/playlet-lib/src/components/Web/WebServer/WebServer.bs @@ -77,6 +77,6 @@ function WebServerLoop() as void m.top.unobserveField("shouldQuit") end function -function SetupRoutes(server as object) +function SetupRoutes(_server as object) LogWarn("No routes configured") end function diff --git a/tools/run-test-app.js b/tools/run-test-app.js index 1072ad4a..4c7f35c3 100644 --- a/tools/run-test-app.js +++ b/tools/run-test-app.js @@ -71,6 +71,8 @@ process.on('uncaughtException', exitHandler.bind(null, { exit: true })); const options = { host: config.ROKU_DEV_TARGET, + packagePort: config.ROKU_DEV_TARGET_PORT || 80, + telnetPort: config.ROKU_DEV_TARGET_TELNET_PORT || 8085, password: config.ROKU_DEVPASSWORD, outDir: packageFolder, outFile: packageFile, @@ -85,7 +87,7 @@ process.on('uncaughtException', exitHandler.bind(null, { exit: true })); } console.log('Starting telnet process'); - telnet = await startTelnetProcessAsync(options.host); + telnet = await startTelnetProcessAsync(options.host, options.telnetPort); console.log('Publishing package'); await rokuDeploy.publish(options); @@ -115,7 +117,7 @@ process.on('uncaughtException', exitHandler.bind(null, { exit: true })); process.exit(success ? 0 : 1); })(); -function startTelnetProcessAsync(host, port = 8085, timeoutSeconds = 2) { +function startTelnetProcessAsync(host, port, timeoutSeconds = 2) { return new Promise((resolve, reject) => { const telnet = spawn('telnet', [host, port]); childProcesses.push(telnet); @@ -126,7 +128,6 @@ function startTelnetProcessAsync(host, port = 8085, timeoutSeconds = 2) { } telnet.stdout.on('data', (data) => { - console.log(data.toString()); clearTimeout(timeoutID); timeoutID = setTimeout(timeoutReached, timeoutSeconds * 1000); }); @@ -140,7 +141,7 @@ function startTelnetProcessAsync(host, port = 8085, timeoutSeconds = 2) { }); } -function readFromProcessUntil(process, timeoutSeconds = 20, endToken = 'AppExitComplete') { +function readFromProcessUntil(proc, timeoutSeconds = 20, endToken = 'AppExitComplete') { return new Promise((resolve, reject) => { let data = ''; @@ -148,22 +149,23 @@ function readFromProcessUntil(process, timeoutSeconds = 20, endToken = 'AppExitC function timeoutReached() { reject(`Timeout of ${timeoutSeconds} seconds waiting for ${endToken}`); - process.kill(); + proc.kill(); } - process.stdout.on('data', (chunk) => { - console.log(data.toString()); + proc.stdout.on('data', (chunk) => { + process.stdout.write(chunk); clearTimeout(timeoutID); + data += chunk; if (data.includes(endToken)) { resolve(data); - process.kill(); + proc.kill(); return; } timeoutID = setTimeout(timeoutReached, timeoutSeconds * 1000); }); - process.stderr.on('data', (data) => { + proc.stderr.on('data', (data) => { clearTimeout(timeoutID); console.error(`stderr: ${data}`); reject()