Removed where I was wrong about imports

pull/4820/head
Frank Elsinga 6 months ago committed by GitHub
parent d74facded6
commit b6cd21c71a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -4,7 +4,7 @@ const dayjs = require("dayjs");
const { dnsResolve } = require("../util-server"); const { dnsResolve } = require("../util-server");
const { R } = require("redbean-node"); const { R } = require("redbean-node");
export class DnsMonitorType extends MonitorType { class DnsMonitorType extends MonitorType {
name = "dns"; name = "dns";
/** /**
@ -49,3 +49,7 @@ export class DnsMonitorType extends MonitorType {
heartbeat.status = UP; heartbeat.status = UP;
} }
} }
module.exports = {
DnsMonitorType,
};

@ -3,7 +3,7 @@ const { UP } = require("../../src/util");
const { MongoClient } = require("mongodb"); const { MongoClient } = require("mongodb");
const jsonata = require("jsonata"); const jsonata = require("jsonata");
export class MongodbMonitorType extends MonitorType { class MongodbMonitorType extends MonitorType {
name = "mongodb"; name = "mongodb";
/** /**
@ -57,3 +57,7 @@ export class MongodbMonitorType extends MonitorType {
return result; return result;
} }
} }
module.exports = {
MongodbMonitorType,
};

@ -1,4 +1,4 @@
export class MonitorType { class MonitorType {
name = undefined; name = undefined;
/** /**
@ -12,3 +12,7 @@ export class MonitorType {
throw new Error("You need to override check()"); throw new Error("You need to override check()");
} }
} }
module.exports = {
MonitorType,
};

@ -3,7 +3,7 @@ const { log, UP } = require("../../src/util");
const mqtt = require("mqtt"); const mqtt = require("mqtt");
const jsonata = require("jsonata"); const jsonata = require("jsonata");
export class MqttMonitorType extends MonitorType { class MqttMonitorType extends MonitorType {
name = "mqtt"; name = "mqtt";
/** /**

@ -228,7 +228,8 @@ async function testRemoteBrowser(remoteBrowserURL) {
throw new Error(e.message); throw new Error(e.message);
} }
} }
export class RealBrowserMonitorType extends MonitorType { class RealBrowserMonitorType extends MonitorType {
name = "real-browser"; name = "real-browser";
/** /**
@ -265,6 +266,7 @@ export class RealBrowserMonitorType extends MonitorType {
} }
module.exports = { module.exports = {
RealBrowserMonitorType,
testChrome, testChrome,
resetChrome, resetChrome,
testRemoteBrowser, testRemoteBrowser,

@ -2,7 +2,7 @@ const { MonitorType } = require("./monitor-type");
const { UP } = require("../../src/util"); const { UP } = require("../../src/util");
const childProcessAsync = require("promisify-child-process"); const childProcessAsync = require("promisify-child-process");
export class TailscalePing extends MonitorType { class TailscalePing extends MonitorType {
name = "tailscale-ping"; name = "tailscale-ping";
/** /**
@ -71,3 +71,7 @@ export class TailscalePing extends MonitorType {
} }
} }
} }
module.exports = {
TailscalePing,
};

Loading…
Cancel
Save