tileblaster 1.1.0 → 1.1.1
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/builtins/check.js +1 -1
- package/builtins/parse.js +2 -0
- package/package.json +2 -2
package/builtins/check.js
CHANGED
|
@@ -123,7 +123,7 @@ module.exports = function({ req, res, opts, data }, next, skip){
|
|
|
123
123
|
if (opts.extensions.length > 0 && !opts.extensions.includes(data.req.params.e) && !opts.extensions.includes(data.req.params.f)) return abort(new Error("illegal extension."));
|
|
124
124
|
|
|
125
125
|
// check density
|
|
126
|
-
if (opts.density && !opts.density.includes(data.req.params.d) && !opts.density.includes(data.req.params.r)) return abort(new Error("illegal density marker."));
|
|
126
|
+
if (opts.density && !opts.density.includes(data.req.params.d) && !opts.density.includes(data.req.params.r||null)) return abort(new Error("illegal density marker."));
|
|
127
127
|
|
|
128
128
|
// all passed
|
|
129
129
|
next();
|
package/builtins/parse.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tileblaster",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "a quick and versatile map tile caching proxy",
|
|
5
5
|
"main": "tileblaster.js",
|
|
6
6
|
"bin": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"node-liblzma": "^1.1.9",
|
|
37
37
|
"optipng-js": "^0.1.2",
|
|
38
38
|
"pmtiles": "^2.11.0",
|
|
39
|
-
"sharp": "^0.
|
|
39
|
+
"sharp": "^0.34.1",
|
|
40
40
|
"versatiles": "^0.3.1",
|
|
41
41
|
"vtt": "^0.0.3"
|
|
42
42
|
},
|