From 6eead5c8a78e687384738ca5fddc72250b55cf45 Mon Sep 17 00:00:00 2001 From: Renovate Bot <bot@renovateapp.com> Date: Wed, 25 Sep 2024 12:51:34 +0000 Subject: [PATCH] Update fastify --- package.json | 15 +- patches/@fastify__url-data@6.0.1.patch | 37 +++++ pnpm-lock.yaml | 193 +++++++++++++++++++------ src/index.js | 2 +- 4 files changed, 194 insertions(+), 53 deletions(-) create mode 100644 patches/@fastify__url-data@6.0.1.patch diff --git a/package.json b/package.json index b2697ac..fde48d3 100644 --- a/package.json +++ b/package.json @@ -20,18 +20,18 @@ "license": "AGPL-3.0-or-later", "dependencies": { "@fastify/autoload": "^6.0.0", - "@fastify/cors": "^9.0.1", - "@fastify/formbody": "^7.4.0", - "@fastify/helmet": "^11.1.1", - "@fastify/sensible": "^5.5.0", + "@fastify/cors": "^10.0.0", + "@fastify/formbody": "^8.0.0", + "@fastify/helmet": "^12.0.0", + "@fastify/sensible": "^6.0.0", "@fastify/swagger": "^9.0.0", "@fastify/swagger-ui": "^5.0.0", - "@fastify/url-data": "^5.4.0", + "@fastify/url-data": "^6.0.0", "ajv": "^8.0.0", "ajv-formats": "^3.0.1", "bull": "^4.12.2", "dotenv-defaults": "^5.0.2", - "fastify": "^4.28.1", + "fastify": "^5.0.0", "fastify-metrics": "^12.0.0", "fastify-plugin": "^5.0.0", "ioredis": "^5.3.2", @@ -98,6 +98,9 @@ "eslint": "9", "eslint-plugin-n": "17" } + }, + "patchedDependencies": { + "@fastify/url-data@6.0.1": "patches/@fastify__url-data@6.0.1.patch" } } } diff --git a/patches/@fastify__url-data@6.0.1.patch b/patches/@fastify__url-data@6.0.1.patch new file mode 100644 index 0000000..344c41e --- /dev/null +++ b/patches/@fastify__url-data@6.0.1.patch @@ -0,0 +1,37 @@ +diff --git a/plugin.js b/plugin.js +index 6310eace6d1e5a20a9ed11b37576606558f406db..1cb8e699a9983ca898cca65d55d04c072843855f 100644 +--- a/plugin.js ++++ b/plugin.js +@@ -9,7 +9,7 @@ function fastifyUrlData (fastify, options, next) { + const host = this.hostname + const port = this.port + const path = this.headers[':path'] || this.raw.url +- const urlData = parse(`${scheme}://${host}:${port}${path}`) ++ const urlData = parse(`${scheme}://${host}${port ? ':' + port : ''}${path}`) + if (key) return urlData[key] + return urlData + }) +diff --git a/test/tests.test.js b/test/tests.test.js +index c8c69b086cdbc7ce7c35fd62978da301f2058d38..c617533faca153babea8088f8d33770cde7d7642 100644 +--- a/test/tests.test.js ++++ b/test/tests.test.js +@@ -183,3 +183,19 @@ test('parses a full URI ignoring X-Forwarded-Host when trustProxy is not set', ( + + t.teardown(() => fastify.close()) + }) ++ ++test('should parse path without a port specified', async (t) => { ++ t.plan(2) ++ const fastify = Fastify() ++ fastify ++ .register(plugin) ++ ++ fastify.get('/', (req, reply) => { ++ const path = req.urlData('path') ++ reply.send('That worked, path is ' + path) ++ }) ++ ++ const res = await fastify.inject({ url: '/', headers: { host: 'localhost' } }) ++ t.equal(res.statusCode, 200) ++ t.equal(res.body, 'That worked, path is /') ++}) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4ad0934..c6382c8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,6 +9,11 @@ overrides: debug: ^4.3.4 json5: ^2.2.2 +patchedDependencies: + '@fastify/url-data@6.0.1': + hash: ecr6efw6cph5lypzj5mb5o7lpm + path: patches/@fastify__url-data@6.0.1.patch + importers: .: @@ -17,17 +22,17 @@ importers: specifier: ^6.0.0 version: 6.0.1 '@fastify/cors': - specifier: ^9.0.1 - version: 9.0.1 + specifier: ^10.0.0 + version: 10.0.1 '@fastify/formbody': - specifier: ^7.4.0 - version: 7.4.0 + specifier: ^8.0.0 + version: 8.0.1 '@fastify/helmet': - specifier: ^11.1.1 - version: 11.1.1 + specifier: ^12.0.0 + version: 12.0.1 '@fastify/sensible': - specifier: ^5.5.0 - version: 5.6.0 + specifier: ^6.0.0 + version: 6.0.1 '@fastify/swagger': specifier: ^9.0.0 version: 9.0.0 @@ -35,8 +40,8 @@ importers: specifier: ^5.0.0 version: 5.0.1 '@fastify/url-data': - specifier: ^5.4.0 - version: 5.4.0 + specifier: ^6.0.0 + version: 6.0.1(patch_hash=ecr6efw6cph5lypzj5mb5o7lpm) ajv: specifier: ^8.0.0 version: 8.17.1 @@ -50,11 +55,11 @@ importers: specifier: ^5.0.2 version: 5.0.2 fastify: - specifier: ^4.28.1 - version: 4.28.1 + specifier: ^5.0.0 + version: 5.0.0 fastify-metrics: specifier: ^12.0.0 - version: 12.1.0(fastify@4.28.1) + version: 12.1.0(fastify@5.0.0) fastify-plugin: specifier: ^5.0.0 version: 5.0.1 @@ -150,23 +155,32 @@ packages: '@fastify/ajv-compiler@3.6.0': resolution: {integrity: sha512-LwdXQJjmMD+GwLOkP7TVC68qa+pSSogeWWmznRJ/coyTcfe9qA05AHFSe1eZFwK6q+xVRpChnvFUkf1iYaSZsQ==} + '@fastify/ajv-compiler@4.0.1': + resolution: {integrity: sha512-DxrBdgsjNLP0YM6W5Hd6/Fmj43S8zMKiFJYgi+Ri3htTGAowPVG/tG1wpnWLMjufEnehRivUCKZ1pLDIoZdTuw==} + '@fastify/autoload@6.0.1': resolution: {integrity: sha512-NVVu/g9yUFkv4nNxsDHhNKz37jINXlPxwNYbA4Hu8pnho6sDVeKo24pt+dnax1SeUapxxs/yulXukbUai6Aebw==} - '@fastify/cors@9.0.1': - resolution: {integrity: sha512-YY9Ho3ovI+QHIL2hW+9X4XqQjXLjJqsU+sMV/xFsxZkE8p3GNnYVFpoOxF7SsP5ZL76gwvbo3V9L+FIekBGU4Q==} + '@fastify/cors@10.0.1': + resolution: {integrity: sha512-O8JIf6448uQbOgzSkCqhClw6gFTAqrdfeA6R3fc/3gwTJGUp7gl8/3tbNB+6INuu4RmgVOq99BmvdGbtu5pgOA==} '@fastify/error@3.4.1': resolution: {integrity: sha512-wWSvph+29GR783IhmvdwWnN4bUxTD01Vm5Xad4i7i1VuAOItLvbPAb69sb0IQ2N57yprvhNIwAP5B6xfKTmjmQ==} + '@fastify/error@4.0.0': + resolution: {integrity: sha512-OO/SA8As24JtT1usTUTKgGH7uLvhfwZPwlptRi2Dp5P4KKmJI3gvsZ8MIHnNwDs4sLf/aai5LzTyl66xr7qMxA==} + '@fastify/fast-json-stringify-compiler@4.3.0': resolution: {integrity: sha512-aZAXGYo6m22Fk1zZzEUKBvut/CIIQe/BapEORnxiD5Qr0kPHqqI69NtEMCme74h+at72sPhbkb4ZrLd1W3KRLA==} - '@fastify/formbody@7.4.0': - resolution: {integrity: sha512-H3C6h1GN56/SMrZS8N2vCT2cZr7mIHzBHzOBa5OPpjfB/D6FzP9mMpE02ZzrFX0ANeh0BAJdoXKOF2e7IbV+Og==} + '@fastify/fast-json-stringify-compiler@5.0.1': + resolution: {integrity: sha512-f2d3JExJgFE3UbdFcpPwqNUEoHWmt8pAKf8f+9YuLESdefA0WgqxeT6DrGL4Yrf/9ihXNSKOqpjEmurV405meA==} + + '@fastify/formbody@8.0.1': + resolution: {integrity: sha512-LPrcadSIK8TrQk510Zdj56fnw7cyHq0/PW0YHGGM8ycGL4X7XAex+FKcwpzB4i5lF9eykc71a4EtcO9AEoByqw==} - '@fastify/helmet@11.1.1': - resolution: {integrity: sha512-pjJxjk6SLEimITWadtYIXt6wBMfFC1I6OQyH/jYVCqSAn36sgAIFjeNiibHtifjCd+e25442pObis3Rjtame6A==} + '@fastify/helmet@12.0.1': + resolution: {integrity: sha512-kkjBcedWwdflRThovGuvN9jB2QQLytBqArCFPdMIb7o2Fp0l/H3xxYi/6x/SSRuH/FFt9qpTGIfJz2bfnMrLqA==} '@fastify/merge-json-schemas@0.1.1': resolution: {integrity: sha512-fERDVz7topgNjtXsJTTW1JKLy0rhuLRcquYqNR9rF7OcVpCa2OVW49ZPDIhaRRCaUuvVxI+N416xUoF76HNSXA==} @@ -174,8 +188,8 @@ packages: '@fastify/send@3.1.1': resolution: {integrity: sha512-LdiV2mle/2tH8vh6GwGl0ubfUAgvY+9yF9oGI1iiwVyNUVOQamvw5n+OFu6iCNNoyuCY80FFURBn4TZCbTe8LA==} - '@fastify/sensible@5.6.0': - resolution: {integrity: sha512-Vq6Z2ZQy10GDqON+hvLF52K99s9et5gVVxTul5n3SIAf0Kq5QjPRUKkAMT3zPAiiGvoHtS3APa/3uaxfDgCODQ==} + '@fastify/sensible@6.0.1': + resolution: {integrity: sha512-D0rN0kMeZKP23f4w9MoCI9e4+n7vASFAsGoRNn9bondSbplLeIfR2HcjCbyElAM04jGrPRLi/edyThEPOyC9cQ==} '@fastify/static@8.0.1': resolution: {integrity: sha512-7idyhbcgf14v4bjWzUeHEFvnVxvNJ1n5cyGPgFtwTZjnjUQ1wgC7a2FQai7OGKqCKywDEjzbPhAZRW+uEK1LMg==} @@ -186,8 +200,8 @@ packages: '@fastify/swagger@9.0.0': resolution: {integrity: sha512-E7TQbBCbhvS2djGLxJ7t2OFbhc2F+KCsOZCNhh6xQIlJxq9H4ZR5KuLKG+vn6COVqkLxRVUOZ9qtbbzdf5Jfqw==} - '@fastify/url-data@5.4.0': - resolution: {integrity: sha512-Ht8lAZnIGsBKdFu6yYwN98OH89fFziCMeCq3yyZbIUKl+lbK5njhmPrcxAwfwLW1QoVk6OO0BkUPu1E/3Js94A==} + '@fastify/url-data@6.0.1': + resolution: {integrity: sha512-1+VyVwDyaUfTTnpnbVYRwSxU3C7D9Zw6S//8g0HBD8ouqVc9dPi9EvhYppGnGIc3bvr5RE9tDChOhGkdA8/VWw==} '@humanwhocodes/module-importer@1.0.1': resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} @@ -411,6 +425,9 @@ packages: avvio@8.4.0: resolution: {integrity: sha512-CDSwaxINFy59iNwhYnkvALBwZiTydGkOecZyPkqBpABYR1KqGEsET0VOOYDwtleZSUIdeY36DC2bSZ24CO1igA==} + avvio@9.0.0: + resolution: {integrity: sha512-UbYrOXgE/I+knFG+3kJr9AgC7uNo8DG+FGGODpH9Bj1O1kL/QDjBXnTem9leD3VdQKtaHjV3O85DQ7hHh4IIHw==} + balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} @@ -597,6 +614,10 @@ packages: resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} engines: {node: '>= 0.8'} + dequal@2.0.3: + resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} + engines: {node: '>=6'} + detect-libc@2.0.3: resolution: {integrity: sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==} engines: {node: '>=8'} @@ -854,6 +875,9 @@ packages: fast-json-stringify@5.16.1: resolution: {integrity: sha512-KAdnLvy1yu/XrRtP+LJnxbBGrhN+xXu+gt3EUvZhYGKCr3lFHq/7UFJHHFgmJKoqlh6B40bZLEv7w46B0mqn1g==} + fast-json-stringify@6.0.0: + resolution: {integrity: sha512-FGMKZwniMTgZh7zQp9b6XnBVxUmKVahQLQeRQHqwYmPDqDhcEKZ3BaQsxelFFI5PY7nN71OEeiL47/zUWcYe1A==} + fast-levenshtein@2.0.6: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} @@ -879,15 +903,15 @@ packages: peerDependencies: fastify: '>=5' - fastify-plugin@4.5.1: - resolution: {integrity: sha512-stRHYGeuqpEZTL1Ef0Ovr2ltazUT9g844X5z/zEBFLG8RYlpDiOCIG+ATvYEp+/zmc7sN29mcIMp8gvYplYPIQ==} - fastify-plugin@5.0.1: resolution: {integrity: sha512-HCxs+YnRaWzCl+cWRYFnHmeRFyR5GVnJTAaCJQiYzQSDwK9MgJdyAsuL3nh0EWRCYMgQ5MeziymvmAhUHYHDUQ==} fastify@4.28.1: resolution: {integrity: sha512-kFWUtpNr4i7t5vY2EJPCN2KgMVpuqfU4NjnJNCgiNB900oiDeYqaNDRcAfeBbOF5hGixixxcKnOU4KN9z6QncQ==} + fastify@5.0.0: + resolution: {integrity: sha512-Qe4dU+zGOzg7vXjw4EvcuyIbNnMwTmcuOhlOrOJsgwzvjEZmsM/IeHulgJk+r46STjdJS/ZJbxO8N70ODXDMEQ==} + fastq@1.17.1: resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} @@ -911,6 +935,10 @@ packages: resolution: {integrity: sha512-Dobi7gcTEq8yszimcfp/R7+owiT4WncAJ7VTTgFH1jYJ5GaG1FbhjwDG820hptN0QDFvzVY3RfCzdInvGPGzjA==} engines: {node: '>=14'} + find-my-way@9.0.1: + resolution: {integrity: sha512-/5NN/R0pFWuff16TMajeKt2JyiW+/OE8nOO8vo1DwZTxLaIURb7lcBYPIgRPh61yCNh9l8voeKwcrkUzmB00vw==} + engines: {node: '>=14'} + find-up@5.0.0: resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} engines: {node: '>=10'} @@ -1281,6 +1309,9 @@ packages: light-my-request@5.13.0: resolution: {integrity: sha512-9IjUN9ZyCS9pTG+KqTDEQo68Sui2lHsYBrfMyVUTTZ3XhH8PMZq7xO94Kr+eP9dhi/kcKsx4N41p2IXEBil1pQ==} + light-my-request@6.0.0: + resolution: {integrity: sha512-kFkFXrmKCL0EEeOmJybMH5amWFd+AFvlvMlvFTRxCUwbhfapZqDmeLMPoWihntnYY6JpoQDE9k+vOzObF1fDqg==} + lightship@9.0.3: resolution: {integrity: sha512-ba0+8+ThlX0AqCSBn6BZyREN7VcIRFzOywzW1fDw6c7hpLHR9dkpnh8T9/sZFrBoEoWKfyYOmnGSPFLDa3h1SQ==} engines: {node: '>=18'} @@ -1406,8 +1437,8 @@ packages: engines: {node: '>=10'} hasBin: true - mnemonist@0.39.6: - resolution: {integrity: sha512-A/0v5Z59y63US00cRSLiloEIw3t5G+MiKz4BhX21FI+YBJXBOGW0ohFxTxO08dsOYlzxo87T7vGfZKYp2bcAWA==} + mnemonist@0.39.8: + resolution: {integrity: sha512-vyWo2K3fjrUw8YeeZ1zF0fy6Mu59RHokURlld8ymdUPjMlD9EC9ov1/YPqTgqRvUN9nTr3Gqfz29LYAmu0PHPQ==} mocha-junit-reporter@2.2.1: resolution: {integrity: sha512-iDn2tlKHn8Vh8o4nCzcUVW4q7iXp7cC4EB78N0cDHIobLymyHNwe0XG8HEHHjc3hJlXm0Vy6zcrxaIhnI2fWmw==} @@ -1691,6 +1722,10 @@ packages: resolution: {integrity: sha512-0f4Memo5QP7WQyUEAYUO3esD/XjOc3Zjjg5CPsAq1p8sIu0XPeMbHJemKA0BO7tV0X7+A0FoEpbmHXWxPyD3wQ==} engines: {node: '>=10'} + ret@0.5.0: + resolution: {integrity: sha512-I1XxrZSQ+oErkRR4jYbAyEEu2I0avBvvMM5JN+6EBprOGRCs63ENqZ3vjavq8fBw2+62G5LF5XelKwuJpcvcxw==} + engines: {node: '>=10'} + reusify@1.0.4: resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} @@ -1719,6 +1754,9 @@ packages: safe-regex2@3.1.0: resolution: {integrity: sha512-RAAZAGbap2kBfbVhvmnTFv73NWLMvDGOITFYTZBAaY8eR+Ir4ef7Up/e7amo+y1+AH+3PtLkrt9mvcTsG9LXug==} + safe-regex2@4.0.0: + resolution: {integrity: sha512-Hvjfv25jPDVr3U+4LDzBuZPPOymELG3PYcSk5hcevooo1yxxamQL/bHs/GrEPGmMoMEwRrHVGiCA1pXi97B8Ew==} + safe-stable-stringify@2.5.0: resolution: {integrity: sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==} engines: {node: '>=10'} @@ -2108,27 +2146,39 @@ snapshots: ajv-formats: 2.1.1(ajv@8.17.1) fast-uri: 2.4.0 + '@fastify/ajv-compiler@4.0.1': + dependencies: + ajv: 8.17.1 + ajv-formats: 3.0.1(ajv@8.17.1) + fast-uri: 3.0.1 + '@fastify/autoload@6.0.1': {} - '@fastify/cors@9.0.1': + '@fastify/cors@10.0.1': dependencies: - fastify-plugin: 4.5.1 - mnemonist: 0.39.6 + fastify-plugin: 5.0.1 + mnemonist: 0.39.8 '@fastify/error@3.4.1': {} + '@fastify/error@4.0.0': {} + '@fastify/fast-json-stringify-compiler@4.3.0': dependencies: fast-json-stringify: 5.16.1 - '@fastify/formbody@7.4.0': + '@fastify/fast-json-stringify-compiler@5.0.1': + dependencies: + fast-json-stringify: 6.0.0 + + '@fastify/formbody@8.0.1': dependencies: fast-querystring: 1.1.2 - fastify-plugin: 4.5.1 + fastify-plugin: 5.0.1 - '@fastify/helmet@11.1.1': + '@fastify/helmet@12.0.1': dependencies: - fastify-plugin: 4.5.1 + fastify-plugin: 5.0.1 helmet: 7.1.0 '@fastify/merge-json-schemas@0.1.1': @@ -2143,11 +2193,11 @@ snapshots: http-errors: 2.0.0 mime: 3.0.0 - '@fastify/sensible@5.6.0': + '@fastify/sensible@6.0.1': dependencies: '@lukeed/ms': 2.0.2 - fast-deep-equal: 3.1.3 - fastify-plugin: 4.5.1 + dequal: 2.0.3 + fastify-plugin: 5.0.1 forwarded: 0.2.0 http-errors: 2.0.0 type-is: 1.6.18 @@ -2180,10 +2230,10 @@ snapshots: transitivePeerDependencies: - supports-color - '@fastify/url-data@5.4.0': + '@fastify/url-data@6.0.1(patch_hash=ecr6efw6cph5lypzj5mb5o7lpm)': dependencies: - fast-uri: 2.4.0 - fastify-plugin: 4.5.1 + fast-uri: 3.0.1 + fastify-plugin: 5.0.1 '@humanwhocodes/module-importer@1.0.1': {} @@ -2416,6 +2466,11 @@ snapshots: '@fastify/error': 3.4.1 fastq: 1.17.1 + avvio@9.0.0: + dependencies: + '@fastify/error': 4.0.0 + fastq: 1.17.1 + balanced-match@1.0.2: {} base64-js@1.5.1: {} @@ -2602,6 +2657,8 @@ snapshots: depd@2.0.0: {} + dequal@2.0.3: {} + detect-libc@2.0.3: optional: true @@ -2954,6 +3011,16 @@ snapshots: json-schema-ref-resolver: 1.0.1 rfdc: 1.4.1 + fast-json-stringify@6.0.0: + dependencies: + '@fastify/merge-json-schemas': 0.1.1 + ajv: 8.17.1 + ajv-formats: 3.0.1(ajv@8.17.1) + fast-deep-equal: 3.1.3 + fast-uri: 2.4.0 + json-schema-ref-resolver: 1.0.1 + rfdc: 1.4.1 + fast-levenshtein@2.0.6: {} fast-printf@1.6.9: @@ -2970,14 +3037,12 @@ snapshots: fast-uri@3.0.1: {} - fastify-metrics@12.1.0(fastify@4.28.1): + fastify-metrics@12.1.0(fastify@5.0.0): dependencies: - fastify: 4.28.1 + fastify: 5.0.0 fastify-plugin: 5.0.1 prom-client: 15.1.3 - fastify-plugin@4.5.1: {} - fastify-plugin@5.0.1: {} fastify@4.28.1: @@ -2999,6 +3064,24 @@ snapshots: semver: 7.6.3 toad-cache: 3.7.0 + fastify@5.0.0: + dependencies: + '@fastify/ajv-compiler': 4.0.1 + '@fastify/error': 4.0.0 + '@fastify/fast-json-stringify-compiler': 5.0.1 + abstract-logging: 2.0.1 + avvio: 9.0.0 + fast-json-stringify: 6.0.0 + find-my-way: 9.0.1 + light-my-request: 6.0.0 + pino: 9.4.0 + process-warning: 4.0.0 + proxy-addr: 2.0.7 + rfdc: 1.4.1 + secure-json-parse: 2.7.0 + semver: 7.6.3 + toad-cache: 3.7.0 + fastq@1.17.1: dependencies: reusify: 1.0.4 @@ -3027,6 +3110,12 @@ snapshots: fast-querystring: 1.1.2 safe-regex2: 3.1.0 + find-my-way@9.0.1: + dependencies: + fast-deep-equal: 3.1.3 + fast-querystring: 1.1.2 + safe-regex2: 4.0.0 + find-up@5.0.0: dependencies: locate-path: 6.0.0 @@ -3374,6 +3463,12 @@ snapshots: process-warning: 3.0.0 set-cookie-parser: 2.7.0 + light-my-request@6.0.0: + dependencies: + cookie: 0.6.0 + process-warning: 4.0.0 + set-cookie-parser: 2.7.0 + lightship@9.0.3: dependencies: delay: 5.0.0 @@ -3495,7 +3590,7 @@ snapshots: mkdirp@3.0.1: {} - mnemonist@0.39.6: + mnemonist@0.39.8: dependencies: obliterator: 2.0.4 @@ -3805,6 +3900,8 @@ snapshots: ret@0.4.3: {} + ret@0.5.0: {} + reusify@1.0.4: {} rfdc@1.4.1: {} @@ -3838,6 +3935,10 @@ snapshots: dependencies: ret: 0.4.3 + safe-regex2@4.0.0: + dependencies: + ret: 0.5.0 + safe-stable-stringify@2.5.0: {} secure-json-parse@2.7.0: {} diff --git a/src/index.js b/src/index.js index 1cc3db0..187cd58 100644 --- a/src/index.js +++ b/src/index.js @@ -70,7 +70,7 @@ lightship.queueBlockingTask(waitForVersionAvailable()) const app = fastify({ requestIdLogLabel: 'requestId', disableRequestLogging: true, - logger, + loggerInstance: logger, connectionTimeout: 30000, // genreqId is used to generate a request id if one is not provided by the proxy genReqId: () => randomUUID() -- GitLab