(pnpm)(ts) update typescript

This commit is contained in:
Valentyne Stigloher 2024-06-27 12:19:35 +02:00
parent d44f4c429c
commit 7de7f2eaef
3 changed files with 272 additions and 190 deletions

View File

@ -115,8 +115,8 @@
"@types/speakeasy": "^2.0.10", "@types/speakeasy": "^2.0.10",
"@types/uuid": "8.3.2", "@types/uuid": "8.3.2",
"@types/webpack": "^4.41.38", "@types/webpack": "^4.41.38",
"@typescript-eslint/eslint-plugin": "^6.19.0", "@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^6.19.0", "@typescript-eslint/parser": "^7.14.1",
"@vue/test-utils": "^1.3.6", "@vue/test-utils": "^1.3.6",
"avris-daemonise": "^0.0.2", "avris-daemonise": "^0.0.2",
"axios": "^0.21.4", "axios": "^0.21.4",
@ -124,7 +124,7 @@
"clipboard": "^2.0.6", "clipboard": "^2.0.6",
"css-loader": "^5.2.7", "css-loader": "^5.2.7",
"csv-loader": "^3.0.3", "csv-loader": "^3.0.3",
"eslint": "^8.55.0", "eslint": "^8.56.0",
"eslint-formatter-gitlab": "^5.1.0", "eslint-formatter-gitlab": "^5.1.0",
"eslint-import-resolver-typescript": "^3.6.1", "eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.0", "eslint-plugin-import": "^2.29.0",
@ -152,9 +152,9 @@
"ts-jest": "^29.1.1", "ts-jest": "^29.1.1",
"ts-json-schema-generator": "^1.5.0", "ts-json-schema-generator": "^1.5.0",
"tsconfig-paths": "3.14.2", "tsconfig-paths": "3.14.2",
"typescript": "^5.3.3", "typescript": "^5.5.2",
"vue-meta": "^2.4.0", "vue-meta": "^2.4.0",
"vue-tsc": "^1.8.27", "vue-tsc": "^2.0.22",
"webpack": "^4.47.0", "webpack": "^4.47.0",
"yaml-loader": "^0.8.0" "yaml-loader": "^0.8.0"
}, },

448
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -57,13 +57,13 @@ router.get('/blog', handleErrorAsync(async (req, res) => {
try { try {
const classHeroImages = content.map((x) => x.match(/<img src="([^"]+)" class="hero/)).filter((x) => !!x); const classHeroImages = content.map((x) => x.match(/<img src="([^"]+)" class="hero/)).filter((x) => !!x);
if (classHeroImages.length) { if (classHeroImages.length) {
hero = classHeroImages[0]![1]; hero = classHeroImages[0][1];
throw 'continue'; throw 'continue';
} }
const images = content.map((x) => x.match(/^!\[[^\]]*]\(([^)]+)\)$/)).filter((x) => !!x); const images = content.map((x) => x.match(/^!\[[^\]]*]\(([^)]+)\)$/)).filter((x) => !!x);
if (images.length) { if (images.length) {
hero = images[0]![1]; hero = images[0][1];
} }
} catch { } catch {
} }