From 2d02ea616c1c3a065ef6e65a866f493249ac3ded Mon Sep 17 00:00:00 2001 From: Livio Brunner Date: Sun, 26 Nov 2023 22:36:42 +0100 Subject: [PATCH] chore: upgrade prettier --- .../health-check-executor.service.ts | 5 ++--- lib/health-indicator/http/http.health.spec.ts | 5 ++--- package-lock.json | 18 +++++++++--------- package.json | 2 +- 4 files changed, 14 insertions(+), 16 deletions(-) diff --git a/lib/health-check/health-check-executor.service.ts b/lib/health-check/health-check-executor.service.ts index 6ba4daa39..258d29362 100644 --- a/lib/health-check/health-check-executor.service.ts +++ b/lib/health-check/health-check-executor.service.ts @@ -40,9 +40,8 @@ export class HealthCheckExecutor implements BeforeApplicationShutdown { async execute( healthIndicators: HealthIndicatorFunction[], ): Promise { - const { results, errors } = await this.executeHealthIndicators( - healthIndicators, - ); + const { results, errors } = + await this.executeHealthIndicators(healthIndicators); return this.getResult(results, errors); } diff --git a/lib/health-indicator/http/http.health.spec.ts b/lib/health-indicator/http/http.health.spec.ts index 5641281c5..5c3862fca 100644 --- a/lib/health-indicator/http/http.health.spec.ts +++ b/lib/health-indicator/http/http.health.spec.ts @@ -44,9 +44,8 @@ describe('Http Response Health Indicator', () => { ], }).compile(); - httpHealthIndicator = await moduleRef.resolve( - HttpHealthIndicator, - ); + httpHealthIndicator = + await moduleRef.resolve(HttpHealthIndicator); httpService = await moduleRef.resolve( nestJSAxiosMock.HttpService as any, diff --git a/package-lock.json b/package-lock.json index 4e5a2812a..ea8c32ab0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -64,7 +64,7 @@ "mysql2": "3.6.1", "nats": "2.16.0", "portfinder": "1.0.32", - "prettier": "2.8.8", + "prettier": "3.1.0", "prisma": "4.16.2", "reflect-metadata": "0.1.13", "release-it": "15.11.0", @@ -16270,15 +16270,15 @@ } }, "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz", + "integrity": "sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==", "dev": true, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" @@ -33373,9 +33373,9 @@ "dev": true }, "prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz", + "integrity": "sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==", "dev": true }, "pretty-format": { diff --git a/package.json b/package.json index 757a0d3b3..dbc3e54f6 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "mysql2": "3.6.1", "nats": "2.16.0", "portfinder": "1.0.32", - "prettier": "2.8.8", + "prettier": "3.1.0", "prisma": "4.16.2", "reflect-metadata": "0.1.13", "release-it": "15.11.0",