@bughunters/vision 1.0.1 → 1.0.3

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.
@@ -7,6 +7,7 @@ declare class BugHuntersVisionReporter implements Reporter {
7
7
  private snapshotsDir;
8
8
  private reportDir;
9
9
  constructor(options?: BugHuntersVisionReporterOptions);
10
+ printsToStdio(): boolean;
10
11
  onBegin(): void;
11
12
  onEnd(): void;
12
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"reporter.d.ts","sourceRoot":"","sources":["../src/reporter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAI1D,MAAM,WAAW,+BAA+B;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA87BD,cAAM,wBAAyB,YAAW,QAAQ;IAChD,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,SAAS,CAAS;gBAEd,OAAO,CAAC,EAAE,+BAA+B;IAKrD,OAAO,IAAI,IAAI;IAKf,KAAK,IAAI,IAAI;CA8Cd;AAED,eAAe,wBAAwB,CAAC;AACxC,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
1
+ {"version":3,"file":"reporter.d.ts","sourceRoot":"","sources":["../src/reporter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAI1D,MAAM,WAAW,+BAA+B;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA87BD,cAAM,wBAAyB,YAAW,QAAQ;IAChD,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,SAAS,CAAS;gBAEd,OAAO,CAAC,EAAE,+BAA+B;IAKrD,aAAa,IAAI,OAAO;IAIxB,OAAO,IAAI,IAAI;IAKf,KAAK,IAAI,IAAI;CA8Cd;AAED,eAAe,wBAAwB,CAAC;AACxC,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
package/dist/reporter.js CHANGED
@@ -991,6 +991,9 @@ class BugHuntersVisionReporter {
991
991
  this.snapshotsDir = path.resolve(process.cwd(), options?.snapshotsDir ?? './bhv-snapshots');
992
992
  this.reportDir = path.resolve(process.cwd(), options?.reportDir ?? './bhv-report');
993
993
  }
994
+ printsToStdio() {
995
+ return false;
996
+ }
994
997
  onBegin() {
995
998
  fs.mkdirSync(this.snapshotsDir, { recursive: true });
996
999
  fs.writeFileSync(path.join(this.snapshotsDir, 'results.json'), '[]', 'utf-8');
package/package.json CHANGED
@@ -1,16 +1,20 @@
1
1
  {
2
2
  "name": "@bughunters/vision",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "InfoSec-friendly AI Visual Testing plugin for Playwright.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "exports": {
8
8
  ".": {
9
9
  "require": "./dist/index.js",
10
+ "import": "./dist/index.js",
11
+ "default": "./dist/index.js",
10
12
  "types": "./dist/index.d.ts"
11
13
  },
12
14
  "./reporter": {
13
15
  "require": "./dist/reporter.js",
16
+ "import": "./dist/reporter.js",
17
+ "default": "./dist/reporter.js",
14
18
  "types": "./dist/reporter.d.ts"
15
19
  }
16
20
  },