mirror of
https://github.com/owncast/owncast.git
synced 2025-11-03 21:08:36 +08:00
fix(js): move require to top of file
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user