@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.cjs.js CHANGED
@@ -15924,7 +15924,7 @@ RedirectableRequest.prototype._processResponse = function (response) {
15924
15924
  redirectUrl.protocol !== "https:" ||
15925
15925
  redirectUrl.host !== currentHost &&
15926
15926
  !isSubdomain(redirectUrl.host, currentHost)) {
15927
- removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
15927
+ removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
15928
15928
  }
15929
15929
 
15930
15930
  // Evaluate the beforeRedirect callback
@@ -18571,6 +18571,7 @@ const sendHeartBeatSignal = async (ciBuildId) => {
18571
18571
  await runsApi.heartbeat(ciBuildId);
18572
18572
  }
18573
18573
  catch (error) {
18574
+ console.log(error.message);
18574
18575
  consoleLogFormatted.error(ERRORS.heartbeat.stopped);
18575
18576
  process.exit(1);
18576
18577
  }
@@ -18633,10 +18634,11 @@ class MyReporter {
18633
18634
  this.currentShard = shard === null || shard === void 0 ? void 0 : shard.current;
18634
18635
  };
18635
18636
  this.onTestBegin = async ({ id, title }, { retry }) => {
18637
+ var _a, _b;
18636
18638
  consoleLogFormatted.invertBackground(MESSAGES.onTestBegin.startingTest(title));
18637
18639
  try {
18638
18640
  this.retryAttemptStartedAt = new Date();
18639
- while (!this.attempts[id]["0"])
18641
+ while (!((_b = (_a = this.attempts) === null || _a === void 0 ? void 0 : _a[id]) === null || _b === void 0 ? void 0 : _b["0"]))
18640
18642
  await waitUntilTimeout(100); // Poll every 100 milliseconds
18641
18643
  if (retry === 0) {
18642
18644
  await attemptsApi.update(this.ciBuildId, id, this.attempts[id]["0"], {