mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
fix: apply chages from review
This commit is contained in:
49
tools/benchmarks/package-lock.json
generated
49
tools/benchmarks/package-lock.json
generated
@@ -9,8 +9,14 @@
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@nestjs/common": "^11.1.12",
|
||||
"@nestjs/core": "^11.1.12",
|
||||
"@nestjs/platform-express": "^11.1.12",
|
||||
"@nestjs/platform-fastify": "^11.1.12"
|
||||
"@nestjs/platform-fastify": "^11.1.12",
|
||||
"express": "^5.2.1",
|
||||
"fastify": "^5.7.4",
|
||||
"reflect-metadata": "^0.2.2",
|
||||
"rxjs": "^7.8.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/autocannon": "^7.12.7",
|
||||
@@ -348,6 +354,39 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@nestjs/platform-fastify/node_modules/fastify": {
|
||||
"version": "5.6.2",
|
||||
"resolved": "https://registry.npmjs.org/fastify/-/fastify-5.6.2.tgz",
|
||||
"integrity": "sha512-dPugdGnsvYkBlENLhCgX8yhyGCsCPrpA8lFWbTNU428l+YOnLgYHR69hzV8HWPC79n536EqzqQtvhtdaCE0dKg==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/fastify"
|
||||
},
|
||||
{
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/fastify"
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@fastify/ajv-compiler": "^4.0.0",
|
||||
"@fastify/error": "^4.0.0",
|
||||
"@fastify/fast-json-stringify-compiler": "^5.0.0",
|
||||
"@fastify/proxy-addr": "^5.0.0",
|
||||
"abstract-logging": "^2.0.1",
|
||||
"avvio": "^9.0.0",
|
||||
"fast-json-stringify": "^6.0.0",
|
||||
"find-my-way": "^9.0.0",
|
||||
"light-my-request": "^6.0.0",
|
||||
"pino": "^10.1.0",
|
||||
"process-warning": "^5.0.0",
|
||||
"rfdc": "^1.3.1",
|
||||
"secure-json-parse": "^4.0.0",
|
||||
"semver": "^7.6.0",
|
||||
"toad-cache": "^3.7.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@nuxt/opencollective": {
|
||||
"version": "0.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@nuxt/opencollective/-/opencollective-0.4.1.tgz",
|
||||
@@ -1103,9 +1142,9 @@
|
||||
"license": "BSD-3-Clause"
|
||||
},
|
||||
"node_modules/fastify": {
|
||||
"version": "5.6.2",
|
||||
"resolved": "https://registry.npmjs.org/fastify/-/fastify-5.6.2.tgz",
|
||||
"integrity": "sha512-dPugdGnsvYkBlENLhCgX8yhyGCsCPrpA8lFWbTNU428l+YOnLgYHR69hzV8HWPC79n536EqzqQtvhtdaCE0dKg==",
|
||||
"version": "5.7.4",
|
||||
"resolved": "https://registry.npmjs.org/fastify/-/fastify-5.7.4.tgz",
|
||||
"integrity": "sha512-e6l5NsRdaEP8rdD8VR0ErJASeyaRbzXYpmkrpr2SuvuMq6Si3lvsaVy5C+7gLanEkvjpMDzBXWE5HPeb/hgTxA==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
@@ -1118,7 +1157,7 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@fastify/ajv-compiler": "^4.0.0",
|
||||
"@fastify/ajv-compiler": "^4.0.5",
|
||||
"@fastify/error": "^4.0.0",
|
||||
"@fastify/fast-json-stringify-compiler": "^5.0.0",
|
||||
"@fastify/proxy-addr": "^5.0.0",
|
||||
|
||||
@@ -7,8 +7,14 @@
|
||||
"benchmarks": "tsc && node dist/main.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nestjs/common": "^11.1.12",
|
||||
"@nestjs/core": "^11.1.12",
|
||||
"@nestjs/platform-express": "^11.1.12",
|
||||
"@nestjs/platform-fastify": "^11.1.12"
|
||||
"@nestjs/platform-fastify": "^11.1.12",
|
||||
"express": "^5.2.1",
|
||||
"fastify": "^5.7.4",
|
||||
"reflect-metadata": "^0.2.2",
|
||||
"rxjs": "^7.8.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/autocannon": "^7.12.7",
|
||||
|
||||
@@ -37,7 +37,6 @@ function parseNumber(value: string | undefined, fallback: number): number {
|
||||
|
||||
function parseArgs(argv: string[]): Args {
|
||||
const args: Args = { ...DEFAULTS };
|
||||
const only: Framework[] = [];
|
||||
|
||||
for (let i = 0; i < argv.length; i++) {
|
||||
const token = argv[i];
|
||||
@@ -82,9 +81,6 @@ function parseArgs(argv: string[]): Args {
|
||||
|
||||
function printHelpAndExit(code: number): never {
|
||||
// Keep this simple so `npm run benchmarks` works without extra args.
|
||||
// You can optionally narrow execution with `--framework` or `--only`.
|
||||
// Example: `npm run benchmarks -- --framework fastify`
|
||||
// Example: `npm run benchmarks -- --only express,fastify`
|
||||
// Tuning: `--connections`, `--duration`, `--pipelining`, `--port`, `--path`
|
||||
// Notes: The benchmark spawns the framework server as a child process and
|
||||
// runs autocannon against it.
|
||||
|
||||
@@ -16,6 +16,6 @@
|
||||
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"sourceMap": true,
|
||||
"sourceMap": true
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user