fix: change to const

Signed-off-by: acalcutt <acalcutt@techidiots.net>
This commit is contained in:
acalcutt 2023-04-02 22:46:12 -04:00 committed by Andrew Calcutt
parent a3e68c7698
commit 31f0c5632e

View file

@ -19,7 +19,7 @@ import request from 'request';
import { getFontsPbf, getTileUrls, fixTileJSONCenter } from './utils.js'; import { getFontsPbf, getTileUrls, fixTileJSONCenter } from './utils.js';
import Os from 'os' import Os from 'os'
var ostype = (Os.platform() == 'win32') ? "windows":"unix"; const ostype = (Os.platform() == 'win32') ? "windows":"unix";
const { sharp, createCanvas, Image } = await import(`./render_import_${ostype}.js`); const { sharp, createCanvas, Image } = await import(`./render_import_${ostype}.js`);
const FLOAT_PATTERN = '[+-]?(?:\\d+|\\d+.?\\d+)'; const FLOAT_PATTERN = '[+-]?(?:\\d+|\\d+.?\\d+)';