Skip to content

Commit fad6e89

Browse files
Merge pull request #2622 from Lioness100/master
docs: fix typos
2 parents fe7886b + 06d36f9 commit fad6e89

File tree

11 files changed

+14
-14
lines changed

11 files changed

+14
-14
lines changed

content/faq/serverless.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Also, depending on whether you want to run a typical HTTP application with multi
172172
your application's code will look different (for example, for the endpoint-per-function approach you could use the `NestFactory.createApplicationContext` instead of booting the HTTP server, setting up middleware, etc.).
173173

174174
Just for illustration purposes, we'll integrate Nest (using `@nestjs/platform-express` and so spinning up the whole, fully functional HTTP router)
175-
with the [Serverless](https://www.serverless.com/) framework (in this case, targetting AWS Lambda). As we've mentioned earlier, your code will differ depending on the cloud provider you choose, and many other factors.
175+
with the [Serverless](https://www.serverless.com/) framework (in this case, targeting AWS Lambda). As we've mentioned earlier, your code will differ depending on the cloud provider you choose, and many other factors.
176176

177177
First, let's install the required packages:
178178

content/fundamentals/unit-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ Each of the override method types, in turn, returns the `TestingModule` instance
327327
328328
Also, sometimes you may want to provide a custom logger e.g. when the tests are run (for example, on a CI server). Use the `setLogger()` method and pass an object that fulfills the `LoggerService` interface to instruct the `TestModuleBuilder` how to log during tests (by default, only "error" logs will be logged to the console).
329329
330-
> warning **Warning** The `@nestjs/core` package exposes unique provider tokens with the `APP_` prefix to help on define global enhancers. Those tokens cannot be overriden since they can represent multiple providers. Thus you can't use `.overrideProvider(APP_GUARD)` (and so on). If you want to override some global enhancer, follow [this workaround](https://github.com/nestjs/nest/issues/4053#issuecomment-585612462).
330+
> warning **Warning** The `@nestjs/core` package exposes unique provider tokens with the `APP_` prefix to help on define global enhancers. Those tokens cannot be overridden since they can represent multiple providers. Thus you can't use `.overrideProvider(APP_GUARD)` (and so on). If you want to override some global enhancer, follow [this workaround](https://github.com/nestjs/nest/issues/4053#issuecomment-585612462).
331331
332332
The compiled module has several useful methods, as described in the following table:
333333

content/graphql/federation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ export class AppModule {}
713713

714714
#### Federated example: Gateway
715715

716-
The gateway requires a list of endpoints to be specified and it will auto-discover the corresponding schemas. Therefore the implementation of the gateway servce will remain the same for both code and schema first approaches.
716+
The gateway requires a list of endpoints to be specified and it will auto-discover the corresponding schemas. Therefore the implementation of the gateway service will remain the same for both code and schema first approaches.
717717

718718
```typescript
719719
import {

content/graphql/subscriptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ GraphQLModule.forRoot<MercuriusDriverConfig>({
564564

565565
Checking whether the user is authenticated can be done inside the `verifyClient` callback function that you can specify in the `subscription` options.
566566

567-
The `verifyClient` will receive the `info` object as a first argument which you can use to retrive the request's headers.
567+
The `verifyClient` will receive the `info` object as a first argument which you can use to retrieve the request's headers.
568568

569569
```typescript
570570
GraphQLModule.forRoot<MercuriusDriverConfig>({

content/microservices/custom-transport.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Hello world!
103103

104104
Which means that our method handler was properly executed.
105105

106-
When using a `CustomTransportStrategy` with [Interceptors](/interceptors) the handlers are wrapped into RxJS streams. This means that you need to subscribe to them in order to excute the streams underlying logic (e.g. continue into the controller logic after an interceptor has been excuted).
106+
When using a `CustomTransportStrategy` with [Interceptors](/interceptors) the handlers are wrapped into RxJS streams. This means that you need to subscribe to them in order to execute the streams underlying logic (e.g. continue into the controller logic after an interceptor has been executed).
107107

108108
An example of this can be seen below:
109109

@@ -122,7 +122,7 @@ async listen(callback: () => void) {
122122

123123
As we mentioned in the first section, you don't necessarily need to use the `@nestjs/microservices` package to create microservices, but if you decide to do so and you need to integrate a custom strategy, you will need to provide a "client" class too.
124124

125-
> info **Hint** Again, implementing a fully-featured client class compatible with all `@nestjs/microservices` features (e.g., streaming) requires a good understading of communication techniques used by the framework. To learn more, check out this [article](https://dev.to/nestjs/part-4-basic-client-component-16f9).
125+
> info **Hint** Again, implementing a fully-featured client class compatible with all `@nestjs/microservices` features (e.g., streaming) requires a good understanding of communication techniques used by the framework. To learn more, check out this [article](https://dev.to/nestjs/part-4-basic-client-component-16f9).
126126
127127
To communicate with an external service/emit & publish messages (or events) you can either use a library-specific SDK package, or implement a custom client class that extends the `ClientProxy`, as follows:
128128

content/migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ app = moduleFixture.createNestApplication<NestExpressApplication>({
6262

6363
#### Kafka message/event handlers
6464

65-
Previously, Kafka message and event handlers were receiving payloads as wrapped Kafka messages with `key`, `value`, `headers`, and a few other properites. In v9, those payloads are automatically unwrapped and your handlers will only receive the `value` attribute's value. To retrieve the original Kafka message, you can use the `KafkaContext` object (read more [here](/microservices/kafka#context)).
65+
Previously, Kafka message and event handlers were receiving payloads as wrapped Kafka messages with `key`, `value`, `headers`, and a few other properties. In v9, those payloads are automatically unwrapped and your handlers will only receive the `value` attribute's value. To retrieve the original Kafka message, you can use the `KafkaContext` object (read more [here](/microservices/kafka#context)).
6666

6767
```typescript
6868
// Before

content/recipes/mikroorm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ const storage = new AsyncLocalStorage<EntityManager>();
245245
imports: [
246246
MikroOrmModule.forRoot({
247247
// ...
248-
registerRequestContext: false, // disable automatatic middleware
248+
registerRequestContext: false, // disable automatic middleware
249249
context: () => storage.getStore(), // use our AsyncLocalStorage instance
250250
}),
251251
],

content/techniques/file-upload.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ export abstract class FileValidator<TValidationOptions = Record<string, any>> {
120120
- `MaxFileSizeValidator` - Checks if a given file's size is less than the provided value (measured in `bytes`)
121121
- `FileTypeValidator` - Checks if a given file's mime-type matches the given value.
122122

123-
> warning **Warning** To verify file type, [FileTypeValidator](https://github.com/nestjs/nest/blob/master/packages/common/pipes/file/file-type.validator.ts) class uses the type as detected by multer. By default, multer derives file type from file extension on user's device. However, it does not check actual file contents. As files can be renamed to arbitraty extensions, consider using a custom implementation (like checking the file's [magic number](https://www.ibm.com/support/pages/what-magic-number)) if your app requires a safer solution.
123+
> warning **Warning** To verify file type, [FileTypeValidator](https://github.com/nestjs/nest/blob/master/packages/common/pipes/file/file-type.validator.ts) class uses the type as detected by multer. By default, multer derives file type from file extension on user's device. However, it does not check actual file contents. As files can be renamed to arbitrary extensions, consider using a custom implementation (like checking the file's [magic number](https://www.ibm.com/support/pages/what-magic-number)) if your app requires a safer solution.
124124
125-
To understand how these can be used in conjunction with the beforementioned `FileParsePipe`, we'll use an altered snippet of the last presented example:
125+
To understand how these can be used in conjunction with the aforementioned `FileParsePipe`, we'll use an altered snippet of the last presented example:
126126

127127
```typescript
128128
@UploadedFile(

src/app/homepage/pages/cli/cli.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { CommonModule } from '@angular/common';
22
import { NgModule } from '@angular/core';
33
import { RouterModule, Routes } from '@angular/router';
44
import { SharedModule } from './../../../shared/shared.module';
5-
import { CliLibrariesComponent } from './libraries/libaries.component';
5+
import { CliLibrariesComponent } from './libraries/libraries.component';
66
import { CliOverviewComponent } from './overview/overview.component';
77
import { CliUsagesComponent } from './usages/usages.component';
88
import { CliWorkspacesComponent } from './workspaces/workspaces.component';

0 commit comments

Comments
 (0)