Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@heathmont/lab-flask

Package Overview
Dependencies
Maintainers
52
Versions
212
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heathmont/lab-flask - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

12

dist/index.js

@@ -63,3 +63,3 @@ "use strict";

exports.init = function (options, initDefaultContext) { return __awaiter(_this, void 0, void 0, function () {
var requiredOptions, flaskName, flaskUrl, expressServer, labUrl, flaskPrivKey, instanceUuid, instanceUrl, healthCheckFunction, defaultContext, autoStartHealthChecks, pki, privateKey, publicKey, flaskPubKey, flaskPathname, flaskPathnameProto, labConfig, callReaction, callElement, implementFlaskSubstance, implementSubstance, failedHealthchecks, startHealthCheck;
var requiredOptions, flaskName, flaskUrl, expressServer, labUrl, flaskPrivKey, instanceUuid, instanceUrl, healthCheckFunction, defaultContext, autoStartHealthChecks, pki, privateKey, publicKey, flaskPubKey, flaskPathname, flaskPathnameProto, labConfig, callReaction, callElement, implementFlaskSubstance, implementSubstance, failedHealthChecks, startHealthCheck;
var _this = this;

@@ -131,3 +131,3 @@ return __generator(this, function (_a) {

};
failedHealthchecks = 0;
failedHealthChecks = 0;
startHealthCheck = function () { return __awaiter(_this, void 0, void 0, function () {

@@ -142,3 +142,3 @@ var error_1;

_a.sent();
failedHealthchecks = 0;
failedHealthChecks = 0;
setTimeout(startHealthCheck, 10000);

@@ -148,5 +148,5 @@ return [3 /*break*/, 3];

error_1 = _a.sent();
failedHealthchecks = failedHealthchecks + 1;
node_logger_1.logger.error('Error sending health check to LAB', { error: error_1 });
if (failedHealthchecks > 3) {
failedHealthChecks = failedHealthChecks + 1;
node_logger_1.logger.error('Error sending health check to LAB', { error: error_1, failedHealthChecks: failedHealthChecks });
if (failedHealthChecks > 3 && !process.env.SURVIVE_WITHOUT_LAB) {
node_logger_1.logger.error('Health checks failed with LAB, bailing out.');

@@ -153,0 +153,0 @@ process.exit(1);

{
"name": "@heathmont/lab-flask",
"version": "0.3.2",
"version": "0.3.3",
"author": "Margus Lamp",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -176,12 +176,12 @@ import 'source-map-support/register';

};
let failedHealthchecks = 0;
let failedHealthChecks = 0;
const startHealthCheck = async () => {
try {
await sendHealthCheck(labConfig, healthCheckFunction(), callReaction);
failedHealthchecks = 0;
failedHealthChecks = 0;
setTimeout(startHealthCheck, 10000);
} catch (error) {
failedHealthchecks = failedHealthchecks + 1;
logger.error('Error sending health check to LAB', { error });
if (failedHealthchecks > 3) {
failedHealthChecks = failedHealthChecks + 1;
logger.error('Error sending health check to LAB', { error, failedHealthChecks });
if (failedHealthChecks > 3 && !process.env.SURVIVE_WITHOUT_LAB) {
logger.error('Health checks failed with LAB, bailing out.');

@@ -188,0 +188,0 @@ process.exit(1);

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc