From 3a6016c3df5b25f975eb3e158b3004979b56bb31 Mon Sep 17 00:00:00 2001 From: Autofix Date: Mon, 12 Jun 2023 10:26:57 +0000 Subject: [PATCH] Autofix: trailing-spaces --- .github/ISSUE_TEMPLATE/Bug_report.yml | 2 +- .github/ISSUE_TEMPLATE/Feature_request.yml | 2 +- .github/ISSUE_TEMPLATE/Regression.yml | 2 +- packages/core/metadata-scanner.ts | 4 ++-- packages/core/test/errors/test/messages.spec.ts | 16 ++++++++-------- .../interfaces/gateway-metadata.interface.ts | 2 +- readme_zh.md | 6 +++--- sample/25-dynamic-modules/README.md | 2 +- sample/26-queues/README.md | 2 +- sample/27-scheduling/README.md | 2 +- sample/28-sse/README.md | 2 +- 11 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/Bug_report.yml b/.github/ISSUE_TEMPLATE/Bug_report.yml index 6ed7830d855..bbdc102cd30 100644 --- a/.github/ISSUE_TEMPLATE/Bug_report.yml +++ b/.github/ISSUE_TEMPLATE/Bug_report.yml @@ -6,7 +6,7 @@ body: attributes: value: | ## :warning: We use GitHub Issues to track bug reports, feature requests and regressions - + If you are not sure that your issue is a bug, you could: - read the [FAQ's common errors](https://docs.nestjs.com/faq/common-errors) page diff --git a/.github/ISSUE_TEMPLATE/Feature_request.yml b/.github/ISSUE_TEMPLATE/Feature_request.yml index 4bd28c42067..814d4108136 100644 --- a/.github/ISSUE_TEMPLATE/Feature_request.yml +++ b/.github/ISSUE_TEMPLATE/Feature_request.yml @@ -6,7 +6,7 @@ body: attributes: value: | ## :warning: We use GitHub Issues to track bug reports, feature requests and regressions - + If you are not sure that your issue is a bug, you could: - read the [FAQ's common errors](https://docs.nestjs.com/faq/common-errors) page diff --git a/.github/ISSUE_TEMPLATE/Regression.yml b/.github/ISSUE_TEMPLATE/Regression.yml index 3da97a60219..f6e2961a763 100644 --- a/.github/ISSUE_TEMPLATE/Regression.yml +++ b/.github/ISSUE_TEMPLATE/Regression.yml @@ -6,7 +6,7 @@ body: attributes: value: | ## :warning: We use GitHub Issues to track bug reports, feature requests and regressions - + If you are not sure that your issue is a bug, you could: - read the [FAQ's common errors](https://docs.nestjs.com/faq/common-errors) page diff --git a/packages/core/metadata-scanner.ts b/packages/core/metadata-scanner.ts index 400764e00cb..b70f0c8603d 100644 --- a/packages/core/metadata-scanner.ts +++ b/packages/core/metadata-scanner.ts @@ -9,7 +9,7 @@ export class MetadataScanner { private readonly cachedScannedPrototypes: Map = new Map(); /** - * @deprecated + * @deprecated * @see {@link getAllMethodNames} * @see getAllMethodNames */ @@ -62,7 +62,7 @@ export class MetadataScanner { } /** - * @deprecated + * @deprecated * @see {@link getAllMethodNames} * @see getAllMethodNames */ diff --git a/packages/core/test/errors/test/messages.spec.ts b/packages/core/test/errors/test/messages.spec.ts index cbc3e15bdb3..de51aa101fd 100644 --- a/packages/core/test/errors/test/messages.spec.ts +++ b/packages/core/test/errors/test/messages.spec.ts @@ -16,7 +16,7 @@ describe('Error Messages', () => { it('should display class', () => { const expectedResult = stringCleaner(`Nest can't resolve dependencies of the CatService (?, CatService). Please make sure that the argument dependency at index [0] is available in the current context. - + Potential solutions: - If dependency is a provider, is it part of the current Module? - If dependency is exported from a separate @Module, is that module imported within Module? @@ -39,7 +39,7 @@ describe('Error Messages', () => { it('should display the provide token', () => { const expectedResult = stringCleaner(`Nest can't resolve dependencies of the CatService (?, MY_TOKEN). Please make sure that the argument dependency at index [0] is available in the current context. - + Potential solutions: - If dependency is a provider, is it part of the current Module? - If dependency is exported from a separate @Module, is that module imported within Module? @@ -60,7 +60,7 @@ describe('Error Messages', () => { it('should display the function name', () => { const expectedResult = stringCleaner(`Nest can't resolve dependencies of the CatService (?, CatFunction). Please make sure that the argument dependency at index [0] is available in the current context. - + Potential solutions: - If dependency is a provider, is it part of the current Module? - If dependency is exported from a separate @Module, is that module imported within Module? @@ -81,7 +81,7 @@ describe('Error Messages', () => { it('should use "+" if unknown dependency name', () => { const expectedResult = stringCleaner(`Nest can't resolve dependencies of the CatService (?, +). Please make sure that the argument dependency at index [0] is available in the current context. - + Potential solutions: - If dependency is a provider, is it part of the current Module? - If dependency is exported from a separate @Module, is that module imported within Module? @@ -102,7 +102,7 @@ describe('Error Messages', () => { it('should display the module name', () => { const expectedResult = stringCleaner(`Nest can't resolve dependencies of the CatService (?, MY_TOKEN). Please make sure that the argument dependency at index [0] is available in the TestModule context. - + Potential solutions: - Is TestModule a valid NestJS module? - If dependency is a provider, is it part of the current TestModule? @@ -136,7 +136,7 @@ describe('Error Messages', () => { it('should display the symbol name of the provider', () => { const expectedResult = stringCleaner(`Nest can't resolve dependencies of the Symbol(CatProvider) (?). Please make sure that the argument dependency at index [0] is available in the current context. - + Potential solutions: - If dependency is a provider, is it part of the current Module? - If dependency is exported from a separate @Module, is that module imported within Module? @@ -157,7 +157,7 @@ describe('Error Messages', () => { it('should display the symbol dependency of the provider', () => { const expectedResult = stringCleaner(`Nest can't resolve dependencies of the CatProvider (?, Symbol(DogProvider)). Please make sure that the argument dependency at index [0] is available in the current context. - + Potential solutions: - If dependency is a provider, is it part of the current Module? - If dependency is exported from a separate @Module, is that module imported within Module? @@ -201,7 +201,7 @@ Scope [AppModule -> CatsModule]`); it('should display the module name with the invalid index and scope', () => { const expectedMessage = stringCleaner(`Nest cannot create the CatsModule instance. -Received an unexpected value at index [0] of the CatsModule "imports" array. +Received an unexpected value at index [0] of the CatsModule "imports" array. Scope [AppModule -> CatsModule]`); diff --git a/packages/websockets/interfaces/gateway-metadata.interface.ts b/packages/websockets/interfaces/gateway-metadata.interface.ts index 3832876825c..616c70b3e42 100644 --- a/packages/websockets/interfaces/gateway-metadata.interface.ts +++ b/packages/websockets/interfaces/gateway-metadata.interface.ts @@ -2,7 +2,7 @@ import { CorsOptions } from '@nestjs/common/interfaces/external/cors-options.int /** * External interface - * @see https://github.com/socketio/socket.io/blob/master/lib/index.ts + * @see https://github.com/socketio/socket.io/blob/master/lib/index.ts * @publicApi */ export interface GatewayMetadata { diff --git a/readme_zh.md b/readme_zh.md index 46bd50167ee..85050214f82 100644 --- a/readme_zh.md +++ b/readme_zh.md @@ -4,8 +4,8 @@ [circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456 [circleci-url]: https://circleci.com/gh/nestjs/nest - -

用于构建高效且可扩展的服务器端应用程序的渐进式 Node.js 框架,深受 Angular 的启发。

+ +

用于构建高效且可扩展的服务器端应用程序的渐进式 Node.js 框架,深受 Angular 的启发。

NPM Version Package License @@ -46,7 +46,7 @@ QQ群:277386223 QQ群:336289049 QQ群:489719517 -> 注意:这个交流群不是 NestJS 官方支持和维护的,只是为了方便国内开发者交流而建立的。 +> 注意:这个交流群不是 NestJS 官方支持和维护的,只是为了方便国内开发者交流而建立的。 > (Note: This channel is not officially supported and maintained by the NestJS org members.) ## 赞助商 diff --git a/sample/25-dynamic-modules/README.md b/sample/25-dynamic-modules/README.md index 9343fcc8a09..27bb5c3edd7 100644 --- a/sample/25-dynamic-modules/README.md +++ b/sample/25-dynamic-modules/README.md @@ -6,7 +6,7 @@ [travis-url]: https://travis-ci.org/nestjs/nest [linux-image]: https://img.shields.io/travis/nestjs/nest/master.svg?label=linux [linux-url]: https://travis-ci.org/nestjs/nest - +

A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.

NPM Version diff --git a/sample/26-queues/README.md b/sample/26-queues/README.md index 9343fcc8a09..27bb5c3edd7 100644 --- a/sample/26-queues/README.md +++ b/sample/26-queues/README.md @@ -6,7 +6,7 @@ [travis-url]: https://travis-ci.org/nestjs/nest [linux-image]: https://img.shields.io/travis/nestjs/nest/master.svg?label=linux [linux-url]: https://travis-ci.org/nestjs/nest - +

A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.

NPM Version diff --git a/sample/27-scheduling/README.md b/sample/27-scheduling/README.md index 9343fcc8a09..27bb5c3edd7 100644 --- a/sample/27-scheduling/README.md +++ b/sample/27-scheduling/README.md @@ -6,7 +6,7 @@ [travis-url]: https://travis-ci.org/nestjs/nest [linux-image]: https://img.shields.io/travis/nestjs/nest/master.svg?label=linux [linux-url]: https://travis-ci.org/nestjs/nest - +

A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.

NPM Version diff --git a/sample/28-sse/README.md b/sample/28-sse/README.md index 9343fcc8a09..27bb5c3edd7 100644 --- a/sample/28-sse/README.md +++ b/sample/28-sse/README.md @@ -6,7 +6,7 @@ [travis-url]: https://travis-ci.org/nestjs/nest [linux-image]: https://img.shields.io/travis/nestjs/nest/master.svg?label=linux [linux-url]: https://travis-ci.org/nestjs/nest - +

A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.

NPM Version