Skip to content

Commit b9537e6

Browse files
chore(): resolve conflicts
2 parents 21da6ee + 71df040 commit b9537e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+151
-110
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
55
-->
66

77
## I'm submitting a...
8-
<!--
8+
<!--
99
Please search GitHub for a similar issue or PR before submitting.
1010
Check one of the following options with "x" -->
11-
<pre><code>
12-
[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->
13-
[ ] Bug report
14-
[ ] Feature request
15-
[ ] Documentation issue or request (new chapter/page)
16-
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
17-
</code></pre>
11+
12+
- [ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->
13+
- [ ] Bug report
14+
- [ ] Feature request
15+
- [ ] Documentation issue or request (new chapter/page)
16+
- [ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
17+
1818

1919
## Current behavior
2020
<!-- Describe how the issue manifests. -->
@@ -33,11 +33,12 @@ Check one of the following options with "x" -->
3333

3434
## Environment
3535

36-
<pre><code>
37-
For Tooling issues:
38-
- Node version: XX <!-- run `node --version` -->
39-
- Platform: <!-- Mac, Linux, Windows -->
36+
#### For Tooling issues:
37+
<!-- Run `node --version` -->
38+
- Node version: XX
39+
40+
<!-- Mac, Linux, Windows -->
41+
- Platform:
4042

41-
Others:
43+
#### Others:
4244
<!-- Anything else relevant? Operating system version, IDE, package manager, ... -->
43-
</code></pre>

.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/cli/libraries.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ The files generated for a library are slightly different from those generated fo
4040
<div class="children">
4141
<div class="item">src</div>
4242
<div class="children">
43-
<div class="item">my-library.service.ts</div>
44-
<div class="item">my-library.module.ts</div>
4543
<div class="item">index.ts</div>
44+
<div class="item">my-library.module.ts</div>
45+
<div class="item">my-library.service.ts</div>
4646
</div>
4747
<div class="item">tsconfig.lib.json</div>
4848
</div>

content/cli/workspaces.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ nest new my-project
3232
We've constructed a _standard mode_ structure, with a folder structure that looks like this:
3333

3434
<div class="file-tree">
35+
<div class="item">node_modules</div>
3536
<div class="item">src</div>
3637
<div class="children">
3738
<div class="item">app.controller.ts</div>
38-
<div class="item">app.service.ts</div>
3939
<div class="item">app.module.ts</div>
40+
<div class="item">app.service.ts</div>
4041
<div class="item">main.ts</div>
4142
</div>
42-
<div class="item">node_modules</div>
4343
<div class="item">nest-cli.json</div>
4444
<div class="item">package.json</div>
4545
<div class="item">tsconfig.json</div>
@@ -63,8 +63,8 @@ At this point, `nest` converts the existing structure to a **monorepo mode** str
6363
<div class="item">src</div>
6464
<div class="children">
6565
<div class="item">app.controller.ts</div>
66-
<div class="item">app.service.ts</div>
6766
<div class="item">app.module.ts</div>
67+
<div class="item">app.service.ts</div>
6868
<div class="item">main.ts</div>
6969
</div>
7070
<div class="item">tsconfig.app.json</div>
@@ -74,8 +74,8 @@ At this point, `nest` converts the existing structure to a **monorepo mode** str
7474
<div class="item">src</div>
7575
<div class="children">
7676
<div class="item">app.controller.ts</div>
77-
<div class="item">app.service.ts</div>
7877
<div class="item">app.module.ts</div>
78+
<div class="item">app.service.ts</div>
7979
<div class="item">main.ts</div>
8080
</div>
8181
<div class="item">tsconfig.app.json</div>

content/components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Providers
22

3-
Providers are a fundamental concept in Nest. Many of the basic Nest classes may be treated as a provider – services, repositories, factories, helpers, and so on. The main idea of a provider is that it can **inject** dependencies; this means objects can create various relationships with each other, and the function of "wiring up" instances of objects can largely be delegated to the Nest runtime system.
3+
Providers are a fundamental concept in Nest. Many of the basic Nest classes may be treated as a provider – services, repositories, factories, helpers, and so on. The main idea of a provider is that it can be **injected** as dependency; this means objects can create various relationships with each other, and the function of "wiring up" instances of objects can largely be delegated to the Nest runtime system.
44

55
<figure><img src="/assets/Components_1.png" /></figure>
66

@@ -197,8 +197,8 @@ This is how our directory structure should look now:
197197
<div class="children">
198198
<div class="item">cat.interface.ts</div>
199199
</div>
200-
<div class="item">cats.service.ts</div>
201200
<div class="item">cats.controller.ts</div>
201+
<div class="item">cats.service.ts</div>
202202
</div>
203203
<div class="item">app.module.ts</div>
204204
<div class="item">main.ts</div>

content/controllers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ create() {
236236

237237
To redirect a response to a specific URL, you can either use a `@Redirect()` decorator or a library-specific response object (and call `res.redirect()` directly).
238238

239-
`@Redirect()` takes a required `url` argument, and an optional `statusCode` argument. The `statusCode` defaults to `302` (`Found`) if omitted.
239+
`@Redirect()` takes two arguments, `url` and `statusCode`, both are optional. The default value of `statusCode` is `302` (`Found`) if omitted.
240240

241241
```typescript
242242
@Get()

content/discover/who-uses.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@
243243
"https://datenlotse.org",
244244
"https://bemum.co",
245245
"https://weoptimeye.ai",
246-
"https://nemovote.com"
246+
"https://nemovote.com",
247+
"https://selleo.com",
248+
"https://pchas.ir",
249+
"https://tayeh.ir",
250+
"https://forwardigital.co.uk"
247251
]
248252
}

content/first-steps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ $ npm i -g @nestjs/cli
2121
$ nest new project-name
2222
```
2323

24-
The `project` directory will be created, node modules and a few other boilerplate files will be installed, and a `src/` directory will be created and populated with several core files.
24+
The `project-name` directory will be created, node modules and a few other boilerplate files will be installed, and a `src/` directory will be created and populated with several core files.
2525

2626
<div class="file-tree">
2727
<div class="item">src</div>
2828
<div class="children">
29-
<div class="item">app.controller.ts</div>
3029
<div class="item">app.controller.spec.ts</div>
30+
<div class="item">app.controller.ts</div>
3131
<div class="item">app.module.ts</div>
3232
<div class="item">app.service.ts</div>
3333
<div class="item">main.ts</div>

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

0 commit comments

Comments
 (0)