runtime: upgrade to use node v16

Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
Rui Chen 2022-04-02 21:24:56 -04:00
parent b049ab51f4
commit 31d1d0d13f
No known key found for this signature in database
GPG key ID: 6577287BDCA70840
5 changed files with 11059 additions and 1667 deletions

View file

@ -78,5 +78,5 @@ branding:
color: 'red' color: 'red'
icon: 'umbrella' icon: 'umbrella'
runs: runs:
using: 'node12' using: 'node16'
main: 'dist/index.js' main: 'dist/index.js'

12716
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -24,12 +24,12 @@ const verify = async (filename: string, platform: string, version: string) => {
// Get SHASUM and SHASUM signature files // Get SHASUM and SHASUM signature files
console.log(`${getBaseUrl(platform, version)}.SHA256SUM`); console.log(`${getBaseUrl(platform, version)}.SHA256SUM`);
const shasumRes = await fetch( const shasumRes = await fetch.default(
`${getBaseUrl(platform, version)}.SHA256SUM`, `${getBaseUrl(platform, version)}.SHA256SUM`,
); );
const shasum = await shasumRes.text(); const shasum = await shasumRes.text();
const shaSigRes = await fetch( const shaSigRes = await fetch.default(
`${getBaseUrl(platform, version)}.SHA256SUM.sig`, `${getBaseUrl(platform, version)}.SHA256SUM.sig`,
); );
const shaSig = await shaSigRes.text(); const shaSig = await shaSigRes.text();

View file

@ -7,7 +7,7 @@ const versionInfo = async (platform: string, version?: string) => {
} }
try { try {
const metadataRes = await fetch( `https://uploader.codecov.io/${platform}/latest`, { const metadataRes = await fetch.default( `https://uploader.codecov.io/${platform}/latest`, {
headers: {'Accept': 'application/json'}, headers: {'Accept': 'application/json'},
}); });
const metadata = await metadataRes.json(); const metadata = await metadataRes.json();