update glyph-pbf-composite

glyph-pbf-composite v0.0.2 were released without license
as license were added in v0.0.3 it nice to be updated to licensed software version
This commit is contained in:
Paveł Tyślacki 2020-02-14 18:23:11 +03:00
parent f2dc13e298
commit 8f77be3037
2 changed files with 2 additions and 2 deletions

View file

@ -17,6 +17,7 @@
"docker": "docker build -f Dockerfile . && docker run --rm -i -p 8080:80 $(docker build -q .)" "docker": "docker build -f Dockerfile . && docker run --rm -i -p 8080:80 $(docker build -q .)"
}, },
"dependencies": { "dependencies": {
"@mapbox/glyph-pbf-composite": "0.0.3",
"@mapbox/mapbox-gl-native": "5.0.2", "@mapbox/mapbox-gl-native": "5.0.2",
"@mapbox/mapbox-gl-style-spec": "13.9.1", "@mapbox/mapbox-gl-style-spec": "13.9.1",
"@mapbox/mbtiles": "0.11.0", "@mapbox/mbtiles": "0.11.0",
@ -31,7 +32,6 @@
"cors": "2.8.5", "cors": "2.8.5",
"esm": "3.2.25", "esm": "3.2.25",
"express": "4.17.1", "express": "4.17.1",
"glyph-pbf-composite": "0.0.2",
"handlebars": "4.5.3", "handlebars": "4.5.3",
"http-shutdown": "1.2.1", "http-shutdown": "1.2.1",
"morgan": "1.9.1", "morgan": "1.9.1",

View file

@ -4,7 +4,7 @@ const path = require('path');
const fs = require('fs'); const fs = require('fs');
const clone = require('clone'); const clone = require('clone');
const glyphCompose = require('glyph-pbf-composite'); const glyphCompose = require('@mapbox/glyph-pbf-composite');
module.exports.getPublicUrl = (publicUrl, req) => publicUrl || `${req.protocol}://${req.headers.host}/`; module.exports.getPublicUrl = (publicUrl, req) => publicUrl || `${req.protocol}://${req.headers.host}/`;