Comparing version 1.0.35 to 1.0.36
@@ -12,24 +12,20 @@ #!/usr/bin/env node | ||
if(["-u","-update","--u","--update"].includes(process.argv[2].toLowerCase())){ | ||
console.log(`${chalk.bgBlueBright("Updating..")}`) | ||
var ProgressBar = require('progress'); | ||
var bar = new ProgressBar(`${chalk.redBright(`:current/:total`)} ${chalk.blue("|")} ${chalk.cyan(":elapsed seconds elapsed")} ${chalk.blue("|")} ${chalk.greenBright(`:bar`)}`, { | ||
total: 20, | ||
}); | ||
var timer = setInterval(function () { | ||
bar.tick(); | ||
if (bar.complete) { | ||
console.log(`${chalk.greenBright(`Updated!`)}`) | ||
clearInterval(timer); | ||
process.exit(process.pid); | ||
} | ||
}, 100); | ||
cp.execSync("npm i -g consel"); | ||
console.log(`${chalk.bgBlueBright("Updated!")}`) | ||
process.exit(process.pid); | ||
} | ||
if(['-test'].includes(process.argv[2])){ | ||
var ProgressBar = require('progress'); | ||
var bar = new ProgressBar(`${chalk.redBright(`:current/:total`)} ${chalk.blue("|")} ${chalk.cyan(":elapsed seconds elapsed")} ${chalk.blue("|")} ${chalk.greenBright(`:bar`)}`, { | ||
total: 20, | ||
}); | ||
var timer = setInterval(function () { | ||
bar.tick(); | ||
if (bar.complete) { | ||
console.log(`${chalk.greenBright(`Updated!`)}`) | ||
process.exit(process.pid); | ||
clearInterval(timer); | ||
} | ||
}, 100); | ||
} | ||
} | ||
console.log( | ||
@@ -36,0 +32,0 @@ chalk.blueBright( |
{ | ||
"name": "consel", | ||
"version": "1.0.35", | ||
"version": "1.0.36", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2548
70