From 911a5e97504136135345cdab73a230fb49b0a835 Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Fri, 22 Dec 2023 18:09:41 +0100 Subject: [PATCH] Update koa router and sealgen --- package-lock.json | 236 ++++++++++++++++++++++++++++++++++++++++------ package.json | 6 +- 2 files changed, 210 insertions(+), 32 deletions(-) diff --git a/package-lock.json b/package-lock.json index d8a7842..61655fd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,9 +12,9 @@ "dependencies": { "@babel/core": "^7.12.10", "@hotwired/turbo": "^7.1.0", - "@koa/router": "^10.1.1", + "@koa/router": "^12.0.1", "@playwright/test": "^1.36.1", - "@sealcode/sealgen": "^0.8.48", + "@sealcode/sealgen": "^0.8.49", "@sealcode/ts-predicates": "^0.4.3", "@types/kill-port": "^2.0.0", "hint": "^7.0.1", @@ -32,7 +32,7 @@ "@hint/hint-no-broken-links": "^4.2.19", "@istanbuljs/nyc-config-typescript": "^1.0.2", "@sealcode/ansi-html-stream": "^1.0.1", - "@types/koa__router": "^8.0.4", + "@types/koa__router": "^12.0.4", "@types/mocha": "^9.1.1", "@types/node": "^20.8.4", "@types/tedious": "^4.0.7", @@ -2738,19 +2738,49 @@ } }, "node_modules/@koa/router": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/@koa/router/-/router-10.1.1.tgz", - "integrity": "sha512-ORNjq5z4EmQPriKbR0ER3k4Gh7YGNhWDL7JBW+8wXDrHLbWYKYSJaOJ9aN06npF5tbTxe2JBOsurpJDAvjiXKw==", - "deprecated": "**IMPORTANT 10x+ PERFORMANCE UPGRADE**: Please upgrade to v12.0.1+ as we have fixed an issue with debuglog causing 10x slower router benchmark performance, see https://github.com/koajs/router/pull/173", + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/@koa/router/-/router-12.0.1.tgz", + "integrity": "sha512-ribfPYfHb+Uw3b27Eiw6NPqjhIhTpVFzEWLwyc/1Xp+DCdwRRyIlAUODX+9bPARF6aQtUu1+/PHzdNvRzcs/+Q==", "dependencies": { - "debug": "^4.1.1", - "http-errors": "^1.7.3", + "debug": "^4.3.4", + "http-errors": "^2.0.0", "koa-compose": "^4.1.0", "methods": "^1.1.2", - "path-to-regexp": "^6.1.0" + "path-to-regexp": "^6.2.1" }, "engines": { - "node": ">= 8.0.0" + "node": ">= 12" + } + }, + "node_modules/@koa/router/node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/@koa/router/node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/@koa/router/node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "engines": { + "node": ">= 0.8" } }, "node_modules/@mapbox/node-pre-gyp": { @@ -2926,9 +2956,9 @@ } }, "node_modules/@sealcode/sealgen": { - "version": "0.8.48", - "resolved": "https://registry.npmjs.org/@sealcode/sealgen/-/sealgen-0.8.48.tgz", - "integrity": "sha512-VV7XCDWtnTqvjAZJcgeGsu6XgL90XIpL1P9+AnbomdFK1lt4+sQvL/FUqEvkYXiaBMmWdmTRogn05Id/DOdd+Q==", + "version": "0.8.49", + "resolved": "https://registry.npmjs.org/@sealcode/sealgen/-/sealgen-0.8.49.tgz", + "integrity": "sha512-s9Ja5c5z0tDzQ7F9cUWYTgwFytMtaaPrIFH4lpzHSLBBSk+Z8iwRosO6ZeV2RL9TGrFxXC940UONwfRqVTGIyg==", "dependencies": { "@koa/router": "^10.1.1", "@sealcode/ts-predicates": "^0.4.3", @@ -2984,6 +3014,22 @@ "node": ">=12" } }, + "node_modules/@sealcode/sealgen/node_modules/@koa/router": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/@koa/router/-/router-10.1.1.tgz", + "integrity": "sha512-ORNjq5z4EmQPriKbR0ER3k4Gh7YGNhWDL7JBW+8wXDrHLbWYKYSJaOJ9aN06npF5tbTxe2JBOsurpJDAvjiXKw==", + "deprecated": "**IMPORTANT 10x+ PERFORMANCE UPGRADE**: Please upgrade to v12.0.1+ as we have fixed an issue with debuglog causing 10x slower router benchmark performance, see https://github.com/koajs/router/pull/173", + "dependencies": { + "debug": "^4.1.1", + "http-errors": "^1.7.3", + "koa-compose": "^4.1.0", + "methods": "^1.1.2", + "path-to-regexp": "^6.1.0" + }, + "engines": { + "node": ">= 8.0.0" + } + }, "node_modules/@sealcode/sealgen/node_modules/esbuild": { "version": "0.15.18", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.15.18.tgz", @@ -3348,9 +3394,9 @@ } }, "node_modules/@types/koa__router": { - "version": "8.0.11", - "resolved": "https://registry.npmjs.org/@types/koa__router/-/koa__router-8.0.11.tgz", - "integrity": "sha512-WXgKWpBsbS14kzmzD9LeFapOIa678h7zvUHxDwXwSx4ETKXhXLVUAToX6jZ/U7EihM7qwyD9W/BZvB0MRu7MTQ==", + "version": "12.0.4", + "resolved": "https://registry.npmjs.org/@types/koa__router/-/koa__router-12.0.4.tgz", + "integrity": "sha512-Y7YBbSmfXZpa/m5UGGzb7XadJIRBRnwNY9cdAojZGp65Cpe5MAP3mOZE7e3bImt8dfKS4UFcR16SLH8L/z7PBw==", "dependencies": { "@types/koa": "*" } @@ -9482,6 +9528,23 @@ "sharp": "^0.28.3" } }, + "node_modules/koa-responsive-image-router/node_modules/@koa/router": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/@koa/router/-/router-10.1.1.tgz", + "integrity": "sha512-ORNjq5z4EmQPriKbR0ER3k4Gh7YGNhWDL7JBW+8wXDrHLbWYKYSJaOJ9aN06npF5tbTxe2JBOsurpJDAvjiXKw==", + "deprecated": "**IMPORTANT 10x+ PERFORMANCE UPGRADE**: Please upgrade to v12.0.1+ as we have fixed an issue with debuglog causing 10x slower router benchmark performance, see https://github.com/koajs/router/pull/173", + "peer": true, + "dependencies": { + "debug": "^4.1.1", + "http-errors": "^1.7.3", + "koa-compose": "^4.1.0", + "methods": "^1.1.2", + "path-to-regexp": "^6.1.0" + }, + "engines": { + "node": ">= 8.0.0" + } + }, "node_modules/koa-router": { "version": "10.1.1", "resolved": "https://registry.npmjs.org/koa-router/-/koa-router-10.1.1.tgz", @@ -13455,6 +13518,43 @@ "uuid": "^8.3.2" } }, + "node_modules/sealious/node_modules/@koa/router": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/@koa/router/-/router-10.1.1.tgz", + "integrity": "sha512-ORNjq5z4EmQPriKbR0ER3k4Gh7YGNhWDL7JBW+8wXDrHLbWYKYSJaOJ9aN06npF5tbTxe2JBOsurpJDAvjiXKw==", + "deprecated": "**IMPORTANT 10x+ PERFORMANCE UPGRADE**: Please upgrade to v12.0.1+ as we have fixed an issue with debuglog causing 10x slower router benchmark performance, see https://github.com/koajs/router/pull/173", + "dependencies": { + "debug": "^4.1.1", + "http-errors": "^1.7.3", + "koa-compose": "^4.1.0", + "methods": "^1.1.2", + "path-to-regexp": "^6.1.0" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/sealious/node_modules/@koa/router/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/sealious/node_modules/@koa/router/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, "node_modules/sealious/node_modules/@types/mime": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@types/mime/-/mime-2.0.3.tgz", @@ -17832,15 +17932,39 @@ } }, "@koa/router": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/@koa/router/-/router-10.1.1.tgz", - "integrity": "sha512-ORNjq5z4EmQPriKbR0ER3k4Gh7YGNhWDL7JBW+8wXDrHLbWYKYSJaOJ9aN06npF5tbTxe2JBOsurpJDAvjiXKw==", + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/@koa/router/-/router-12.0.1.tgz", + "integrity": "sha512-ribfPYfHb+Uw3b27Eiw6NPqjhIhTpVFzEWLwyc/1Xp+DCdwRRyIlAUODX+9bPARF6aQtUu1+/PHzdNvRzcs/+Q==", "requires": { - "debug": "^4.1.1", - "http-errors": "^1.7.3", + "debug": "^4.3.4", + "http-errors": "^2.0.0", "koa-compose": "^4.1.0", "methods": "^1.1.2", - "path-to-regexp": "^6.1.0" + "path-to-regexp": "^6.2.1" + }, + "dependencies": { + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" + }, + "http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "requires": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + } + }, + "statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" + } } }, "@mapbox/node-pre-gyp": { @@ -17975,9 +18099,9 @@ } }, "@sealcode/sealgen": { - "version": "0.8.48", - "resolved": "https://registry.npmjs.org/@sealcode/sealgen/-/sealgen-0.8.48.tgz", - "integrity": "sha512-VV7XCDWtnTqvjAZJcgeGsu6XgL90XIpL1P9+AnbomdFK1lt4+sQvL/FUqEvkYXiaBMmWdmTRogn05Id/DOdd+Q==", + "version": "0.8.49", + "resolved": "https://registry.npmjs.org/@sealcode/sealgen/-/sealgen-0.8.49.tgz", + "integrity": "sha512-s9Ja5c5z0tDzQ7F9cUWYTgwFytMtaaPrIFH4lpzHSLBBSk+Z8iwRosO6ZeV2RL9TGrFxXC940UONwfRqVTGIyg==", "requires": { "@koa/router": "^10.1.1", "@sealcode/ts-predicates": "^0.4.3", @@ -18006,6 +18130,18 @@ "integrity": "sha512-L4jVKS82XVhw2nvzLg/19ClLWg0y27ulRwuP7lcyL6AbUWB5aPglXY3M21mauDQMDfRLs8cQmeT03r/+X3cZYQ==", "optional": true }, + "@koa/router": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/@koa/router/-/router-10.1.1.tgz", + "integrity": "sha512-ORNjq5z4EmQPriKbR0ER3k4Gh7YGNhWDL7JBW+8wXDrHLbWYKYSJaOJ9aN06npF5tbTxe2JBOsurpJDAvjiXKw==", + "requires": { + "debug": "^4.1.1", + "http-errors": "^1.7.3", + "koa-compose": "^4.1.0", + "methods": "^1.1.2", + "path-to-regexp": "^6.1.0" + } + }, "esbuild": { "version": "0.15.18", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.15.18.tgz", @@ -18352,9 +18488,9 @@ } }, "@types/koa__router": { - "version": "8.0.11", - "resolved": "https://registry.npmjs.org/@types/koa__router/-/koa__router-8.0.11.tgz", - "integrity": "sha512-WXgKWpBsbS14kzmzD9LeFapOIa678h7zvUHxDwXwSx4ETKXhXLVUAToX6jZ/U7EihM7qwyD9W/BZvB0MRu7MTQ==", + "version": "12.0.4", + "resolved": "https://registry.npmjs.org/@types/koa__router/-/koa__router-12.0.4.tgz", + "integrity": "sha512-Y7YBbSmfXZpa/m5UGGzb7XadJIRBRnwNY9cdAojZGp65Cpe5MAP3mOZE7e3bImt8dfKS4UFcR16SLH8L/z7PBw==", "requires": { "@types/koa": "*" } @@ -22730,6 +22866,21 @@ "koa": "^2.13.1", "koa-router": "^10.0.0", "sharp": "^0.28.3" + }, + "dependencies": { + "@koa/router": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/@koa/router/-/router-10.1.1.tgz", + "integrity": "sha512-ORNjq5z4EmQPriKbR0ER3k4Gh7YGNhWDL7JBW+8wXDrHLbWYKYSJaOJ9aN06npF5tbTxe2JBOsurpJDAvjiXKw==", + "peer": true, + "requires": { + "debug": "^4.1.1", + "http-errors": "^1.7.3", + "koa-compose": "^4.1.0", + "methods": "^1.1.2", + "path-to-regexp": "^6.1.0" + } + } } }, "koa-router": { @@ -25813,6 +25964,33 @@ "uuid": "^8.3.2" }, "dependencies": { + "@koa/router": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/@koa/router/-/router-10.1.1.tgz", + "integrity": "sha512-ORNjq5z4EmQPriKbR0ER3k4Gh7YGNhWDL7JBW+8wXDrHLbWYKYSJaOJ9aN06npF5tbTxe2JBOsurpJDAvjiXKw==", + "requires": { + "debug": "^4.1.1", + "http-errors": "^1.7.3", + "koa-compose": "^4.1.0", + "methods": "^1.1.2", + "path-to-regexp": "^6.1.0" + }, + "dependencies": { + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "requires": { + "ms": "2.1.2" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + } + } + }, "@types/mime": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@types/mime/-/mime-2.0.3.tgz", diff --git a/package.json b/package.json index 6301714..728362d 100644 --- a/package.json +++ b/package.json @@ -30,9 +30,9 @@ "dependencies": { "@babel/core": "^7.12.10", "@hotwired/turbo": "^7.1.0", - "@koa/router": "^10.1.1", + "@koa/router": "^12.0.1", "@playwright/test": "^1.36.1", - "@sealcode/sealgen": "^0.8.48", + "@sealcode/sealgen": "^0.8.49", "@sealcode/ts-predicates": "^0.4.3", "@types/kill-port": "^2.0.0", "hint": "^7.0.1", @@ -50,7 +50,7 @@ "@hint/hint-no-broken-links": "^4.2.19", "@istanbuljs/nyc-config-typescript": "^1.0.2", "@sealcode/ansi-html-stream": "^1.0.1", - "@types/koa__router": "^8.0.4", + "@types/koa__router": "^12.0.4", "@types/mocha": "^9.1.1", "@types/node": "^20.8.4", "@types/tedious": "^4.0.7",