tileserver-gl-light 4.6.1 → 4.6.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/package.json +1 -1
- package/src/serve_rendered.js +1 -1
- package/src/serve_style.js +1 -1
package/package.json
CHANGED
package/src/serve_rendered.js
CHANGED
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
const FLOAT_PATTERN = '[+-]?(?:\\d+|\\d+.?\\d+)';
|
|
34
34
|
const PATH_PATTERN =
|
|
35
35
|
/^((fill|stroke|width)\:[^\|]+\|)*(enc:.+|-?\d+(\.\d*)?,-?\d+(\.\d*)?(\|-?\d+(\.\d*)?,-?\d+(\.\d*)?)+)/;
|
|
36
|
-
const httpTester =
|
|
36
|
+
const httpTester = /^(http(s)?:)?\/\//;
|
|
37
37
|
|
|
38
38
|
const mercator = new SphericalMercator();
|
|
39
39
|
const getScale = (scale) => (scale || '@1x').slice(1, 2) | 0;
|
package/src/serve_style.js
CHANGED
|
@@ -9,7 +9,7 @@ import { validate } from '@maplibre/maplibre-gl-style-spec';
|
|
|
9
9
|
|
|
10
10
|
import { getPublicUrl } from './utils.js';
|
|
11
11
|
|
|
12
|
-
const httpTester =
|
|
12
|
+
const httpTester = /^(http(s)?:)?\/\//;
|
|
13
13
|
|
|
14
14
|
const fixUrl = (req, url, publicUrl, opt_nokey) => {
|
|
15
15
|
if (!url || typeof url !== 'string' || url.indexOf('local://') !== 0) {
|