Skip to content

Commit a4ab704

Browse files
2 parents 3b2a362 + 727290f commit a4ab704

File tree

6 files changed

+113
-261
lines changed

6 files changed

+113
-261
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.19.0
1+
12.19.1

content/middlewares.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,6 @@ consumer
194194
195195
With the example above, `LoggerMiddleware` will be bound to all routes defined inside `CatsController` **except** the three passed to the `exclude()` method.
196196

197-
<app-banner-shop></app-banner-shop>
198-
199197
#### Functional middleware
200198

201199
The `LoggerMiddleware` class we've been using is quite simple. It has no members, no additional methods, and no dependencies. Why can't we just define it in a simple function instead of a class? In fact, we can. This type of middleware is called **functional middleware**. Let's transform the logger middleware from class-based into functional middleware to illustrate the difference:

content/techniques/validation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ In the [Pipes](/pipes) chapter, we went through the process of building simple p
1616

1717
#### Using the built-in ValidationPipe
1818

19-
> info **Hint** The `ValidationPipe` is imported from the `@nestjs/common` package.
19+
> info **Hint** The `ValidationPipe` is exported from the `@nestjs/common` package.
2020
2121
Because this pipe uses the `class-validator` and `class-transformer` libraries, there are many options available. You configure these settings via a configuration object passed to the pipe. Following are the built-in options:
2222

lighthouserc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"categories:performance": [
1313
"error",
14-
{ "minScore": 0.4, "aggregationMethod": "optimistic" }
14+
{ "minScore": 0.35, "aggregationMethod": "optimistic" }
1515
],
1616
"categories:best-practices": [
1717
"error",

0 commit comments

Comments
 (0)