Move to devDependencies,set timeout

This commit is contained in:
2020-06-14 19:09:14 +05:30
parent 4c148ab660
commit a3ab4f71aa
3 changed files with 6 additions and 5 deletions

3
package-lock.json generated
View File

@@ -443,7 +443,8 @@
"typescript": {
"version": "3.9.5",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.5.tgz",
"integrity": "sha512-hSAifV3k+i6lEoCJ2k6R2Z/rp/H3+8sdmcn5NrS3/3kE7+RyZXm9aqvxWqjEXHAd8b0pShatpcdMTvEdvAJltQ=="
"integrity": "sha512-hSAifV3k+i6lEoCJ2k6R2Z/rp/H3+8sdmcn5NrS3/3kE7+RyZXm9aqvxWqjEXHAd8b0pShatpcdMTvEdvAJltQ==",
"dev": true
},
"which-module": {
"version": "2.0.0",

View File

@@ -27,11 +27,11 @@
"devDependencies": {
"@types/got": "^9.6.11",
"@types/node": "^14.0.13",
"@types/yargs": "^15.0.5"
"@types/yargs": "^15.0.5",
"typescript": "^3.9.5"
},
"dependencies": {
"got": "^11.3.0",
"typescript": "^3.9.5",
"yargs": "^15.3.1"
}
}

View File

@@ -31,7 +31,7 @@ async function loop(args:envVars) {
console.info(`Name: ${selfName}`);
let lastUpdate = 0;
const timeout = 50;
const timeout = 100;
try {
while (true) {
//basically, check every second at max
@@ -43,7 +43,7 @@ async function loop(args:envVars) {
}
}catch(e){
console.error("E:",e.msg||e.message||'Error');
setTimeout(loop,5000);
setTimeout(loop,timeout*101);
}
}