From efff38f2a465a75cf421cfa23ba12504ce3a0c31 Mon Sep 17 00:00:00 2001 From: Yathartha Goenka Date: Mon, 30 Jan 2023 22:50:19 +0530 Subject: [PATCH] Fix: linting --- lib/protocol/network.js | 2 +- node_modules/.bin/_bmocha | 13 ++++++++++++- node_modules/.bin/_bmocha.cmd | 17 +++++++++++++++++ node_modules/.bin/_bmocha.ps1 | 28 ++++++++++++++++++++++++++++ node_modules/.bin/bmocha | 13 ++++++++++++- node_modules/.bin/bmocha.cmd | 17 +++++++++++++++++ node_modules/.bin/bmocha.ps1 | 28 ++++++++++++++++++++++++++++ node_modules/.bin/bweb | 13 ++++++++++++- node_modules/.bin/bweb.cmd | 17 +++++++++++++++++ node_modules/.bin/bweb.ps1 | 28 ++++++++++++++++++++++++++++ 10 files changed, 172 insertions(+), 4 deletions(-) create mode 100644 node_modules/.bin/_bmocha.cmd create mode 100644 node_modules/.bin/_bmocha.ps1 create mode 100644 node_modules/.bin/bmocha.cmd create mode 100644 node_modules/.bin/bmocha.ps1 create mode 100644 node_modules/.bin/bweb.cmd create mode 100644 node_modules/.bin/bweb.ps1 diff --git a/lib/protocol/network.js b/lib/protocol/network.js index 03f654974..2a25b6fbc 100644 --- a/lib/protocol/network.js +++ b/lib/protocol/network.js @@ -132,7 +132,7 @@ class Network { if (typeof options === 'string') options = networks[options]; - if(options instanceof Object) + if (options instanceof Object) assert(!options.type, 'Unknown network.'); assert(options, 'Unknown network.'); diff --git a/node_modules/.bin/_bmocha b/node_modules/.bin/_bmocha index 87b17a648..6cacab436 120000 --- a/node_modules/.bin/_bmocha +++ b/node_modules/.bin/_bmocha @@ -1 +1,12 @@ -../bmocha/bin/_bmocha \ No newline at end of file +#!/bin/sh +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") + +case `uname` in + *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; +esac + +if [ -x "$basedir/node" ]; then + exec "$basedir/node" "$basedir/../bmocha/bin/_bmocha" "$@" +else + exec node "$basedir/../bmocha/bin/_bmocha" "$@" +fi diff --git a/node_modules/.bin/_bmocha.cmd b/node_modules/.bin/_bmocha.cmd new file mode 100644 index 000000000..8ddb1231b --- /dev/null +++ b/node_modules/.bin/_bmocha.cmd @@ -0,0 +1,17 @@ +@ECHO off +GOTO start +:find_dp0 +SET dp0=%~dp0 +EXIT /b +:start +SETLOCAL +CALL :find_dp0 + +IF EXIST "%dp0%\node.exe" ( + SET "_prog=%dp0%\node.exe" +) ELSE ( + SET "_prog=node" + SET PATHEXT=%PATHEXT:;.JS;=;% +) + +endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\bmocha\bin\_bmocha" %* diff --git a/node_modules/.bin/_bmocha.ps1 b/node_modules/.bin/_bmocha.ps1 new file mode 100644 index 000000000..f896d0341 --- /dev/null +++ b/node_modules/.bin/_bmocha.ps1 @@ -0,0 +1,28 @@ +#!/usr/bin/env pwsh +$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent + +$exe="" +if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { + # Fix case when both the Windows and Linux builds of Node + # are installed in the same directory + $exe=".exe" +} +$ret=0 +if (Test-Path "$basedir/node$exe") { + # Support pipeline input + if ($MyInvocation.ExpectingInput) { + $input | & "$basedir/node$exe" "$basedir/../bmocha/bin/_bmocha" $args + } else { + & "$basedir/node$exe" "$basedir/../bmocha/bin/_bmocha" $args + } + $ret=$LASTEXITCODE +} else { + # Support pipeline input + if ($MyInvocation.ExpectingInput) { + $input | & "node$exe" "$basedir/../bmocha/bin/_bmocha" $args + } else { + & "node$exe" "$basedir/../bmocha/bin/_bmocha" $args + } + $ret=$LASTEXITCODE +} +exit $ret diff --git a/node_modules/.bin/bmocha b/node_modules/.bin/bmocha index a0286f63e..d58273151 120000 --- a/node_modules/.bin/bmocha +++ b/node_modules/.bin/bmocha @@ -1 +1,12 @@ -../bmocha/bin/bmocha \ No newline at end of file +#!/bin/sh +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") + +case `uname` in + *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; +esac + +if [ -x "$basedir/node" ]; then + exec "$basedir/node" "$basedir/../bmocha/bin/bmocha" "$@" +else + exec node "$basedir/../bmocha/bin/bmocha" "$@" +fi diff --git a/node_modules/.bin/bmocha.cmd b/node_modules/.bin/bmocha.cmd new file mode 100644 index 000000000..d29873eb1 --- /dev/null +++ b/node_modules/.bin/bmocha.cmd @@ -0,0 +1,17 @@ +@ECHO off +GOTO start +:find_dp0 +SET dp0=%~dp0 +EXIT /b +:start +SETLOCAL +CALL :find_dp0 + +IF EXIST "%dp0%\node.exe" ( + SET "_prog=%dp0%\node.exe" +) ELSE ( + SET "_prog=node" + SET PATHEXT=%PATHEXT:;.JS;=;% +) + +endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\bmocha\bin\bmocha" %* diff --git a/node_modules/.bin/bmocha.ps1 b/node_modules/.bin/bmocha.ps1 new file mode 100644 index 000000000..4808fde87 --- /dev/null +++ b/node_modules/.bin/bmocha.ps1 @@ -0,0 +1,28 @@ +#!/usr/bin/env pwsh +$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent + +$exe="" +if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { + # Fix case when both the Windows and Linux builds of Node + # are installed in the same directory + $exe=".exe" +} +$ret=0 +if (Test-Path "$basedir/node$exe") { + # Support pipeline input + if ($MyInvocation.ExpectingInput) { + $input | & "$basedir/node$exe" "$basedir/../bmocha/bin/bmocha" $args + } else { + & "$basedir/node$exe" "$basedir/../bmocha/bin/bmocha" $args + } + $ret=$LASTEXITCODE +} else { + # Support pipeline input + if ($MyInvocation.ExpectingInput) { + $input | & "node$exe" "$basedir/../bmocha/bin/bmocha" $args + } else { + & "node$exe" "$basedir/../bmocha/bin/bmocha" $args + } + $ret=$LASTEXITCODE +} +exit $ret diff --git a/node_modules/.bin/bweb b/node_modules/.bin/bweb index bd3a78dfc..5a7b19aee 120000 --- a/node_modules/.bin/bweb +++ b/node_modules/.bin/bweb @@ -1 +1,12 @@ -../bweb/bin/bweb \ No newline at end of file +#!/bin/sh +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") + +case `uname` in + *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; +esac + +if [ -x "$basedir/node" ]; then + exec "$basedir/node" "$basedir/../bweb/bin/bweb" "$@" +else + exec node "$basedir/../bweb/bin/bweb" "$@" +fi diff --git a/node_modules/.bin/bweb.cmd b/node_modules/.bin/bweb.cmd new file mode 100644 index 000000000..6bc664305 --- /dev/null +++ b/node_modules/.bin/bweb.cmd @@ -0,0 +1,17 @@ +@ECHO off +GOTO start +:find_dp0 +SET dp0=%~dp0 +EXIT /b +:start +SETLOCAL +CALL :find_dp0 + +IF EXIST "%dp0%\node.exe" ( + SET "_prog=%dp0%\node.exe" +) ELSE ( + SET "_prog=node" + SET PATHEXT=%PATHEXT:;.JS;=;% +) + +endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\bweb\bin\bweb" %* diff --git a/node_modules/.bin/bweb.ps1 b/node_modules/.bin/bweb.ps1 new file mode 100644 index 000000000..2f9acd5e2 --- /dev/null +++ b/node_modules/.bin/bweb.ps1 @@ -0,0 +1,28 @@ +#!/usr/bin/env pwsh +$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent + +$exe="" +if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { + # Fix case when both the Windows and Linux builds of Node + # are installed in the same directory + $exe=".exe" +} +$ret=0 +if (Test-Path "$basedir/node$exe") { + # Support pipeline input + if ($MyInvocation.ExpectingInput) { + $input | & "$basedir/node$exe" "$basedir/../bweb/bin/bweb" $args + } else { + & "$basedir/node$exe" "$basedir/../bweb/bin/bweb" $args + } + $ret=$LASTEXITCODE +} else { + # Support pipeline input + if ($MyInvocation.ExpectingInput) { + $input | & "node$exe" "$basedir/../bweb/bin/bweb" $args + } else { + & "node$exe" "$basedir/../bweb/bin/bweb" $args + } + $ret=$LASTEXITCODE +} +exit $ret