@tstdl/base 0.71.33 → 0.71.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core.js +2 -2
- package/package.json +4 -4
package/core.js
CHANGED
|
@@ -11,7 +11,7 @@ let logLevel = logger_1.LogLevel.Debug;
|
|
|
11
11
|
let loggerToken = console_1.ConsoleLogger;
|
|
12
12
|
exports.CORE_LOGGER = (0, container_1.injectionToken)('CORE_LOGGER');
|
|
13
13
|
exports.disposer = new disposable_1.AsyncDisposer();
|
|
14
|
-
async function connect(name, connectFunction, logger, maxTries =
|
|
14
|
+
async function connect(name, connectFunction, logger, maxTries = 5) {
|
|
15
15
|
let triesLeft = maxTries;
|
|
16
16
|
let success = false;
|
|
17
17
|
while (!success && !exports.disposer.disposing && triesLeft-- > 0) {
|
|
@@ -26,7 +26,7 @@ async function connect(name, connectFunction, logger, maxTries = 3) {
|
|
|
26
26
|
if (triesLeft == 0) {
|
|
27
27
|
throw new Error(`failed to connect to ${name} - no tries left`);
|
|
28
28
|
}
|
|
29
|
-
await (0, timing_1.timeout)(
|
|
29
|
+
await (0, timing_1.timeout)(3000);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tstdl/base",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.34",
|
|
4
4
|
"author": "Patrick Hein",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"@types/node": ">=16",
|
|
27
27
|
"@types/nodemailer": "^6.4.4",
|
|
28
28
|
"@types/yup": "0.29",
|
|
29
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
30
|
-
"@typescript-eslint/parser": "5.
|
|
31
|
-
"eslint": "8.
|
|
29
|
+
"@typescript-eslint/eslint-plugin": "5.25",
|
|
30
|
+
"@typescript-eslint/parser": "5.25",
|
|
31
|
+
"eslint": "8.16",
|
|
32
32
|
"ttypescript": "1.5",
|
|
33
33
|
"typedoc": "0.22",
|
|
34
34
|
"typescript": "4.6",
|