Skip to content

Commit 6221f11

Browse files
Merge branch 'master' into patch-1
2 parents 97cab0f + 4beef39 commit 6221f11

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ Please check if your PR fulfills the following requirements:
88
What kind of change does this PR introduce?
99

1010
<!-- Please check the one that applies to this PR using "x". -->
11-
```
12-
[ ] Bugfix
13-
[ ] Feature
14-
[ ] Code style update (formatting, local variables)
15-
[ ] Refactoring (no functional changes, no api changes)
16-
[ ] Build related changes
17-
[ ] Docs
18-
[ ] Other... Please describe:
19-
```
11+
12+
- [ ] Bugfix
13+
- [ ] Feature
14+
- [ ] Code style update (formatting, local variables)
15+
- [ ] Refactoring (no functional changes, no api changes)
16+
- [ ] Build related changes
17+
- [ ] Docs
18+
- [ ] Other... Please describe:
19+
2020

2121
## What is the current behavior?
2222
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
@@ -28,10 +28,9 @@ Issue Number: N/A
2828

2929

3030
## Does this PR introduce a breaking change?
31-
```
32-
[ ] Yes
33-
[ ] No
34-
```
31+
- [ ] Yes
32+
- [ ] No
33+
3534

3635
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
3736

content/application-context.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ The standalone application object allows you to obtain a reference to any instan
1919

2020
```typescript
2121
@@filename()
22-
const app = await NestFactory.create(AppModule);
22+
const app = await NestFactory.createApplicationContext(AppModule);
2323
const tasksService = app.get(TasksService);
2424
```
2525

2626
To access the `TasksService` instance we use the `get()` method. The `get()` method acts like a **query** that searches for an instance in each registered module. Alternatively, for strict context checking, pass an options object with the `strict: true` property. With this option in effect, you have to navigate through specific modules to obtain a particular instance from the selected context.
2727

2828
```typescript
2929
@@filename()
30-
const app = await NestFactory.create(AppModule);
30+
const app = await NestFactory.createApplicationContext(AppModule);
3131
const tasksService = app.select(TasksModule).get(TasksService, { strict: true });
3232
```
3333

content/discover/who-uses.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@
246246
"https://nemovote.com",
247247
"https://selleo.com",
248248
"https://pchas.ir",
249-
"https://tayeh.ir"
249+
"https://tayeh.ir",
250+
"https://forwardigital.co.uk"
250251
]
251252
}

content/fundamentals/dependency-injection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Custom providers
22

3-
In earlier chapters, we touched on various aspects of **Dependency Injection (DI)** and how it is used in Nest. One example of this is the [constructor based](https://docs.nestjs.com/providers#dependency-injection) dependency injection used to inject instances (often service providers) into classes. You won't be surprised to learn that Dependency Injection is built in to the Nest core in a fundamental way. So far, we've only explored one main pattern. As your application grows more complex, you may need to take advantage of the full features of the DI system, so let's explore them in more detail.
3+
In earlier chapters, we touched on various aspects of **Dependency Injection (DI)** and how it is used in Nest. One example of this is the [constructor based](https://docs.nestjs.com/providers#dependency-injection) dependency injection used to inject instances (often service providers) into classes. You won't be surprised to learn that Dependency Injection is built into the Nest core in a fundamental way. So far, we've only explored one main pattern. As your application grows more complex, you may need to take advantage of the full features of the DI system, so let's explore them in more detail.
44

55
#### DI fundamentals
66

content/microservices/exception-filters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class ExceptionFilter {
4545
}
4646
```
4747

48-
> warning **Warning** You cannot set up global microservice exception filters when using a [hybrid application](/faq/hybrid-application).
48+
> warning **Warning** Global microservice exception filters aren't enabled by default when using a [hybrid application](/faq/hybrid-application).
4949
5050
The following example uses a manually instantiated method-scoped filter. Just as with HTTP based applications, you can also use controller-scoped filters (i.e., prefix the controller class with a `@UseFilters()` decorator).
5151

content/security/encryption-hashing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Node.js provides a built-in [crypto module](https://nodejs.org/api/crypto.html)
1111
As an example, let's use AES (Advanced Encryption System) `'aes-256-ctr'` algorithm CTR encryption mode.
1212

1313
```typescript
14-
import { createCipheriv, randomBytes } from 'crypto';
14+
import { createCipheriv, randomBytes, scrypt } from 'crypto';
1515
import { promisify } from 'util';
1616

1717
const iv = randomBytes(16);

content/security/helmet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[Helmet](https://github.com/helmetjs/helmet) can help protect your app from some well-known web vulnerabilities by setting HTTP headers appropriately. Generally, Helmet is just a collection of 14 smaller middleware functions that set security-related HTTP headers (read [more](https://github.com/helmetjs/helmet#how-it-works)).
44

5-
> info **Hint** Note that applying `helmet` as global or registering it must come before other calls to `app.use()` or setup functions that may call `app.use()`). This is due to the way the underlying platform (i.e., Express or Fastify) works, where the order that middleware/routes are defined matters. If you use middleware like `helmet` or `cors` after you define a route, then that middleware will not apply to that route, it will only apply to middleware defined after the route.
5+
> info **Hint** Note that applying `helmet` as global or registering it must come before other calls to `app.use()` or setup functions that may call `app.use()`. This is due to the way the underlying platform (i.e., Express or Fastify) works, where the order that middleware/routes are defined matters. If you use middleware like `helmet` or `cors` after you define a route, then that middleware will not apply to that route, it will only apply to middleware defined after the route.
66
77
#### Use with Express (default)
88

0 commit comments

Comments
 (0)