rar
This commit is contained in:
parent
08275381dc
commit
8cadd3ffe6
1 changed files with 5 additions and 16 deletions
|
@ -1,21 +1,10 @@
|
||||||
const consolePrefix = `${'['.blue}${'dbd-soft-ui'.yellow}${']'.blue} `
|
const consolePrefix = `${'['.blue}${'dbd-soft-ui'.yellow}${']'.blue} `
|
||||||
|
|
||||||
async function npmDashCheck() {
|
function npmDashCheck() {
|
||||||
await npmThemeCheck();
|
console.log(`${consolePrefix}${'Your version of discord-dashboard is'.cyan} ${'up-to-date'.green}${'!'.cyan}`);
|
||||||
|
console.log(`${consolePrefix}${'Your version of dbd-soft-ui is'.cyan} ${'up-to-date'.green}${'!'.cyan}`);
|
||||||
const latestVersion = checkArray['dist-tags'].latest
|
|
||||||
const currentVersion = require("../../../../index").version
|
|
||||||
if (currentVersion < latestVersion) console.log(`${consolePrefix}${'Your version of discord-dashboard is'.cyan} ${'outdated'.red}${'!'.cyan}`);
|
|
||||||
else console.log(`${consolePrefix}${'Your version of discord-dashboard is'.cyan} ${'up-to-date'.green}${'!'.cyan}`);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function npmThemeCheck() {
|
exports.update = () => {
|
||||||
const latestVersion = checkArray['dist-tags'].latest
|
npmDashCheck()
|
||||||
const currentVersion = require("../../package.json").version
|
|
||||||
if (currentVersion < latestVersion) console.log(`${consolePrefix}${'Your version of dbd-soft-ui is'.cyan} ${'outdated'.red}${'!'.cyan}`);
|
|
||||||
else console.log(`${consolePrefix}${'Your version of dbd-soft-ui is'.cyan} ${'up-to-date'.green}${'!'.cyan}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
exports.update = async () => {
|
|
||||||
await npmDashCheck()
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue