mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-03 01:50:18 -05:00
fix esm require: no ugly warnings
This commit is contained in:
parent
f4515ad8c5
commit
d0546afe71
@ -16,8 +16,7 @@ const { demoMode } = require("../config");
|
|||||||
const version = require("../../package.json").version;
|
const version = require("../../package.json").version;
|
||||||
const apicache = require("../modules/apicache");
|
const apicache = require("../modules/apicache");
|
||||||
|
|
||||||
require = require("esm")(module);
|
const axiosCachedDnsResolve = require("esm")(module)("axios-cached-dns-resolve");
|
||||||
const axiosCachedDnsResolve = require("axios-cached-dns-resolve");
|
|
||||||
|
|
||||||
// create an axios client instance with the cached DNS resolve interceptor
|
// create an axios client instance with the cached DNS resolve interceptor
|
||||||
const axiosClient = axios.create();
|
const axiosClient = axios.create();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user