Removed where I was wrong about imports

This commit is contained in:
Frank Elsinga 2024-06-07 15:54:28 +02:00 committed by GitHub
parent d74facded6
commit b6cd21c71a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 24 additions and 6 deletions

View file

@ -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,
};

View file

@ -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,
};

View file

@ -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,
};

View file

@ -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";
/** /**

View file

@ -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,

View file

@ -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,
};