chore(deps): Update dependencies 🚀

This commit is contained in:
syuilo 2020-06-27 23:25:06 +09:00
parent 3f78f6f6bb
commit 3599f16d22
8 changed files with 673 additions and 566 deletions

View file

@ -1 +1 @@
v12.11.1 v14.4.0

View file

@ -1,4 +1,4 @@
FROM node:14.2.0-alpine AS base FROM node:14.4.0-alpine AS base
ENV NODE_ENV=production ENV NODE_ENV=production

View file

@ -35,31 +35,31 @@
"mocha": "^7.1.1" "mocha": "^7.1.1"
}, },
"dependencies": { "dependencies": {
"@babel/plugin-transform-runtime": "7.9.6", "@babel/plugin-transform-runtime": "7.10.3",
"@elastic/elasticsearch": "7.7.1", "@elastic/elasticsearch": "7.8.0",
"@fortawesome/fontawesome-svg-core": "1.2.28", "@fortawesome/fontawesome-svg-core": "1.2.29",
"@fortawesome/free-brands-svg-icons": "5.13.0", "@fortawesome/free-brands-svg-icons": "5.13.1",
"@fortawesome/free-regular-svg-icons": "5.13.0", "@fortawesome/free-regular-svg-icons": "5.13.1",
"@fortawesome/free-solid-svg-icons": "5.13.0", "@fortawesome/free-solid-svg-icons": "5.13.1",
"@fortawesome/vue-fontawesome": "0.1.9", "@fortawesome/vue-fontawesome": "0.1.10",
"@juggle/resize-observer": "3.1.3", "@juggle/resize-observer": "3.2.0",
"@koa/cors": "3.1.0", "@koa/cors": "3.1.0",
"@koa/multer": "2.0.2", "@koa/multer": "3.0.0",
"@koa/router": "8.0.8", "@koa/router": "9.0.1",
"@sinonjs/fake-timers": "6.0.1", "@sinonjs/fake-timers": "6.0.1",
"@syuilo/aiscript": "0.6.1", "@syuilo/aiscript": "0.7.0",
"@types/bcryptjs": "2.4.2", "@types/bcryptjs": "2.4.2",
"@types/bull": "3.13.0", "@types/bull": "3.14.0",
"@types/cbor": "5.0.0", "@types/cbor": "5.0.0",
"@types/dateformat": "3.0.1", "@types/dateformat": "3.0.1",
"@types/double-ended-queue": "2.1.1", "@types/double-ended-queue": "2.1.1",
"@types/escape-regexp": "0.0.0", "@types/escape-regexp": "0.0.0",
"@types/glob": "7.1.1", "@types/glob": "7.1.2",
"@types/gulp": "4.0.6", "@types/gulp": "4.0.6",
"@types/gulp-rename": "0.0.33", "@types/gulp-rename": "0.0.33",
"@types/gulp-replace": "0.0.31", "@types/gulp-replace": "0.0.31",
"@types/is-url": "1.2.28", "@types/is-url": "1.2.28",
"@types/js-yaml": "3.12.4", "@types/js-yaml": "3.12.5",
"@types/jsdom": "16.2.3", "@types/jsdom": "16.2.3",
"@types/jsonld": "1.5.1", "@types/jsonld": "1.5.1",
"@types/katex": "0.11.0", "@types/katex": "0.11.0",
@ -76,7 +76,7 @@
"@types/koa__router": "8.0.2", "@types/koa__router": "8.0.2",
"@types/markdown-it": "10.0.1", "@types/markdown-it": "10.0.1",
"@types/mocha": "7.0.2", "@types/mocha": "7.0.2",
"@types/node": "14.0.5", "@types/node": "14.0.14",
"@types/node-fetch": "2.5.7", "@types/node-fetch": "2.5.7",
"@types/nodemailer": "6.4.0", "@types/nodemailer": "6.4.0",
"@types/nprogress": "0.2.0", "@types/nprogress": "0.2.0",
@ -88,7 +88,7 @@
"@types/qrcode": "1.3.4", "@types/qrcode": "1.3.4",
"@types/random-seed": "0.3.3", "@types/random-seed": "0.3.3",
"@types/ratelimiter": "2.1.28", "@types/ratelimiter": "2.1.28",
"@types/redis": "2.8.21", "@types/redis": "2.8.22",
"@types/rename": "1.0.1", "@types/rename": "1.0.1",
"@types/request-stats": "3.0.0", "@types/request-stats": "3.0.0",
"@types/rimraf": "3.0.0", "@types/rimraf": "3.0.0",
@ -100,41 +100,41 @@
"@types/tmp": "0.2.0", "@types/tmp": "0.2.0",
"@types/uuid": "8.0.0", "@types/uuid": "8.0.0",
"@types/web-push": "3.3.0", "@types/web-push": "3.3.0",
"@types/webpack": "4.41.13", "@types/webpack": "4.41.18",
"@types/webpack-stream": "3.2.11", "@types/webpack-stream": "3.2.11",
"@types/websocket": "1.0.0", "@types/websocket": "1.0.0",
"@types/ws": "7.2.4", "@types/ws": "7.2.5",
"@typescript-eslint/parser": "2.33.0", "@typescript-eslint/parser": "3.4.0",
"abort-controller": "3.0.0", "abort-controller": "3.0.0",
"apexcharts": "3.19.2", "apexcharts": "3.19.3",
"autobind-decorator": "2.4.0", "autobind-decorator": "2.4.0",
"autosize": "4.0.2", "autosize": "4.0.2",
"autwh": "0.1.0", "autwh": "0.1.0",
"aws-sdk": "2.683.0", "aws-sdk": "2.706.0",
"bcryptjs": "2.4.3", "bcryptjs": "2.4.3",
"bull": "3.14.0", "bull": "3.14.0",
"cafy": "15.2.1", "cafy": "15.2.1",
"cbor": "5.0.2", "cbor": "5.0.2",
"chalk": "4.0.0", "chalk": "4.1.0",
"chart.js": "2.9.3", "chart.js": "2.9.3",
"cli-highlight": "2.1.4", "cli-highlight": "2.1.4",
"commander": "4.1.1", "commander": "4.1.1",
"content-disposition": "0.5.3", "content-disposition": "0.5.3",
"core-js": "3.6.5", "core-js": "3.6.5",
"crc-32": "1.2.0", "crc-32": "1.2.0",
"css-loader": "3.5.3", "css-loader": "3.6.0",
"cssnano": "4.1.10", "cssnano": "4.1.10",
"dateformat": "3.0.3", "dateformat": "3.0.3",
"deep-entries": "3.1.0", "deep-entries": "3.1.0",
"diskusage": "1.1.3", "diskusage": "1.1.3",
"double-ended-queue": "2.1.0-0", "double-ended-queue": "2.1.0-0",
"escape-regexp": "0.0.1", "escape-regexp": "0.0.1",
"eslint": "6.8.0", "eslint": "7.3.1",
"eslint-plugin-vue": "6.2.2", "eslint-plugin-vue": "6.2.2",
"eventemitter3": "4.0.4", "eventemitter3": "4.0.4",
"feed": "4.1.0", "feed": "4.2.0",
"fibers": "5.0.0", "fibers": "5.0.0",
"file-type": "14.5.0", "file-type": "14.6.2",
"fluent-ffmpeg": "2.1.2", "fluent-ffmpeg": "2.1.2",
"glob": "7.1.6", "glob": "7.1.6",
"gulp": "4.0.2", "gulp": "4.0.2",
@ -147,7 +147,7 @@
"gulp-tslint": "8.1.4", "gulp-tslint": "8.1.4",
"gulp-typescript": "6.0.0-alpha.1", "gulp-typescript": "6.0.0-alpha.1",
"hard-source-webpack-plugin": "0.13.1", "hard-source-webpack-plugin": "0.13.1",
"hcaptcha": "0.0.1", "hcaptcha": "0.0.2",
"html-minifier": "4.0.0", "html-minifier": "4.0.0",
"http-proxy-agent": "4.0.1", "http-proxy-agent": "4.0.1",
"http-signature": "1.3.4", "http-signature": "1.3.4",
@ -161,9 +161,9 @@
"json5": "2.1.3", "json5": "2.1.3",
"json5-loader": "4.0.0", "json5-loader": "4.0.0",
"jsonld": "3.1.1", "jsonld": "3.1.1",
"jsrsasign": "8.0.15", "jsrsasign": "8.0.20",
"katex": "0.11.1", "katex": "0.11.1",
"koa": "2.12.0", "koa": "2.13.0",
"koa-bodyparser": "4.3.0", "koa-bodyparser": "4.3.0",
"koa-favicon": "2.1.0", "koa-favicon": "2.1.0",
"koa-json-body": "5.3.0", "koa-json-body": "5.3.0",
@ -171,18 +171,18 @@
"koa-mount": "4.0.0", "koa-mount": "4.0.0",
"koa-send": "5.0.0", "koa-send": "5.0.0",
"koa-slow": "2.1.0", "koa-slow": "2.1.0",
"koa-views": "6.2.2", "koa-views": "6.3.0",
"langmap": "0.0.16", "langmap": "0.0.16",
"lookup-dns-cache": "2.1.0", "lookup-dns-cache": "2.1.0",
"markdown-it": "11.0.0", "markdown-it": "11.0.0",
"markdown-it-anchor": "5.3.0", "markdown-it-anchor": "5.3.0",
"mocha": "7.2.0", "mocha": "8.0.1",
"moji": "0.5.1", "moji": "0.5.1",
"ms": "2.1.2", "ms": "2.1.2",
"multer": "1.4.2", "multer": "1.4.2",
"nested-property": "2.0.0", "nested-property": "2.0.1",
"node-fetch": "2.6.0", "node-fetch": "2.6.0",
"nodemailer": "6.4.6", "nodemailer": "6.4.10",
"nprogress": "0.2.0", "nprogress": "0.2.0",
"object-assign-deep": "0.4.0", "object-assign-deep": "0.4.0",
"os-utils": "0.0.14", "os-utils": "0.0.14",
@ -215,27 +215,27 @@
"rimraf": "3.0.2", "rimraf": "3.0.2",
"rndstr": "1.0.0", "rndstr": "1.0.0",
"s-age": "1.1.2", "s-age": "1.1.2",
"sass": "1.26.5", "sass": "1.26.9",
"sass-loader": "8.0.2", "sass-loader": "8.0.2",
"seedrandom": "3.0.5", "seedrandom": "3.0.5",
"sharp": "0.25.3", "sharp": "0.25.4",
"speakeasy": "2.0.0", "speakeasy": "2.0.0",
"stringz": "2.1.0", "stringz": "2.1.0",
"style-loader": "1.2.1", "style-loader": "1.2.1",
"summaly": "2.4.0", "summaly": "2.4.0",
"syslog-pro": "1.0.0", "syslog-pro": "1.0.0",
"systeminformation": "4.26.4", "systeminformation": "4.26.9",
"syuilo-password-strength": "0.0.1", "syuilo-password-strength": "0.0.1",
"textarea-caret": "3.1.0", "textarea-caret": "3.1.0",
"three": "0.116.1", "three": "0.118.1",
"tinycolor2": "1.4.1", "tinycolor2": "1.4.1",
"tmp": "0.2.1", "tmp": "0.2.1",
"ts-loader": "7.0.4", "ts-loader": "7.0.5",
"ts-node": "8.10.1", "ts-node": "8.10.2",
"tslint": "6.1.2", "tslint": "6.1.2",
"tslint-sonarts": "1.9.0", "tslint-sonarts": "1.9.0",
"typeorm": "0.2.25", "typeorm": "0.2.25",
"typescript": "3.9.3", "typescript": "3.9.5",
"ulid": "2.3.0", "ulid": "2.3.0",
"url-loader": "4.1.0", "url-loader": "4.1.0",
"uuid": "8.2.0", "uuid": "8.2.0",
@ -245,14 +245,14 @@
"vue-color": "2.7.1", "vue-color": "2.7.1",
"vue-content-loading": "1.6.0", "vue-content-loading": "1.6.0",
"vue-cropperjs": "4.1.0", "vue-cropperjs": "4.1.0",
"vue-i18n": "8.17.7", "vue-i18n": "8.18.2",
"vue-json-pretty": "1.6.3", "vue-json-pretty": "1.6.3",
"vue-loader": "15.9.2", "vue-loader": "15.9.3",
"vue-marquee-text-component": "1.1.1", "vue-marquee-text-component": "1.1.1",
"vue-meta": "2.3.3", "vue-meta": "2.4.0",
"vue-prism-component": "1.2.0", "vue-prism-component": "1.2.0",
"vue-prism-editor": "0.6.1", "vue-prism-editor": "0.6.1",
"vue-router": "3.2.0", "vue-router": "3.3.4",
"vue-style-loader": "4.1.2", "vue-style-loader": "4.1.2",
"vue-svg-inline-loader-corejs3": "1.5.0", "vue-svg-inline-loader-corejs3": "1.5.0",
"vue-template-compiler": "2.6.11", "vue-template-compiler": "2.6.11",
@ -261,7 +261,7 @@
"vuex-persistedstate": "3.0.1", "vuex-persistedstate": "3.0.1",
"web-push": "3.4.4", "web-push": "3.4.4",
"webpack": "5.0.0-beta.18", "webpack": "5.0.0-beta.18",
"webpack-cli": "3.3.11", "webpack-cli": "3.3.12",
"websocket": "1.0.31", "websocket": "1.0.31",
"ws": "7.3.0", "ws": "7.3.0",
"xev": "2.0.1" "xev": "2.0.1"

View file

@ -96,7 +96,7 @@ router.post('/miauth/:session/check', async ctx => {
}); });
// Return 404 for unknown API // Return 404 for unknown API
router.all('*', async ctx => { router.all('(.*)', async ctx => {
ctx.status = 404; ctx.status = 404;
}); });

View file

@ -23,7 +23,7 @@ router.get('/app-default.jpg', ctx => {
}); });
router.get('/:key', sendDriveFile); router.get('/:key', sendDriveFile);
router.get('/:key/*', sendDriveFile); router.get('/:key/(.*)', sendDriveFile);
// Register router // Register router
app.use(router.routes()); app.use(router.routes());

View file

@ -58,7 +58,7 @@ const router = new Router();
//#region static assets //#region static assets
router.get('/assets/*', async ctx => { router.get('/assets/(.*)', async ctx => {
await send(ctx as any, ctx.path, { await send(ctx as any, ctx.path, {
root: client, root: client,
maxage: ms('7 days'), maxage: ms('7 days'),
@ -333,7 +333,7 @@ router.get('/flush', async ctx => {
}); });
// Render base html for all requests // Render base html for all requests
router.get('*', async ctx => { router.get('(.*)', async ctx => {
const meta = await fetchMeta(); const meta = await fetchMeta();
await ctx.render('base', { await ctx.render('base', {
img: meta.bannerUrl, img: meta.bannerUrl,

View file

@ -19,7 +19,7 @@ const XRD = (...x: { element: string, value?: string, attributes?: Record<string
typeof value === 'string' ? `>${escapeValue(value)}</${element}` : '/' typeof value === 'string' ? `>${escapeValue(value)}</${element}` : '/'
}>`).reduce((a, c) => a + c, '')}</XRD>`; }>`).reduce((a, c) => a + c, '')}</XRD>`;
const allPath = '/.well-known/*'; const allPath = '/.well-known/(.*)';
const webFingerPath = '/.well-known/webfinger'; const webFingerPath = '/.well-known/webfinger';
const jrd = 'application/jrd+json'; const jrd = 'application/jrd+json';
const xrd = 'application/xrd+xml'; const xrd = 'application/xrd+xml';

1135
yarn.lock

File diff suppressed because it is too large Load diff