Skip to content

Commit

Permalink
util: fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Dec 4, 2023
1 parent 8eca1c7 commit 4d4851a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util/parse.js
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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";
Expand Down

0 comments on commit 4d4851a

Please sign in to comment.