nest-encrypt-cycle 1.0.0 → 1.0.2

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.
Files changed (2) hide show
  1. package/README.md +8 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -24,10 +24,17 @@ npm install nest-encrypt-cycle
24
24
 
25
25
  ```typescript
26
26
  import { Module } from '@nestjs/common';
27
- import { EncryptModule } from 'pinomaker-nest-encrypt';
27
+ import { EncryptModule, EncryptInterceptor } from 'nest-encrypt-cycle';
28
+ import { APP_INTERCEPTOR } from '@nestjs/core';
28
29
 
29
30
  @Module({
30
31
  imports: [EncryptModule.register({ key: 'your-secret-key', whiteList: [] })],
32
+ providers: [
33
+ {
34
+ provide: APP_INTERCEPTOR,
35
+ useClass: EncryptInterceptor,
36
+ },
37
+ ],
31
38
  })
32
39
  export class AppModule {}
33
40
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nest-encrypt-cycle",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "A NestJS interceptor that encrypts/decrypts request and response bodies",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",