feat: add arch to resolveVersionFromManifest

pull/194/head
Amin Yahyaabadi 2020-09-03 07:35:58 -05:00
parent f27ebaf08b
commit 6668516d2a
1 changed files with 4 additions and 2 deletions

View File

@ -38,7 +38,8 @@ export async function getNode(
const resolvedVersion = await resolveVersionFromManifest(
versionSpec,
stable,
auth
auth,
osArch
);
if (resolvedVersion) {
versionSpec = resolvedVersion;
@ -215,7 +216,8 @@ async function getInfoFromDist(
async function resolveVersionFromManifest(
versionSpec: string,
stable: boolean,
auth: string | undefined
auth: string | undefined,
osArch: string = translateArchToDistUrl(os.arch())
): Promise<string | undefined> {
try {
const info = await getInfoFromManifest(versionSpec, stable, auth);