@mapwhit/tileserver 3.7.0 → 3.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/server.js CHANGED
@@ -23,7 +23,7 @@ function makeServer(config, callback = () => {}) {
23
23
  timings(req, res, next);
24
24
  });
25
25
  if (cacheControl) {
26
- app.use(function (req, res, next) {
26
+ app.use(function (_req, res, next) {
27
27
  res.setHeader('Cache-Control', cacheControl);
28
28
  next();
29
29
  });
package/lib/tiles.js CHANGED
@@ -21,6 +21,7 @@ function serveData(mountPath, options, item) {
21
21
 
22
22
  const filename = resolveFilename(options.paths.mbtiles, item.mbtiles);
23
23
  const source = new mbtiles(filename);
24
+ // biome-ignore lint/correctness/noUnusedVariables: strip listed properties
24
25
  const { filesize, mtime, scheme, tilejson, ...info } = source.getInfo();
25
26
  Object.assign(tileJSON, info, item.tilejson);
26
27
  fixTileJSONCenter(tileJSON);
@@ -32,7 +33,7 @@ function serveData(mountPath, options, item) {
32
33
  router.get('/{.json}', sendData);
33
34
  return { router, createTileJSON };
34
35
 
35
- function checkParams(req, res, next) {
36
+ function checkParams(req, _res, next) {
36
37
  const z = req.params.z | 0;
37
38
  const x = req.params.x | 0;
38
39
  const y = req.params.y | 0;
@@ -108,10 +109,6 @@ function resolveFilename(dir, name) {
108
109
  return filename;
109
110
  }
110
111
 
111
- function isGzipped(data) {
112
- return data[0] === 0x1f && data[1] === 0x8b;
113
- }
114
-
115
112
  function initZoomRanges(min, max) {
116
113
  const ranges = [];
117
114
  let value = 2 ** min;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapwhit/tileserver",
3
- "version": "3.7.0",
3
+ "version": "3.7.2",
4
4
  "description": "Map tile server for JSON GL styles - serving vector tiles",
5
5
  "bin": {
6
6
  "tileserver": "bin/tileserver",
@@ -28,7 +28,7 @@
28
28
  "server-timings": "~2"
29
29
  },
30
30
  "devDependencies": {
31
- "@biomejs/biome": "^1.9.4"
31
+ "@biomejs/biome": "2.1.2"
32
32
  },
33
33
  "files": [
34
34
  "index.js",