@rsdk/validation.class-validator 2.4.0 → 2.4.1-next.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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.4.1-next.1](https://github.com/R-Vision/rsdk/compare/v2.4.1-next.0...v2.4.1-next.1) (2023-06-15)
7
+
8
+ **Note:** Version bump only for package @rsdk/validation.class-validator
9
+
10
+ ## [2.4.1-next.0](https://github.com/R-Vision/rsdk/compare/v2.4.0...v2.4.1-next.0) (2023-06-15)
11
+
12
+ **Note:** Version bump only for package @rsdk/validation.class-validator
13
+
6
14
  # [2.4.0](https://github.com/R-Vision/rsdk/compare/v2.3.1...v2.4.0) (2023-06-15)
7
15
 
8
16
  **Note:** Version bump only for package @rsdk/validation.class-validator
@@ -5,5 +5,5 @@ export declare class ClassValidatorConfigInterceptor implements NestInterceptor
5
5
  private globalOptions?;
6
6
  constructor(globalOptions?: ValidatorOptions | undefined);
7
7
  static createProvider(globalOptions: ValidatorOptions): Provider;
8
- intercept(context: ExecutionContext, next: CallHandler): Observable<any>;
8
+ intercept(_context: ExecutionContext, next: CallHandler): Observable<any>;
9
9
  }
@@ -15,13 +15,13 @@ class ClassValidatorConfigInterceptor {
15
15
  useValue: new ClassValidatorConfigInterceptor(globalOptions),
16
16
  };
17
17
  }
18
- intercept(context, next) {
18
+ intercept(_context, next) {
19
19
  return new rxjs_1.Observable((observer) => {
20
20
  config_storage_1.ConfigStorage.run(this.globalOptions, () => {
21
21
  next.handle().subscribe({
22
22
  complete: () => observer.complete(),
23
23
  error: (error) => observer.error(error),
24
- next: (res) => observer.next(res),
24
+ next: (result) => observer.next(result),
25
25
  });
26
26
  });
27
27
  });
@@ -1 +1 @@
1
- {"version":3,"file":"config-interceptor.js","sourceRoot":"","sources":["../../src/internal/config-interceptor.ts"],"names":[],"mappings":";;;AAMA,uCAA+C;AAE/C,+BAAkC;AAElC,qDAAiD;AAEjD,MAAa,+BAA+B;IACtB;IAApB,YAAoB,aAAgC;QAAhC,kBAAa,GAAb,aAAa,CAAmB;IAAG,CAAC;IAExD,MAAM,CAAC,cAAc,CAAC,aAA+B;QACnD,OAAO;YACL,OAAO,EAAE,sBAAe;YACxB,QAAQ,EAAE,IAAI,+BAA+B,CAAC,aAAa,CAAC;SAC7D,CAAC;IACJ,CAAC;IAED,SAAS,CAAC,OAAyB,EAAE,IAAiB;QACpD,OAAO,IAAI,iBAAU,CAAC,CAAC,QAAQ,EAAE,EAAE;YACjC,8BAAa,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,EAAE,GAAG,EAAE;gBACzC,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC;oBACtB,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE;oBACnC,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;oBACvC,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC;iBAClC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AArBD,0EAqBC"}
1
+ {"version":3,"file":"config-interceptor.js","sourceRoot":"","sources":["../../src/internal/config-interceptor.ts"],"names":[],"mappings":";;;AAMA,uCAA+C;AAE/C,+BAAkC;AAElC,qDAAiD;AAEjD,MAAa,+BAA+B;IACtB;IAApB,YAAoB,aAAgC;QAAhC,kBAAa,GAAb,aAAa,CAAmB;IAAG,CAAC;IAExD,MAAM,CAAC,cAAc,CAAC,aAA+B;QACnD,OAAO;YACL,OAAO,EAAE,sBAAe;YACxB,QAAQ,EAAE,IAAI,+BAA+B,CAAC,aAAa,CAAC;SAC7D,CAAC;IACJ,CAAC;IAED,SAAS,CAAC,QAA0B,EAAE,IAAiB;QACrD,OAAO,IAAI,iBAAU,CAAC,CAAC,QAAQ,EAAE,EAAE;YACjC,8BAAa,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,EAAE,GAAG,EAAE;gBACzC,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC;oBACtB,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE;oBACnC,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;oBACvC,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;iBACxC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AArBD,0EAqBC"}
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConfigStorage = void 0;
4
- const async_hooks_1 = require("async_hooks");
4
+ const node_async_hooks_1 = require("node:async_hooks");
5
5
  class ConfigStorage {
6
- static als = new async_hooks_1.AsyncLocalStorage();
6
+ static als = new node_async_hooks_1.AsyncLocalStorage();
7
7
  static run(classValidationPipeOptions, fn) {
8
8
  return this.als.run({ classValidationPipeOptions: classValidationPipeOptions }, fn);
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"config-storage.js","sourceRoot":"","sources":["../../src/internal/config-storage.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAIhD,MAAa,aAAa;IAChB,MAAM,CAAC,GAAG,GAAG,IAAI,+BAAiB,EAEtC,CAAC;IAEL,MAAM,CAAC,GAAG,CACR,0BAAqE,EACrE,EAAiB;QAEjB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACjB,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,EAC1D,EAAE,CACH,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,SAAS;QACd,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,0BAA0B,CAAC;IACzD,CAAC;;AAjBU,sCAAa"}
1
+ {"version":3,"file":"config-storage.js","sourceRoot":"","sources":["../../src/internal/config-storage.ts"],"names":[],"mappings":";;;AAAA,uDAAqD;AAIrD,MAAa,aAAa;IAChB,MAAM,CAAC,GAAG,GAAG,IAAI,oCAAiB,EAEtC,CAAC;IAEL,MAAM,CAAC,GAAG,CACR,0BAAqE,EACrE,EAAiB;QAEjB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACjB,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,EAC1D,EAAE,CACH,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,SAAS;QACd,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,0BAA0B,CAAC;IACzD,CAAC;;AAjBU,sCAAa"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdk/validation.class-validator",
3
- "version": "2.4.0",
3
+ "version": "2.4.1-next.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -13,11 +13,11 @@
13
13
  "peerDependencies": {
14
14
  "@nestjs/common": "^9.0.0",
15
15
  "@nestjs/core": "^9.0.0",
16
- "@rsdk/common": "^2.4.0",
17
- "@rsdk/core": "^2.4.0",
16
+ "@rsdk/common": "^2.4.1-next.0",
17
+ "@rsdk/core": "^2.4.1-next.1",
18
18
  "class-transformer": "^0.5.0",
19
19
  "class-validator": "^0.14.0",
20
20
  "rxjs": "^7.0.0"
21
21
  },
22
- "gitHead": "2c2c1eac3027955838c0883ca1cb76b051a541ed"
22
+ "gitHead": "2cfa3bf3fd2ece85b434ec5e8db3133b4c7f3403"
23
23
  }
@@ -20,13 +20,13 @@ export class ClassValidatorConfigInterceptor implements NestInterceptor {
20
20
  };
21
21
  }
22
22
 
23
- intercept(context: ExecutionContext, next: CallHandler): Observable<any> {
23
+ intercept(_context: ExecutionContext, next: CallHandler): Observable<any> {
24
24
  return new Observable((observer) => {
25
25
  ConfigStorage.run(this.globalOptions, () => {
26
26
  next.handle().subscribe({
27
27
  complete: () => observer.complete(),
28
28
  error: (error) => observer.error(error),
29
- next: (res) => observer.next(res),
29
+ next: (result) => observer.next(result),
30
30
  });
31
31
  });
32
32
  });
@@ -1,4 +1,4 @@
1
- import { AsyncLocalStorage } from 'async_hooks';
1
+ import { AsyncLocalStorage } from 'node:async_hooks';
2
2
 
3
3
  import type { PlatformValidationPipeOptions } from '../types';
4
4