Comparing version 1.1.0 to 1.1.1
@@ -19,4 +19,10 @@ #!/usr/bin/env node | ||
const args = yield getArgs(); | ||
const exitCode = yield (0, loop_1.loop)(args, () => run(args)); | ||
process.exit(exitCode); | ||
try { | ||
const exitCode = yield (0, loop_1.loop)(args, () => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return yield run(args); })); | ||
process.exit(exitCode); | ||
} | ||
catch (err) { | ||
console.log("fatal error", err); | ||
process.exit(-1); | ||
} | ||
}))(); | ||
@@ -23,0 +29,0 @@ function run(args) { |
@@ -48,4 +48,4 @@ "use strict"; | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
(0, result_emitter_1.emitResults)(results); | ||
try { | ||
(0, result_emitter_1.emitResults)(results); | ||
yield (0, db_1.persistResults)(results); | ||
@@ -58,3 +58,8 @@ } | ||
(0, logger_1.log)(`error persisting results: ${err}`, err); | ||
(0, result_emitter_1.emitResults)([result_1.MonitorFailureResult.ConfigurationError(err)]); | ||
try { | ||
(0, result_emitter_1.emitResults)([result_1.MonitorFailureResult.ConfigurationError(err)]); | ||
} | ||
catch (_a) { | ||
console.error("error emitting logs", err); | ||
} | ||
} | ||
@@ -61,0 +66,0 @@ }); |
@@ -24,4 +24,11 @@ "use strict"; | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
_connection === null || _connection === void 0 ? void 0 : _connection.destroy(); | ||
_connection = null; | ||
try { | ||
yield (_connection === null || _connection === void 0 ? void 0 : _connection.destroy()); | ||
} | ||
catch (_a) { | ||
// no-op | ||
} | ||
finally { | ||
_connection = null; | ||
} | ||
}); | ||
@@ -48,3 +55,3 @@ } | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
return saveSnapshots(_connection, snapshots); | ||
return yield saveSnapshots(_connection, snapshots); | ||
}); | ||
@@ -51,0 +58,0 @@ } |
{ | ||
"name": "barky", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A simple cloud services watchdog with digest notification support & no external dependencies", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/Rohland/barky#readme", |
{ | ||
"name": "barky", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A simple cloud services watchdog with digest notification support & no external dependencies", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/Rohland/barky#readme", |
@@ -108,3 +108,3 @@ # Barky - Cloud Watchdog | ||
** Variation ** | ||
###### Variations | ||
@@ -111,0 +111,0 @@ Examples of vary-by: |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
364403
4897