@steroidsjs/nest 1.7.27 → 1.7.28

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.
@@ -2,11 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Context = void 0;
4
4
  const common_1 = require("@nestjs/common");
5
+ const requestIp = require("@supercharge/request-ip");
5
6
  const ContextDto_1 = require("../../usecases/dtos/ContextDto");
6
7
  exports.Context = (0, common_1.createParamDecorator)((data, ctx) => {
7
8
  const request = ctx.switchToHttp().getRequest();
8
9
  const contextDto = new ContextDto_1.ContextDto();
9
10
  contextDto.user = request.user;
11
+ contextDto.ipAddress = requestIp.getClientIp(request);
10
12
  return contextDto;
11
13
  });
12
14
  //# sourceMappingURL=Context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Context.js","sourceRoot":"","sources":["../../../src/infrastructure/decorators/Context.ts"],"names":[],"mappings":";;;AAAA,2CAAwE;AACxE,+DAA0D;AAE7C,QAAA,OAAO,GAAG,IAAA,6BAAoB,EACvC,CAAC,IAAa,EAAE,GAAqB,EAAE,EAAE;IACrC,MAAM,OAAO,GAAG,GAAG,CAAC,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC;IAEhD,MAAM,UAAU,GAAG,IAAI,uBAAU,EAAE,CAAC;IACpC,UAAU,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAC/B,OAAO,UAAU,CAAC;AACtB,CAAC,CACJ,CAAC"}
1
+ {"version":3,"file":"Context.js","sourceRoot":"","sources":["../../../src/infrastructure/decorators/Context.ts"],"names":[],"mappings":";;;AAAA,2CAAwE;AACxE,qDAAqD;AACrD,+DAA0D;AAE7C,QAAA,OAAO,GAAG,IAAA,6BAAoB,EACvC,CAAC,IAAa,EAAE,GAAqB,EAAE,EAAE;IACrC,MAAM,OAAO,GAAG,GAAG,CAAC,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC;IAEhD,MAAM,UAAU,GAAG,IAAI,uBAAU,EAAE,CAAC;IACpC,UAAU,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAC/B,UAAU,CAAC,SAAS,GAAG,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACtD,OAAO,UAAU,CAAC;AACtB,CAAC,CACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/nest",
3
- "version": "1.7.27",
3
+ "version": "1.7.28",
4
4
  "scripts": {
5
5
  "script": "nps",
6
6
  "watch": "nps watch",
@@ -20,29 +20,30 @@
20
20
  "url": "https://github.com/steroids/nest/issues"
21
21
  },
22
22
  "dependencies": {
23
- "@steroidsjs/nest-typeorm": "^9.0.3",
24
- "@steroidsjs/typeorm": "^0.3.11",
25
- "pg": "^8.9.0",
26
23
  "@dbml/core": "^2.4.4",
27
24
  "@nestjs/cli": "^9.1.9",
28
25
  "@nestjs/common": "^9.2.1",
29
26
  "@nestjs/core": "^9.2.1",
30
27
  "@nestjs/platform-express": "^9.2.1",
31
28
  "@nestjs/swagger": "^6.1.4",
29
+ "@ntegral/nestjs-sentry": "^4.0.0",
30
+ "@sentry/node": "^7.34.0",
31
+ "@sentry/types": "^7.34.0",
32
32
  "@sqltools/formatter": "^1.2.5",
33
+ "@steroidsjs/nest-typeorm": "^9.0.3",
34
+ "@steroidsjs/typeorm": "^0.3.11",
35
+ "@supercharge/request-ip": "^1.2.0",
33
36
  "bluebird": "^3.7.2",
37
+ "body-parser": "^1.20.1",
34
38
  "class-transformer": "^0.5.1",
35
39
  "class-validator": "^0.14.0",
36
40
  "date-fns": "^2.29.3",
37
41
  "express": "^4.18.2",
38
42
  "lodash": "^4.17.21",
39
43
  "nestjs-command": "^3.1.3",
44
+ "pg": "^8.9.0",
40
45
  "pluralize": "^8.0.0",
41
- "uuid": "^9.0.0",
42
- "@ntegral/nestjs-sentry": "^4.0.0",
43
- "@sentry/node": "^7.34.0",
44
- "@sentry/types": "^7.34.0",
45
- "body-parser": "^1.20.1"
46
+ "uuid": "^9.0.0"
46
47
  },
47
48
  "devDependencies": {
48
49
  "@jest/globals": "^29.4.1",