@biorate/nestjs-tools 1.163.2 → 1.163.3

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,12 @@
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
+ ## [1.163.3](https://github.com/biorate/core/compare/v1.163.2...v1.163.3) (2025-11-18)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **nestjs-tools:** corsOriginHandler added ([b39bfe7](https://github.com/biorate/core/commit/b39bfe73168c0d43cea8b7b738199e2806547303))
11
+
6
12
  ## [1.163.2](https://github.com/biorate/core/compare/v1.163.1...v1.163.2) (2025-11-18)
7
13
 
8
14
  ### Bug Fixes
package/dist/src/cors.js CHANGED
@@ -7,7 +7,7 @@ function corsOriginHandler(origin, callback) {
7
7
  if (!origin)
8
8
  return callback(null, origin);
9
9
  const config = inversion_1.container.get(inversion_1.Types.Config);
10
- const regexp = new RegExp(config.get('allowedOrigin', config.get('package.name').replace('-server', '')));
10
+ const regexp = new RegExp(config.get('ALLOWED_ORIGIN', config.get('package.name').replace('-server', '')));
11
11
  callback(regexp.test(origin) ? null : new errors_1.CorsBadOriginError(origin), origin);
12
12
  }
13
13
  exports.corsOriginHandler = corsOriginHandler;
@@ -1 +1 @@
1
- {"version":3,"file":"cors.js","sourceRoot":"","sources":["../../src/cors.ts"],"names":[],"mappings":";;;AAAA,kDAAsD;AAEtD,qCAA8C;AAE9C,SAAgB,iBAAiB,CAC/B,MAAc,EACd,QAAuD;IAEvD,IAAI,CAAC,MAAM;QAAE,OAAO,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC3C,MAAM,MAAM,GAAG,qBAAS,CAAC,GAAG,CAAU,iBAAK,CAAC,MAAM,CAAC,CAAC;IACpD,MAAM,MAAM,GAAG,IAAI,MAAM,CACvB,MAAM,CAAC,GAAG,CACR,eAAe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