@contrast/common 1.34.2 → 1.35.0

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.
Files changed (2) hide show
  1. package/lib/types.d.ts +7 -1
  2. package/package.json +1 -1
package/lib/types.d.ts CHANGED
@@ -207,7 +207,6 @@ export declare class Blocker {
207
207
  block(mode: string, ruleId: string): void;
208
208
  }
209
209
  export interface ProtectMessage {
210
- reqData: ReqData;
211
210
  blocker: Blocker;
212
211
  policy: Partial<Record<Rule, ProtectRuleMode>>;
213
212
  exclusions: any[];
@@ -226,6 +225,13 @@ export interface SourceInfo {
226
225
  port: number;
227
226
  protocol: string;
228
227
  time: number;
228
+ method: string;
229
+ rawHeaders: string[];
230
+ uriPath: string;
231
+ queries: string;
232
+ contentType?: string;
233
+ ip: string;
234
+ httpVersion: string;
229
235
  }
230
236
  /**
231
237
  * this is known as RequestStore even though, in the future, instrumentation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/common",
3
- "version": "1.34.2",
3
+ "version": "1.35.0",
4
4
  "description": "Shared constants and utilities for all Contrast Agent modules",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",