tileserver-gl-light 4.6.1 → 4.6.3
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/.github/workflows/ci.yml
CHANGED
package/.github/workflows/ct.yml
CHANGED
|
@@ -31,7 +31,7 @@ jobs:
|
|
|
31
31
|
libxxf86vm-dev
|
|
32
32
|
|
|
33
33
|
- name: Setup node env 📦
|
|
34
|
-
uses: actions/setup-node@
|
|
34
|
+
uses: actions/setup-node@v4
|
|
35
35
|
with:
|
|
36
36
|
node-version-file: 'package.json'
|
|
37
37
|
check-latest: true
|
|
@@ -52,15 +52,15 @@ jobs:
|
|
|
52
52
|
run: xvfb-run --server-args="-screen 0 1024x768x24" npm test
|
|
53
53
|
|
|
54
54
|
- name: Set up QEMU
|
|
55
|
-
uses: docker/setup-qemu-action@
|
|
55
|
+
uses: docker/setup-qemu-action@v3
|
|
56
56
|
with:
|
|
57
57
|
platforms: 'arm64'
|
|
58
58
|
|
|
59
59
|
- name: Set up Docker Buildx
|
|
60
|
-
uses: docker/setup-buildx-action@
|
|
60
|
+
uses: docker/setup-buildx-action@v3
|
|
61
61
|
|
|
62
62
|
- name: Test Docker Build
|
|
63
|
-
uses: docker/build-push-action@
|
|
63
|
+
uses: docker/build-push-action@v5
|
|
64
64
|
with:
|
|
65
65
|
context: .
|
|
66
66
|
push: false
|
|
@@ -31,7 +31,7 @@ jobs:
|
|
|
31
31
|
libxxf86vm-dev
|
|
32
32
|
|
|
33
33
|
- name: Setup node env 📦
|
|
34
|
-
uses: actions/setup-node@
|
|
34
|
+
uses: actions/setup-node@v4
|
|
35
35
|
with:
|
|
36
36
|
node-version-file: 'package.json'
|
|
37
37
|
check-latest: true
|
|
@@ -66,12 +66,12 @@ jobs:
|
|
|
66
66
|
echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | head -n 1)" >> $GITHUB_ENV
|
|
67
67
|
|
|
68
68
|
- name: Set up QEMU
|
|
69
|
-
uses: docker/setup-qemu-action@
|
|
69
|
+
uses: docker/setup-qemu-action@v3
|
|
70
70
|
with:
|
|
71
71
|
platforms: 'arm64'
|
|
72
72
|
|
|
73
73
|
- name: Set up Docker Buildx
|
|
74
|
-
uses: docker/setup-buildx-action@
|
|
74
|
+
uses: docker/setup-buildx-action@v3
|
|
75
75
|
|
|
76
76
|
- name: Login to DockerHub
|
|
77
77
|
uses: docker/login-action@v2
|
|
@@ -80,7 +80,7 @@ jobs:
|
|
|
80
80
|
password: ${{ github.event.inputs.docker_token }}
|
|
81
81
|
|
|
82
82
|
- name: Build and publish Full Version to Docker Hub
|
|
83
|
-
uses: docker/build-push-action@
|
|
83
|
+
uses: docker/build-push-action@v5
|
|
84
84
|
with:
|
|
85
85
|
context: .
|
|
86
86
|
push: true
|
|
@@ -106,7 +106,7 @@ jobs:
|
|
|
106
106
|
NPM_TOKEN: ${{ github.event.inputs.npm_token }}
|
|
107
107
|
|
|
108
108
|
- name: Build and publish Light Version to Docker Hub
|
|
109
|
-
uses: docker/build-push-action@
|
|
109
|
+
uses: docker/build-push-action@v5
|
|
110
110
|
with:
|
|
111
111
|
context: ./light
|
|
112
112
|
file: ./light/Dockerfile
|
package/Dockerfile
CHANGED
|
@@ -12,10 +12,13 @@ RUN set -ex; \
|
|
|
12
12
|
apt-get -qq update; \
|
|
13
13
|
apt-get -y --no-install-recommends install \
|
|
14
14
|
ca-certificates \
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
curl \
|
|
16
|
+
gnupg; \
|
|
17
|
+
mkdir -p /etc/apt/keyrings; \
|
|
18
|
+
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg; \
|
|
19
|
+
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list; \
|
|
20
|
+
apt-get -qq update; \
|
|
21
|
+
apt-get -y remove curl gnupg; \
|
|
19
22
|
apt-get -y --purge autoremove; \
|
|
20
23
|
apt-get clean; \
|
|
21
24
|
rm -rf /var/lib/apt/lists/*;
|
|
@@ -33,7 +36,7 @@ WORKDIR /data
|
|
|
33
36
|
COPY / /usr/src/app
|
|
34
37
|
|
|
35
38
|
RUN cd /usr/src/app; \
|
|
36
|
-
npm install --omit=dev; \
|
|
39
|
+
npm install --omit=dev --maxsockets 1; \
|
|
37
40
|
chown -R root:root /usr/src/app; \
|
|
38
41
|
chmod +x /usr/src/app/docker-entrypoint.sh;
|
|
39
42
|
|
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) {
|