Updated libraries and minor typing fix.

This commit is contained in:
flash 2019-04-08 21:11:21 +02:00
parent 2510e580e0
commit 173a538200
5 changed files with 13 additions and 20 deletions

View file

@ -1,6 +1,6 @@
interface UrlRegistryVariable { interface UrlRegistryVariable {
name: string; name: string;
value: string; value: string | number;
} }
interface UrlRegistryEntryQuery { interface UrlRegistryEntryQuery {
@ -76,7 +76,7 @@ function urlVariable(value: string, vars: UrlRegistryVariable[]): string
{ {
if (value[0] === '<' && value.slice(-1) === '>') { if (value[0] === '<' && value.slice(-1) === '>') {
const urvar: UrlRegistryVariable = vars.find(x => x.name == value.slice(1, -1)); const urvar: UrlRegistryVariable = vars.find(x => x.name == value.slice(1, -1));
return urvar ? urvar.value : ''; return urvar ? urvar.value.toString() : '';
} }
if (value[0] === '[' && value.slice(-1) === ']') { if (value[0] === '[' && value.slice(-1) === ']') {

View file

@ -10,7 +10,7 @@
"php": "^7.2", "php": "^7.2",
"ext-bcmath": "*", "ext-bcmath": "*",
"ext-mbstring": "*", "ext-mbstring": "*",
"twig/twig": "~2.4", "twig/twig": "^2.0",
"swiftmailer/swiftmailer": "~6.0", "swiftmailer/swiftmailer": "~6.0",
"erusev/parsedown": "~1.6", "erusev/parsedown": "~1.6",
"geoip2/geoip2": "~2.0", "geoip2/geoip2": "~2.0",

10
composer.lock generated
View file

@ -397,16 +397,16 @@
}, },
{ {
"name": "erusev/parsedown", "name": "erusev/parsedown",
"version": "v1.7.2", "version": "1.7.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/erusev/parsedown.git", "url": "https://github.com/erusev/parsedown.git",
"reference": "d60bcdc46978357759ecb13cb4b078da783f8faf" "reference": "6d893938171a817f4e9bc9e86f2da1e370b7bcd7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/erusev/parsedown/zipball/d60bcdc46978357759ecb13cb4b078da783f8faf", "url": "https://api.github.com/repos/erusev/parsedown/zipball/6d893938171a817f4e9bc9e86f2da1e370b7bcd7",
"reference": "d60bcdc46978357759ecb13cb4b078da783f8faf", "reference": "6d893938171a817f4e9bc9e86f2da1e370b7bcd7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -439,7 +439,7 @@
"markdown", "markdown",
"parser" "parser"
], ],
"time": "2019-03-17T17:19:46+00:00" "time": "2019-03-17T18:48:37+00:00"
}, },
{ {
"name": "filp/whoops", "name": "filp/whoops",

View file

@ -2,6 +2,6 @@
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free": "^5.3.1", "@fortawesome/fontawesome-free": "^5.3.1",
"highlightjs": "^9.10.0", "highlightjs": "^9.10.0",
"timeago.js": "^3.0.2" "timeago.js": "^4.0.0-beta.2"
} }
} }

View file

@ -7,19 +7,12 @@
resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-free/-/fontawesome-free-5.8.1.tgz#cbafbfe8894c4e3e3c3a9da6774e249ac1f2da8b" resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-free/-/fontawesome-free-5.8.1.tgz#cbafbfe8894c4e3e3c3a9da6774e249ac1f2da8b"
integrity sha512-GJtx6e55qLEOy2gPOsok2lohjpdWNGrYGtQx0FFT/++K4SYx+Z8LlPHdQBaFzKEwH5IbBB4fNgb//uyZjgYXoA== integrity sha512-GJtx6e55qLEOy2gPOsok2lohjpdWNGrYGtQx0FFT/++K4SYx+Z8LlPHdQBaFzKEwH5IbBB4fNgb//uyZjgYXoA==
"@types/jquery@^2.0.40":
version "2.0.53"
resolved "https://registry.yarnpkg.com/@types/jquery/-/jquery-2.0.53.tgz#89c53bc83d820e50c3b667ae2fdf4276df8b3aba"
integrity sha512-MZKPWUhp5TKkoJ/58NSq6io+CSUCOHm2b3Z6U4+r9v70kktB0JM+eRjdp6YmDHtw0kK2XB7L2K7/FMIoziHjUA==
highlightjs@^9.10.0: highlightjs@^9.10.0:
version "9.12.0" version "9.12.0"
resolved "https://registry.yarnpkg.com/highlightjs/-/highlightjs-9.12.0.tgz#9b84eb42a7aa8488eb69ac79fec44cf495bf72a1" resolved "https://registry.yarnpkg.com/highlightjs/-/highlightjs-9.12.0.tgz#9b84eb42a7aa8488eb69ac79fec44cf495bf72a1"
integrity sha512-eAhWMtDZaOZIQdxIP4UEB1vNp/CVXQPdMSihTSuaExhFIRC0BVpXbtP3mTP1hDoGOyh7nbB3cuC3sOPhG5wGDA== integrity sha512-eAhWMtDZaOZIQdxIP4UEB1vNp/CVXQPdMSihTSuaExhFIRC0BVpXbtP3mTP1hDoGOyh7nbB3cuC3sOPhG5wGDA==
timeago.js@^3.0.2: timeago.js@^4.0.0-beta.2:
version "3.0.2" version "4.0.0-beta.2"
resolved "https://registry.yarnpkg.com/timeago.js/-/timeago.js-3.0.2.tgz#32a67e7c0d887ea42ca588d3aae26f77de5e76cc" resolved "https://registry.yarnpkg.com/timeago.js/-/timeago.js-4.0.0-beta.2.tgz#4e50a7250626b67e168a934d5e15052119366db1"
integrity sha1-MqZ+fA2IfqQspYjTquJvd95edsw= integrity sha512-MQkHiYGoB6qZC4DNWsLc9bav+L9hpdulL6sL7okzKR8r1Ipask/tXKAio8T+4jeby8FbpbDvbnCKGrh1bLop3g==
dependencies:
"@types/jquery" "^2.0.40"