nestjs-devtools 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,9 +15,7 @@ Symfony-style debug toolbar for NestJS applications.
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
npm install
|
|
19
|
-
# or
|
|
20
|
-
yarn add @nestjs/devtools
|
|
18
|
+
npm install nestjs-devtools
|
|
21
19
|
```
|
|
22
20
|
|
|
23
21
|
## Usage
|
|
@@ -26,7 +24,7 @@ Import in your root `AppModule`:
|
|
|
26
24
|
|
|
27
25
|
```typescript
|
|
28
26
|
import { Module } from '@nestjs/common';
|
|
29
|
-
import { DevtoolsModule } from '
|
|
27
|
+
import { DevtoolsModule } from 'nestjs-devtools';
|
|
30
28
|
|
|
31
29
|
@Module({
|
|
32
30
|
imports: [
|
|
@@ -55,7 +53,7 @@ export class AppModule {}
|
|
|
55
53
|
|
|
56
54
|
```typescript
|
|
57
55
|
import { Injectable } from '@nestjs/common';
|
|
58
|
-
import { AbstractCollector, DevtoolsData } from '
|
|
56
|
+
import { AbstractCollector, DevtoolsData } from 'nestjs-devtools';
|
|
59
57
|
|
|
60
58
|
@Injectable()
|
|
61
59
|
export class CustomCollector extends AbstractCollector {
|
|
@@ -75,6 +73,8 @@ export class CustomCollector extends AbstractCollector {
|
|
|
75
73
|
Then pass it to `forRoot`:
|
|
76
74
|
|
|
77
75
|
```typescript
|
|
76
|
+
import { DevtoolsModule } from 'nestjs-devtools';
|
|
77
|
+
|
|
78
78
|
DevtoolsModule.forRoot({ collectors: [CustomCollector] })
|
|
79
79
|
```
|
|
80
80
|
|