@pxp-nd/core 1.2.82 → 1.2.84

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.
@@ -23,6 +23,7 @@ export declare class Controller implements ControllerInterface {
23
23
  validated: boolean;
24
24
  params: Record<string, unknown>[];
25
25
  pxpParams: any;
26
+ headers: any;
26
27
  router: import("express-serve-static-core").Router;
27
28
  path: string;
28
29
  module: string;
@@ -195,6 +195,7 @@ class Controller {
195
195
  // Execute our method for this path and pass our express request and response object.
196
196
  const params = Object.assign(Object.assign({}, req.files), req.paramasMerge);
197
197
  this.pxpParams = req.pxpParams;
198
+ this.headers = req.headers;
198
199
  if (req.user) {
199
200
  // this.user = req.user as User;
200
201
  this.user = req.user;
@@ -250,7 +251,7 @@ class Controller {
250
251
  await index_1.__(queryRunner.connect());
251
252
  await index_1.__(queryRunner.startTransaction());
252
253
  try {
253
- metResponse = (await eval(`this.${methodName}(params, queryRunner.manager, res)`));
254
+ metResponse = (await eval(`this.${methodName}(params, queryRunner.manager, res, req)`));
254
255
  await queryRunner.commitTransaction();
255
256
  }
256
257
  catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pxp-nd/core",
3
- "version": "1.2.82",
3
+ "version": "1.2.84",
4
4
  "description": "Contains main files for pxp-nd",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",