mirror of
https://github.com/bnmgh1/NodeSandbox.git
synced 2025-04-12 03:36:56 +08:00
删除
This commit is contained in:
parent
cb30bd5794
commit
81d84fd894
12
node_modules/.bin/acorn
generated
vendored
12
node_modules/.bin/acorn
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../acorn/bin/acorn" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../acorn/bin/acorn" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/acorn.cmd
generated
vendored
17
node_modules/.bin/acorn.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\acorn\bin\acorn" %*
|
|
28
node_modules/.bin/acorn.ps1
generated
vendored
28
node_modules/.bin/acorn.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../acorn/bin/acorn" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../acorn/bin/acorn" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../acorn/bin/acorn" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../acorn/bin/acorn" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/atob
generated
vendored
12
node_modules/.bin/atob
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../atob/bin/atob.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../atob/bin/atob.js" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/atob.cmd
generated
vendored
17
node_modules/.bin/atob.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\atob\bin\atob.js" %*
|
|
28
node_modules/.bin/atob.ps1
generated
vendored
28
node_modules/.bin/atob.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../atob/bin/atob.js" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../atob/bin/atob.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../atob/bin/atob.js" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../atob/bin/atob.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/btoa
generated
vendored
12
node_modules/.bin/btoa
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../btoa/bin/btoa.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../btoa/bin/btoa.js" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/btoa.cmd
generated
vendored
17
node_modules/.bin/btoa.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\btoa\bin\btoa.js" %*
|
|
28
node_modules/.bin/btoa.ps1
generated
vendored
28
node_modules/.bin/btoa.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../btoa/bin/btoa.js" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../btoa/bin/btoa.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../btoa/bin/btoa.js" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../btoa/bin/btoa.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/color-support
generated
vendored
12
node_modules/.bin/color-support
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../color-support/bin.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../color-support/bin.js" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/color-support.cmd
generated
vendored
17
node_modules/.bin/color-support.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\color-support\bin.js" %*
|
|
28
node_modules/.bin/color-support.ps1
generated
vendored
28
node_modules/.bin/color-support.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../color-support/bin.js" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../color-support/bin.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../color-support/bin.js" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../color-support/bin.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/escodegen
generated
vendored
12
node_modules/.bin/escodegen
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../escodegen/bin/escodegen.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../escodegen/bin/escodegen.js" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/escodegen.cmd
generated
vendored
17
node_modules/.bin/escodegen.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\escodegen\bin\escodegen.js" %*
|
|
28
node_modules/.bin/escodegen.ps1
generated
vendored
28
node_modules/.bin/escodegen.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../escodegen/bin/escodegen.js" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../escodegen/bin/escodegen.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../escodegen/bin/escodegen.js" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../escodegen/bin/escodegen.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/esgenerate
generated
vendored
12
node_modules/.bin/esgenerate
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../escodegen/bin/esgenerate.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../escodegen/bin/esgenerate.js" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/esgenerate.cmd
generated
vendored
17
node_modules/.bin/esgenerate.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\escodegen\bin\esgenerate.js" %*
|
|
28
node_modules/.bin/esgenerate.ps1
generated
vendored
28
node_modules/.bin/esgenerate.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../escodegen/bin/esgenerate.js" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../escodegen/bin/esgenerate.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../escodegen/bin/esgenerate.js" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../escodegen/bin/esgenerate.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/esparse
generated
vendored
12
node_modules/.bin/esparse
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../esprima/bin/esparse.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../esprima/bin/esparse.js" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/esparse.cmd
generated
vendored
17
node_modules/.bin/esparse.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\esprima\bin\esparse.js" %*
|
|
28
node_modules/.bin/esparse.ps1
generated
vendored
28
node_modules/.bin/esparse.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../esprima/bin/esparse.js" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../esprima/bin/esparse.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../esprima/bin/esparse.js" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../esprima/bin/esparse.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/esvalidate
generated
vendored
12
node_modules/.bin/esvalidate
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../esprima/bin/esvalidate.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../esprima/bin/esvalidate.js" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/esvalidate.cmd
generated
vendored
17
node_modules/.bin/esvalidate.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\esprima\bin\esvalidate.js" %*
|
|
28
node_modules/.bin/esvalidate.ps1
generated
vendored
28
node_modules/.bin/esvalidate.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../esprima/bin/esvalidate.js" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../esprima/bin/esvalidate.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../esprima/bin/esvalidate.js" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../esprima/bin/esvalidate.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/jsesc
generated
vendored
12
node_modules/.bin/jsesc
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../jsesc/bin/jsesc" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../jsesc/bin/jsesc" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/jsesc.cmd
generated
vendored
17
node_modules/.bin/jsesc.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\jsesc\bin\jsesc" %*
|
|
28
node_modules/.bin/jsesc.ps1
generated
vendored
28
node_modules/.bin/jsesc.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../jsesc/bin/jsesc" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../jsesc/bin/jsesc" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../jsesc/bin/jsesc" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../jsesc/bin/jsesc" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/mkdirp
generated
vendored
12
node_modules/.bin/mkdirp
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../mkdirp/bin/cmd.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../mkdirp/bin/cmd.js" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/mkdirp.cmd
generated
vendored
17
node_modules/.bin/mkdirp.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\mkdirp\bin\cmd.js" %*
|
|
28
node_modules/.bin/mkdirp.ps1
generated
vendored
28
node_modules/.bin/mkdirp.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../mkdirp/bin/cmd.js" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/node-gyp
generated
vendored
12
node_modules/.bin/node-gyp
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../node-gyp/bin/node-gyp.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../node-gyp/bin/node-gyp.js" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/node-gyp.cmd
generated
vendored
17
node_modules/.bin/node-gyp.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\node-gyp\bin\node-gyp.js" %*
|
|
28
node_modules/.bin/node-gyp.ps1
generated
vendored
28
node_modules/.bin/node-gyp.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../node-gyp/bin/node-gyp.js" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../node-gyp/bin/node-gyp.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../node-gyp/bin/node-gyp.js" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../node-gyp/bin/node-gyp.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/node-ninja
generated
vendored
12
node_modules/.bin/node-ninja
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../node-ninja/bin/node-ninja.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../node-ninja/bin/node-ninja.js" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/node-ninja.cmd
generated
vendored
17
node_modules/.bin/node-ninja.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\node-ninja\bin\node-ninja.js" %*
|
|
28
node_modules/.bin/node-ninja.ps1
generated
vendored
28
node_modules/.bin/node-ninja.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../node-ninja/bin/node-ninja.js" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../node-ninja/bin/node-ninja.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../node-ninja/bin/node-ninja.js" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../node-ninja/bin/node-ninja.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/node-pre-gyp
generated
vendored
12
node_modules/.bin/node-pre-gyp
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../@mapbox/node-pre-gyp/bin/node-pre-gyp" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../@mapbox/node-pre-gyp/bin/node-pre-gyp" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/node-pre-gyp.cmd
generated
vendored
17
node_modules/.bin/node-pre-gyp.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\@mapbox\node-pre-gyp\bin\node-pre-gyp" %*
|
|
28
node_modules/.bin/node-pre-gyp.ps1
generated
vendored
28
node_modules/.bin/node-pre-gyp.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../@mapbox/node-pre-gyp/bin/node-pre-gyp" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../@mapbox/node-pre-gyp/bin/node-pre-gyp" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../@mapbox/node-pre-gyp/bin/node-pre-gyp" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../@mapbox/node-pre-gyp/bin/node-pre-gyp" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/node-which
generated
vendored
12
node_modules/.bin/node-which
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../which/bin/node-which" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../which/bin/node-which" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/node-which.cmd
generated
vendored
17
node_modules/.bin/node-which.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\which\bin\node-which" %*
|
|
28
node_modules/.bin/node-which.ps1
generated
vendored
28
node_modules/.bin/node-which.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../which/bin/node-which" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../which/bin/node-which" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../which/bin/node-which" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../which/bin/node-which" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/nopt
generated
vendored
12
node_modules/.bin/nopt
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../nopt/bin/nopt.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../nopt/bin/nopt.js" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/nopt.cmd
generated
vendored
17
node_modules/.bin/nopt.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\nopt\bin\nopt.js" %*
|
|
28
node_modules/.bin/nopt.ps1
generated
vendored
28
node_modules/.bin/nopt.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../nopt/bin/nopt.js" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../nopt/bin/nopt.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../nopt/bin/nopt.js" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../nopt/bin/nopt.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/parser
generated
vendored
12
node_modules/.bin/parser
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../@babel/parser/bin/babel-parser.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../@babel/parser/bin/babel-parser.js" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/parser.cmd
generated
vendored
17
node_modules/.bin/parser.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\@babel\parser\bin\babel-parser.js" %*
|
|
28
node_modules/.bin/parser.ps1
generated
vendored
28
node_modules/.bin/parser.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../@babel/parser/bin/babel-parser.js" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/prebuild
generated
vendored
12
node_modules/.bin/prebuild
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../prebuild/bin.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../prebuild/bin.js" "$@"
|
|
||||||
fi
|
|
12
node_modules/.bin/prebuild-install
generated
vendored
12
node_modules/.bin/prebuild-install
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../prebuild-install/bin.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../prebuild-install/bin.js" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/prebuild-install.cmd
generated
vendored
17
node_modules/.bin/prebuild-install.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\prebuild-install\bin.js" %*
|
|
28
node_modules/.bin/prebuild-install.ps1
generated
vendored
28
node_modules/.bin/prebuild-install.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../prebuild-install/bin.js" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../prebuild-install/bin.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../prebuild-install/bin.js" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../prebuild-install/bin.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
17
node_modules/.bin/prebuild.cmd
generated
vendored
17
node_modules/.bin/prebuild.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\prebuild\bin.js" %*
|
|
28
node_modules/.bin/prebuild.ps1
generated
vendored
28
node_modules/.bin/prebuild.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../prebuild/bin.js" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../prebuild/bin.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../prebuild/bin.js" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../prebuild/bin.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/rc
generated
vendored
12
node_modules/.bin/rc
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../rc/cli.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../rc/cli.js" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/rc.cmd
generated
vendored
17
node_modules/.bin/rc.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\rc\cli.js" %*
|
|
28
node_modules/.bin/rc.ps1
generated
vendored
28
node_modules/.bin/rc.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../rc/cli.js" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../rc/cli.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../rc/cli.js" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../rc/cli.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/rimraf
generated
vendored
12
node_modules/.bin/rimraf
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../rimraf/bin.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../rimraf/bin.js" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/rimraf.cmd
generated
vendored
17
node_modules/.bin/rimraf.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\rimraf\bin.js" %*
|
|
28
node_modules/.bin/rimraf.ps1
generated
vendored
28
node_modules/.bin/rimraf.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../rimraf/bin.js" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../rimraf/bin.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../rimraf/bin.js" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../rimraf/bin.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/semver
generated
vendored
12
node_modules/.bin/semver
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../semver/bin/semver.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../semver/bin/semver.js" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/semver.cmd
generated
vendored
17
node_modules/.bin/semver.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\semver\bin\semver.js" %*
|
|
28
node_modules/.bin/semver.ps1
generated
vendored
28
node_modules/.bin/semver.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../semver/bin/semver.js" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../semver/bin/semver.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../semver/bin/semver.js" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../semver/bin/semver.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/sshpk-conv
generated
vendored
12
node_modules/.bin/sshpk-conv
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../sshpk/bin/sshpk-conv" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../sshpk/bin/sshpk-conv" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/sshpk-conv.cmd
generated
vendored
17
node_modules/.bin/sshpk-conv.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\sshpk\bin\sshpk-conv" %*
|
|
28
node_modules/.bin/sshpk-conv.ps1
generated
vendored
28
node_modules/.bin/sshpk-conv.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../sshpk/bin/sshpk-conv" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../sshpk/bin/sshpk-conv" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../sshpk/bin/sshpk-conv" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../sshpk/bin/sshpk-conv" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/sshpk-sign
generated
vendored
12
node_modules/.bin/sshpk-sign
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../sshpk/bin/sshpk-sign" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../sshpk/bin/sshpk-sign" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/sshpk-sign.cmd
generated
vendored
17
node_modules/.bin/sshpk-sign.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\sshpk\bin\sshpk-sign" %*
|
|
28
node_modules/.bin/sshpk-sign.ps1
generated
vendored
28
node_modules/.bin/sshpk-sign.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../sshpk/bin/sshpk-sign" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../sshpk/bin/sshpk-sign" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../sshpk/bin/sshpk-sign" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../sshpk/bin/sshpk-sign" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/sshpk-verify
generated
vendored
12
node_modules/.bin/sshpk-verify
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../sshpk/bin/sshpk-verify" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../sshpk/bin/sshpk-verify" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/sshpk-verify.cmd
generated
vendored
17
node_modules/.bin/sshpk-verify.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\sshpk\bin\sshpk-verify" %*
|
|
28
node_modules/.bin/sshpk-verify.ps1
generated
vendored
28
node_modules/.bin/sshpk-verify.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../sshpk/bin/sshpk-verify" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../sshpk/bin/sshpk-verify" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../sshpk/bin/sshpk-verify" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../sshpk/bin/sshpk-verify" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/uuid
generated
vendored
12
node_modules/.bin/uuid
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../uuid/bin/uuid" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../uuid/bin/uuid" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/uuid.cmd
generated
vendored
17
node_modules/.bin/uuid.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\uuid\bin\uuid" %*
|
|
28
node_modules/.bin/uuid.ps1
generated
vendored
28
node_modules/.bin/uuid.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../uuid/bin/uuid" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../uuid/bin/uuid" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../uuid/bin/uuid" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../uuid/bin/uuid" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/vm2
generated
vendored
12
node_modules/.bin/vm2
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../vm2/bin/vm2" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../vm2/bin/vm2" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/vm2.cmd
generated
vendored
17
node_modules/.bin/vm2.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\vm2\bin\vm2" %*
|
|
28
node_modules/.bin/vm2.ps1
generated
vendored
28
node_modules/.bin/vm2.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../vm2/bin/vm2" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../vm2/bin/vm2" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../vm2/bin/vm2" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../vm2/bin/vm2" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
12
node_modules/.bin/which
generated
vendored
12
node_modules/.bin/which
generated
vendored
@ -1,12 +0,0 @@
|
|||||||
#!/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/../which/bin/which" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../which/bin/which" "$@"
|
|
||||||
fi
|
|
17
node_modules/.bin/which.cmd
generated
vendored
17
node_modules/.bin/which.cmd
generated
vendored
@ -1,17 +0,0 @@
|
|||||||
@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%\..\which\bin\which" %*
|
|
28
node_modules/.bin/which.ps1
generated
vendored
28
node_modules/.bin/which.ps1
generated
vendored
@ -1,28 +0,0 @@
|
|||||||
#!/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/../which/bin/which" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../which/bin/which" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../which/bin/which" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../which/bin/which" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
22
node_modules/@babel/code-frame/LICENSE
generated
vendored
22
node_modules/@babel/code-frame/LICENSE
generated
vendored
@ -1,22 +0,0 @@
|
|||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
19
node_modules/@babel/code-frame/README.md
generated
vendored
19
node_modules/@babel/code-frame/README.md
generated
vendored
@ -1,19 +0,0 @@
|
|||||||
# @babel/code-frame
|
|
||||||
|
|
||||||
> Generate errors that contain a code frame that point to source locations.
|
|
||||||
|
|
||||||
See our website [@babel/code-frame](https://babeljs.io/docs/en/babel-code-frame) for more information.
|
|
||||||
|
|
||||||
## Install
|
|
||||||
|
|
||||||
Using npm:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm install --save-dev @babel/code-frame
|
|
||||||
```
|
|
||||||
|
|
||||||
or using yarn:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
yarn add @babel/code-frame --dev
|
|
||||||
```
|
|
163
node_modules/@babel/code-frame/lib/index.js
generated
vendored
163
node_modules/@babel/code-frame/lib/index.js
generated
vendored
@ -1,163 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.codeFrameColumns = codeFrameColumns;
|
|
||||||
exports.default = _default;
|
|
||||||
|
|
||||||
var _highlight = require("@babel/highlight");
|
|
||||||
|
|
||||||
let deprecationWarningShown = false;
|
|
||||||
|
|
||||||
function getDefs(chalk) {
|
|
||||||
return {
|
|
||||||
gutter: chalk.grey,
|
|
||||||
marker: chalk.red.bold,
|
|
||||||
message: chalk.red.bold
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
||||||
|
|
||||||
function getMarkerLines(loc, source, opts) {
|
|
||||||
const startLoc = Object.assign({
|
|
||||||
column: 0,
|
|
||||||
line: -1
|
|
||||||
}, loc.start);
|
|
||||||
const endLoc = Object.assign({}, startLoc, loc.end);
|
|
||||||
const {
|
|
||||||
linesAbove = 2,
|
|
||||||
linesBelow = 3
|
|
||||||
} = opts || {};
|
|
||||||
const startLine = startLoc.line;
|
|
||||||
const startColumn = startLoc.column;
|
|
||||||
const endLine = endLoc.line;
|
|
||||||
const endColumn = endLoc.column;
|
|
||||||
let start = Math.max(startLine - (linesAbove + 1), 0);
|
|
||||||
let end = Math.min(source.length, endLine + linesBelow);
|
|
||||||
|
|
||||||
if (startLine === -1) {
|
|
||||||
start = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (endLine === -1) {
|
|
||||||
end = source.length;
|
|
||||||
}
|
|
||||||
|
|
||||||
const lineDiff = endLine - startLine;
|
|
||||||
const markerLines = {};
|
|
||||||
|
|
||||||
if (lineDiff) {
|
|
||||||
for (let i = 0; i <= lineDiff; i++) {
|
|
||||||
const lineNumber = i + startLine;
|
|
||||||
|
|
||||||
if (!startColumn) {
|
|
||||||
markerLines[lineNumber] = true;
|
|
||||||
} else if (i === 0) {
|
|
||||||
const sourceLength = source[lineNumber - 1].length;
|
|
||||||
markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1];
|
|
||||||
} else if (i === lineDiff) {
|
|
||||||
markerLines[lineNumber] = [0, endColumn];
|
|
||||||
} else {
|
|
||||||
const sourceLength = source[lineNumber - i].length;
|
|
||||||
markerLines[lineNumber] = [0, sourceLength];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (startColumn === endColumn) {
|
|
||||||
if (startColumn) {
|
|
||||||
markerLines[startLine] = [startColumn, 0];
|
|
||||||
} else {
|
|
||||||
markerLines[startLine] = true;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
markerLines[startLine] = [startColumn, endColumn - startColumn];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
start,
|
|
||||||
end,
|
|
||||||
markerLines
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
||||||
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
||||||
const chalk = (0, _highlight.getChalk)(opts);
|
|
||||||
const defs = getDefs(chalk);
|
|
||||||
|
|
||||||
const maybeHighlight = (chalkFn, string) => {
|
|
||||||
return highlighted ? chalkFn(string) : string;
|
|
||||||
};
|
|
||||||
|
|
||||||
const lines = rawLines.split(NEWLINE);
|
|
||||||
const {
|
|
||||||
start,
|
|
||||||
end,
|
|
||||||
markerLines
|
|
||||||
} = getMarkerLines(loc, lines, opts);
|
|
||||||
const hasColumns = loc.start && typeof loc.start.column === "number";
|
|
||||||
const numberMaxWidth = String(end).length;
|
|
||||||
const highlightedLines = highlighted ? (0, _highlight.default)(rawLines, opts) : rawLines;
|
|
||||||
let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line, index) => {
|
|
||||||
const number = start + 1 + index;
|
|
||||||
const paddedNumber = ` ${number}`.slice(-numberMaxWidth);
|
|
||||||
const gutter = ` ${paddedNumber} |`;
|
|
||||||
const hasMarker = markerLines[number];
|
|
||||||
const lastMarkerLine = !markerLines[number + 1];
|
|
||||||
|
|
||||||
if (hasMarker) {
|
|
||||||
let markerLine = "";
|
|
||||||
|
|
||||||
if (Array.isArray(hasMarker)) {
|
|
||||||
const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
|
|
||||||
const numberOfMarkers = hasMarker[1] || 1;
|
|
||||||
markerLine = ["\n ", maybeHighlight(defs.gutter, gutter.replace(/\d/g, " ")), " ", markerSpacing, maybeHighlight(defs.marker, "^").repeat(numberOfMarkers)].join("");
|
|
||||||
|
|
||||||
if (lastMarkerLine && opts.message) {
|
|
||||||
markerLine += " " + maybeHighlight(defs.message, opts.message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return [maybeHighlight(defs.marker, ">"), maybeHighlight(defs.gutter, gutter), line.length > 0 ? ` ${line}` : "", markerLine].join("");
|
|
||||||
} else {
|
|
||||||
return ` ${maybeHighlight(defs.gutter, gutter)}${line.length > 0 ? ` ${line}` : ""}`;
|
|
||||||
}
|
|
||||||
}).join("\n");
|
|
||||||
|
|
||||||
if (opts.message && !hasColumns) {
|
|
||||||
frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (highlighted) {
|
|
||||||
return chalk.reset(frame);
|
|
||||||
} else {
|
|
||||||
return frame;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function _default(rawLines, lineNumber, colNumber, opts = {}) {
|
|
||||||
if (!deprecationWarningShown) {
|
|
||||||
deprecationWarningShown = true;
|
|
||||||
const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
|
|
||||||
|
|
||||||
if (process.emitWarning) {
|
|
||||||
process.emitWarning(message, "DeprecationWarning");
|
|
||||||
} else {
|
|
||||||
const deprecationError = new Error(message);
|
|
||||||
deprecationError.name = "DeprecationWarning";
|
|
||||||
console.warn(new Error(message));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
colNumber = Math.max(colNumber, 0);
|
|
||||||
const location = {
|
|
||||||
start: {
|
|
||||||
column: colNumber,
|
|
||||||
line: lineNumber
|
|
||||||
}
|
|
||||||
};
|
|
||||||
return codeFrameColumns(rawLines, location, opts);
|
|
||||||
}
|
|
30
node_modules/@babel/code-frame/package.json
generated
vendored
30
node_modules/@babel/code-frame/package.json
generated
vendored
@ -1,30 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "@babel/code-frame",
|
|
||||||
"version": "7.18.6",
|
|
||||||
"description": "Generate errors that contain a code frame that point to source locations.",
|
|
||||||
"author": "The Babel Team (https://babel.dev/team)",
|
|
||||||
"homepage": "https://babel.dev/docs/en/next/babel-code-frame",
|
|
||||||
"bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen",
|
|
||||||
"license": "MIT",
|
|
||||||
"publishConfig": {
|
|
||||||
"access": "public"
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/babel/babel.git",
|
|
||||||
"directory": "packages/babel-code-frame"
|
|
||||||
},
|
|
||||||
"main": "./lib/index.js",
|
|
||||||
"dependencies": {
|
|
||||||
"@babel/highlight": "^7.18.6"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@types/chalk": "^2.0.0",
|
|
||||||
"chalk": "^2.0.0",
|
|
||||||
"strip-ansi": "^4.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.9.0"
|
|
||||||
},
|
|
||||||
"type": "commonjs"
|
|
||||||
}
|
|
22
node_modules/@babel/generator/LICENSE
generated
vendored
22
node_modules/@babel/generator/LICENSE
generated
vendored
@ -1,22 +0,0 @@
|
|||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
19
node_modules/@babel/generator/README.md
generated
vendored
19
node_modules/@babel/generator/README.md
generated
vendored
@ -1,19 +0,0 @@
|
|||||||
# @babel/generator
|
|
||||||
|
|
||||||
> Turns an AST into code.
|
|
||||||
|
|
||||||
See our website [@babel/generator](https://babeljs.io/docs/en/babel-generator) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20generator%22+is%3Aopen) associated with this package.
|
|
||||||
|
|
||||||
## Install
|
|
||||||
|
|
||||||
Using npm:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm install --save-dev @babel/generator
|
|
||||||
```
|
|
||||||
|
|
||||||
or using yarn:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
yarn add @babel/generator --dev
|
|
||||||
```
|
|
366
node_modules/@babel/generator/lib/buffer.js
generated
vendored
366
node_modules/@babel/generator/lib/buffer.js
generated
vendored
@ -1,366 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.default = void 0;
|
|
||||||
|
|
||||||
function SourcePos() {
|
|
||||||
return {
|
|
||||||
identifierName: undefined,
|
|
||||||
line: undefined,
|
|
||||||
column: undefined,
|
|
||||||
filename: undefined
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
class Buffer {
|
|
||||||
constructor(map) {
|
|
||||||
this._map = null;
|
|
||||||
this._buf = "";
|
|
||||||
this._str = "";
|
|
||||||
this._appendCount = 0;
|
|
||||||
this._last = 0;
|
|
||||||
this._queue = [];
|
|
||||||
this._queueCursor = 0;
|
|
||||||
this._position = {
|
|
||||||
line: 1,
|
|
||||||
column: 0
|
|
||||||
};
|
|
||||||
this._sourcePosition = SourcePos();
|
|
||||||
this._disallowedPop = {
|
|
||||||
identifierName: undefined,
|
|
||||||
line: undefined,
|
|
||||||
column: undefined,
|
|
||||||
filename: undefined,
|
|
||||||
objectReusable: true
|
|
||||||
};
|
|
||||||
this._map = map;
|
|
||||||
|
|
||||||
this._allocQueue();
|
|
||||||
}
|
|
||||||
|
|
||||||
_allocQueue() {
|
|
||||||
const queue = this._queue;
|
|
||||||
|
|
||||||
for (let i = 0; i < 16; i++) {
|
|
||||||
queue.push({
|
|
||||||
char: 0,
|
|
||||||
repeat: 1,
|
|
||||||
line: undefined,
|
|
||||||
column: undefined,
|
|
||||||
identifierName: undefined,
|
|
||||||
filename: ""
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
_pushQueue(char, repeat, line, column, identifierName, filename) {
|
|
||||||
const cursor = this._queueCursor;
|
|
||||||
|
|
||||||
if (cursor === this._queue.length) {
|
|
||||||
this._allocQueue();
|
|
||||||
}
|
|
||||||
|
|
||||||
const item = this._queue[cursor];
|
|
||||||
item.char = char;
|
|
||||||
item.repeat = repeat;
|
|
||||||
item.line = line;
|
|
||||||
item.column = column;
|
|
||||||
item.identifierName = identifierName;
|
|
||||||
item.filename = filename;
|
|
||||||
this._queueCursor++;
|
|
||||||
}
|
|
||||||
|
|
||||||
_popQueue() {
|
|
||||||
if (this._queueCursor === 0) {
|
|
||||||
throw new Error("Cannot pop from empty queue");
|
|
||||||
}
|
|
||||||
|
|
||||||
return this._queue[--this._queueCursor];
|
|
||||||
}
|
|
||||||
|
|
||||||
get() {
|
|
||||||
this._flush();
|
|
||||||
|
|
||||||
const map = this._map;
|
|
||||||
const result = {
|
|
||||||
code: (this._buf + this._str).trimRight(),
|
|
||||||
decodedMap: map == null ? void 0 : map.getDecoded(),
|
|
||||||
|
|
||||||
get map() {
|
|
||||||
const resultMap = map ? map.get() : null;
|
|
||||||
result.map = resultMap;
|
|
||||||
return resultMap;
|
|
||||||
},
|
|
||||||
|
|
||||||
set map(value) {
|
|
||||||
Object.defineProperty(result, "map", {
|
|
||||||
value,
|
|
||||||
writable: true
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
get rawMappings() {
|
|
||||||
const mappings = map == null ? void 0 : map.getRawMappings();
|
|
||||||
result.rawMappings = mappings;
|
|
||||||
return mappings;
|
|
||||||
},
|
|
||||||
|
|
||||||
set rawMappings(value) {
|
|
||||||
Object.defineProperty(result, "rawMappings", {
|
|
||||||
value,
|
|
||||||
writable: true
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
append(str, maybeNewline) {
|
|
||||||
this._flush();
|
|
||||||
|
|
||||||
this._append(str, this._sourcePosition, maybeNewline);
|
|
||||||
}
|
|
||||||
|
|
||||||
appendChar(char) {
|
|
||||||
this._flush();
|
|
||||||
|
|
||||||
this._appendChar(char, 1, this._sourcePosition);
|
|
||||||
}
|
|
||||||
|
|
||||||
queue(char) {
|
|
||||||
if (char === 10) {
|
|
||||||
while (this._queueCursor !== 0) {
|
|
||||||
const char = this._queue[this._queueCursor - 1].char;
|
|
||||||
|
|
||||||
if (char !== 32 && char !== 9) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
this._queueCursor--;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const sourcePosition = this._sourcePosition;
|
|
||||||
|
|
||||||
this._pushQueue(char, 1, sourcePosition.line, sourcePosition.column, sourcePosition.identifierName, sourcePosition.filename);
|
|
||||||
}
|
|
||||||
|
|
||||||
queueIndentation(char, repeat) {
|
|
||||||
this._pushQueue(char, repeat, undefined, undefined, undefined, undefined);
|
|
||||||
}
|
|
||||||
|
|
||||||
_flush() {
|
|
||||||
const queueCursor = this._queueCursor;
|
|
||||||
const queue = this._queue;
|
|
||||||
|
|
||||||
for (let i = 0; i < queueCursor; i++) {
|
|
||||||
const item = queue[i];
|
|
||||||
|
|
||||||
this._appendChar(item.char, item.repeat, item);
|
|
||||||
}
|
|
||||||
|
|
||||||
this._queueCursor = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
_appendChar(char, repeat, sourcePos) {
|
|
||||||
this._last = char;
|
|
||||||
this._str += repeat > 1 ? String.fromCharCode(char).repeat(repeat) : String.fromCharCode(char);
|
|
||||||
|
|
||||||
if (char !== 10) {
|
|
||||||
this._mark(sourcePos.line, sourcePos.column, sourcePos.identifierName, sourcePos.filename);
|
|
||||||
|
|
||||||
this._position.column += repeat;
|
|
||||||
} else {
|
|
||||||
this._position.line++;
|
|
||||||
this._position.column = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
_append(str, sourcePos, maybeNewline) {
|
|
||||||
const len = str.length;
|
|
||||||
this._last = str.charCodeAt(len - 1);
|
|
||||||
|
|
||||||
if (++this._appendCount > 4096) {
|
|
||||||
+this._str;
|
|
||||||
this._buf += this._str;
|
|
||||||
this._str = str;
|
|
||||||
this._appendCount = 0;
|
|
||||||
} else {
|
|
||||||
this._str += str;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!maybeNewline && !this._map) {
|
|
||||||
this._position.column += len;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const {
|
|
||||||
column,
|
|
||||||
identifierName,
|
|
||||||
filename
|
|
||||||
} = sourcePos;
|
|
||||||
let line = sourcePos.line;
|
|
||||||
let i = str.indexOf("\n");
|
|
||||||
let last = 0;
|
|
||||||
|
|
||||||
if (i !== 0) {
|
|
||||||
this._mark(line, column, identifierName, filename);
|
|
||||||
}
|
|
||||||
|
|
||||||
while (i !== -1) {
|
|
||||||
this._position.line++;
|
|
||||||
this._position.column = 0;
|
|
||||||
last = i + 1;
|
|
||||||
|
|
||||||
if (last < str.length) {
|
|
||||||
this._mark(++line, 0, identifierName, filename);
|
|
||||||
}
|
|
||||||
|
|
||||||
i = str.indexOf("\n", last);
|
|
||||||
}
|
|
||||||
|
|
||||||
this._position.column += str.length - last;
|
|
||||||
}
|
|
||||||
|
|
||||||
_mark(line, column, identifierName, filename) {
|
|
||||||
var _this$_map;
|
|
||||||
|
|
||||||
(_this$_map = this._map) == null ? void 0 : _this$_map.mark(this._position, line, column, identifierName, filename);
|
|
||||||
}
|
|
||||||
|
|
||||||
removeTrailingNewline() {
|
|
||||||
const queueCursor = this._queueCursor;
|
|
||||||
|
|
||||||
if (queueCursor !== 0 && this._queue[queueCursor - 1].char === 10) {
|
|
||||||
this._queueCursor--;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
removeLastSemicolon() {
|
|
||||||
const queueCursor = this._queueCursor;
|
|
||||||
|
|
||||||
if (queueCursor !== 0 && this._queue[queueCursor - 1].char === 59) {
|
|
||||||
this._queueCursor--;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
getLastChar() {
|
|
||||||
const queueCursor = this._queueCursor;
|
|
||||||
return queueCursor !== 0 ? this._queue[queueCursor - 1].char : this._last;
|
|
||||||
}
|
|
||||||
|
|
||||||
endsWithCharAndNewline() {
|
|
||||||
const queue = this._queue;
|
|
||||||
const queueCursor = this._queueCursor;
|
|
||||||
|
|
||||||
if (queueCursor !== 0) {
|
|
||||||
const lastCp = queue[queueCursor - 1].char;
|
|
||||||
if (lastCp !== 10) return;
|
|
||||||
|
|
||||||
if (queueCursor > 1) {
|
|
||||||
return queue[queueCursor - 2].char;
|
|
||||||
} else {
|
|
||||||
return this._last;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
hasContent() {
|
|
||||||
return this._queueCursor !== 0 || !!this._last;
|
|
||||||
}
|
|
||||||
|
|
||||||
exactSource(loc, cb) {
|
|
||||||
if (!this._map) return cb();
|
|
||||||
this.source("start", loc);
|
|
||||||
cb();
|
|
||||||
this.source("end", loc);
|
|
||||||
|
|
||||||
this._disallowPop("start", loc);
|
|
||||||
}
|
|
||||||
|
|
||||||
source(prop, loc) {
|
|
||||||
if (!loc) return;
|
|
||||||
|
|
||||||
this._normalizePosition(prop, loc, this._sourcePosition);
|
|
||||||
}
|
|
||||||
|
|
||||||
withSource(prop, loc, cb) {
|
|
||||||
if (!this._map) return cb();
|
|
||||||
const originalLine = this._sourcePosition.line;
|
|
||||||
const originalColumn = this._sourcePosition.column;
|
|
||||||
const originalFilename = this._sourcePosition.filename;
|
|
||||||
const originalIdentifierName = this._sourcePosition.identifierName;
|
|
||||||
this.source(prop, loc);
|
|
||||||
cb();
|
|
||||||
|
|
||||||
if (this._disallowedPop.objectReusable || this._disallowedPop.line !== originalLine || this._disallowedPop.column !== originalColumn || this._disallowedPop.filename !== originalFilename) {
|
|
||||||
this._sourcePosition.line = originalLine;
|
|
||||||
this._sourcePosition.column = originalColumn;
|
|
||||||
this._sourcePosition.filename = originalFilename;
|
|
||||||
this._sourcePosition.identifierName = originalIdentifierName;
|
|
||||||
this._disallowedPop.objectReusable = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
_disallowPop(prop, loc) {
|
|
||||||
if (!loc) return;
|
|
||||||
const disallowedPop = this._disallowedPop;
|
|
||||||
|
|
||||||
this._normalizePosition(prop, loc, disallowedPop);
|
|
||||||
|
|
||||||
disallowedPop.objectReusable = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
_normalizePosition(prop, loc, targetObj) {
|
|
||||||
const pos = loc[prop];
|
|
||||||
targetObj.identifierName = prop === "start" && loc.identifierName || undefined;
|
|
||||||
|
|
||||||
if (pos) {
|
|
||||||
targetObj.line = pos.line;
|
|
||||||
targetObj.column = pos.column;
|
|
||||||
targetObj.filename = loc.filename;
|
|
||||||
} else {
|
|
||||||
targetObj.line = null;
|
|
||||||
targetObj.column = null;
|
|
||||||
targetObj.filename = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
getCurrentColumn() {
|
|
||||||
const queue = this._queue;
|
|
||||||
let lastIndex = -1;
|
|
||||||
let len = 0;
|
|
||||||
|
|
||||||
for (let i = 0; i < this._queueCursor; i++) {
|
|
||||||
const item = queue[i];
|
|
||||||
|
|
||||||
if (item.char === 10) {
|
|
||||||
lastIndex = i;
|
|
||||||
len += item.repeat;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return lastIndex === -1 ? this._position.column + len : len - 1 - lastIndex;
|
|
||||||
}
|
|
||||||
|
|
||||||
getCurrentLine() {
|
|
||||||
let count = 0;
|
|
||||||
const queue = this._queue;
|
|
||||||
|
|
||||||
for (let i = 0; i < this._queueCursor; i++) {
|
|
||||||
if (queue[i].char === 10) {
|
|
||||||
count++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return this._position.line + count;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
exports.default = Buffer;
|
|
||||||
|
|
||||||
//# sourceMappingURL=buffer.js.map
|
|
1
node_modules/@babel/generator/lib/buffer.js.map
generated
vendored
1
node_modules/@babel/generator/lib/buffer.js.map
generated
vendored
File diff suppressed because one or more lines are too long
98
node_modules/@babel/generator/lib/generators/base.js
generated
vendored
98
node_modules/@babel/generator/lib/generators/base.js
generated
vendored
@ -1,98 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.BlockStatement = BlockStatement;
|
|
||||||
exports.Directive = Directive;
|
|
||||||
exports.DirectiveLiteral = DirectiveLiteral;
|
|
||||||
exports.File = File;
|
|
||||||
exports.InterpreterDirective = InterpreterDirective;
|
|
||||||
exports.Placeholder = Placeholder;
|
|
||||||
exports.Program = Program;
|
|
||||||
|
|
||||||
function File(node) {
|
|
||||||
if (node.program) {
|
|
||||||
this.print(node.program.interpreter, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.print(node.program, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function Program(node) {
|
|
||||||
this.printInnerComments(node, false);
|
|
||||||
this.printSequence(node.directives, node);
|
|
||||||
if (node.directives && node.directives.length) this.newline();
|
|
||||||
this.printSequence(node.body, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function BlockStatement(node) {
|
|
||||||
var _node$directives;
|
|
||||||
|
|
||||||
this.tokenChar(123);
|
|
||||||
this.printInnerComments(node);
|
|
||||||
const hasDirectives = (_node$directives = node.directives) == null ? void 0 : _node$directives.length;
|
|
||||||
|
|
||||||
if (node.body.length || hasDirectives) {
|
|
||||||
this.newline();
|
|
||||||
this.printSequence(node.directives, node, {
|
|
||||||
indent: true
|
|
||||||
});
|
|
||||||
if (hasDirectives) this.newline();
|
|
||||||
this.printSequence(node.body, node, {
|
|
||||||
indent: true
|
|
||||||
});
|
|
||||||
this.removeTrailingNewline();
|
|
||||||
this.source("end", node.loc);
|
|
||||||
if (!this.endsWith(10)) this.newline();
|
|
||||||
this.rightBrace();
|
|
||||||
} else {
|
|
||||||
this.source("end", node.loc);
|
|
||||||
this.tokenChar(125);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Directive(node) {
|
|
||||||
this.print(node.value, node);
|
|
||||||
this.semicolon();
|
|
||||||
}
|
|
||||||
|
|
||||||
const unescapedSingleQuoteRE = /(?:^|[^\\])(?:\\\\)*'/;
|
|
||||||
const unescapedDoubleQuoteRE = /(?:^|[^\\])(?:\\\\)*"/;
|
|
||||||
|
|
||||||
function DirectiveLiteral(node) {
|
|
||||||
const raw = this.getPossibleRaw(node);
|
|
||||||
|
|
||||||
if (!this.format.minified && raw !== undefined) {
|
|
||||||
this.token(raw);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const {
|
|
||||||
value
|
|
||||||
} = node;
|
|
||||||
|
|
||||||
if (!unescapedDoubleQuoteRE.test(value)) {
|
|
||||||
this.token(`"${value}"`);
|
|
||||||
} else if (!unescapedSingleQuoteRE.test(value)) {
|
|
||||||
this.token(`'${value}'`);
|
|
||||||
} else {
|
|
||||||
throw new Error("Malformed AST: it is not possible to print a directive containing" + " both unescaped single and double quotes.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function InterpreterDirective(node) {
|
|
||||||
this.token(`#!${node.value}\n`, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
function Placeholder(node) {
|
|
||||||
this.token("%%");
|
|
||||||
this.print(node.name);
|
|
||||||
this.token("%%");
|
|
||||||
|
|
||||||
if (node.expectedNode === "Statement") {
|
|
||||||
this.semicolon();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=base.js.map
|
|
1
node_modules/@babel/generator/lib/generators/base.js.map
generated
vendored
1
node_modules/@babel/generator/lib/generators/base.js.map
generated
vendored
File diff suppressed because one or more lines are too long
217
node_modules/@babel/generator/lib/generators/classes.js
generated
vendored
217
node_modules/@babel/generator/lib/generators/classes.js
generated
vendored
@ -1,217 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.ClassAccessorProperty = ClassAccessorProperty;
|
|
||||||
exports.ClassBody = ClassBody;
|
|
||||||
exports.ClassExpression = exports.ClassDeclaration = ClassDeclaration;
|
|
||||||
exports.ClassMethod = ClassMethod;
|
|
||||||
exports.ClassPrivateMethod = ClassPrivateMethod;
|
|
||||||
exports.ClassPrivateProperty = ClassPrivateProperty;
|
|
||||||
exports.ClassProperty = ClassProperty;
|
|
||||||
exports.StaticBlock = StaticBlock;
|
|
||||||
exports._classMethodHead = _classMethodHead;
|
|
||||||
|
|
||||||
var _t = require("@babel/types");
|
|
||||||
|
|
||||||
const {
|
|
||||||
isExportDefaultDeclaration,
|
|
||||||
isExportNamedDeclaration
|
|
||||||
} = _t;
|
|
||||||
|
|
||||||
function ClassDeclaration(node, parent) {
|
|
||||||
{
|
|
||||||
if (!this.format.decoratorsBeforeExport || !isExportDefaultDeclaration(parent) && !isExportNamedDeclaration(parent)) {
|
|
||||||
this.printJoin(node.decorators, node);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.declare) {
|
|
||||||
this.word("declare");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.abstract) {
|
|
||||||
this.word("abstract");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.word("class");
|
|
||||||
this.printInnerComments(node);
|
|
||||||
|
|
||||||
if (node.id) {
|
|
||||||
this.space();
|
|
||||||
this.print(node.id, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.print(node.typeParameters, node);
|
|
||||||
|
|
||||||
if (node.superClass) {
|
|
||||||
this.space();
|
|
||||||
this.word("extends");
|
|
||||||
this.space();
|
|
||||||
this.print(node.superClass, node);
|
|
||||||
this.print(node.superTypeParameters, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.implements) {
|
|
||||||
this.space();
|
|
||||||
this.word("implements");
|
|
||||||
this.space();
|
|
||||||
this.printList(node.implements, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.space();
|
|
||||||
this.print(node.body, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function ClassBody(node) {
|
|
||||||
this.tokenChar(123);
|
|
||||||
this.printInnerComments(node);
|
|
||||||
|
|
||||||
if (node.body.length === 0) {
|
|
||||||
this.tokenChar(125);
|
|
||||||
} else {
|
|
||||||
this.newline();
|
|
||||||
this.indent();
|
|
||||||
this.printSequence(node.body, node);
|
|
||||||
this.dedent();
|
|
||||||
if (!this.endsWith(10)) this.newline();
|
|
||||||
this.rightBrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function ClassProperty(node) {
|
|
||||||
this.printJoin(node.decorators, node);
|
|
||||||
this.source("end", node.key.loc);
|
|
||||||
this.tsPrintClassMemberModifiers(node);
|
|
||||||
|
|
||||||
if (node.computed) {
|
|
||||||
this.tokenChar(91);
|
|
||||||
this.print(node.key, node);
|
|
||||||
this.tokenChar(93);
|
|
||||||
} else {
|
|
||||||
this._variance(node);
|
|
||||||
|
|
||||||
this.print(node.key, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.optional) {
|
|
||||||
this.tokenChar(63);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.definite) {
|
|
||||||
this.tokenChar(33);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.print(node.typeAnnotation, node);
|
|
||||||
|
|
||||||
if (node.value) {
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(61);
|
|
||||||
this.space();
|
|
||||||
this.print(node.value, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.semicolon();
|
|
||||||
}
|
|
||||||
|
|
||||||
function ClassAccessorProperty(node) {
|
|
||||||
this.printJoin(node.decorators, node);
|
|
||||||
this.source("end", node.key.loc);
|
|
||||||
this.tsPrintClassMemberModifiers(node);
|
|
||||||
this.word("accessor");
|
|
||||||
this.printInnerComments(node);
|
|
||||||
this.space();
|
|
||||||
|
|
||||||
if (node.computed) {
|
|
||||||
this.tokenChar(91);
|
|
||||||
this.print(node.key, node);
|
|
||||||
this.tokenChar(93);
|
|
||||||
} else {
|
|
||||||
this._variance(node);
|
|
||||||
|
|
||||||
this.print(node.key, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.optional) {
|
|
||||||
this.tokenChar(63);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.definite) {
|
|
||||||
this.tokenChar(33);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.print(node.typeAnnotation, node);
|
|
||||||
|
|
||||||
if (node.value) {
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(61);
|
|
||||||
this.space();
|
|
||||||
this.print(node.value, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.semicolon();
|
|
||||||
}
|
|
||||||
|
|
||||||
function ClassPrivateProperty(node) {
|
|
||||||
this.printJoin(node.decorators, node);
|
|
||||||
|
|
||||||
if (node.static) {
|
|
||||||
this.word("static");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.print(node.key, node);
|
|
||||||
this.print(node.typeAnnotation, node);
|
|
||||||
|
|
||||||
if (node.value) {
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(61);
|
|
||||||
this.space();
|
|
||||||
this.print(node.value, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.semicolon();
|
|
||||||
}
|
|
||||||
|
|
||||||
function ClassMethod(node) {
|
|
||||||
this._classMethodHead(node);
|
|
||||||
|
|
||||||
this.space();
|
|
||||||
this.print(node.body, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function ClassPrivateMethod(node) {
|
|
||||||
this._classMethodHead(node);
|
|
||||||
|
|
||||||
this.space();
|
|
||||||
this.print(node.body, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _classMethodHead(node) {
|
|
||||||
this.printJoin(node.decorators, node);
|
|
||||||
this.source("end", node.key.loc);
|
|
||||||
this.tsPrintClassMemberModifiers(node);
|
|
||||||
|
|
||||||
this._methodHead(node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function StaticBlock(node) {
|
|
||||||
this.word("static");
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(123);
|
|
||||||
|
|
||||||
if (node.body.length === 0) {
|
|
||||||
this.tokenChar(125);
|
|
||||||
} else {
|
|
||||||
this.newline();
|
|
||||||
this.printSequence(node.body, node, {
|
|
||||||
indent: true
|
|
||||||
});
|
|
||||||
this.rightBrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=classes.js.map
|
|
1
node_modules/@babel/generator/lib/generators/classes.js.map
generated
vendored
1
node_modules/@babel/generator/lib/generators/classes.js.map
generated
vendored
File diff suppressed because one or more lines are too long
350
node_modules/@babel/generator/lib/generators/expressions.js
generated
vendored
350
node_modules/@babel/generator/lib/generators/expressions.js
generated
vendored
@ -1,350 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.LogicalExpression = exports.BinaryExpression = exports.AssignmentExpression = AssignmentExpression;
|
|
||||||
exports.AssignmentPattern = AssignmentPattern;
|
|
||||||
exports.AwaitExpression = AwaitExpression;
|
|
||||||
exports.BindExpression = BindExpression;
|
|
||||||
exports.CallExpression = CallExpression;
|
|
||||||
exports.ConditionalExpression = ConditionalExpression;
|
|
||||||
exports.Decorator = Decorator;
|
|
||||||
exports.DoExpression = DoExpression;
|
|
||||||
exports.EmptyStatement = EmptyStatement;
|
|
||||||
exports.ExpressionStatement = ExpressionStatement;
|
|
||||||
exports.Import = Import;
|
|
||||||
exports.MemberExpression = MemberExpression;
|
|
||||||
exports.MetaProperty = MetaProperty;
|
|
||||||
exports.ModuleExpression = ModuleExpression;
|
|
||||||
exports.NewExpression = NewExpression;
|
|
||||||
exports.OptionalCallExpression = OptionalCallExpression;
|
|
||||||
exports.OptionalMemberExpression = OptionalMemberExpression;
|
|
||||||
exports.ParenthesizedExpression = ParenthesizedExpression;
|
|
||||||
exports.PrivateName = PrivateName;
|
|
||||||
exports.SequenceExpression = SequenceExpression;
|
|
||||||
exports.Super = Super;
|
|
||||||
exports.ThisExpression = ThisExpression;
|
|
||||||
exports.UnaryExpression = UnaryExpression;
|
|
||||||
exports.UpdateExpression = UpdateExpression;
|
|
||||||
exports.V8IntrinsicIdentifier = V8IntrinsicIdentifier;
|
|
||||||
exports.YieldExpression = YieldExpression;
|
|
||||||
|
|
||||||
var _t = require("@babel/types");
|
|
||||||
|
|
||||||
var n = require("../node");
|
|
||||||
|
|
||||||
const {
|
|
||||||
isCallExpression,
|
|
||||||
isLiteral,
|
|
||||||
isMemberExpression,
|
|
||||||
isNewExpression
|
|
||||||
} = _t;
|
|
||||||
|
|
||||||
function UnaryExpression(node) {
|
|
||||||
if (node.operator === "void" || node.operator === "delete" || node.operator === "typeof" || node.operator === "throw") {
|
|
||||||
this.word(node.operator);
|
|
||||||
this.space();
|
|
||||||
} else {
|
|
||||||
this.token(node.operator);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.print(node.argument, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function DoExpression(node) {
|
|
||||||
if (node.async) {
|
|
||||||
this.word("async");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.word("do");
|
|
||||||
this.space();
|
|
||||||
this.print(node.body, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function ParenthesizedExpression(node) {
|
|
||||||
this.tokenChar(40);
|
|
||||||
this.print(node.expression, node);
|
|
||||||
this.tokenChar(41);
|
|
||||||
}
|
|
||||||
|
|
||||||
function UpdateExpression(node) {
|
|
||||||
if (node.prefix) {
|
|
||||||
this.token(node.operator);
|
|
||||||
this.print(node.argument, node);
|
|
||||||
} else {
|
|
||||||
this.printTerminatorless(node.argument, node, true);
|
|
||||||
this.token(node.operator);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function ConditionalExpression(node) {
|
|
||||||
this.print(node.test, node);
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(63);
|
|
||||||
this.space();
|
|
||||||
this.print(node.consequent, node);
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(58);
|
|
||||||
this.space();
|
|
||||||
this.print(node.alternate, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function NewExpression(node, parent) {
|
|
||||||
this.word("new");
|
|
||||||
this.space();
|
|
||||||
this.print(node.callee, node);
|
|
||||||
|
|
||||||
if (this.format.minified && node.arguments.length === 0 && !node.optional && !isCallExpression(parent, {
|
|
||||||
callee: node
|
|
||||||
}) && !isMemberExpression(parent) && !isNewExpression(parent)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.print(node.typeArguments, node);
|
|
||||||
this.print(node.typeParameters, node);
|
|
||||||
|
|
||||||
if (node.optional) {
|
|
||||||
this.token("?.");
|
|
||||||
}
|
|
||||||
|
|
||||||
this.tokenChar(40);
|
|
||||||
this.printList(node.arguments, node);
|
|
||||||
this.tokenChar(41);
|
|
||||||
}
|
|
||||||
|
|
||||||
function SequenceExpression(node) {
|
|
||||||
this.printList(node.expressions, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function ThisExpression() {
|
|
||||||
this.word("this");
|
|
||||||
}
|
|
||||||
|
|
||||||
function Super() {
|
|
||||||
this.word("super");
|
|
||||||
}
|
|
||||||
|
|
||||||
function isDecoratorMemberExpression(node) {
|
|
||||||
switch (node.type) {
|
|
||||||
case "Identifier":
|
|
||||||
return true;
|
|
||||||
|
|
||||||
case "MemberExpression":
|
|
||||||
return !node.computed && node.property.type === "Identifier" && isDecoratorMemberExpression(node.object);
|
|
||||||
|
|
||||||
default:
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function shouldParenthesizeDecoratorExpression(node) {
|
|
||||||
if (node.type === "ParenthesizedExpression") {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return !isDecoratorMemberExpression(node.type === "CallExpression" ? node.callee : node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function Decorator(node) {
|
|
||||||
this.tokenChar(64);
|
|
||||||
const {
|
|
||||||
expression
|
|
||||||
} = node;
|
|
||||||
|
|
||||||
if (shouldParenthesizeDecoratorExpression(expression)) {
|
|
||||||
this.tokenChar(40);
|
|
||||||
this.print(expression, node);
|
|
||||||
this.tokenChar(41);
|
|
||||||
} else {
|
|
||||||
this.print(expression, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.newline();
|
|
||||||
}
|
|
||||||
|
|
||||||
function OptionalMemberExpression(node) {
|
|
||||||
this.print(node.object, node);
|
|
||||||
|
|
||||||
if (!node.computed && isMemberExpression(node.property)) {
|
|
||||||
throw new TypeError("Got a MemberExpression for MemberExpression property");
|
|
||||||
}
|
|
||||||
|
|
||||||
let computed = node.computed;
|
|
||||||
|
|
||||||
if (isLiteral(node.property) && typeof node.property.value === "number") {
|
|
||||||
computed = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.optional) {
|
|
||||||
this.token("?.");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (computed) {
|
|
||||||
this.tokenChar(91);
|
|
||||||
this.print(node.property, node);
|
|
||||||
this.tokenChar(93);
|
|
||||||
} else {
|
|
||||||
if (!node.optional) {
|
|
||||||
this.tokenChar(46);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.print(node.property, node);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function OptionalCallExpression(node) {
|
|
||||||
this.print(node.callee, node);
|
|
||||||
this.print(node.typeParameters, node);
|
|
||||||
|
|
||||||
if (node.optional) {
|
|
||||||
this.token("?.");
|
|
||||||
}
|
|
||||||
|
|
||||||
this.print(node.typeArguments, node);
|
|
||||||
this.tokenChar(40);
|
|
||||||
this.printList(node.arguments, node);
|
|
||||||
this.tokenChar(41);
|
|
||||||
}
|
|
||||||
|
|
||||||
function CallExpression(node) {
|
|
||||||
this.print(node.callee, node);
|
|
||||||
this.print(node.typeArguments, node);
|
|
||||||
this.print(node.typeParameters, node);
|
|
||||||
this.tokenChar(40);
|
|
||||||
this.printList(node.arguments, node);
|
|
||||||
this.tokenChar(41);
|
|
||||||
}
|
|
||||||
|
|
||||||
function Import() {
|
|
||||||
this.word("import");
|
|
||||||
}
|
|
||||||
|
|
||||||
function AwaitExpression(node) {
|
|
||||||
this.word("await");
|
|
||||||
|
|
||||||
if (node.argument) {
|
|
||||||
this.space();
|
|
||||||
this.printTerminatorless(node.argument, node, false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function YieldExpression(node) {
|
|
||||||
this.word("yield");
|
|
||||||
|
|
||||||
if (node.delegate) {
|
|
||||||
this.tokenChar(42);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.argument) {
|
|
||||||
this.space();
|
|
||||||
this.printTerminatorless(node.argument, node, false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function EmptyStatement() {
|
|
||||||
this.semicolon(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
function ExpressionStatement(node) {
|
|
||||||
this.print(node.expression, node);
|
|
||||||
this.semicolon();
|
|
||||||
}
|
|
||||||
|
|
||||||
function AssignmentPattern(node) {
|
|
||||||
this.print(node.left, node);
|
|
||||||
if (node.left.optional) this.tokenChar(63);
|
|
||||||
this.print(node.left.typeAnnotation, node);
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(61);
|
|
||||||
this.space();
|
|
||||||
this.print(node.right, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function AssignmentExpression(node, parent) {
|
|
||||||
const parens = this.inForStatementInitCounter && node.operator === "in" && !n.needsParens(node, parent);
|
|
||||||
|
|
||||||
if (parens) {
|
|
||||||
this.tokenChar(40);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.print(node.left, node);
|
|
||||||
this.space();
|
|
||||||
|
|
||||||
if (node.operator === "in" || node.operator === "instanceof") {
|
|
||||||
this.word(node.operator);
|
|
||||||
} else {
|
|
||||||
this.token(node.operator);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.space();
|
|
||||||
this.print(node.right, node);
|
|
||||||
|
|
||||||
if (parens) {
|
|
||||||
this.tokenChar(41);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function BindExpression(node) {
|
|
||||||
this.print(node.object, node);
|
|
||||||
this.token("::");
|
|
||||||
this.print(node.callee, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function MemberExpression(node) {
|
|
||||||
this.print(node.object, node);
|
|
||||||
|
|
||||||
if (!node.computed && isMemberExpression(node.property)) {
|
|
||||||
throw new TypeError("Got a MemberExpression for MemberExpression property");
|
|
||||||
}
|
|
||||||
|
|
||||||
let computed = node.computed;
|
|
||||||
|
|
||||||
if (isLiteral(node.property) && typeof node.property.value === "number") {
|
|
||||||
computed = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (computed) {
|
|
||||||
this.tokenChar(91);
|
|
||||||
this.print(node.property, node);
|
|
||||||
this.tokenChar(93);
|
|
||||||
} else {
|
|
||||||
this.tokenChar(46);
|
|
||||||
this.print(node.property, node);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function MetaProperty(node) {
|
|
||||||
this.print(node.meta, node);
|
|
||||||
this.tokenChar(46);
|
|
||||||
this.print(node.property, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function PrivateName(node) {
|
|
||||||
this.tokenChar(35);
|
|
||||||
this.print(node.id, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function V8IntrinsicIdentifier(node) {
|
|
||||||
this.tokenChar(37);
|
|
||||||
this.word(node.name);
|
|
||||||
}
|
|
||||||
|
|
||||||
function ModuleExpression(node) {
|
|
||||||
this.word("module");
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(123);
|
|
||||||
|
|
||||||
if (node.body.body.length === 0) {
|
|
||||||
this.tokenChar(125);
|
|
||||||
} else {
|
|
||||||
this.newline();
|
|
||||||
this.printSequence(node.body.body, node, {
|
|
||||||
indent: true
|
|
||||||
});
|
|
||||||
this.rightBrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=expressions.js.map
|
|
1
node_modules/@babel/generator/lib/generators/expressions.js.map
generated
vendored
1
node_modules/@babel/generator/lib/generators/expressions.js.map
generated
vendored
File diff suppressed because one or more lines are too long
797
node_modules/@babel/generator/lib/generators/flow.js
generated
vendored
797
node_modules/@babel/generator/lib/generators/flow.js
generated
vendored
@ -1,797 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.AnyTypeAnnotation = AnyTypeAnnotation;
|
|
||||||
exports.ArrayTypeAnnotation = ArrayTypeAnnotation;
|
|
||||||
exports.BooleanLiteralTypeAnnotation = BooleanLiteralTypeAnnotation;
|
|
||||||
exports.BooleanTypeAnnotation = BooleanTypeAnnotation;
|
|
||||||
exports.DeclareClass = DeclareClass;
|
|
||||||
exports.DeclareExportAllDeclaration = DeclareExportAllDeclaration;
|
|
||||||
exports.DeclareExportDeclaration = DeclareExportDeclaration;
|
|
||||||
exports.DeclareFunction = DeclareFunction;
|
|
||||||
exports.DeclareInterface = DeclareInterface;
|
|
||||||
exports.DeclareModule = DeclareModule;
|
|
||||||
exports.DeclareModuleExports = DeclareModuleExports;
|
|
||||||
exports.DeclareOpaqueType = DeclareOpaqueType;
|
|
||||||
exports.DeclareTypeAlias = DeclareTypeAlias;
|
|
||||||
exports.DeclareVariable = DeclareVariable;
|
|
||||||
exports.DeclaredPredicate = DeclaredPredicate;
|
|
||||||
exports.EmptyTypeAnnotation = EmptyTypeAnnotation;
|
|
||||||
exports.EnumBooleanBody = EnumBooleanBody;
|
|
||||||
exports.EnumBooleanMember = EnumBooleanMember;
|
|
||||||
exports.EnumDeclaration = EnumDeclaration;
|
|
||||||
exports.EnumDefaultedMember = EnumDefaultedMember;
|
|
||||||
exports.EnumNumberBody = EnumNumberBody;
|
|
||||||
exports.EnumNumberMember = EnumNumberMember;
|
|
||||||
exports.EnumStringBody = EnumStringBody;
|
|
||||||
exports.EnumStringMember = EnumStringMember;
|
|
||||||
exports.EnumSymbolBody = EnumSymbolBody;
|
|
||||||
exports.ExistsTypeAnnotation = ExistsTypeAnnotation;
|
|
||||||
exports.FunctionTypeAnnotation = FunctionTypeAnnotation;
|
|
||||||
exports.FunctionTypeParam = FunctionTypeParam;
|
|
||||||
exports.IndexedAccessType = IndexedAccessType;
|
|
||||||
exports.InferredPredicate = InferredPredicate;
|
|
||||||
exports.InterfaceDeclaration = InterfaceDeclaration;
|
|
||||||
exports.GenericTypeAnnotation = exports.ClassImplements = exports.InterfaceExtends = InterfaceExtends;
|
|
||||||
exports.InterfaceTypeAnnotation = InterfaceTypeAnnotation;
|
|
||||||
exports.IntersectionTypeAnnotation = IntersectionTypeAnnotation;
|
|
||||||
exports.MixedTypeAnnotation = MixedTypeAnnotation;
|
|
||||||
exports.NullLiteralTypeAnnotation = NullLiteralTypeAnnotation;
|
|
||||||
exports.NullableTypeAnnotation = NullableTypeAnnotation;
|
|
||||||
Object.defineProperty(exports, "NumberLiteralTypeAnnotation", {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _types2.NumericLiteral;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
exports.NumberTypeAnnotation = NumberTypeAnnotation;
|
|
||||||
exports.ObjectTypeAnnotation = ObjectTypeAnnotation;
|
|
||||||
exports.ObjectTypeCallProperty = ObjectTypeCallProperty;
|
|
||||||
exports.ObjectTypeIndexer = ObjectTypeIndexer;
|
|
||||||
exports.ObjectTypeInternalSlot = ObjectTypeInternalSlot;
|
|
||||||
exports.ObjectTypeProperty = ObjectTypeProperty;
|
|
||||||
exports.ObjectTypeSpreadProperty = ObjectTypeSpreadProperty;
|
|
||||||
exports.OpaqueType = OpaqueType;
|
|
||||||
exports.OptionalIndexedAccessType = OptionalIndexedAccessType;
|
|
||||||
exports.QualifiedTypeIdentifier = QualifiedTypeIdentifier;
|
|
||||||
Object.defineProperty(exports, "StringLiteralTypeAnnotation", {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _types2.StringLiteral;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
exports.StringTypeAnnotation = StringTypeAnnotation;
|
|
||||||
exports.SymbolTypeAnnotation = SymbolTypeAnnotation;
|
|
||||||
exports.ThisTypeAnnotation = ThisTypeAnnotation;
|
|
||||||
exports.TupleTypeAnnotation = TupleTypeAnnotation;
|
|
||||||
exports.TypeAlias = TypeAlias;
|
|
||||||
exports.TypeAnnotation = TypeAnnotation;
|
|
||||||
exports.TypeCastExpression = TypeCastExpression;
|
|
||||||
exports.TypeParameter = TypeParameter;
|
|
||||||
exports.TypeParameterDeclaration = exports.TypeParameterInstantiation = TypeParameterInstantiation;
|
|
||||||
exports.TypeofTypeAnnotation = TypeofTypeAnnotation;
|
|
||||||
exports.UnionTypeAnnotation = UnionTypeAnnotation;
|
|
||||||
exports.Variance = Variance;
|
|
||||||
exports.VoidTypeAnnotation = VoidTypeAnnotation;
|
|
||||||
exports._interfaceish = _interfaceish;
|
|
||||||
exports._variance = _variance;
|
|
||||||
|
|
||||||
var _t = require("@babel/types");
|
|
||||||
|
|
||||||
var _modules = require("./modules");
|
|
||||||
|
|
||||||
var _types2 = require("./types");
|
|
||||||
|
|
||||||
const {
|
|
||||||
isDeclareExportDeclaration,
|
|
||||||
isStatement
|
|
||||||
} = _t;
|
|
||||||
|
|
||||||
function AnyTypeAnnotation() {
|
|
||||||
this.word("any");
|
|
||||||
}
|
|
||||||
|
|
||||||
function ArrayTypeAnnotation(node) {
|
|
||||||
this.print(node.elementType, node, true);
|
|
||||||
this.tokenChar(91);
|
|
||||||
this.tokenChar(93);
|
|
||||||
}
|
|
||||||
|
|
||||||
function BooleanTypeAnnotation() {
|
|
||||||
this.word("boolean");
|
|
||||||
}
|
|
||||||
|
|
||||||
function BooleanLiteralTypeAnnotation(node) {
|
|
||||||
this.word(node.value ? "true" : "false");
|
|
||||||
}
|
|
||||||
|
|
||||||
function NullLiteralTypeAnnotation() {
|
|
||||||
this.word("null");
|
|
||||||
}
|
|
||||||
|
|
||||||
function DeclareClass(node, parent) {
|
|
||||||
if (!isDeclareExportDeclaration(parent)) {
|
|
||||||
this.word("declare");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.word("class");
|
|
||||||
this.space();
|
|
||||||
|
|
||||||
this._interfaceish(node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function DeclareFunction(node, parent) {
|
|
||||||
if (!isDeclareExportDeclaration(parent)) {
|
|
||||||
this.word("declare");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.word("function");
|
|
||||||
this.space();
|
|
||||||
this.print(node.id, node);
|
|
||||||
this.print(node.id.typeAnnotation.typeAnnotation, node);
|
|
||||||
|
|
||||||
if (node.predicate) {
|
|
||||||
this.space();
|
|
||||||
this.print(node.predicate, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.semicolon();
|
|
||||||
}
|
|
||||||
|
|
||||||
function InferredPredicate() {
|
|
||||||
this.tokenChar(37);
|
|
||||||
this.word("checks");
|
|
||||||
}
|
|
||||||
|
|
||||||
function DeclaredPredicate(node) {
|
|
||||||
this.tokenChar(37);
|
|
||||||
this.word("checks");
|
|
||||||
this.tokenChar(40);
|
|
||||||
this.print(node.value, node);
|
|
||||||
this.tokenChar(41);
|
|
||||||
}
|
|
||||||
|
|
||||||
function DeclareInterface(node) {
|
|
||||||
this.word("declare");
|
|
||||||
this.space();
|
|
||||||
this.InterfaceDeclaration(node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function DeclareModule(node) {
|
|
||||||
this.word("declare");
|
|
||||||
this.space();
|
|
||||||
this.word("module");
|
|
||||||
this.space();
|
|
||||||
this.print(node.id, node);
|
|
||||||
this.space();
|
|
||||||
this.print(node.body, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function DeclareModuleExports(node) {
|
|
||||||
this.word("declare");
|
|
||||||
this.space();
|
|
||||||
this.word("module");
|
|
||||||
this.tokenChar(46);
|
|
||||||
this.word("exports");
|
|
||||||
this.print(node.typeAnnotation, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function DeclareTypeAlias(node) {
|
|
||||||
this.word("declare");
|
|
||||||
this.space();
|
|
||||||
this.TypeAlias(node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function DeclareOpaqueType(node, parent) {
|
|
||||||
if (!isDeclareExportDeclaration(parent)) {
|
|
||||||
this.word("declare");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.OpaqueType(node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function DeclareVariable(node, parent) {
|
|
||||||
if (!isDeclareExportDeclaration(parent)) {
|
|
||||||
this.word("declare");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.word("var");
|
|
||||||
this.space();
|
|
||||||
this.print(node.id, node);
|
|
||||||
this.print(node.id.typeAnnotation, node);
|
|
||||||
this.semicolon();
|
|
||||||
}
|
|
||||||
|
|
||||||
function DeclareExportDeclaration(node) {
|
|
||||||
this.word("declare");
|
|
||||||
this.space();
|
|
||||||
this.word("export");
|
|
||||||
this.space();
|
|
||||||
|
|
||||||
if (node.default) {
|
|
||||||
this.word("default");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
FlowExportDeclaration.call(this, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function DeclareExportAllDeclaration(node) {
|
|
||||||
this.word("declare");
|
|
||||||
this.space();
|
|
||||||
|
|
||||||
_modules.ExportAllDeclaration.call(this, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function EnumDeclaration(node) {
|
|
||||||
const {
|
|
||||||
id,
|
|
||||||
body
|
|
||||||
} = node;
|
|
||||||
this.word("enum");
|
|
||||||
this.space();
|
|
||||||
this.print(id, node);
|
|
||||||
this.print(body, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function enumExplicitType(context, name, hasExplicitType) {
|
|
||||||
if (hasExplicitType) {
|
|
||||||
context.space();
|
|
||||||
context.word("of");
|
|
||||||
context.space();
|
|
||||||
context.word(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
context.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
function enumBody(context, node) {
|
|
||||||
const {
|
|
||||||
members
|
|
||||||
} = node;
|
|
||||||
context.token("{");
|
|
||||||
context.indent();
|
|
||||||
context.newline();
|
|
||||||
|
|
||||||
for (const member of members) {
|
|
||||||
context.print(member, node);
|
|
||||||
context.newline();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.hasUnknownMembers) {
|
|
||||||
context.token("...");
|
|
||||||
context.newline();
|
|
||||||
}
|
|
||||||
|
|
||||||
context.dedent();
|
|
||||||
context.token("}");
|
|
||||||
}
|
|
||||||
|
|
||||||
function EnumBooleanBody(node) {
|
|
||||||
const {
|
|
||||||
explicitType
|
|
||||||
} = node;
|
|
||||||
enumExplicitType(this, "boolean", explicitType);
|
|
||||||
enumBody(this, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function EnumNumberBody(node) {
|
|
||||||
const {
|
|
||||||
explicitType
|
|
||||||
} = node;
|
|
||||||
enumExplicitType(this, "number", explicitType);
|
|
||||||
enumBody(this, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function EnumStringBody(node) {
|
|
||||||
const {
|
|
||||||
explicitType
|
|
||||||
} = node;
|
|
||||||
enumExplicitType(this, "string", explicitType);
|
|
||||||
enumBody(this, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function EnumSymbolBody(node) {
|
|
||||||
enumExplicitType(this, "symbol", true);
|
|
||||||
enumBody(this, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function EnumDefaultedMember(node) {
|
|
||||||
const {
|
|
||||||
id
|
|
||||||
} = node;
|
|
||||||
this.print(id, node);
|
|
||||||
this.tokenChar(44);
|
|
||||||
}
|
|
||||||
|
|
||||||
function enumInitializedMember(context, node) {
|
|
||||||
const {
|
|
||||||
id,
|
|
||||||
init
|
|
||||||
} = node;
|
|
||||||
context.print(id, node);
|
|
||||||
context.space();
|
|
||||||
context.token("=");
|
|
||||||
context.space();
|
|
||||||
context.print(init, node);
|
|
||||||
context.token(",");
|
|
||||||
}
|
|
||||||
|
|
||||||
function EnumBooleanMember(node) {
|
|
||||||
enumInitializedMember(this, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function EnumNumberMember(node) {
|
|
||||||
enumInitializedMember(this, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function EnumStringMember(node) {
|
|
||||||
enumInitializedMember(this, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function FlowExportDeclaration(node) {
|
|
||||||
if (node.declaration) {
|
|
||||||
const declar = node.declaration;
|
|
||||||
this.print(declar, node);
|
|
||||||
if (!isStatement(declar)) this.semicolon();
|
|
||||||
} else {
|
|
||||||
this.tokenChar(123);
|
|
||||||
|
|
||||||
if (node.specifiers.length) {
|
|
||||||
this.space();
|
|
||||||
this.printList(node.specifiers, node);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.tokenChar(125);
|
|
||||||
|
|
||||||
if (node.source) {
|
|
||||||
this.space();
|
|
||||||
this.word("from");
|
|
||||||
this.space();
|
|
||||||
this.print(node.source, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.semicolon();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function ExistsTypeAnnotation() {
|
|
||||||
this.tokenChar(42);
|
|
||||||
}
|
|
||||||
|
|
||||||
function FunctionTypeAnnotation(node, parent) {
|
|
||||||
this.print(node.typeParameters, node);
|
|
||||||
this.tokenChar(40);
|
|
||||||
|
|
||||||
if (node.this) {
|
|
||||||
this.word("this");
|
|
||||||
this.tokenChar(58);
|
|
||||||
this.space();
|
|
||||||
this.print(node.this.typeAnnotation, node);
|
|
||||||
|
|
||||||
if (node.params.length || node.rest) {
|
|
||||||
this.tokenChar(44);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
this.printList(node.params, node);
|
|
||||||
|
|
||||||
if (node.rest) {
|
|
||||||
if (node.params.length) {
|
|
||||||
this.tokenChar(44);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.token("...");
|
|
||||||
this.print(node.rest, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.tokenChar(41);
|
|
||||||
|
|
||||||
if (parent && (parent.type === "ObjectTypeCallProperty" || parent.type === "ObjectTypeInternalSlot" || parent.type === "DeclareFunction" || parent.type === "ObjectTypeProperty" && parent.method)) {
|
|
||||||
this.tokenChar(58);
|
|
||||||
} else {
|
|
||||||
this.space();
|
|
||||||
this.token("=>");
|
|
||||||
}
|
|
||||||
|
|
||||||
this.space();
|
|
||||||
this.print(node.returnType, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function FunctionTypeParam(node) {
|
|
||||||
this.print(node.name, node);
|
|
||||||
if (node.optional) this.tokenChar(63);
|
|
||||||
|
|
||||||
if (node.name) {
|
|
||||||
this.tokenChar(58);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.print(node.typeAnnotation, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function InterfaceExtends(node) {
|
|
||||||
this.print(node.id, node);
|
|
||||||
this.print(node.typeParameters, node, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _interfaceish(node) {
|
|
||||||
var _node$extends;
|
|
||||||
|
|
||||||
this.print(node.id, node);
|
|
||||||
this.print(node.typeParameters, node);
|
|
||||||
|
|
||||||
if ((_node$extends = node.extends) != null && _node$extends.length) {
|
|
||||||
this.space();
|
|
||||||
this.word("extends");
|
|
||||||
this.space();
|
|
||||||
this.printList(node.extends, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.mixins && node.mixins.length) {
|
|
||||||
this.space();
|
|
||||||
this.word("mixins");
|
|
||||||
this.space();
|
|
||||||
this.printList(node.mixins, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.implements && node.implements.length) {
|
|
||||||
this.space();
|
|
||||||
this.word("implements");
|
|
||||||
this.space();
|
|
||||||
this.printList(node.implements, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.space();
|
|
||||||
this.print(node.body, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function _variance(node) {
|
|
||||||
if (node.variance) {
|
|
||||||
if (node.variance.kind === "plus") {
|
|
||||||
this.tokenChar(43);
|
|
||||||
} else if (node.variance.kind === "minus") {
|
|
||||||
this.tokenChar(45);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function InterfaceDeclaration(node) {
|
|
||||||
this.word("interface");
|
|
||||||
this.space();
|
|
||||||
|
|
||||||
this._interfaceish(node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function andSeparator() {
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(38);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
function InterfaceTypeAnnotation(node) {
|
|
||||||
this.word("interface");
|
|
||||||
|
|
||||||
if (node.extends && node.extends.length) {
|
|
||||||
this.space();
|
|
||||||
this.word("extends");
|
|
||||||
this.space();
|
|
||||||
this.printList(node.extends, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.space();
|
|
||||||
this.print(node.body, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function IntersectionTypeAnnotation(node) {
|
|
||||||
this.printJoin(node.types, node, {
|
|
||||||
separator: andSeparator
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function MixedTypeAnnotation() {
|
|
||||||
this.word("mixed");
|
|
||||||
}
|
|
||||||
|
|
||||||
function EmptyTypeAnnotation() {
|
|
||||||
this.word("empty");
|
|
||||||
}
|
|
||||||
|
|
||||||
function NullableTypeAnnotation(node) {
|
|
||||||
this.tokenChar(63);
|
|
||||||
this.print(node.typeAnnotation, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function NumberTypeAnnotation() {
|
|
||||||
this.word("number");
|
|
||||||
}
|
|
||||||
|
|
||||||
function StringTypeAnnotation() {
|
|
||||||
this.word("string");
|
|
||||||
}
|
|
||||||
|
|
||||||
function ThisTypeAnnotation() {
|
|
||||||
this.word("this");
|
|
||||||
}
|
|
||||||
|
|
||||||
function TupleTypeAnnotation(node) {
|
|
||||||
this.tokenChar(91);
|
|
||||||
this.printList(node.types, node);
|
|
||||||
this.tokenChar(93);
|
|
||||||
}
|
|
||||||
|
|
||||||
function TypeofTypeAnnotation(node) {
|
|
||||||
this.word("typeof");
|
|
||||||
this.space();
|
|
||||||
this.print(node.argument, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function TypeAlias(node) {
|
|
||||||
this.word("type");
|
|
||||||
this.space();
|
|
||||||
this.print(node.id, node);
|
|
||||||
this.print(node.typeParameters, node);
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(61);
|
|
||||||
this.space();
|
|
||||||
this.print(node.right, node);
|
|
||||||
this.semicolon();
|
|
||||||
}
|
|
||||||
|
|
||||||
function TypeAnnotation(node) {
|
|
||||||
this.tokenChar(58);
|
|
||||||
this.space();
|
|
||||||
if (node.optional) this.tokenChar(63);
|
|
||||||
this.print(node.typeAnnotation, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function TypeParameterInstantiation(node) {
|
|
||||||
this.tokenChar(60);
|
|
||||||
this.printList(node.params, node, {});
|
|
||||||
this.tokenChar(62);
|
|
||||||
}
|
|
||||||
|
|
||||||
function TypeParameter(node) {
|
|
||||||
this._variance(node);
|
|
||||||
|
|
||||||
this.word(node.name);
|
|
||||||
|
|
||||||
if (node.bound) {
|
|
||||||
this.print(node.bound, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.default) {
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(61);
|
|
||||||
this.space();
|
|
||||||
this.print(node.default, node);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function OpaqueType(node) {
|
|
||||||
this.word("opaque");
|
|
||||||
this.space();
|
|
||||||
this.word("type");
|
|
||||||
this.space();
|
|
||||||
this.print(node.id, node);
|
|
||||||
this.print(node.typeParameters, node);
|
|
||||||
|
|
||||||
if (node.supertype) {
|
|
||||||
this.tokenChar(58);
|
|
||||||
this.space();
|
|
||||||
this.print(node.supertype, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.impltype) {
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(61);
|
|
||||||
this.space();
|
|
||||||
this.print(node.impltype, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.semicolon();
|
|
||||||
}
|
|
||||||
|
|
||||||
function ObjectTypeAnnotation(node) {
|
|
||||||
if (node.exact) {
|
|
||||||
this.token("{|");
|
|
||||||
} else {
|
|
||||||
this.tokenChar(123);
|
|
||||||
}
|
|
||||||
|
|
||||||
const props = [...node.properties, ...(node.callProperties || []), ...(node.indexers || []), ...(node.internalSlots || [])];
|
|
||||||
|
|
||||||
if (props.length) {
|
|
||||||
this.space();
|
|
||||||
this.printJoin(props, node, {
|
|
||||||
addNewlines(leading) {
|
|
||||||
if (leading && !props[0]) return 1;
|
|
||||||
},
|
|
||||||
|
|
||||||
indent: true,
|
|
||||||
statement: true,
|
|
||||||
iterator: () => {
|
|
||||||
if (props.length !== 1 || node.inexact) {
|
|
||||||
this.tokenChar(44);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.inexact) {
|
|
||||||
this.indent();
|
|
||||||
this.token("...");
|
|
||||||
|
|
||||||
if (props.length) {
|
|
||||||
this.newline();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.dedent();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.exact) {
|
|
||||||
this.token("|}");
|
|
||||||
} else {
|
|
||||||
this.tokenChar(125);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function ObjectTypeInternalSlot(node) {
|
|
||||||
if (node.static) {
|
|
||||||
this.word("static");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.tokenChar(91);
|
|
||||||
this.tokenChar(91);
|
|
||||||
this.print(node.id, node);
|
|
||||||
this.tokenChar(93);
|
|
||||||
this.tokenChar(93);
|
|
||||||
if (node.optional) this.tokenChar(63);
|
|
||||||
|
|
||||||
if (!node.method) {
|
|
||||||
this.tokenChar(58);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.print(node.value, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function ObjectTypeCallProperty(node) {
|
|
||||||
if (node.static) {
|
|
||||||
this.word("static");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.print(node.value, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function ObjectTypeIndexer(node) {
|
|
||||||
if (node.static) {
|
|
||||||
this.word("static");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
this._variance(node);
|
|
||||||
|
|
||||||
this.tokenChar(91);
|
|
||||||
|
|
||||||
if (node.id) {
|
|
||||||
this.print(node.id, node);
|
|
||||||
this.tokenChar(58);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.print(node.key, node);
|
|
||||||
this.tokenChar(93);
|
|
||||||
this.tokenChar(58);
|
|
||||||
this.space();
|
|
||||||
this.print(node.value, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function ObjectTypeProperty(node) {
|
|
||||||
if (node.proto) {
|
|
||||||
this.word("proto");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.static) {
|
|
||||||
this.word("static");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.kind === "get" || node.kind === "set") {
|
|
||||||
this.word(node.kind);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
this._variance(node);
|
|
||||||
|
|
||||||
this.print(node.key, node);
|
|
||||||
if (node.optional) this.tokenChar(63);
|
|
||||||
|
|
||||||
if (!node.method) {
|
|
||||||
this.tokenChar(58);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.print(node.value, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function ObjectTypeSpreadProperty(node) {
|
|
||||||
this.token("...");
|
|
||||||
this.print(node.argument, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function QualifiedTypeIdentifier(node) {
|
|
||||||
this.print(node.qualification, node);
|
|
||||||
this.tokenChar(46);
|
|
||||||
this.print(node.id, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function SymbolTypeAnnotation() {
|
|
||||||
this.word("symbol");
|
|
||||||
}
|
|
||||||
|
|
||||||
function orSeparator() {
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(124);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
function UnionTypeAnnotation(node) {
|
|
||||||
this.printJoin(node.types, node, {
|
|
||||||
separator: orSeparator
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function TypeCastExpression(node) {
|
|
||||||
this.tokenChar(40);
|
|
||||||
this.print(node.expression, node);
|
|
||||||
this.print(node.typeAnnotation, node);
|
|
||||||
this.tokenChar(41);
|
|
||||||
}
|
|
||||||
|
|
||||||
function Variance(node) {
|
|
||||||
if (node.kind === "plus") {
|
|
||||||
this.tokenChar(43);
|
|
||||||
} else {
|
|
||||||
this.tokenChar(45);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function VoidTypeAnnotation() {
|
|
||||||
this.word("void");
|
|
||||||
}
|
|
||||||
|
|
||||||
function IndexedAccessType(node) {
|
|
||||||
this.print(node.objectType, node, true);
|
|
||||||
this.tokenChar(91);
|
|
||||||
this.print(node.indexType, node);
|
|
||||||
this.tokenChar(93);
|
|
||||||
}
|
|
||||||
|
|
||||||
function OptionalIndexedAccessType(node) {
|
|
||||||
this.print(node.objectType, node);
|
|
||||||
|
|
||||||
if (node.optional) {
|
|
||||||
this.token("?.");
|
|
||||||
}
|
|
||||||
|
|
||||||
this.tokenChar(91);
|
|
||||||
this.print(node.indexType, node);
|
|
||||||
this.tokenChar(93);
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=flow.js.map
|
|
1
node_modules/@babel/generator/lib/generators/flow.js.map
generated
vendored
1
node_modules/@babel/generator/lib/generators/flow.js.map
generated
vendored
File diff suppressed because one or more lines are too long
150
node_modules/@babel/generator/lib/generators/index.js
generated
vendored
150
node_modules/@babel/generator/lib/generators/index.js
generated
vendored
@ -1,150 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
|
|
||||||
var _templateLiterals = require("./template-literals");
|
|
||||||
|
|
||||||
Object.keys(_templateLiterals).forEach(function (key) {
|
|
||||||
if (key === "default" || key === "__esModule") return;
|
|
||||||
if (key in exports && exports[key] === _templateLiterals[key]) return;
|
|
||||||
Object.defineProperty(exports, key, {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _templateLiterals[key];
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
var _expressions = require("./expressions");
|
|
||||||
|
|
||||||
Object.keys(_expressions).forEach(function (key) {
|
|
||||||
if (key === "default" || key === "__esModule") return;
|
|
||||||
if (key in exports && exports[key] === _expressions[key]) return;
|
|
||||||
Object.defineProperty(exports, key, {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _expressions[key];
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
var _statements = require("./statements");
|
|
||||||
|
|
||||||
Object.keys(_statements).forEach(function (key) {
|
|
||||||
if (key === "default" || key === "__esModule") return;
|
|
||||||
if (key in exports && exports[key] === _statements[key]) return;
|
|
||||||
Object.defineProperty(exports, key, {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _statements[key];
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
var _classes = require("./classes");
|
|
||||||
|
|
||||||
Object.keys(_classes).forEach(function (key) {
|
|
||||||
if (key === "default" || key === "__esModule") return;
|
|
||||||
if (key in exports && exports[key] === _classes[key]) return;
|
|
||||||
Object.defineProperty(exports, key, {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _classes[key];
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
var _methods = require("./methods");
|
|
||||||
|
|
||||||
Object.keys(_methods).forEach(function (key) {
|
|
||||||
if (key === "default" || key === "__esModule") return;
|
|
||||||
if (key in exports && exports[key] === _methods[key]) return;
|
|
||||||
Object.defineProperty(exports, key, {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _methods[key];
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
var _modules = require("./modules");
|
|
||||||
|
|
||||||
Object.keys(_modules).forEach(function (key) {
|
|
||||||
if (key === "default" || key === "__esModule") return;
|
|
||||||
if (key in exports && exports[key] === _modules[key]) return;
|
|
||||||
Object.defineProperty(exports, key, {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _modules[key];
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
var _types = require("./types");
|
|
||||||
|
|
||||||
Object.keys(_types).forEach(function (key) {
|
|
||||||
if (key === "default" || key === "__esModule") return;
|
|
||||||
if (key in exports && exports[key] === _types[key]) return;
|
|
||||||
Object.defineProperty(exports, key, {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _types[key];
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
var _flow = require("./flow");
|
|
||||||
|
|
||||||
Object.keys(_flow).forEach(function (key) {
|
|
||||||
if (key === "default" || key === "__esModule") return;
|
|
||||||
if (key in exports && exports[key] === _flow[key]) return;
|
|
||||||
Object.defineProperty(exports, key, {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _flow[key];
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
var _base = require("./base");
|
|
||||||
|
|
||||||
Object.keys(_base).forEach(function (key) {
|
|
||||||
if (key === "default" || key === "__esModule") return;
|
|
||||||
if (key in exports && exports[key] === _base[key]) return;
|
|
||||||
Object.defineProperty(exports, key, {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _base[key];
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
var _jsx = require("./jsx");
|
|
||||||
|
|
||||||
Object.keys(_jsx).forEach(function (key) {
|
|
||||||
if (key === "default" || key === "__esModule") return;
|
|
||||||
if (key in exports && exports[key] === _jsx[key]) return;
|
|
||||||
Object.defineProperty(exports, key, {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _jsx[key];
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
var _typescript = require("./typescript");
|
|
||||||
|
|
||||||
Object.keys(_typescript).forEach(function (key) {
|
|
||||||
if (key === "default" || key === "__esModule") return;
|
|
||||||
if (key in exports && exports[key] === _typescript[key]) return;
|
|
||||||
Object.defineProperty(exports, key, {
|
|
||||||
enumerable: true,
|
|
||||||
get: function () {
|
|
||||||
return _typescript[key];
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
//# sourceMappingURL=index.js.map
|
|
1
node_modules/@babel/generator/lib/generators/index.js.map
generated
vendored
1
node_modules/@babel/generator/lib/generators/index.js.map
generated
vendored
@ -1 +0,0 @@
|
|||||||
{"version":3,"names":[],"sources":["../../src/generators/index.ts"],"sourcesContent":["export * from \"./template-literals\";\nexport * from \"./expressions\";\nexport * from \"./statements\";\nexport * from \"./classes\";\nexport * from \"./methods\";\nexport * from \"./modules\";\nexport * from \"./types\";\nexport * from \"./flow\";\nexport * from \"./base\";\nexport * from \"./jsx\";\nexport * from \"./typescript\";\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
|
147
node_modules/@babel/generator/lib/generators/jsx.js
generated
vendored
147
node_modules/@babel/generator/lib/generators/jsx.js
generated
vendored
@ -1,147 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.JSXAttribute = JSXAttribute;
|
|
||||||
exports.JSXClosingElement = JSXClosingElement;
|
|
||||||
exports.JSXClosingFragment = JSXClosingFragment;
|
|
||||||
exports.JSXElement = JSXElement;
|
|
||||||
exports.JSXEmptyExpression = JSXEmptyExpression;
|
|
||||||
exports.JSXExpressionContainer = JSXExpressionContainer;
|
|
||||||
exports.JSXFragment = JSXFragment;
|
|
||||||
exports.JSXIdentifier = JSXIdentifier;
|
|
||||||
exports.JSXMemberExpression = JSXMemberExpression;
|
|
||||||
exports.JSXNamespacedName = JSXNamespacedName;
|
|
||||||
exports.JSXOpeningElement = JSXOpeningElement;
|
|
||||||
exports.JSXOpeningFragment = JSXOpeningFragment;
|
|
||||||
exports.JSXSpreadAttribute = JSXSpreadAttribute;
|
|
||||||
exports.JSXSpreadChild = JSXSpreadChild;
|
|
||||||
exports.JSXText = JSXText;
|
|
||||||
|
|
||||||
function JSXAttribute(node) {
|
|
||||||
this.print(node.name, node);
|
|
||||||
|
|
||||||
if (node.value) {
|
|
||||||
this.tokenChar(61);
|
|
||||||
this.print(node.value, node);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function JSXIdentifier(node) {
|
|
||||||
this.word(node.name);
|
|
||||||
}
|
|
||||||
|
|
||||||
function JSXNamespacedName(node) {
|
|
||||||
this.print(node.namespace, node);
|
|
||||||
this.tokenChar(58);
|
|
||||||
this.print(node.name, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function JSXMemberExpression(node) {
|
|
||||||
this.print(node.object, node);
|
|
||||||
this.tokenChar(46);
|
|
||||||
this.print(node.property, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function JSXSpreadAttribute(node) {
|
|
||||||
this.tokenChar(123);
|
|
||||||
this.token("...");
|
|
||||||
this.print(node.argument, node);
|
|
||||||
this.tokenChar(125);
|
|
||||||
}
|
|
||||||
|
|
||||||
function JSXExpressionContainer(node) {
|
|
||||||
this.tokenChar(123);
|
|
||||||
this.print(node.expression, node);
|
|
||||||
this.tokenChar(125);
|
|
||||||
}
|
|
||||||
|
|
||||||
function JSXSpreadChild(node) {
|
|
||||||
this.tokenChar(123);
|
|
||||||
this.token("...");
|
|
||||||
this.print(node.expression, node);
|
|
||||||
this.tokenChar(125);
|
|
||||||
}
|
|
||||||
|
|
||||||
function JSXText(node) {
|
|
||||||
const raw = this.getPossibleRaw(node);
|
|
||||||
|
|
||||||
if (raw !== undefined) {
|
|
||||||
this.token(raw, true);
|
|
||||||
} else {
|
|
||||||
this.token(node.value, true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function JSXElement(node) {
|
|
||||||
const open = node.openingElement;
|
|
||||||
this.print(open, node);
|
|
||||||
if (open.selfClosing) return;
|
|
||||||
this.indent();
|
|
||||||
|
|
||||||
for (const child of node.children) {
|
|
||||||
this.print(child, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.dedent();
|
|
||||||
this.print(node.closingElement, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function spaceSeparator() {
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
|
|
||||||
function JSXOpeningElement(node) {
|
|
||||||
this.tokenChar(60);
|
|
||||||
this.print(node.name, node);
|
|
||||||
this.print(node.typeParameters, node);
|
|
||||||
|
|
||||||
if (node.attributes.length > 0) {
|
|
||||||
this.space();
|
|
||||||
this.printJoin(node.attributes, node, {
|
|
||||||
separator: spaceSeparator
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.selfClosing) {
|
|
||||||
this.space();
|
|
||||||
this.token("/>");
|
|
||||||
} else {
|
|
||||||
this.tokenChar(62);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function JSXClosingElement(node) {
|
|
||||||
this.token("</");
|
|
||||||
this.print(node.name, node);
|
|
||||||
this.tokenChar(62);
|
|
||||||
}
|
|
||||||
|
|
||||||
function JSXEmptyExpression(node) {
|
|
||||||
this.printInnerComments(node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function JSXFragment(node) {
|
|
||||||
this.print(node.openingFragment, node);
|
|
||||||
this.indent();
|
|
||||||
|
|
||||||
for (const child of node.children) {
|
|
||||||
this.print(child, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.dedent();
|
|
||||||
this.print(node.closingFragment, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
function JSXOpeningFragment() {
|
|
||||||
this.tokenChar(60);
|
|
||||||
this.tokenChar(62);
|
|
||||||
}
|
|
||||||
|
|
||||||
function JSXClosingFragment() {
|
|
||||||
this.token("</");
|
|
||||||
this.tokenChar(62);
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=jsx.js.map
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user