0

fix(js): move require to top of file

This commit is contained in:
Gabe Kangas 2025-01-08 16:14:25 -08:00
parent b52bbc7f53
commit a669686b16

View File

@ -1,3 +1,5 @@
const semverGt = require('semver/functions/gt');
/* eslint-disable prefer-destructuring */ /* eslint-disable prefer-destructuring */
const ADMIN_USERNAME = process.env.NEXT_PUBLIC_ADMIN_USERNAME; const ADMIN_USERNAME = process.env.NEXT_PUBLIC_ADMIN_USERNAME;
const ADMIN_STREAMKEY = process.env.NEXT_PUBLIC_ADMIN_STREAMKEY; const ADMIN_STREAMKEY = process.env.NEXT_PUBLIC_ADMIN_STREAMKEY;
@ -181,7 +183,6 @@ export async function getGithubRelease() {
} }
function upToDate(local, remote) { function upToDate(local, remote) {
const semverGt = require('semver/functions/gt');
return !semverGt(remote, local); return !semverGt(remote, local);
} }