diff --git a/src/utils.js b/src/utils.js index 8eeb123..64a24e3 100644 --- a/src/utils.js +++ b/src/utils.js @@ -22,9 +22,9 @@ function tileToLat(tileY, zoom) { return (180.0 / Math.PI) * Math.atan(0.5 * (Math.exp(n) - Math.exp(-n))); } -module.exports.getPublicUrl = (publicUrl, req) => publicUrl || `${req.protocol}://${req.headers.host}/`; +export const getPublicUrl = (publicUrl, req) => publicUrl || `${req.protocol}://${req.headers.host}/`; -module.exports.getTileUrls = (req, domains, path, format, publicUrl, aliases) => { +export const getTileUrls = (req, domains, path, format, publicUrl, aliases) => { if (domains) { if (domains.constructor === String && domains.length > 0) {