salien-script-js
Advanced tools
Comparing version 0.0.7 to 0.0.8
{ | ||
"name": "salien-script-js", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Scripting the Steam Salien Sale minigame, the proper way.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -89,8 +89,7 @@ /** | ||
const updateCheck = async (name, pauseLog) => { | ||
const updateCheck = async name => { | ||
let hasUpdate = null; | ||
try { | ||
hasUpdate = await checkForUpdate(pkg); | ||
this.isUpdateChecked = true; | ||
hasUpdate = await checkForUpdate(pkg, { interval: 120000 }); | ||
} catch (err) { | ||
@@ -100,10 +99,5 @@ logger(name, ` ${chalk.bgRed(' UpdateCheck ')}`, chalk.red(`Failed to check for updates: ${err}`)); | ||
if (hasUpdate) { | ||
logger(name, ` ${chalk.bgMagenta(' UpdateCheck ')}`, `The latest version is ${hasUpdate.latest}. Please update.`); | ||
if (await hasUpdate) { | ||
logger(name, ` ${chalk.bgMagenta(' UpdateCheck ')}`, `The latest version is ${hasUpdate.latest}. Please update!`); | ||
} | ||
if (pauseLog) { | ||
// pause for 3 seconds after update check | ||
await delay(3000); | ||
} | ||
}; | ||
@@ -110,0 +104,0 @@ |
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
28574
643