diff --git a/package-lock.json b/package-lock.json index 169f90b61..bde3c5ccf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ "command-exists": "~1.2.9", "compare-versions": "~3.6.0", "dayjs": "~1.10.8", - "esm": "^3.2.25", + "esm-wallaby": "^3.2.26", "express": "~4.17.3", "express-basic-auth": "~1.2.1", "favico.js": "^0.3.10", @@ -7464,6 +7464,14 @@ "node": ">=6" } }, + "node_modules/esm-wallaby": { + "version": "3.2.26", + "resolved": "https://registry.npmjs.org/esm-wallaby/-/esm-wallaby-3.2.26.tgz", + "integrity": "sha512-DtbO0pdJj7kv/abkQ1BjIpk/Rm6vy9ueGcsXuQT7jH6qw6RQby/i/qeVyIcf2pbpAT5UW8PN+dL2YZakTw+URA==", + "engines": { + "node": ">=6" + } + }, "node_modules/espree": { "version": "9.3.1", "resolved": "https://registry.npmjs.org/espree/-/espree-9.3.1.tgz", @@ -23826,6 +23834,11 @@ "resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz", "integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==" }, + "esm-wallaby": { + "version": "3.2.26", + "resolved": "https://registry.npmjs.org/esm-wallaby/-/esm-wallaby-3.2.26.tgz", + "integrity": "sha512-DtbO0pdJj7kv/abkQ1BjIpk/Rm6vy9ueGcsXuQT7jH6qw6RQby/i/qeVyIcf2pbpAT5UW8PN+dL2YZakTw+URA==" + }, "espree": { "version": "9.3.1", "resolved": "https://registry.npmjs.org/espree/-/espree-9.3.1.tgz", diff --git a/package.json b/package.json index be44e0277..d5162c764 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "command-exists": "~1.2.9", "compare-versions": "~3.6.0", "dayjs": "~1.10.8", - "esm": "^3.2.25", + "esm-wallaby": "^3.2.26", "express": "~4.17.3", "express-basic-auth": "~1.2.1", "favico.js": "^0.3.10", @@ -155,4 +155,4 @@ "vite": "~2.6.14", "wait-on": "^6.0.1" } -} +} \ No newline at end of file diff --git a/server/model/monitor.js b/server/model/monitor.js index de60ec9c0..df7927d01 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -16,7 +16,7 @@ const { demoMode } = require("../config"); const version = require("../../package.json").version; const apicache = require("../modules/apicache"); -const axiosCachedDnsResolve = require("esm")(module)("axios-cached-dns-resolve"); +const axiosCachedDnsResolve = require("esm-wallaby")(module)("axios-cached-dns-resolve"); // create an axios client instance with the cached DNS resolve interceptor const axiosClient = axios.create();