From a8636d5362b14ceac2844ae95fcbb0dabb6705b1 Mon Sep 17 00:00:00 2001 From: JrMasterModelBuilder Date: Wed, 1 May 2024 02:28:09 -0400 Subject: [PATCH] Consistent name --- bin/gen-harman-air-runtime.mjs | 6 +++--- bin/gen-harman-air-sdk.mjs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/gen-harman-air-runtime.mjs b/bin/gen-harman-air-runtime.mjs index 993d815a..c4399f63 100755 --- a/bin/gen-harman-air-runtime.mjs +++ b/bin/gen-harman-air-runtime.mjs @@ -11,9 +11,9 @@ import {download} from '../util/download.mjs'; async function main() { const doc = []; const resources = await runtimes(); - for (const {name, file, sha256, source: url} of resources) { + for (const {name, file, sha256, source} of resources) { console.log(`Name: ${name}`); - console.log(`URL: ${url}`); + console.log(`URL: ${source}`); const filepath = `${name}/${file}`; @@ -26,7 +26,7 @@ async function main() { // eslint-disable-next-line no-await-in-loop await download( filepath, - url, + source, { 'User-Agent': userAgent }, diff --git a/bin/gen-harman-air-sdk.mjs b/bin/gen-harman-air-sdk.mjs index 635c8801..8424ec36 100755 --- a/bin/gen-harman-air-sdk.mjs +++ b/bin/gen-harman-air-sdk.mjs @@ -13,9 +13,9 @@ async function main() { const cookieHeader = cookies(listed.cookies); const doc = []; - for (const {name, file, source: url} of listed.downloads) { + for (const {name, file, source} of listed.downloads) { console.log(`Name: ${name}`); - console.log(`URL: ${url}`); + console.log(`URL: ${source}`); const filepath = `${name}/${file}`; @@ -28,7 +28,7 @@ async function main() { // eslint-disable-next-line no-await-in-loop await download( filepath, - url, + source, { 'User-Agent': userAgent, Cookie: cookieHeader