From 4d4851a967b0c6beff107f9a462475df963ce7d4 Mon Sep 17 00:00:00 2001 From: Ayushman Chhabra <14110965+ayushmanchhabra@users.noreply.github.com> Date: Mon, 4 Dec 2023 14:26:54 -0500 Subject: [PATCH] util: fix import --- src/util/parse.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/parse.js b/src/util/parse.js index 89cc22133..200109c5d 100644 --- a/src/util/parse.js +++ b/src/util/parse.js @@ -1,7 +1,7 @@ import { resolve } from "node:path"; import { arch, platform } from "node:process"; -import { ARCH_KV, PLATFORM_KV } from "../util.js"; +import util from "../util.js"; /** * Parse options @@ -16,8 +16,8 @@ export const parse = async (options, pkg) => { options.version = options.version ?? "latest"; options.flavor = options.flavor ?? "normal"; - options.platform = options.platform ?? PLATFORM_KV(platform); - options.arch = options.arch ?? ARCH_KV(arch); + options.platform = options.platform ?? util.PLATFORM_KV[platform]; + options.arch = options.arch ?? util.ARCH_KV[arch]; options.downloadUrl = options.downloadUrl ?? "https://dl.nwjs.io"; options.manifestUrl = options.manifestUrl ?? "https://nwjs.io/versions"; options.cacheDir = options.cacheDir ?? "./cache";