@plune-ai/playwright 0.7.4 → 0.7.5

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
@@ -873,8 +873,8 @@ function textRefusal(bytes) {
873
873
  return void 0;
874
874
  }
875
875
  function withoutTargets(result) {
876
- if (result.targets === void 0) return result;
877
- const { targets: _targets, ...rest } = result;
876
+ if (result.targets === void 0 && result.traceUrl === void 0) return result;
877
+ const { targets: _targets, traceUrl: _traceUrl, ...rest } = result;
878
878
  return rest;
879
879
  }
880
880
  function onDisk(deferred) {
@@ -1712,8 +1712,8 @@ async function startRun(passed, declared2) {
1712
1712
  { results, ...configuration !== void 0 ? { configuration } : {} }
1713
1713
  );
1714
1714
  let out = await post(part);
1715
- if (!out.ok && out.kind === "invalid" && out.status === 400 && part.some((r) => r.targets !== void 0)) {
1716
- if (!targetsRefused) log("plune: the platform does not take targets on a result yet \u2014 the results are sent without them.");
1715
+ if (!out.ok && out.kind === "invalid" && out.status === 400 && part.some((r) => r.targets !== void 0 || r.traceUrl !== void 0)) {
1716
+ if (!targetsRefused) log("plune: the platform does not take targets or a trace link on a result yet \u2014 the results are sent without them.");
1717
1717
  targetsRefused = true;
1718
1718
  part = part.map(withoutTargets);
1719
1719
  out = await post(part);
package/dist/index.js CHANGED
@@ -839,8 +839,8 @@ function textRefusal(bytes) {
839
839
  return void 0;
840
840
  }
841
841
  function withoutTargets(result) {
842
- if (result.targets === void 0) return result;
843
- const { targets: _targets, ...rest } = result;
842
+ if (result.targets === void 0 && result.traceUrl === void 0) return result;
843
+ const { targets: _targets, traceUrl: _traceUrl, ...rest } = result;
844
844
  return rest;
845
845
  }
846
846
  function onDisk(deferred) {
@@ -1678,8 +1678,8 @@ async function startRun(passed, declared2) {
1678
1678
  { results, ...configuration !== void 0 ? { configuration } : {} }
1679
1679
  );
1680
1680
  let out = await post(part);
1681
- if (!out.ok && out.kind === "invalid" && out.status === 400 && part.some((r) => r.targets !== void 0)) {
1682
- if (!targetsRefused) log("plune: the platform does not take targets on a result yet \u2014 the results are sent without them.");
1681
+ if (!out.ok && out.kind === "invalid" && out.status === 400 && part.some((r) => r.targets !== void 0 || r.traceUrl !== void 0)) {
1682
+ if (!targetsRefused) log("plune: the platform does not take targets or a trace link on a result yet \u2014 the results are sent without them.");
1683
1683
  targetsRefused = true;
1684
1684
  part = part.map(withoutTargets);
1685
1685
  out = await post(part);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plune-ai/playwright",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "description": "Report Playwright results to Plune — a reporter and, later, a test importer.",
5
5
  "keywords": [
6
6
  "playwright",
@@ -38,7 +38,7 @@
38
38
  "tsup": "^8.0.0",
39
39
  "typescript": "^5.4.0",
40
40
  "vitest": "^1.6.0",
41
- "@plune-ai/cli": "0.39.7"
41
+ "@plune-ai/cli": "0.39.8"
42
42
  },
43
43
  "repository": {
44
44
  "type": "git",