@bigbinary/neeto-playwright-reporter 1.3.0 → 1.3.2

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/index.js CHANGED
@@ -15905,7 +15905,7 @@ RedirectableRequest.prototype._processResponse = function (response) {
15905
15905
  redirectUrl.protocol !== "https:" ||
15906
15906
  redirectUrl.host !== currentHost &&
15907
15907
  !isSubdomain(redirectUrl.host, currentHost)) {
15908
- removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
15908
+ removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
15909
15909
  }
15910
15910
 
15911
15911
  // Evaluate the beforeRedirect callback
@@ -18552,6 +18552,7 @@ const sendHeartBeatSignal = async (ciBuildId) => {
18552
18552
  await runsApi.heartbeat(ciBuildId);
18553
18553
  }
18554
18554
  catch (error) {
18555
+ console.log(error.message);
18555
18556
  consoleLogFormatted.error(ERRORS.heartbeat.stopped);
18556
18557
  process.exit(1);
18557
18558
  }
@@ -18614,10 +18615,11 @@ class MyReporter {
18614
18615
  this.currentShard = shard === null || shard === void 0 ? void 0 : shard.current;
18615
18616
  };
18616
18617
  this.onTestBegin = async ({ id, title }, { retry }) => {
18618
+ var _a, _b;
18617
18619
  consoleLogFormatted.invertBackground(MESSAGES.onTestBegin.startingTest(title));
18618
18620
  try {
18619
18621
  this.retryAttemptStartedAt = new Date();
18620
- while (!this.attempts[id]["0"])
18622
+ while (!((_b = (_a = this.attempts) === null || _a === void 0 ? void 0 : _a[id]) === null || _b === void 0 ? void 0 : _b["0"]))
18621
18623
  await waitUntilTimeout(100); // Poll every 100 milliseconds
18622
18624
  if (retry === 0) {
18623
18625
  await attemptsApi.update(this.ciBuildId, id, this.attempts[id]["0"], {