Skip to content

Commit

Permalink
Removed where I was wrong about imports
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm authored Jun 7, 2024
1 parent d74facd commit b6cd21c
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 6 deletions.
6 changes: 5 additions & 1 deletion server/monitor-types/dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const dayjs = require("dayjs");
const { dnsResolve } = require("../util-server");
const { R } = require("redbean-node");

export class DnsMonitorType extends MonitorType {
class DnsMonitorType extends MonitorType {
name = "dns";

/**
Expand Down Expand Up @@ -49,3 +49,7 @@ export class DnsMonitorType extends MonitorType {
heartbeat.status = UP;
}
}

module.exports = {
DnsMonitorType,
};
6 changes: 5 additions & 1 deletion server/monitor-types/mongodb.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { UP } = require("../../src/util");
const { MongoClient } = require("mongodb");
const jsonata = require("jsonata");

export class MongodbMonitorType extends MonitorType {
class MongodbMonitorType extends MonitorType {
name = "mongodb";

/**
Expand Down Expand Up @@ -57,3 +57,7 @@ export class MongodbMonitorType extends MonitorType {
return result;
}
}

module.exports = {
MongodbMonitorType,
};
6 changes: 5 additions & 1 deletion server/monitor-types/monitor-type.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export class MonitorType {
class MonitorType {
name = undefined;

/**
Expand All @@ -12,3 +12,7 @@ export class MonitorType {
throw new Error("You need to override check()");
}
}

module.exports = {
MonitorType,
};
2 changes: 1 addition & 1 deletion server/monitor-types/mqtt.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { log, UP } = require("../../src/util");
const mqtt = require("mqtt");
const jsonata = require("jsonata");

export class MqttMonitorType extends MonitorType {
class MqttMonitorType extends MonitorType {
name = "mqtt";

/**
Expand Down
4 changes: 3 additions & 1 deletion server/monitor-types/real-browser-monitor-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ async function testRemoteBrowser(remoteBrowserURL) {
throw new Error(e.message);
}
}
export class RealBrowserMonitorType extends MonitorType {
class RealBrowserMonitorType extends MonitorType {

name = "real-browser";

/**
Expand Down Expand Up @@ -265,6 +266,7 @@ export class RealBrowserMonitorType extends MonitorType {
}

module.exports = {
RealBrowserMonitorType,
testChrome,
resetChrome,
testRemoteBrowser,
Expand Down
6 changes: 5 additions & 1 deletion server/monitor-types/tailscale-ping.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { MonitorType } = require("./monitor-type");
const { UP } = require("../../src/util");
const childProcessAsync = require("promisify-child-process");

export class TailscalePing extends MonitorType {
class TailscalePing extends MonitorType {
name = "tailscale-ping";

/**
Expand Down Expand Up @@ -71,3 +71,7 @@ export class TailscalePing extends MonitorType {
}
}
}

module.exports = {
TailscalePing,
};

0 comments on commit b6cd21c

Please sign in to comment.