mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-12 11:53:39 +08:00
'...'
This commit is contained in:
parent
20acacc131
commit
e6520392ec
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
*.vscode
|
*.vscode
|
||||||
*.idea
|
*.idea
|
||||||
|
*.py
|
@ -1,5 +1,5 @@
|
|||||||
运行 227 ---> 运行main_227.js 运行main_227.py
|
227 ---> main_227.js -> main_227.py
|
||||||
运行 rs ---> 运行main_rs.js 运行main_rs.py
|
rs ---> main_rs.js -> main_rs.py
|
||||||
|
|
||||||
## 警告
|
## 警告
|
||||||
|
|
||||||
|
76
bodaEnv/main.js
Normal file
76
bodaEnv/main.js
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
//系统内置库
|
||||||
|
const fs = require('fs');
|
||||||
|
const path=require('path')
|
||||||
|
const domino = require('domino');
|
||||||
|
const express = require('express');
|
||||||
|
const { VM, VMScript, bodaError } = require("vm2")
|
||||||
|
const getCodeFunc = require(path.join(__dirname,'tools','getRunCode.js'))
|
||||||
|
|
||||||
|
|
||||||
|
const app = express();
|
||||||
|
app.use(express.json({limit:'500mb'}));
|
||||||
|
let bodaUndefind = require(path.join(__dirname,'nodePlugin','bodaUndefined_v18.17.0.node'))
|
||||||
|
|
||||||
|
// debugger
|
||||||
|
fs.writeFileSync(path.join(__dirname , 'run' , 'log.txt'),'')
|
||||||
|
|
||||||
|
//配置路径
|
||||||
|
let vm = new VM()
|
||||||
|
|
||||||
|
// debugger
|
||||||
|
vm.setGlobal('bodaRunPath', path.join(__dirname , 'run'))
|
||||||
|
vm.setGlobal('bodafs', fs)
|
||||||
|
var boallundefined = new bodaUndefind.bodaUndefind();
|
||||||
|
// boallundefined={}
|
||||||
|
vm.setGlobal('bodaallundefined', boallundefined)
|
||||||
|
vm.setGlobal('bodaURL', URL)
|
||||||
|
vm.setGlobal('bodaError', bodaError)
|
||||||
|
vm.setGlobal('bodaTextEncoder',TextEncoder)
|
||||||
|
//babel 库相关
|
||||||
|
vm.setGlobal('bodaBabelParser',getCodeFunc.parser)
|
||||||
|
vm.setGlobal('bodaBabeltraverse',getCodeFunc.traverse)
|
||||||
|
vm.setGlobal('bodaBabeltypes',getCodeFunc.types)
|
||||||
|
vm.setGlobal('bodaBabelgenerator',getCodeFunc.generator)
|
||||||
|
|
||||||
|
|
||||||
|
let staticCode = getCodeFunc.getStaticCode()
|
||||||
|
let getRunAllCode = getCodeFunc.getRunAllCode()
|
||||||
|
let jsCode = staticCode + getRunAllCode
|
||||||
|
const script = new VMScript(jsCode, "./debugJS.js")
|
||||||
|
let result = vm.run(script);
|
||||||
|
let testNum=0
|
||||||
|
function main(_reqhtml) {
|
||||||
|
// configFormChrome 去浏览器复制一下,记得把cookie删了
|
||||||
|
//获取前缀,getResult文件下把这个打开就行'rsurl':bodaEnv.toolsFunc.getApi(bodaConifg['apiUrl'])
|
||||||
|
// listenerOpen 打开后 调用load事件 asyncListener文件夹下
|
||||||
|
// 运行时候,把run_rs.html,run_rs.js 改为run.html,run.js
|
||||||
|
let website_ = 'https://www.dhl.com/cn-zh/home/tracking.html?tracking-id=1123123&submit=1'//atob('aHR0cDovL3d3dy5ubXBhLmdvdi5jbg==')
|
||||||
|
let bohtml =''
|
||||||
|
if (!_reqhtml){
|
||||||
|
bohtml= fs.readFileSync(path.join(__dirname , 'run','run.html'), 'utf8').toString();
|
||||||
|
|
||||||
|
}else{
|
||||||
|
bohtml=_reqhtml
|
||||||
|
}
|
||||||
|
// console.log(bohtml)
|
||||||
|
let dominoWindow = domino.createWindow(bohtml, website_)
|
||||||
|
let bodaConifg = {
|
||||||
|
'log': true, //开启日志
|
||||||
|
'listenerOpen':true,
|
||||||
|
'SetTimeOutOpen': false, //开启定时器事件,
|
||||||
|
'userAgent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36',
|
||||||
|
'ip_addr':'192.168.2.2', //ip RTC检测
|
||||||
|
}
|
||||||
|
|
||||||
|
vm.setGlobal('bodadominoWindow', dominoWindow)
|
||||||
|
vm.setGlobal('bodaConifg', bodaConifg)
|
||||||
|
result1 = result()
|
||||||
|
console.log(result1)
|
||||||
|
bohtml = null
|
||||||
|
dominoWindow = null
|
||||||
|
return result1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
main()
|
||||||
|
|
@ -1,35 +0,0 @@
|
|||||||
import requests
|
|
||||||
import time
|
|
||||||
|
|
||||||
headers = {
|
|
||||||
"Accept": "*/*",
|
|
||||||
"Accept-Language": "zh-CN,zh;q=0.9",
|
|
||||||
"Cache-Control": "no-cache",
|
|
||||||
"Connection": "keep-alive",
|
|
||||||
"Pragma": "no-cache",
|
|
||||||
"Sec-Fetch-Dest": "script",
|
|
||||||
"Sec-Fetch-Mode": "no-cors",
|
|
||||||
"Sec-Fetch-Site": "cross-site",
|
|
||||||
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
|
|
||||||
"sec-ch-ua": "\"Not_A Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Google Chrome\";v=\"120\"",
|
|
||||||
"sec-ch-ua-mobile": "?0",
|
|
||||||
"sec-ch-ua-platform": "\"Windows\""
|
|
||||||
}
|
|
||||||
url = "https://cf.aliyun.com/nocaptcha/analyze.jsonp"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
params = {
|
|
||||||
"a": "FFFF0N0000000000ACD7",
|
|
||||||
"t": f"FFFF0N0000000000ACD7:nc_login:{int(time.time()*1000)}:0.5842351350883199",
|
|
||||||
"n": requests.get('http://127.0.0.1:3000/get227').json()['227'],
|
|
||||||
"p": '{"ncbtn":"946.6666870117188|105.16667175292969|40|32|105.16667175292969|137.1666717529297|946.6666870117188|986.6666870117188","umidToken":"GCD9A6B9469E34A48B47D4895A4C2867B49CB6008178A3107C7","ncSessionID":"5e701f3e3255","et":"0"}',
|
|
||||||
"scene": "nc_login",
|
|
||||||
"asyn": "0",
|
|
||||||
"lang": "cn",
|
|
||||||
"v": "1",
|
|
||||||
"callback": "jsonp_08334775294124646"
|
|
||||||
}
|
|
||||||
response = requests.get(url, headers=headers, params=params)
|
|
||||||
|
|
||||||
print(response.text)
|
|
@ -88,6 +88,6 @@ let testNum=0
|
|||||||
let result_=run_rsvmp(boUrl,boHtml,apiUrl)
|
let result_=run_rsvmp(boUrl,boHtml,apiUrl)
|
||||||
res.send(result_)
|
res.send(result_)
|
||||||
});
|
});
|
||||||
app.listen(3021, () => {
|
app.listen(3022, () => {
|
||||||
console.log('监听端口3021');
|
console.log('监听端口3022');
|
||||||
})
|
})
|
||||||
|
@ -10,7 +10,8 @@ from lxml import etree
|
|||||||
|
|
||||||
headers = {
|
headers = {
|
||||||
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
|
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
|
||||||
}
|
}
|
||||||
|
|
||||||
class RSVMP:
|
class RSVMP:
|
||||||
|
|
||||||
def fetch(self,url,apiUrl):
|
def fetch(self,url,apiUrl):
|
||||||
@ -35,7 +36,7 @@ class RSVMP:
|
|||||||
|
|
||||||
b64conent=base64.b64encode(response.content)
|
b64conent=base64.b64encode(response.content)
|
||||||
|
|
||||||
resp_=requests.get('http://127.0.0.1:3021/cookie',params={'boUrl':url,'boHtml':b64conent,'apiUrl':apiUrl}).json()
|
resp_=requests.get('http://127.0.0.1:3022/cookie',params={'boUrl':url,'boHtml':b64conent,'apiUrl':apiUrl}).json()
|
||||||
print(resp_)
|
print(resp_)
|
||||||
|
|
||||||
cookie_dict = dict(item.split('=') for item in resp_['cookie'].split('; '))
|
cookie_dict = dict(item.split('=') for item in resp_['cookie'].split('; '))
|
||||||
@ -47,13 +48,10 @@ class RSVMP:
|
|||||||
|
|
||||||
data ={'current': 1, 'pageSize': 10, 'modeNo': "BizAnnoVoMtable", 'pageNo': 1}
|
data ={'current': 1, 'pageSize': 10, 'modeNo': "BizAnnoVoMtable", 'pageNo': 1}
|
||||||
|
|
||||||
response3 = session.post(resp_['rsurl'], headers=headers ,json=data)
|
response3 = session.get(resp_['rsurl'], headers=headers)
|
||||||
|
|
||||||
print(response3.text)
|
print(response3.text)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
rs=RSVMP()
|
|
||||||
rs.fetch('http://www.chinaunicombidding.cn/','http://www.chinaunicombidding.cn/api/v1/bizAnno/getAnnoList')
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
12
bodaEnv/node_modules/.bin/acorn
generated
vendored
12
bodaEnv/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
bodaEnv/node_modules/.bin/acorn.cmd
generated
vendored
17
bodaEnv/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
bodaEnv/node_modules/.bin/acorn.ps1
generated
vendored
28
bodaEnv/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
|
|
16
bodaEnv/node_modules/.bin/blessed
generated
vendored
Normal file
16
bodaEnv/node_modules/.bin/blessed
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../blessed/bin/tput.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../blessed/bin/tput.js" "$@"
|
||||||
|
fi
|
17
bodaEnv/node_modules/.bin/blessed.cmd
generated
vendored
Normal file
17
bodaEnv/node_modules/.bin/blessed.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\blessed\bin\tput.js" %*
|
28
bodaEnv/node_modules/.bin/blessed.ps1
generated
vendored
Normal file
28
bodaEnv/node_modules/.bin/blessed.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../blessed/bin/tput.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../blessed/bin/tput.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../blessed/bin/tput.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../blessed/bin/tput.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
16
bodaEnv/node_modules/.bin/escodegen
generated
vendored
Normal file
16
bodaEnv/node_modules/.bin/escodegen
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../escodegen/bin/escodegen.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../escodegen/bin/escodegen.js" "$@"
|
||||||
|
fi
|
17
bodaEnv/node_modules/.bin/escodegen.cmd
generated
vendored
Normal file
17
bodaEnv/node_modules/.bin/escodegen.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\escodegen\bin\escodegen.js" %*
|
28
bodaEnv/node_modules/.bin/escodegen.ps1
generated
vendored
Normal file
28
bodaEnv/node_modules/.bin/escodegen.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../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
|
16
bodaEnv/node_modules/.bin/esgenerate
generated
vendored
Normal file
16
bodaEnv/node_modules/.bin/esgenerate
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../escodegen/bin/esgenerate.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../escodegen/bin/esgenerate.js" "$@"
|
||||||
|
fi
|
17
bodaEnv/node_modules/.bin/esgenerate.cmd
generated
vendored
Normal file
17
bodaEnv/node_modules/.bin/esgenerate.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\escodegen\bin\esgenerate.js" %*
|
28
bodaEnv/node_modules/.bin/esgenerate.ps1
generated
vendored
Normal file
28
bodaEnv/node_modules/.bin/esgenerate.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../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
|
16
bodaEnv/node_modules/.bin/esparse
generated
vendored
Normal file
16
bodaEnv/node_modules/.bin/esparse
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../esprima/bin/esparse.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../esprima/bin/esparse.js" "$@"
|
||||||
|
fi
|
17
bodaEnv/node_modules/.bin/esparse.cmd
generated
vendored
Normal file
17
bodaEnv/node_modules/.bin/esparse.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\esprima\bin\esparse.js" %*
|
28
bodaEnv/node_modules/.bin/esparse.ps1
generated
vendored
Normal file
28
bodaEnv/node_modules/.bin/esparse.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../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
|
16
bodaEnv/node_modules/.bin/esvalidate
generated
vendored
Normal file
16
bodaEnv/node_modules/.bin/esvalidate
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../esprima/bin/esvalidate.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../esprima/bin/esvalidate.js" "$@"
|
||||||
|
fi
|
17
bodaEnv/node_modules/.bin/esvalidate.cmd
generated
vendored
Normal file
17
bodaEnv/node_modules/.bin/esvalidate.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\esprima\bin\esvalidate.js" %*
|
28
bodaEnv/node_modules/.bin/esvalidate.ps1
generated
vendored
Normal file
28
bodaEnv/node_modules/.bin/esvalidate.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../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
bodaEnv/node_modules/.bin/jsesc
generated
vendored
12
bodaEnv/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
bodaEnv/node_modules/.bin/jsesc.cmd
generated
vendored
17
bodaEnv/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
bodaEnv/node_modules/.bin/jsesc.ps1
generated
vendored
28
bodaEnv/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
|
|
16
bodaEnv/node_modules/.bin/json2yaml
generated
vendored
Normal file
16
bodaEnv/node_modules/.bin/json2yaml
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../yamljs/bin/json2yaml" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../yamljs/bin/json2yaml" "$@"
|
||||||
|
fi
|
17
bodaEnv/node_modules/.bin/json2yaml.cmd
generated
vendored
Normal file
17
bodaEnv/node_modules/.bin/json2yaml.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\yamljs\bin\json2yaml" %*
|
28
bodaEnv/node_modules/.bin/json2yaml.ps1
generated
vendored
Normal file
28
bodaEnv/node_modules/.bin/json2yaml.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../yamljs/bin/json2yaml" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../yamljs/bin/json2yaml" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../yamljs/bin/json2yaml" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../yamljs/bin/json2yaml" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
bodaEnv/node_modules/.bin/mime
generated
vendored
12
bodaEnv/node_modules/.bin/mime
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/../mime/cli.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../mime/cli.js" "$@"
|
|
||||||
fi
|
|
17
bodaEnv/node_modules/.bin/mime.cmd
generated
vendored
17
bodaEnv/node_modules/.bin/mime.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%\..\mime\cli.js" %*
|
|
28
bodaEnv/node_modules/.bin/mime.ps1
generated
vendored
28
bodaEnv/node_modules/.bin/mime.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/../mime/cli.js" $args
|
|
||||||
} else {
|
|
||||||
& "$basedir/node$exe" "$basedir/../mime/cli.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
} else {
|
|
||||||
# Support pipeline input
|
|
||||||
if ($MyInvocation.ExpectingInput) {
|
|
||||||
$input | & "node$exe" "$basedir/../mime/cli.js" $args
|
|
||||||
} else {
|
|
||||||
& "node$exe" "$basedir/../mime/cli.js" $args
|
|
||||||
}
|
|
||||||
$ret=$LASTEXITCODE
|
|
||||||
}
|
|
||||||
exit $ret
|
|
16
bodaEnv/node_modules/.bin/mkdirp
generated
vendored
Normal file
16
bodaEnv/node_modules/.bin/mkdirp
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../mkdirp/bin/cmd.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../mkdirp/bin/cmd.js" "$@"
|
||||||
|
fi
|
17
bodaEnv/node_modules/.bin/mkdirp.cmd
generated
vendored
Normal file
17
bodaEnv/node_modules/.bin/mkdirp.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\mkdirp\bin\cmd.js" %*
|
28
bodaEnv/node_modules/.bin/mkdirp.ps1
generated
vendored
Normal file
28
bodaEnv/node_modules/.bin/mkdirp.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../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
|
16
bodaEnv/node_modules/.bin/needle
generated
vendored
Normal file
16
bodaEnv/node_modules/.bin/needle
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../needle/bin/needle" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../needle/bin/needle" "$@"
|
||||||
|
fi
|
17
bodaEnv/node_modules/.bin/needle.cmd
generated
vendored
Normal file
17
bodaEnv/node_modules/.bin/needle.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\needle\bin\needle" %*
|
28
bodaEnv/node_modules/.bin/needle.ps1
generated
vendored
Normal file
28
bodaEnv/node_modules/.bin/needle.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../needle/bin/needle" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../needle/bin/needle" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../needle/bin/needle" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../needle/bin/needle" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
bodaEnv/node_modules/.bin/parser
generated
vendored
12
bodaEnv/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
bodaEnv/node_modules/.bin/parser.cmd
generated
vendored
17
bodaEnv/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
bodaEnv/node_modules/.bin/parser.ps1
generated
vendored
28
bodaEnv/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
|
|
16
bodaEnv/node_modules/.bin/pm2
generated
vendored
Normal file
16
bodaEnv/node_modules/.bin/pm2
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../pm2/bin/pm2" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../pm2/bin/pm2" "$@"
|
||||||
|
fi
|
16
bodaEnv/node_modules/.bin/pm2-dev
generated
vendored
Normal file
16
bodaEnv/node_modules/.bin/pm2-dev
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../pm2/bin/pm2-dev" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../pm2/bin/pm2-dev" "$@"
|
||||||
|
fi
|
17
bodaEnv/node_modules/.bin/pm2-dev.cmd
generated
vendored
Normal file
17
bodaEnv/node_modules/.bin/pm2-dev.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\pm2\bin\pm2-dev" %*
|
28
bodaEnv/node_modules/.bin/pm2-dev.ps1
generated
vendored
Normal file
28
bodaEnv/node_modules/.bin/pm2-dev.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../pm2/bin/pm2-dev" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../pm2/bin/pm2-dev" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../pm2/bin/pm2-dev" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../pm2/bin/pm2-dev" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
16
bodaEnv/node_modules/.bin/pm2-docker
generated
vendored
Normal file
16
bodaEnv/node_modules/.bin/pm2-docker
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../pm2/bin/pm2-docker" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../pm2/bin/pm2-docker" "$@"
|
||||||
|
fi
|
17
bodaEnv/node_modules/.bin/pm2-docker.cmd
generated
vendored
Normal file
17
bodaEnv/node_modules/.bin/pm2-docker.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\pm2\bin\pm2-docker" %*
|
28
bodaEnv/node_modules/.bin/pm2-docker.ps1
generated
vendored
Normal file
28
bodaEnv/node_modules/.bin/pm2-docker.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../pm2/bin/pm2-docker" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../pm2/bin/pm2-docker" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../pm2/bin/pm2-docker" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../pm2/bin/pm2-docker" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
16
bodaEnv/node_modules/.bin/pm2-runtime
generated
vendored
Normal file
16
bodaEnv/node_modules/.bin/pm2-runtime
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../pm2/bin/pm2-runtime" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../pm2/bin/pm2-runtime" "$@"
|
||||||
|
fi
|
17
bodaEnv/node_modules/.bin/pm2-runtime.cmd
generated
vendored
Normal file
17
bodaEnv/node_modules/.bin/pm2-runtime.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\pm2\bin\pm2-runtime" %*
|
28
bodaEnv/node_modules/.bin/pm2-runtime.ps1
generated
vendored
Normal file
28
bodaEnv/node_modules/.bin/pm2-runtime.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../pm2/bin/pm2-runtime" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../pm2/bin/pm2-runtime" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../pm2/bin/pm2-runtime" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../pm2/bin/pm2-runtime" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
17
bodaEnv/node_modules/.bin/pm2.cmd
generated
vendored
Normal file
17
bodaEnv/node_modules/.bin/pm2.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\pm2\bin\pm2" %*
|
28
bodaEnv/node_modules/.bin/pm2.ps1
generated
vendored
Normal file
28
bodaEnv/node_modules/.bin/pm2.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../pm2/bin/pm2" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../pm2/bin/pm2" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../pm2/bin/pm2" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../pm2/bin/pm2" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
16
bodaEnv/node_modules/.bin/resolve
generated
vendored
Normal file
16
bodaEnv/node_modules/.bin/resolve
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../resolve/bin/resolve" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../resolve/bin/resolve" "$@"
|
||||||
|
fi
|
17
bodaEnv/node_modules/.bin/resolve.cmd
generated
vendored
Normal file
17
bodaEnv/node_modules/.bin/resolve.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\resolve\bin\resolve" %*
|
28
bodaEnv/node_modules/.bin/resolve.ps1
generated
vendored
Normal file
28
bodaEnv/node_modules/.bin/resolve.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../resolve/bin/resolve" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../resolve/bin/resolve" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../resolve/bin/resolve" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../resolve/bin/resolve" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
16
bodaEnv/node_modules/.bin/semver
generated
vendored
Normal file
16
bodaEnv/node_modules/.bin/semver
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../semver/bin/semver.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../semver/bin/semver.js" "$@"
|
||||||
|
fi
|
17
bodaEnv/node_modules/.bin/semver.cmd
generated
vendored
Normal file
17
bodaEnv/node_modules/.bin/semver.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\semver\bin\semver.js" %*
|
28
bodaEnv/node_modules/.bin/semver.ps1
generated
vendored
Normal file
28
bodaEnv/node_modules/.bin/semver.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../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
|
16
bodaEnv/node_modules/.bin/systeminformation
generated
vendored
Normal file
16
bodaEnv/node_modules/.bin/systeminformation
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../systeminformation/lib/cli.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../systeminformation/lib/cli.js" "$@"
|
||||||
|
fi
|
17
bodaEnv/node_modules/.bin/systeminformation.cmd
generated
vendored
Normal file
17
bodaEnv/node_modules/.bin/systeminformation.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\systeminformation\lib\cli.js" %*
|
28
bodaEnv/node_modules/.bin/systeminformation.ps1
generated
vendored
Normal file
28
bodaEnv/node_modules/.bin/systeminformation.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../systeminformation/lib/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../systeminformation/lib/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../systeminformation/lib/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../systeminformation/lib/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
16
bodaEnv/node_modules/.bin/uuid
generated
vendored
Normal file
16
bodaEnv/node_modules/.bin/uuid
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../uuid/bin/uuid" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../uuid/bin/uuid" "$@"
|
||||||
|
fi
|
17
bodaEnv/node_modules/.bin/uuid.cmd
generated
vendored
Normal file
17
bodaEnv/node_modules/.bin/uuid.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\uuid\bin\uuid" %*
|
28
bodaEnv/node_modules/.bin/uuid.ps1
generated
vendored
Normal file
28
bodaEnv/node_modules/.bin/uuid.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../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
bodaEnv/node_modules/.bin/vm2
generated
vendored
12
bodaEnv/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
bodaEnv/node_modules/.bin/vm2.cmd
generated
vendored
17
bodaEnv/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
bodaEnv/node_modules/.bin/vm2.ps1
generated
vendored
28
bodaEnv/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
|
|
16
bodaEnv/node_modules/.bin/yaml2json
generated
vendored
Normal file
16
bodaEnv/node_modules/.bin/yaml2json
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../yamljs/bin/yaml2json" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../yamljs/bin/yaml2json" "$@"
|
||||||
|
fi
|
17
bodaEnv/node_modules/.bin/yaml2json.cmd
generated
vendored
Normal file
17
bodaEnv/node_modules/.bin/yaml2json.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\yamljs\bin\yaml2json" %*
|
28
bodaEnv/node_modules/.bin/yaml2json.ps1
generated
vendored
Normal file
28
bodaEnv/node_modules/.bin/yaml2json.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../yamljs/bin/yaml2json" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../yamljs/bin/yaml2json" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../yamljs/bin/yaml2json" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../yamljs/bin/yaml2json" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
2947
bodaEnv/node_modules/.package-lock.json
generated
vendored
2947
bodaEnv/node_modules/.package-lock.json
generated
vendored
File diff suppressed because it is too large
Load Diff
22
bodaEnv/node_modules/@babel/code-frame/LICENSE
generated
vendored
22
bodaEnv/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
bodaEnv/node_modules/@babel/code-frame/README.md
generated
vendored
19
bodaEnv/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/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
|
|
||||||
```
|
|
157
bodaEnv/node_modules/@babel/code-frame/lib/index.js
generated
vendored
157
bodaEnv/node_modules/@babel/code-frame/lib/index.js
generated
vendored
@ -1,157 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.codeFrameColumns = codeFrameColumns;
|
|
||||||
exports.default = _default;
|
|
||||||
var _highlight = require("@babel/highlight");
|
|
||||||
var _chalk = _interopRequireWildcard(require("chalk"), true);
|
|
||||||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
||||||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
||||||
let chalkWithForcedColor = undefined;
|
|
||||||
function getChalk(forceColor) {
|
|
||||||
if (forceColor) {
|
|
||||||
var _chalkWithForcedColor;
|
|
||||||
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
|
|
||||||
enabled: true,
|
|
||||||
level: 1
|
|
||||||
});
|
|
||||||
return chalkWithForcedColor;
|
|
||||||
}
|
|
||||||
return _chalk.default;
|
|
||||||
}
|
|
||||||
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 = getChalk(opts.forceColor);
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=index.js.map
|
|
1
bodaEnv/node_modules/@babel/code-frame/lib/index.js.map
generated
vendored
1
bodaEnv/node_modules/@babel/code-frame/lib/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
30
bodaEnv/node_modules/@babel/code-frame/package.json
generated
vendored
30
bodaEnv/node_modules/@babel/code-frame/package.json
generated
vendored
@ -1,30 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "@babel/code-frame",
|
|
||||||
"version": "7.23.5",
|
|
||||||
"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.23.4",
|
|
||||||
"chalk": "^2.4.2"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"import-meta-resolve": "^4.0.0",
|
|
||||||
"strip-ansi": "^4.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6.9.0"
|
|
||||||
},
|
|
||||||
"type": "commonjs"
|
|
||||||
}
|
|
22
bodaEnv/node_modules/@babel/generator/LICENSE
generated
vendored
22
bodaEnv/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
bodaEnv/node_modules/@babel/generator/README.md
generated
vendored
19
bodaEnv/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/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
|
|
||||||
```
|
|
323
bodaEnv/node_modules/@babel/generator/lib/buffer.js
generated
vendored
323
bodaEnv/node_modules/@babel/generator/lib/buffer.js
generated
vendored
@ -1,323 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.default = void 0;
|
|
||||||
class Buffer {
|
|
||||||
constructor(map, indentChar) {
|
|
||||||
this._map = null;
|
|
||||||
this._buf = "";
|
|
||||||
this._str = "";
|
|
||||||
this._appendCount = 0;
|
|
||||||
this._last = 0;
|
|
||||||
this._queue = [];
|
|
||||||
this._queueCursor = 0;
|
|
||||||
this._canMarkIdName = true;
|
|
||||||
this._indentChar = "";
|
|
||||||
this._fastIndentations = [];
|
|
||||||
this._position = {
|
|
||||||
line: 1,
|
|
||||||
column: 0
|
|
||||||
};
|
|
||||||
this._sourcePosition = {
|
|
||||||
identifierName: undefined,
|
|
||||||
identifierNamePos: undefined,
|
|
||||||
line: undefined,
|
|
||||||
column: undefined,
|
|
||||||
filename: undefined
|
|
||||||
};
|
|
||||||
this._map = map;
|
|
||||||
this._indentChar = indentChar;
|
|
||||||
for (let i = 0; i < 64; i++) {
|
|
||||||
this._fastIndentations.push(indentChar.repeat(i));
|
|
||||||
}
|
|
||||||
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,
|
|
||||||
identifierNamePos: undefined,
|
|
||||||
filename: ""
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
_pushQueue(char, repeat, line, column, 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.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 __mergedMap() {
|
|
||||||
return this.map;
|
|
||||||
},
|
|
||||||
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.filename);
|
|
||||||
}
|
|
||||||
queueIndentation(repeat) {
|
|
||||||
if (repeat === 0) return;
|
|
||||||
this._pushQueue(-1, repeat, 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;
|
|
||||||
if (char === -1) {
|
|
||||||
const fastIndentation = this._fastIndentations[repeat];
|
|
||||||
if (fastIndentation !== undefined) {
|
|
||||||
this._str += fastIndentation;
|
|
||||||
} else {
|
|
||||||
this._str += repeat > 1 ? this._indentChar.repeat(repeat) : this._indentChar;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this._str += repeat > 1 ? String.fromCharCode(char).repeat(repeat) : String.fromCharCode(char);
|
|
||||||
}
|
|
||||||
if (char !== 10) {
|
|
||||||
this._mark(sourcePos.line, sourcePos.column, sourcePos.identifierName, sourcePos.identifierNamePos, sourcePos.filename);
|
|
||||||
this._position.column += repeat;
|
|
||||||
} else {
|
|
||||||
this._position.line++;
|
|
||||||
this._position.column = 0;
|
|
||||||
}
|
|
||||||
if (this._canMarkIdName) {
|
|
||||||
sourcePos.identifierName = undefined;
|
|
||||||
sourcePos.identifierNamePos = undefined;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
_append(str, sourcePos, maybeNewline) {
|
|
||||||
const len = str.length;
|
|
||||||
const position = this._position;
|
|
||||||
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) {
|
|
||||||
position.column += len;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const {
|
|
||||||
column,
|
|
||||||
identifierName,
|
|
||||||
identifierNamePos,
|
|
||||||
filename
|
|
||||||
} = sourcePos;
|
|
||||||
let line = sourcePos.line;
|
|
||||||
if ((identifierName != null || identifierNamePos != null) && this._canMarkIdName) {
|
|
||||||
sourcePos.identifierName = undefined;
|
|
||||||
sourcePos.identifierNamePos = undefined;
|
|
||||||
}
|
|
||||||
let i = str.indexOf("\n");
|
|
||||||
let last = 0;
|
|
||||||
if (i !== 0) {
|
|
||||||
this._mark(line, column, identifierName, identifierNamePos, filename);
|
|
||||||
}
|
|
||||||
while (i !== -1) {
|
|
||||||
position.line++;
|
|
||||||
position.column = 0;
|
|
||||||
last = i + 1;
|
|
||||||
if (last < len && line !== undefined) {
|
|
||||||
this._mark(++line, 0, null, null, filename);
|
|
||||||
}
|
|
||||||
i = str.indexOf("\n", last);
|
|
||||||
}
|
|
||||||
position.column += len - last;
|
|
||||||
}
|
|
||||||
_mark(line, column, identifierName, identifierNamePos, filename) {
|
|
||||||
var _this$_map;
|
|
||||||
(_this$_map = this._map) == null || _this$_map.mark(this._position, line, column, identifierName, identifierNamePos, 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;
|
|
||||||
}
|
|
||||||
getNewlineCount() {
|
|
||||||
const queueCursor = this._queueCursor;
|
|
||||||
let count = 0;
|
|
||||||
if (queueCursor === 0) return this._last === 10 ? 1 : 0;
|
|
||||||
for (let i = queueCursor - 1; i >= 0; i--) {
|
|
||||||
if (this._queue[i].char !== 10) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
count++;
|
|
||||||
}
|
|
||||||
return count === queueCursor && this._last === 10 ? count + 1 : count;
|
|
||||||
}
|
|
||||||
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) {
|
|
||||||
cb();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.source("start", loc);
|
|
||||||
const identifierName = loc.identifierName;
|
|
||||||
const sourcePos = this._sourcePosition;
|
|
||||||
if (identifierName) {
|
|
||||||
this._canMarkIdName = false;
|
|
||||||
sourcePos.identifierName = identifierName;
|
|
||||||
}
|
|
||||||
cb();
|
|
||||||
if (identifierName) {
|
|
||||||
this._canMarkIdName = true;
|
|
||||||
sourcePos.identifierName = undefined;
|
|
||||||
sourcePos.identifierNamePos = undefined;
|
|
||||||
}
|
|
||||||
this.source("end", loc);
|
|
||||||
}
|
|
||||||
source(prop, loc) {
|
|
||||||
if (!this._map) return;
|
|
||||||
this._normalizePosition(prop, loc, 0);
|
|
||||||
}
|
|
||||||
sourceWithOffset(prop, loc, columnOffset) {
|
|
||||||
if (!this._map) return;
|
|
||||||
this._normalizePosition(prop, loc, columnOffset);
|
|
||||||
}
|
|
||||||
withSource(prop, loc, cb) {
|
|
||||||
if (this._map) {
|
|
||||||
this.source(prop, loc);
|
|
||||||
}
|
|
||||||
cb();
|
|
||||||
}
|
|
||||||
_normalizePosition(prop, loc, columnOffset) {
|
|
||||||
const pos = loc[prop];
|
|
||||||
const target = this._sourcePosition;
|
|
||||||
if (pos) {
|
|
||||||
target.line = pos.line;
|
|
||||||
target.column = Math.max(pos.column + columnOffset, 0);
|
|
||||||
target.filename = loc.filename;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
getCurrentColumn() {
|
|
||||||
const queue = this._queue;
|
|
||||||
const queueCursor = this._queueCursor;
|
|
||||||
let lastIndex = -1;
|
|
||||||
let len = 0;
|
|
||||||
for (let i = 0; i < queueCursor; i++) {
|
|
||||||
const item = queue[i];
|
|
||||||
if (item.char === 10) {
|
|
||||||
lastIndex = len;
|
|
||||||
}
|
|
||||||
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
bodaEnv/node_modules/@babel/generator/lib/buffer.js.map
generated
vendored
1
bodaEnv/node_modules/@babel/generator/lib/buffer.js.map
generated
vendored
File diff suppressed because one or more lines are too long
92
bodaEnv/node_modules/@babel/generator/lib/generators/base.js
generated
vendored
92
bodaEnv/node_modules/@babel/generator/lib/generators/base.js
generated
vendored
@ -1,92 +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) {
|
|
||||||
var _node$directives;
|
|
||||||
this.noIndentInnerCommentsHere();
|
|
||||||
this.printInnerComments();
|
|
||||||
const directivesLen = (_node$directives = node.directives) == null ? void 0 : _node$directives.length;
|
|
||||||
if (directivesLen) {
|
|
||||||
var _node$directives$trai;
|
|
||||||
const newline = node.body.length ? 2 : 1;
|
|
||||||
this.printSequence(node.directives, node, {
|
|
||||||
trailingCommentsLineOffset: newline
|
|
||||||
});
|
|
||||||
if (!((_node$directives$trai = node.directives[directivesLen - 1].trailingComments) != null && _node$directives$trai.length)) {
|
|
||||||
this.newline(newline);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.printSequence(node.body, node);
|
|
||||||
}
|
|
||||||
function BlockStatement(node) {
|
|
||||||
var _node$directives2;
|
|
||||||
this.tokenChar(123);
|
|
||||||
const directivesLen = (_node$directives2 = node.directives) == null ? void 0 : _node$directives2.length;
|
|
||||||
if (directivesLen) {
|
|
||||||
var _node$directives$trai2;
|
|
||||||
const newline = node.body.length ? 2 : 1;
|
|
||||||
this.printSequence(node.directives, node, {
|
|
||||||
indent: true,
|
|
||||||
trailingCommentsLineOffset: newline
|
|
||||||
});
|
|
||||||
if (!((_node$directives$trai2 = node.directives[directivesLen - 1].trailingComments) != null && _node$directives$trai2.length)) {
|
|
||||||
this.newline(newline);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.printSequence(node.body, node, {
|
|
||||||
indent: true
|
|
||||||
});
|
|
||||||
this.rightBrace(node);
|
|
||||||
}
|
|
||||||
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}`);
|
|
||||||
this.newline(1, true);
|
|
||||||
}
|
|
||||||
function Placeholder(node) {
|
|
||||||
this.token("%%");
|
|
||||||
this.print(node.name);
|
|
||||||
this.token("%%");
|
|
||||||
if (node.expectedNode === "Statement") {
|
|
||||||
this.semicolon();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=base.js.map
|
|
1
bodaEnv/node_modules/@babel/generator/lib/generators/base.js.map
generated
vendored
1
bodaEnv/node_modules/@babel/generator/lib/generators/base.js.map
generated
vendored
File diff suppressed because one or more lines are too long
177
bodaEnv/node_modules/@babel/generator/lib/generators/classes.js
generated
vendored
177
bodaEnv/node_modules/@babel/generator/lib/generators/classes.js
generated
vendored
@ -1,177 +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) {
|
|
||||||
const inExport = isExportDefaultDeclaration(parent) || isExportNamedDeclaration(parent);
|
|
||||||
if (!inExport || !this._shouldPrintDecoratorsBeforeExport(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");
|
|
||||||
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);
|
|
||||||
if (node.body.length === 0) {
|
|
||||||
this.tokenChar(125);
|
|
||||||
} else {
|
|
||||||
this.newline();
|
|
||||||
this.printSequence(node.body, node, {
|
|
||||||
indent: true
|
|
||||||
});
|
|
||||||
if (!this.endsWith(10)) this.newline();
|
|
||||||
this.rightBrace(node);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function ClassProperty(node) {
|
|
||||||
var _node$key$loc;
|
|
||||||
this.printJoin(node.decorators, node);
|
|
||||||
const endLine = (_node$key$loc = node.key.loc) == null || (_node$key$loc = _node$key$loc.end) == null ? void 0 : _node$key$loc.line;
|
|
||||||
if (endLine) this.catchUp(endLine);
|
|
||||||
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) {
|
|
||||||
var _node$key$loc2;
|
|
||||||
this.printJoin(node.decorators, node);
|
|
||||||
const endLine = (_node$key$loc2 = node.key.loc) == null || (_node$key$loc2 = _node$key$loc2.end) == null ? void 0 : _node$key$loc2.line;
|
|
||||||
if (endLine) this.catchUp(endLine);
|
|
||||||
this.tsPrintClassMemberModifiers(node);
|
|
||||||
this.word("accessor", true);
|
|
||||||
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) {
|
|
||||||
var _node$key$loc3;
|
|
||||||
this.printJoin(node.decorators, node);
|
|
||||||
const endLine = (_node$key$loc3 = node.key.loc) == null || (_node$key$loc3 = _node$key$loc3.end) == null ? void 0 : _node$key$loc3.line;
|
|
||||||
if (endLine) this.catchUp(endLine);
|
|
||||||
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(node);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=classes.js.map
|
|
1
bodaEnv/node_modules/@babel/generator/lib/generators/classes.js.map
generated
vendored
1
bodaEnv/node_modules/@babel/generator/lib/generators/classes.js.map
generated
vendored
File diff suppressed because one or more lines are too long
309
bodaEnv/node_modules/@babel/generator/lib/generators/expressions.js
generated
vendored
309
bodaEnv/node_modules/@babel/generator/lib/generators/expressions.js
generated
vendored
@ -1,309 +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;
|
|
||||||
exports._shouldPrintDecoratorsBeforeExport = _shouldPrintDecoratorsBeforeExport;
|
|
||||||
var _t = require("@babel/types");
|
|
||||||
var n = require("../node/index.js");
|
|
||||||
const {
|
|
||||||
isCallExpression,
|
|
||||||
isLiteral,
|
|
||||||
isMemberExpression,
|
|
||||||
isNewExpression
|
|
||||||
} = _t;
|
|
||||||
function UnaryExpression(node) {
|
|
||||||
const {
|
|
||||||
operator
|
|
||||||
} = node;
|
|
||||||
if (operator === "void" || operator === "delete" || operator === "typeof" || operator === "throw") {
|
|
||||||
this.word(operator);
|
|
||||||
this.space();
|
|
||||||
} else {
|
|
||||||
this.token(operator);
|
|
||||||
}
|
|
||||||
this.print(node.argument, node);
|
|
||||||
}
|
|
||||||
function DoExpression(node) {
|
|
||||||
if (node.async) {
|
|
||||||
this.word("async", true);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
this.word("do");
|
|
||||||
this.space();
|
|
||||||
this.print(node.body, node);
|
|
||||||
}
|
|
||||||
function ParenthesizedExpression(node) {
|
|
||||||
this.tokenChar(40);
|
|
||||||
this.print(node.expression, node);
|
|
||||||
this.rightParens(node);
|
|
||||||
}
|
|
||||||
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.rightParens(node);
|
|
||||||
}
|
|
||||||
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 _shouldPrintDecoratorsBeforeExport(node) {
|
|
||||||
if (typeof this.format.decoratorsBeforeExport === "boolean") {
|
|
||||||
return this.format.decoratorsBeforeExport;
|
|
||||||
}
|
|
||||||
return typeof node.start === "number" && node.start === node.declaration.start;
|
|
||||||
}
|
|
||||||
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) {
|
|
||||||
let {
|
|
||||||
computed
|
|
||||||
} = node;
|
|
||||||
const {
|
|
||||||
optional,
|
|
||||||
property
|
|
||||||
} = node;
|
|
||||||
this.print(node.object, node);
|
|
||||||
if (!computed && isMemberExpression(property)) {
|
|
||||||
throw new TypeError("Got a MemberExpression for MemberExpression property");
|
|
||||||
}
|
|
||||||
if (isLiteral(property) && typeof property.value === "number") {
|
|
||||||
computed = true;
|
|
||||||
}
|
|
||||||
if (optional) {
|
|
||||||
this.token("?.");
|
|
||||||
}
|
|
||||||
if (computed) {
|
|
||||||
this.tokenChar(91);
|
|
||||||
this.print(property, node);
|
|
||||||
this.tokenChar(93);
|
|
||||||
} else {
|
|
||||||
if (!optional) {
|
|
||||||
this.tokenChar(46);
|
|
||||||
}
|
|
||||||
this.print(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.rightParens(node);
|
|
||||||
}
|
|
||||||
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.rightParens(node);
|
|
||||||
}
|
|
||||||
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", true);
|
|
||||||
if (node.delegate) {
|
|
||||||
this.tokenChar(42);
|
|
||||||
if (node.argument) {
|
|
||||||
this.space();
|
|
||||||
this.print(node.argument, node);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
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", true);
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(123);
|
|
||||||
this.indent();
|
|
||||||
const {
|
|
||||||
body
|
|
||||||
} = node;
|
|
||||||
if (body.body.length || body.directives.length) {
|
|
||||||
this.newline();
|
|
||||||
}
|
|
||||||
this.print(body, node);
|
|
||||||
this.dedent();
|
|
||||||
this.rightBrace(node);
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=expressions.js.map
|
|
1
bodaEnv/node_modules/@babel/generator/lib/generators/expressions.js.map
generated
vendored
1
bodaEnv/node_modules/@babel/generator/lib/generators/expressions.js.map
generated
vendored
File diff suppressed because one or more lines are too long
668
bodaEnv/node_modules/@babel/generator/lib/generators/flow.js
generated
vendored
668
bodaEnv/node_modules/@babel/generator/lib/generators/flow.js
generated
vendored
@ -1,668 +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.js");
|
|
||||||
var _types2 = require("./types.js");
|
|
||||||
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);
|
|
||||||
const type = parent == null ? void 0 : parent.type;
|
|
||||||
if (type != null && (type === "ObjectTypeCallProperty" || type === "ObjectTypeInternalSlot" || type === "DeclareFunction" || 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.type === "DeclareClass") {
|
|
||||||
var _node$mixins, _node$implements;
|
|
||||||
if ((_node$mixins = node.mixins) != null && _node$mixins.length) {
|
|
||||||
this.space();
|
|
||||||
this.word("mixins");
|
|
||||||
this.space();
|
|
||||||
this.printList(node.mixins, node);
|
|
||||||
}
|
|
||||||
if ((_node$implements = node.implements) != null && _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) {
|
|
||||||
var _node$variance;
|
|
||||||
const kind = (_node$variance = node.variance) == null ? void 0 : _node$variance.kind;
|
|
||||||
if (kind != null) {
|
|
||||||
if (kind === "plus") {
|
|
||||||
this.tokenChar(43);
|
|
||||||
} else if (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) {
|
|
||||||
var _node$extends2;
|
|
||||||
this.word("interface");
|
|
||||||
if ((_node$extends2 = node.extends) != null && _node$extends2.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.newline();
|
|
||||||
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
bodaEnv/node_modules/@babel/generator/lib/generators/flow.js.map
generated
vendored
1
bodaEnv/node_modules/@babel/generator/lib/generators/flow.js.map
generated
vendored
File diff suppressed because one or more lines are too long
128
bodaEnv/node_modules/@babel/generator/lib/generators/index.js
generated
vendored
128
bodaEnv/node_modules/@babel/generator/lib/generators/index.js
generated
vendored
@ -1,128 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
var _templateLiterals = require("./template-literals.js");
|
|
||||||
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.js");
|
|
||||||
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.js");
|
|
||||||
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.js");
|
|
||||||
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.js");
|
|
||||||
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.js");
|
|
||||||
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.js");
|
|
||||||
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.js");
|
|
||||||
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.js");
|
|
||||||
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.js");
|
|
||||||
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.js");
|
|
||||||
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
bodaEnv/node_modules/@babel/generator/lib/generators/index.js.map
generated
vendored
1
bodaEnv/node_modules/@babel/generator/lib/generators/index.js.map
generated
vendored
@ -1 +0,0 @@
|
|||||||
{"version":3,"names":["_templateLiterals","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_expressions","_statements","_classes","_methods","_modules","_types","_flow","_base","_jsx","_typescript"],"sources":["../../src/generators/index.ts"],"sourcesContent":["export * from \"./template-literals.ts\";\nexport * from \"./expressions.ts\";\nexport * from \"./statements.ts\";\nexport * from \"./classes.ts\";\nexport * from \"./methods.ts\";\nexport * from \"./modules.ts\";\nexport * from \"./types.ts\";\nexport * from \"./flow.ts\";\nexport * from \"./base.ts\";\nexport * from \"./jsx.ts\";\nexport * from \"./typescript.ts\";\n"],"mappings":";;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,iBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,iBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,iBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,YAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,YAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,YAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,YAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,WAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,WAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,WAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,WAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,QAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,QAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,QAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,QAAA,CAAAP,GAAA;IAAA;EAAA;AAAA;AACA,IAAAQ,QAAA,GAAAZ,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAU,QAAA,EAAAT,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAQ,QAAA,CAAAR,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,QAAA,CAAAR,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,QAAA,GAAAb,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAW,QAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAS,QAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAK,QAAA,CAAAT,GAAA;IAAA;EAAA;AAAA;AACA,IAAAU,MAAA,GAAAd,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAY,MAAA,EAAAX,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAU,MAAA,CAAAV,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAM,MAAA,CAAAV,GAAA;IAAA;EAAA;AAAA;AACA,IAAAW,KAAA,GAAAf,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAa,KAAA,EAAAZ,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAW,KAAA,CAAAX,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAO,KAAA,CAAAX,GAAA;IAAA;EAAA;AAAA;AACA,IAAAY,KAAA,GAAAhB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAc,KAAA,EAAAb,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAY,KAAA,CAAAZ,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAQ,KAAA,CAAAZ,GAAA;IAAA;EAAA;AAAA;AACA,IAAAa,IAAA,GAAAjB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAe,IAAA,EAAAd,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAa,IAAA,CAAAb,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAS,IAAA,CAAAb,GAAA;IAAA;EAAA;AAAA;AACA,IAAAc,WAAA,GAAAlB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAgB,WAAA,EAAAf,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAc,WAAA,CAAAd,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAU,WAAA,CAAAd,GAAA;IAAA;EAAA;AAAA"}
|
|
123
bodaEnv/node_modules/@babel/generator/lib/generators/jsx.js
generated
vendored
123
bodaEnv/node_modules/@babel/generator/lib/generators/jsx.js
generated
vendored
@ -1,123 +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() {
|
|
||||||
this.printInnerComments();
|
|
||||||
}
|
|
||||||
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
|
|
1
bodaEnv/node_modules/@babel/generator/lib/generators/jsx.js.map
generated
vendored
1
bodaEnv/node_modules/@babel/generator/lib/generators/jsx.js.map
generated
vendored
File diff suppressed because one or more lines are too long
173
bodaEnv/node_modules/@babel/generator/lib/generators/methods.js
generated
vendored
173
bodaEnv/node_modules/@babel/generator/lib/generators/methods.js
generated
vendored
@ -1,173 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.ArrowFunctionExpression = ArrowFunctionExpression;
|
|
||||||
exports.FunctionDeclaration = exports.FunctionExpression = FunctionExpression;
|
|
||||||
exports._functionHead = _functionHead;
|
|
||||||
exports._methodHead = _methodHead;
|
|
||||||
exports._param = _param;
|
|
||||||
exports._parameters = _parameters;
|
|
||||||
exports._params = _params;
|
|
||||||
exports._predicate = _predicate;
|
|
||||||
var _t = require("@babel/types");
|
|
||||||
const {
|
|
||||||
isIdentifier
|
|
||||||
} = _t;
|
|
||||||
function _params(node, idNode, parentNode) {
|
|
||||||
this.print(node.typeParameters, node);
|
|
||||||
const nameInfo = _getFuncIdName.call(this, idNode, parentNode);
|
|
||||||
if (nameInfo) {
|
|
||||||
this.sourceIdentifierName(nameInfo.name, nameInfo.pos);
|
|
||||||
}
|
|
||||||
this.tokenChar(40);
|
|
||||||
this._parameters(node.params, node);
|
|
||||||
this.tokenChar(41);
|
|
||||||
const noLineTerminator = node.type === "ArrowFunctionExpression";
|
|
||||||
this.print(node.returnType, node, noLineTerminator);
|
|
||||||
this._noLineTerminator = noLineTerminator;
|
|
||||||
}
|
|
||||||
function _parameters(parameters, parent) {
|
|
||||||
const paramLength = parameters.length;
|
|
||||||
for (let i = 0; i < paramLength; i++) {
|
|
||||||
this._param(parameters[i], parent);
|
|
||||||
if (i < parameters.length - 1) {
|
|
||||||
this.tokenChar(44);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function _param(parameter, parent) {
|
|
||||||
this.printJoin(parameter.decorators, parameter);
|
|
||||||
this.print(parameter, parent);
|
|
||||||
if (parameter.optional) {
|
|
||||||
this.tokenChar(63);
|
|
||||||
}
|
|
||||||
this.print(parameter.typeAnnotation, parameter);
|
|
||||||
}
|
|
||||||
function _methodHead(node) {
|
|
||||||
const kind = node.kind;
|
|
||||||
const key = node.key;
|
|
||||||
if (kind === "get" || kind === "set") {
|
|
||||||
this.word(kind);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
if (node.async) {
|
|
||||||
this.word("async", true);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
if (kind === "method" || kind === "init") {
|
|
||||||
if (node.generator) {
|
|
||||||
this.tokenChar(42);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (node.computed) {
|
|
||||||
this.tokenChar(91);
|
|
||||||
this.print(key, node);
|
|
||||||
this.tokenChar(93);
|
|
||||||
} else {
|
|
||||||
this.print(key, node);
|
|
||||||
}
|
|
||||||
if (node.optional) {
|
|
||||||
this.tokenChar(63);
|
|
||||||
}
|
|
||||||
this._params(node, node.computed && node.key.type !== "StringLiteral" ? undefined : node.key, undefined);
|
|
||||||
}
|
|
||||||
function _predicate(node, noLineTerminatorAfter) {
|
|
||||||
if (node.predicate) {
|
|
||||||
if (!node.returnType) {
|
|
||||||
this.tokenChar(58);
|
|
||||||
}
|
|
||||||
this.space();
|
|
||||||
this.print(node.predicate, node, noLineTerminatorAfter);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function _functionHead(node, parent) {
|
|
||||||
if (node.async) {
|
|
||||||
this.word("async");
|
|
||||||
this._endsWithInnerRaw = false;
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
this.word("function");
|
|
||||||
if (node.generator) {
|
|
||||||
this._endsWithInnerRaw = false;
|
|
||||||
this.tokenChar(42);
|
|
||||||
}
|
|
||||||
this.space();
|
|
||||||
if (node.id) {
|
|
||||||
this.print(node.id, node);
|
|
||||||
}
|
|
||||||
this._params(node, node.id, parent);
|
|
||||||
if (node.type !== "TSDeclareFunction") {
|
|
||||||
this._predicate(node);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function FunctionExpression(node, parent) {
|
|
||||||
this._functionHead(node, parent);
|
|
||||||
this.space();
|
|
||||||
this.print(node.body, node);
|
|
||||||
}
|
|
||||||
function ArrowFunctionExpression(node, parent) {
|
|
||||||
if (node.async) {
|
|
||||||
this.word("async", true);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
let firstParam;
|
|
||||||
if (!this.format.retainLines && node.params.length === 1 && isIdentifier(firstParam = node.params[0]) && !hasTypesOrComments(node, firstParam)) {
|
|
||||||
this.print(firstParam, node, true);
|
|
||||||
} else {
|
|
||||||
this._params(node, undefined, parent);
|
|
||||||
}
|
|
||||||
this._predicate(node, true);
|
|
||||||
this.space();
|
|
||||||
this.printInnerComments();
|
|
||||||
this.token("=>");
|
|
||||||
this.space();
|
|
||||||
this.print(node.body, node);
|
|
||||||
}
|
|
||||||
function hasTypesOrComments(node, param) {
|
|
||||||
var _param$leadingComment, _param$trailingCommen;
|
|
||||||
return !!(node.typeParameters || node.returnType || node.predicate || param.typeAnnotation || param.optional || (_param$leadingComment = param.leadingComments) != null && _param$leadingComment.length || (_param$trailingCommen = param.trailingComments) != null && _param$trailingCommen.length);
|
|
||||||
}
|
|
||||||
function _getFuncIdName(idNode, parent) {
|
|
||||||
let id = idNode;
|
|
||||||
if (!id && parent) {
|
|
||||||
const parentType = parent.type;
|
|
||||||
if (parentType === "VariableDeclarator") {
|
|
||||||
id = parent.id;
|
|
||||||
} else if (parentType === "AssignmentExpression" || parentType === "AssignmentPattern") {
|
|
||||||
id = parent.left;
|
|
||||||
} else if (parentType === "ObjectProperty" || parentType === "ClassProperty") {
|
|
||||||
if (!parent.computed || parent.key.type === "StringLiteral") {
|
|
||||||
id = parent.key;
|
|
||||||
}
|
|
||||||
} else if (parentType === "ClassPrivateProperty" || parentType === "ClassAccessorProperty") {
|
|
||||||
id = parent.key;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!id) return;
|
|
||||||
let nameInfo;
|
|
||||||
if (id.type === "Identifier") {
|
|
||||||
var _id$loc, _id$loc2;
|
|
||||||
nameInfo = {
|
|
||||||
pos: (_id$loc = id.loc) == null ? void 0 : _id$loc.start,
|
|
||||||
name: ((_id$loc2 = id.loc) == null ? void 0 : _id$loc2.identifierName) || id.name
|
|
||||||
};
|
|
||||||
} else if (id.type === "PrivateName") {
|
|
||||||
var _id$loc3;
|
|
||||||
nameInfo = {
|
|
||||||
pos: (_id$loc3 = id.loc) == null ? void 0 : _id$loc3.start,
|
|
||||||
name: "#" + id.id.name
|
|
||||||
};
|
|
||||||
} else if (id.type === "StringLiteral") {
|
|
||||||
var _id$loc4;
|
|
||||||
nameInfo = {
|
|
||||||
pos: (_id$loc4 = id.loc) == null ? void 0 : _id$loc4.start,
|
|
||||||
name: id.value
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return nameInfo;
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=methods.js.map
|
|
1
bodaEnv/node_modules/@babel/generator/lib/generators/methods.js.map
generated
vendored
1
bodaEnv/node_modules/@babel/generator/lib/generators/methods.js.map
generated
vendored
File diff suppressed because one or more lines are too long
274
bodaEnv/node_modules/@babel/generator/lib/generators/modules.js
generated
vendored
274
bodaEnv/node_modules/@babel/generator/lib/generators/modules.js
generated
vendored
@ -1,274 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.ExportAllDeclaration = ExportAllDeclaration;
|
|
||||||
exports.ExportDefaultDeclaration = ExportDefaultDeclaration;
|
|
||||||
exports.ExportDefaultSpecifier = ExportDefaultSpecifier;
|
|
||||||
exports.ExportNamedDeclaration = ExportNamedDeclaration;
|
|
||||||
exports.ExportNamespaceSpecifier = ExportNamespaceSpecifier;
|
|
||||||
exports.ExportSpecifier = ExportSpecifier;
|
|
||||||
exports.ImportAttribute = ImportAttribute;
|
|
||||||
exports.ImportDeclaration = ImportDeclaration;
|
|
||||||
exports.ImportDefaultSpecifier = ImportDefaultSpecifier;
|
|
||||||
exports.ImportExpression = ImportExpression;
|
|
||||||
exports.ImportNamespaceSpecifier = ImportNamespaceSpecifier;
|
|
||||||
exports.ImportSpecifier = ImportSpecifier;
|
|
||||||
exports._printAttributes = _printAttributes;
|
|
||||||
var _t = require("@babel/types");
|
|
||||||
const {
|
|
||||||
isClassDeclaration,
|
|
||||||
isExportDefaultSpecifier,
|
|
||||||
isExportNamespaceSpecifier,
|
|
||||||
isImportDefaultSpecifier,
|
|
||||||
isImportNamespaceSpecifier,
|
|
||||||
isStatement
|
|
||||||
} = _t;
|
|
||||||
function ImportSpecifier(node) {
|
|
||||||
if (node.importKind === "type" || node.importKind === "typeof") {
|
|
||||||
this.word(node.importKind);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
this.print(node.imported, node);
|
|
||||||
if (node.local && node.local.name !== node.imported.name) {
|
|
||||||
this.space();
|
|
||||||
this.word("as");
|
|
||||||
this.space();
|
|
||||||
this.print(node.local, node);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function ImportDefaultSpecifier(node) {
|
|
||||||
this.print(node.local, node);
|
|
||||||
}
|
|
||||||
function ExportDefaultSpecifier(node) {
|
|
||||||
this.print(node.exported, node);
|
|
||||||
}
|
|
||||||
function ExportSpecifier(node) {
|
|
||||||
if (node.exportKind === "type") {
|
|
||||||
this.word("type");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
this.print(node.local, node);
|
|
||||||
if (node.exported && node.local.name !== node.exported.name) {
|
|
||||||
this.space();
|
|
||||||
this.word("as");
|
|
||||||
this.space();
|
|
||||||
this.print(node.exported, node);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function ExportNamespaceSpecifier(node) {
|
|
||||||
this.tokenChar(42);
|
|
||||||
this.space();
|
|
||||||
this.word("as");
|
|
||||||
this.space();
|
|
||||||
this.print(node.exported, node);
|
|
||||||
}
|
|
||||||
let warningShown = false;
|
|
||||||
function _printAttributes(node) {
|
|
||||||
const {
|
|
||||||
importAttributesKeyword
|
|
||||||
} = this.format;
|
|
||||||
const {
|
|
||||||
attributes,
|
|
||||||
assertions
|
|
||||||
} = node;
|
|
||||||
if (attributes && !importAttributesKeyword && !warningShown) {
|
|
||||||
warningShown = true;
|
|
||||||
console.warn(`\
|
|
||||||
You are using import attributes, without specifying the desired output syntax.
|
|
||||||
Please specify the "importAttributesKeyword" generator option, whose value can be one of:
|
|
||||||
- "with" : \`import { a } from "b" with { type: "json" };\`
|
|
||||||
- "assert" : \`import { a } from "b" assert { type: "json" };\`
|
|
||||||
- "with-legacy" : \`import { a } from "b" with type: "json";\`
|
|
||||||
`);
|
|
||||||
}
|
|
||||||
const useAssertKeyword = importAttributesKeyword === "assert" || !importAttributesKeyword && assertions;
|
|
||||||
this.word(useAssertKeyword ? "assert" : "with");
|
|
||||||
this.space();
|
|
||||||
if (!useAssertKeyword && importAttributesKeyword !== "with") {
|
|
||||||
this.printList(attributes || assertions, node);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.tokenChar(123);
|
|
||||||
this.space();
|
|
||||||
this.printList(attributes || assertions, node);
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(125);
|
|
||||||
}
|
|
||||||
function ExportAllDeclaration(node) {
|
|
||||||
var _node$attributes, _node$assertions;
|
|
||||||
this.word("export");
|
|
||||||
this.space();
|
|
||||||
if (node.exportKind === "type") {
|
|
||||||
this.word("type");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
this.tokenChar(42);
|
|
||||||
this.space();
|
|
||||||
this.word("from");
|
|
||||||
this.space();
|
|
||||||
if ((_node$attributes = node.attributes) != null && _node$attributes.length || (_node$assertions = node.assertions) != null && _node$assertions.length) {
|
|
||||||
this.print(node.source, node, true);
|
|
||||||
this.space();
|
|
||||||
this._printAttributes(node);
|
|
||||||
} else {
|
|
||||||
this.print(node.source, node);
|
|
||||||
}
|
|
||||||
this.semicolon();
|
|
||||||
}
|
|
||||||
function maybePrintDecoratorsBeforeExport(printer, node) {
|
|
||||||
if (isClassDeclaration(node.declaration) && printer._shouldPrintDecoratorsBeforeExport(node)) {
|
|
||||||
printer.printJoin(node.declaration.decorators, node);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function ExportNamedDeclaration(node) {
|
|
||||||
maybePrintDecoratorsBeforeExport(this, node);
|
|
||||||
this.word("export");
|
|
||||||
this.space();
|
|
||||||
if (node.declaration) {
|
|
||||||
const declar = node.declaration;
|
|
||||||
this.print(declar, node);
|
|
||||||
if (!isStatement(declar)) this.semicolon();
|
|
||||||
} else {
|
|
||||||
if (node.exportKind === "type") {
|
|
||||||
this.word("type");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
const specifiers = node.specifiers.slice(0);
|
|
||||||
let hasSpecial = false;
|
|
||||||
for (;;) {
|
|
||||||
const first = specifiers[0];
|
|
||||||
if (isExportDefaultSpecifier(first) || isExportNamespaceSpecifier(first)) {
|
|
||||||
hasSpecial = true;
|
|
||||||
this.print(specifiers.shift(), node);
|
|
||||||
if (specifiers.length) {
|
|
||||||
this.tokenChar(44);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (specifiers.length || !specifiers.length && !hasSpecial) {
|
|
||||||
this.tokenChar(123);
|
|
||||||
if (specifiers.length) {
|
|
||||||
this.space();
|
|
||||||
this.printList(specifiers, node);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
this.tokenChar(125);
|
|
||||||
}
|
|
||||||
if (node.source) {
|
|
||||||
var _node$attributes2, _node$assertions2;
|
|
||||||
this.space();
|
|
||||||
this.word("from");
|
|
||||||
this.space();
|
|
||||||
if ((_node$attributes2 = node.attributes) != null && _node$attributes2.length || (_node$assertions2 = node.assertions) != null && _node$assertions2.length) {
|
|
||||||
this.print(node.source, node, true);
|
|
||||||
this.space();
|
|
||||||
this._printAttributes(node);
|
|
||||||
} else {
|
|
||||||
this.print(node.source, node);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.semicolon();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function ExportDefaultDeclaration(node) {
|
|
||||||
maybePrintDecoratorsBeforeExport(this, node);
|
|
||||||
this.word("export");
|
|
||||||
this.noIndentInnerCommentsHere();
|
|
||||||
this.space();
|
|
||||||
this.word("default");
|
|
||||||
this.space();
|
|
||||||
const declar = node.declaration;
|
|
||||||
this.print(declar, node);
|
|
||||||
if (!isStatement(declar)) this.semicolon();
|
|
||||||
}
|
|
||||||
function ImportDeclaration(node) {
|
|
||||||
var _node$attributes3, _node$assertions3;
|
|
||||||
this.word("import");
|
|
||||||
this.space();
|
|
||||||
const isTypeKind = node.importKind === "type" || node.importKind === "typeof";
|
|
||||||
if (isTypeKind) {
|
|
||||||
this.noIndentInnerCommentsHere();
|
|
||||||
this.word(node.importKind);
|
|
||||||
this.space();
|
|
||||||
} else if (node.module) {
|
|
||||||
this.noIndentInnerCommentsHere();
|
|
||||||
this.word("module");
|
|
||||||
this.space();
|
|
||||||
} else if (node.phase) {
|
|
||||||
this.noIndentInnerCommentsHere();
|
|
||||||
this.word(node.phase);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
const specifiers = node.specifiers.slice(0);
|
|
||||||
const hasSpecifiers = !!specifiers.length;
|
|
||||||
while (hasSpecifiers) {
|
|
||||||
const first = specifiers[0];
|
|
||||||
if (isImportDefaultSpecifier(first) || isImportNamespaceSpecifier(first)) {
|
|
||||||
this.print(specifiers.shift(), node);
|
|
||||||
if (specifiers.length) {
|
|
||||||
this.tokenChar(44);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (specifiers.length) {
|
|
||||||
this.tokenChar(123);
|
|
||||||
this.space();
|
|
||||||
this.printList(specifiers, node);
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(125);
|
|
||||||
} else if (isTypeKind && !hasSpecifiers) {
|
|
||||||
this.tokenChar(123);
|
|
||||||
this.tokenChar(125);
|
|
||||||
}
|
|
||||||
if (hasSpecifiers || isTypeKind) {
|
|
||||||
this.space();
|
|
||||||
this.word("from");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
if ((_node$attributes3 = node.attributes) != null && _node$attributes3.length || (_node$assertions3 = node.assertions) != null && _node$assertions3.length) {
|
|
||||||
this.print(node.source, node, true);
|
|
||||||
this.space();
|
|
||||||
this._printAttributes(node);
|
|
||||||
} else {
|
|
||||||
this.print(node.source, node);
|
|
||||||
}
|
|
||||||
this.semicolon();
|
|
||||||
}
|
|
||||||
function ImportAttribute(node) {
|
|
||||||
this.print(node.key);
|
|
||||||
this.tokenChar(58);
|
|
||||||
this.space();
|
|
||||||
this.print(node.value);
|
|
||||||
}
|
|
||||||
function ImportNamespaceSpecifier(node) {
|
|
||||||
this.tokenChar(42);
|
|
||||||
this.space();
|
|
||||||
this.word("as");
|
|
||||||
this.space();
|
|
||||||
this.print(node.local, node);
|
|
||||||
}
|
|
||||||
function ImportExpression(node) {
|
|
||||||
this.word("import");
|
|
||||||
if (node.phase) {
|
|
||||||
this.tokenChar(46);
|
|
||||||
this.word(node.phase);
|
|
||||||
}
|
|
||||||
this.tokenChar(40);
|
|
||||||
this.print(node.source, node);
|
|
||||||
if (node.options != null) {
|
|
||||||
this.tokenChar(44);
|
|
||||||
this.space();
|
|
||||||
this.print(node.options, node);
|
|
||||||
}
|
|
||||||
this.tokenChar(41);
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=modules.js.map
|
|
1
bodaEnv/node_modules/@babel/generator/lib/generators/modules.js.map
generated
vendored
1
bodaEnv/node_modules/@babel/generator/lib/generators/modules.js.map
generated
vendored
File diff suppressed because one or more lines are too long
275
bodaEnv/node_modules/@babel/generator/lib/generators/statements.js
generated
vendored
275
bodaEnv/node_modules/@babel/generator/lib/generators/statements.js
generated
vendored
@ -1,275 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", {
|
|
||||||
value: true
|
|
||||||
});
|
|
||||||
exports.BreakStatement = BreakStatement;
|
|
||||||
exports.CatchClause = CatchClause;
|
|
||||||
exports.ContinueStatement = ContinueStatement;
|
|
||||||
exports.DebuggerStatement = DebuggerStatement;
|
|
||||||
exports.DoWhileStatement = DoWhileStatement;
|
|
||||||
exports.ForOfStatement = exports.ForInStatement = void 0;
|
|
||||||
exports.ForStatement = ForStatement;
|
|
||||||
exports.IfStatement = IfStatement;
|
|
||||||
exports.LabeledStatement = LabeledStatement;
|
|
||||||
exports.ReturnStatement = ReturnStatement;
|
|
||||||
exports.SwitchCase = SwitchCase;
|
|
||||||
exports.SwitchStatement = SwitchStatement;
|
|
||||||
exports.ThrowStatement = ThrowStatement;
|
|
||||||
exports.TryStatement = TryStatement;
|
|
||||||
exports.VariableDeclaration = VariableDeclaration;
|
|
||||||
exports.VariableDeclarator = VariableDeclarator;
|
|
||||||
exports.WhileStatement = WhileStatement;
|
|
||||||
exports.WithStatement = WithStatement;
|
|
||||||
var _t = require("@babel/types");
|
|
||||||
const {
|
|
||||||
isFor,
|
|
||||||
isForStatement,
|
|
||||||
isIfStatement,
|
|
||||||
isStatement
|
|
||||||
} = _t;
|
|
||||||
function WithStatement(node) {
|
|
||||||
this.word("with");
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(40);
|
|
||||||
this.print(node.object, node);
|
|
||||||
this.tokenChar(41);
|
|
||||||
this.printBlock(node);
|
|
||||||
}
|
|
||||||
function IfStatement(node) {
|
|
||||||
this.word("if");
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(40);
|
|
||||||
this.print(node.test, node);
|
|
||||||
this.tokenChar(41);
|
|
||||||
this.space();
|
|
||||||
const needsBlock = node.alternate && isIfStatement(getLastStatement(node.consequent));
|
|
||||||
if (needsBlock) {
|
|
||||||
this.tokenChar(123);
|
|
||||||
this.newline();
|
|
||||||
this.indent();
|
|
||||||
}
|
|
||||||
this.printAndIndentOnComments(node.consequent, node);
|
|
||||||
if (needsBlock) {
|
|
||||||
this.dedent();
|
|
||||||
this.newline();
|
|
||||||
this.tokenChar(125);
|
|
||||||
}
|
|
||||||
if (node.alternate) {
|
|
||||||
if (this.endsWith(125)) this.space();
|
|
||||||
this.word("else");
|
|
||||||
this.space();
|
|
||||||
this.printAndIndentOnComments(node.alternate, node);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function getLastStatement(statement) {
|
|
||||||
const {
|
|
||||||
body
|
|
||||||
} = statement;
|
|
||||||
if (isStatement(body) === false) {
|
|
||||||
return statement;
|
|
||||||
}
|
|
||||||
return getLastStatement(body);
|
|
||||||
}
|
|
||||||
function ForStatement(node) {
|
|
||||||
this.word("for");
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(40);
|
|
||||||
this.inForStatementInitCounter++;
|
|
||||||
this.print(node.init, node);
|
|
||||||
this.inForStatementInitCounter--;
|
|
||||||
this.tokenChar(59);
|
|
||||||
if (node.test) {
|
|
||||||
this.space();
|
|
||||||
this.print(node.test, node);
|
|
||||||
}
|
|
||||||
this.tokenChar(59);
|
|
||||||
if (node.update) {
|
|
||||||
this.space();
|
|
||||||
this.print(node.update, node);
|
|
||||||
}
|
|
||||||
this.tokenChar(41);
|
|
||||||
this.printBlock(node);
|
|
||||||
}
|
|
||||||
function WhileStatement(node) {
|
|
||||||
this.word("while");
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(40);
|
|
||||||
this.print(node.test, node);
|
|
||||||
this.tokenChar(41);
|
|
||||||
this.printBlock(node);
|
|
||||||
}
|
|
||||||
function ForXStatement(node) {
|
|
||||||
this.word("for");
|
|
||||||
this.space();
|
|
||||||
const isForOf = node.type === "ForOfStatement";
|
|
||||||
if (isForOf && node.await) {
|
|
||||||
this.word("await");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
this.noIndentInnerCommentsHere();
|
|
||||||
this.tokenChar(40);
|
|
||||||
this.print(node.left, node);
|
|
||||||
this.space();
|
|
||||||
this.word(isForOf ? "of" : "in");
|
|
||||||
this.space();
|
|
||||||
this.print(node.right, node);
|
|
||||||
this.tokenChar(41);
|
|
||||||
this.printBlock(node);
|
|
||||||
}
|
|
||||||
const ForInStatement = exports.ForInStatement = ForXStatement;
|
|
||||||
const ForOfStatement = exports.ForOfStatement = ForXStatement;
|
|
||||||
function DoWhileStatement(node) {
|
|
||||||
this.word("do");
|
|
||||||
this.space();
|
|
||||||
this.print(node.body, node);
|
|
||||||
this.space();
|
|
||||||
this.word("while");
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(40);
|
|
||||||
this.print(node.test, node);
|
|
||||||
this.tokenChar(41);
|
|
||||||
this.semicolon();
|
|
||||||
}
|
|
||||||
function printStatementAfterKeyword(printer, node, parent, isLabel) {
|
|
||||||
if (node) {
|
|
||||||
printer.space();
|
|
||||||
printer.printTerminatorless(node, parent, isLabel);
|
|
||||||
}
|
|
||||||
printer.semicolon();
|
|
||||||
}
|
|
||||||
function BreakStatement(node) {
|
|
||||||
this.word("break");
|
|
||||||
printStatementAfterKeyword(this, node.label, node, true);
|
|
||||||
}
|
|
||||||
function ContinueStatement(node) {
|
|
||||||
this.word("continue");
|
|
||||||
printStatementAfterKeyword(this, node.label, node, true);
|
|
||||||
}
|
|
||||||
function ReturnStatement(node) {
|
|
||||||
this.word("return");
|
|
||||||
printStatementAfterKeyword(this, node.argument, node, false);
|
|
||||||
}
|
|
||||||
function ThrowStatement(node) {
|
|
||||||
this.word("throw");
|
|
||||||
printStatementAfterKeyword(this, node.argument, node, false);
|
|
||||||
}
|
|
||||||
function LabeledStatement(node) {
|
|
||||||
this.print(node.label, node);
|
|
||||||
this.tokenChar(58);
|
|
||||||
this.space();
|
|
||||||
this.print(node.body, node);
|
|
||||||
}
|
|
||||||
function TryStatement(node) {
|
|
||||||
this.word("try");
|
|
||||||
this.space();
|
|
||||||
this.print(node.block, node);
|
|
||||||
this.space();
|
|
||||||
if (node.handlers) {
|
|
||||||
this.print(node.handlers[0], node);
|
|
||||||
} else {
|
|
||||||
this.print(node.handler, node);
|
|
||||||
}
|
|
||||||
if (node.finalizer) {
|
|
||||||
this.space();
|
|
||||||
this.word("finally");
|
|
||||||
this.space();
|
|
||||||
this.print(node.finalizer, node);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function CatchClause(node) {
|
|
||||||
this.word("catch");
|
|
||||||
this.space();
|
|
||||||
if (node.param) {
|
|
||||||
this.tokenChar(40);
|
|
||||||
this.print(node.param, node);
|
|
||||||
this.print(node.param.typeAnnotation, node);
|
|
||||||
this.tokenChar(41);
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
this.print(node.body, node);
|
|
||||||
}
|
|
||||||
function SwitchStatement(node) {
|
|
||||||
this.word("switch");
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(40);
|
|
||||||
this.print(node.discriminant, node);
|
|
||||||
this.tokenChar(41);
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(123);
|
|
||||||
this.printSequence(node.cases, node, {
|
|
||||||
indent: true,
|
|
||||||
addNewlines(leading, cas) {
|
|
||||||
if (!leading && node.cases[node.cases.length - 1] === cas) return -1;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.rightBrace(node);
|
|
||||||
}
|
|
||||||
function SwitchCase(node) {
|
|
||||||
if (node.test) {
|
|
||||||
this.word("case");
|
|
||||||
this.space();
|
|
||||||
this.print(node.test, node);
|
|
||||||
this.tokenChar(58);
|
|
||||||
} else {
|
|
||||||
this.word("default");
|
|
||||||
this.tokenChar(58);
|
|
||||||
}
|
|
||||||
if (node.consequent.length) {
|
|
||||||
this.newline();
|
|
||||||
this.printSequence(node.consequent, node, {
|
|
||||||
indent: true
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function DebuggerStatement() {
|
|
||||||
this.word("debugger");
|
|
||||||
this.semicolon();
|
|
||||||
}
|
|
||||||
function VariableDeclaration(node, parent) {
|
|
||||||
if (node.declare) {
|
|
||||||
this.word("declare");
|
|
||||||
this.space();
|
|
||||||
}
|
|
||||||
const {
|
|
||||||
kind
|
|
||||||
} = node;
|
|
||||||
this.word(kind, kind === "using" || kind === "await using");
|
|
||||||
this.space();
|
|
||||||
let hasInits = false;
|
|
||||||
if (!isFor(parent)) {
|
|
||||||
for (const declar of node.declarations) {
|
|
||||||
if (declar.init) {
|
|
||||||
hasInits = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.printList(node.declarations, node, {
|
|
||||||
separator: hasInits ? function () {
|
|
||||||
this.tokenChar(44);
|
|
||||||
this.newline();
|
|
||||||
} : undefined,
|
|
||||||
indent: node.declarations.length > 1 ? true : false
|
|
||||||
});
|
|
||||||
if (isFor(parent)) {
|
|
||||||
if (isForStatement(parent)) {
|
|
||||||
if (parent.init === node) return;
|
|
||||||
} else {
|
|
||||||
if (parent.left === node) return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.semicolon();
|
|
||||||
}
|
|
||||||
function VariableDeclarator(node) {
|
|
||||||
this.print(node.id, node);
|
|
||||||
if (node.definite) this.tokenChar(33);
|
|
||||||
this.print(node.id.typeAnnotation, node);
|
|
||||||
if (node.init) {
|
|
||||||
this.space();
|
|
||||||
this.tokenChar(61);
|
|
||||||
this.space();
|
|
||||||
this.print(node.init, node);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=statements.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