@nest-omni/core 4.1.3-34 → 4.1.3-35

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.
@@ -76,10 +76,6 @@ export declare class HttpLogEntity extends AbstractUuidPrimaryEntity {
76
76
  * 自定义操作名称(用于业务标识)
77
77
  */
78
78
  operationName?: string;
79
- /**
80
- * 客户端IP地址
81
- */
82
- clientIp?: string;
83
79
  /**
84
80
  * 请求来源
85
81
  */
@@ -174,10 +170,6 @@ export interface HttpLogQueryOptions {
174
170
  * 操作名称
175
171
  */
176
172
  operationName?: string;
177
- /**
178
- * 客户端IP
179
- */
180
- clientIp?: string;
181
173
  /**
182
174
  * 请求来源
183
175
  */
@@ -91,11 +91,6 @@ __decorate([
91
91
  (0, typeorm_1.Column)({ type: 'varchar', length: 200, nullable: true }),
92
92
  __metadata("design:type", String)
93
93
  ], HttpLogEntity.prototype, "operationName", void 0);
94
- __decorate([
95
- (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: true }) // 支持IPv6
96
- ,
97
- __metadata("design:type", String)
98
- ], HttpLogEntity.prototype, "clientIp", void 0);
99
94
  __decorate([
100
95
  (0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
101
96
  __metadata("design:type", String)
@@ -616,12 +616,6 @@ let HttpLogQueryService = HttpLogQueryService_1 = class HttpLogQueryService {
616
616
  operationName: options.operationName,
617
617
  });
618
618
  }
619
- // 客户端IP过滤
620
- if (options.clientIp) {
621
- queryBuilder.andWhere('log.clientIp = :clientIp', {
622
- clientIp: options.clientIp,
623
- });
624
- }
625
619
  // 来源过滤
626
620
  if (options.source) {
627
621
  queryBuilder.andWhere('log.source = :source', { source: options.source });
@@ -90,7 +90,6 @@ let HttpLoggingService = HttpLoggingService_1 = class HttpLoggingService {
90
90
  ? sanitize_util_1.SanitizeUtil.sanitizeHeaders(config.headers, sanitize)
91
91
  : undefined,
92
92
  body: logBody && config ? sanitize_util_1.SanitizeUtil.sanitizeBody(config.data, sanitize) : undefined,
93
- clientIp: context.clientIp,
94
93
  serviceName: context.appId,
95
94
  };
96
95
  const logMessage = `HTTP Request [${actualRequestId}]: ${logData.method} ${logData.url}`;
@@ -176,7 +175,6 @@ let HttpLoggingService = HttpLoggingService_1 = class HttpLoggingService {
176
175
  : undefined,
177
176
  serviceName: clientName || context.appId,
178
177
  operationName: callInfo.operationName,
179
- clientIp: context.clientIp,
180
178
  source: (_f = context.metadata) === null || _f === void 0 ? void 0 : _f.source,
181
179
  tags: context.tags,
182
180
  metadata: logData,
@@ -252,7 +250,6 @@ let HttpLoggingService = HttpLoggingService_1 = class HttpLoggingService {
252
250
  errorCode: error.code,
253
251
  serviceName: clientName || context.appId,
254
252
  operationName: callInfo.operationName,
255
- clientIp: context.clientIp,
256
253
  source: (_l = context.metadata) === null || _l === void 0 ? void 0 : _l.source,
257
254
  tags: context.tags,
258
255
  metadata: logData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nest-omni/core",
3
- "version": "4.1.3-34",
3
+ "version": "4.1.3-35",
4
4
  "description": "A comprehensive NestJS framework for building enterprise-grade applications with best practices",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",