From cf8e6ff39383535c93c3cb454c4682bcc8628d67 Mon Sep 17 00:00:00 2001 From: calebboyd Date: Tue, 5 Jan 2021 12:47:29 -0600 Subject: [PATCH] fix: got upload searchParams --- tasks/build.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/build.ts b/tasks/build.ts index 4520cb1..db2d4c7 100644 --- a/tasks/build.ts +++ b/tasks/build.ts @@ -3,7 +3,7 @@ import { getUnBuiltReleases, getLatestGitRelease } from '../lib/releases' import { runDockerBuild } from './docker' import { getTarget, targetsEqual, NexeTarget } from '../lib/target' import { pathExistsAsync, readFileAsync, execFileAsync, semverGt } from '../lib/util' -import got = require('got') +import got from 'got' import { cpus } from 'os' const env = process.env, @@ -86,7 +86,7 @@ async function build() { return } await got(gitRelease.upload_url.split('{')[0], { - query: { name: target.toString() }, + searchParams: { name: target.toString() }, body: await readFileAsync(output), headers: { ...headers,