tileserver-gl 5.6.0-pre.1 → 5.6.0-pre.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/CHANGELOG.md +2 -1
- package/package.json +4 -4
- package/src/utils.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,12 +7,13 @@
|
|
|
7
7
|
### 🐞 Bug fixes
|
|
8
8
|
- _...Add new stuff here..._
|
|
9
9
|
|
|
10
|
-
## 5.6.0-pre.
|
|
10
|
+
## 5.6.0-pre.2
|
|
11
11
|
### ✨ Features and improvements
|
|
12
12
|
- feat: Add ignore-missing-files cli option to avoid crashing at startup ([#1896](https://github.com/maptiler/tileserver-gl/pull/1896)) (by [andrewlaguna824](https://github.com/andrewlaguna824))
|
|
13
13
|
|
|
14
14
|
### 🐞 Bug fixes
|
|
15
15
|
- fix: correctly handle public url in tileJSON response ([#1963](https://github.com/maptiler/tileserver-gl/pull/1963)) (by [andrewlaguna824](https://github.com/andrewlaguna824))
|
|
16
|
+
- Fix regex to allow underscore in font name ([#1986](https://github.com/maptiler/tileserver-gl/pull/1986)) (by [spatialillusions](https://github.com/spatialillusions))
|
|
16
17
|
|
|
17
18
|
## 5.5.0
|
|
18
19
|
- Add S3 support for PMTiles with multiple AWS credential profiles (https://github.com/maptiler/tileserver-gl/pull/1779) by @acalcutt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tileserver-gl",
|
|
3
|
-
"version": "5.6.0-pre.
|
|
3
|
+
"version": "5.6.0-pre.2",
|
|
4
4
|
"description": "Map tile server for JSON GL styles - vector and server side generated raster tiles",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"bin": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"docker": "docker build . && docker run --rm -i -p 8080:8080 $(docker build -q .)"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@aws-sdk/client-s3": "^3.
|
|
40
|
+
"@aws-sdk/client-s3": "^3.981.0",
|
|
41
41
|
"@jsse/pbfont": "^0.3.2",
|
|
42
42
|
"@mapbox/mapbox-gl-rtl-text": "0.3.0",
|
|
43
43
|
"@mapbox/mbtiles": "0.12.1",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"tileserver-gl-styles": "2.0.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@commitlint/cli": "^20.4.
|
|
76
|
-
"@commitlint/config-conventional": "^20.4.
|
|
75
|
+
"@commitlint/cli": "^20.4.1",
|
|
76
|
+
"@commitlint/config-conventional": "^20.4.1",
|
|
77
77
|
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
78
78
|
"@typescript-eslint/parser": "^8.53.1",
|
|
79
79
|
"chai": "6.2.2",
|
package/src/utils.js
CHANGED
|
@@ -276,7 +276,7 @@ export function readFile(filename) {
|
|
|
276
276
|
async function getFontPbf(allowedFonts, fontPath, name, range, fallbacks) {
|
|
277
277
|
// eslint-disable-next-line security/detect-object-injection -- name is validated font name from sanitizedName check
|
|
278
278
|
if (!allowedFonts || (allowedFonts[name] && fallbacks)) {
|
|
279
|
-
const fontMatch = name?.match(/^[\p{L}\p{N}
|
|
279
|
+
const fontMatch = name?.match(/^[\p{L}\p{N} \-_.~!*'()@&=+,#$[\]]+$/u);
|
|
280
280
|
const sanitizedName = fontMatch?.[0] || 'invalid';
|
|
281
281
|
if (!name || typeof name !== 'string' || name.trim() === '' || !fontMatch) {
|
|
282
282
|
console.error(
|