@testpulse.run/playwright-jsonl-reporter 0.2.3 → 0.2.4

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/dist/index.cjs CHANGED
@@ -28,10 +28,11 @@ __export(index_exports, {
28
28
  module.exports = __toCommonJS(index_exports);
29
29
 
30
30
  // src/reporter.ts
31
- var import_playwright_core = require("@testpulse.run/playwright-core");
31
+ var import_playwright_core2 = require("@testpulse.run/playwright-core");
32
32
  var import_playwright_events = require("@testpulse.run/playwright-events");
33
33
 
34
34
  // src/serialize.ts
35
+ var import_playwright_core = require("@testpulse.run/playwright-core");
35
36
  function serializeCoreEvent(event, context) {
36
37
  return serializeEvent(event, context, "core");
37
38
  }
@@ -46,7 +47,7 @@ function serializeEvent(event, context, stream) {
46
47
  const terminal = readTerminalFacts(event);
47
48
  const run = readRunFacts(event);
48
49
  const eventName = event.eventName;
49
- return omitUndefined({
50
+ return (0, import_playwright_core.redactSecretsInValue)(omitUndefined({
50
51
  schemaVersion: 1,
51
52
  eventId: context.eventId,
52
53
  sequence: context.sequence,
@@ -88,7 +89,7 @@ function serializeEvent(event, context, stream) {
88
89
  attachments: terminal.attachments,
89
90
  outcome: "outcome" in event ? event.outcome : void 0,
90
91
  payload: Object.keys(payload).length > 0 ? payload : void 0
91
- });
92
+ }));
92
93
  }
93
94
  function createPayload(event) {
94
95
  const payload = {};
@@ -327,7 +328,7 @@ var JsonlReporter = class {
327
328
  if (!includeCoreEvents) {
328
329
  corePlugins.push(this.createSinkFinalizerPlugin());
329
330
  }
330
- this.core = new import_playwright_core.TestPulseReporterCore({
331
+ this.core = new import_playwright_core2.TestPulseReporterCore({
331
332
  plugins: corePlugins,
332
333
  failOnHandlerError: options.failOnHandlerError
333
334
  });
@@ -365,7 +366,7 @@ var JsonlReporter = class {
365
366
  }
366
367
  createCorePlugin() {
367
368
  const plugin = { name: "@testpulse.run/playwright-jsonl-reporter/core" };
368
- for (const eventName of Object.values(import_playwright_core.TestPulseReporterEventName)) {
369
+ for (const eventName of Object.values(import_playwright_core2.TestPulseReporterEventName)) {
369
370
  plugin[eventName] = ((event) => {
370
371
  this.writeCoreEvent(event);
371
372
  if (event.eventName === "RunFinished") {
package/dist/index.js CHANGED
@@ -9,6 +9,7 @@ import {
9
9
  } from "@testpulse.run/playwright-events";
10
10
 
11
11
  // src/serialize.ts
12
+ import { redactSecretsInValue } from "@testpulse.run/playwright-core";
12
13
  function serializeCoreEvent(event, context) {
13
14
  return serializeEvent(event, context, "core");
14
15
  }
@@ -23,7 +24,7 @@ function serializeEvent(event, context, stream) {
23
24
  const terminal = readTerminalFacts(event);
24
25
  const run = readRunFacts(event);
25
26
  const eventName = event.eventName;
26
- return omitUndefined({
27
+ return redactSecretsInValue(omitUndefined({
27
28
  schemaVersion: 1,
28
29
  eventId: context.eventId,
29
30
  sequence: context.sequence,
@@ -65,7 +66,7 @@ function serializeEvent(event, context, stream) {
65
66
  attachments: terminal.attachments,
66
67
  outcome: "outcome" in event ? event.outcome : void 0,
67
68
  payload: Object.keys(payload).length > 0 ? payload : void 0
68
- });
69
+ }));
69
70
  }
70
71
  function createPayload(event) {
71
72
  const payload = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testpulse.run/playwright-jsonl-reporter",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Append-only JSONL event reporter for Playwright TestPulse events.",
5
5
  "homepage": "https://testpulse.run",
6
6
  "keywords": [
@@ -36,8 +36,8 @@
36
36
  "test": "vitest run"
37
37
  },
38
38
  "dependencies": {
39
- "@testpulse.run/playwright-core": "0.2.3",
40
- "@testpulse.run/playwright-events": "0.2.3"
39
+ "@testpulse.run/playwright-core": "0.2.4",
40
+ "@testpulse.run/playwright-events": "0.2.4"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@playwright/test": ">=1.40.0"