@sectester/scan 0.45.0 → 0.46.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.
package/README.md CHANGED
@@ -267,6 +267,14 @@ const issues = await scan.issues();
267
267
 
268
268
  > It returns control as soon as a scan is done, timeout is gone, or an expectation is satisfied.
269
269
 
270
+ The `expect` method accepts an optional second parameter with options:
271
+
272
+ ```ts
273
+ await scan.expect(Severity.HIGH, { failFast: false });
274
+ ```
275
+
276
+ When `failFast` is set to `false`, the scan will continue running even if issues meeting the threshold are found, collecting all issues before completing. By default, `failFast` is `true`, which means the scan will stop as soon as an issue matching the specified severity threshold is detected.
277
+
270
278
  You can also define a custom expectation passing a function that accepts an instance of `Scan` as follows:
271
279
 
272
280
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sectester/scan",
3
- "version": "0.45.0",
3
+ "version": "0.46.0",
4
4
  "description": "The package defines a simple public API to manage scans and their expectations.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,6 +25,7 @@ export interface Comment {
25
25
  }
26
26
  export interface Issue {
27
27
  id: string;
28
+ entryPointId: string;
28
29
  details: string;
29
30
  name: string;
30
31
  certainty: boolean;