@argos-ci/playwright 5.0.5 → 5.0.7

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.
Files changed (2) hide show
  1. package/dist/reporter.js +2 -22
  2. package/package.json +5 -5
package/dist/reporter.js CHANGED
@@ -1,9 +1,7 @@
1
1
  // src/reporter.ts
2
2
  import chalk from "chalk";
3
3
  import { readConfig, upload } from "@argos-ci/core";
4
- import { randomBytes } from "node:crypto";
5
- import { copyFile, mkdir, readdir, writeFile } from "node:fs/promises";
6
- import { tmpdir } from "node:os";
4
+ import { copyFile, readdir, writeFile } from "node:fs/promises";
7
5
  import { dirname, join } from "node:path";
8
6
 
9
7
  // src/attachment.ts
@@ -127,25 +125,7 @@ var KEY = "@argos-ci/playwright";
127
125
  var debug = createDebug(KEY);
128
126
 
129
127
  // src/reporter.ts
130
- var createDirectoryPromises = /* @__PURE__ */ new Map();
131
- async function createDirectory(pathname) {
132
- let promise = createDirectoryPromises.get(pathname);
133
- if (promise) {
134
- return promise;
135
- }
136
- promise = mkdir(pathname, { recursive: true }).then(() => {
137
- });
138
- createDirectoryPromises.set(pathname, promise);
139
- return promise;
140
- }
141
- async function createTemporaryDirectory() {
142
- debug("Creating temporary directory");
143
- const osTmpDirectory = tmpdir();
144
- const path = join(osTmpDirectory, "argos." + randomBytes(16).toString("hex"));
145
- await createDirectory(path);
146
- debug(`Temporary directory created: ${path}`);
147
- return path;
148
- }
128
+ import { createDirectory, createTemporaryDirectory } from "@argos-ci/util";
149
129
  function checkIsDynamicBuildName(buildName) {
150
130
  return Boolean(typeof buildName === "object" && buildName);
151
131
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@argos-ci/playwright",
3
3
  "description": "Playwright SDK for visual testing with Argos.",
4
- "version": "5.0.5",
4
+ "version": "5.0.7",
5
5
  "author": "Smooth Code",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -47,9 +47,9 @@
47
47
  "node": ">=18.16.0"
48
48
  },
49
49
  "dependencies": {
50
- "@argos-ci/browser": "4.1.2",
51
- "@argos-ci/core": "3.2.0",
52
- "@argos-ci/util": "2.3.1",
50
+ "@argos-ci/browser": "4.1.3",
51
+ "@argos-ci/core": "3.2.1",
52
+ "@argos-ci/util": "2.3.2",
53
53
  "chalk": "^5.4.1",
54
54
  "debug": "^4.4.0"
55
55
  },
@@ -67,5 +67,5 @@
67
67
  "check-format": "prettier --check --ignore-unknown --ignore-path=../../.gitignore --ignore-path=../../.prettierignore .",
68
68
  "lint": "eslint ."
69
69
  },
70
- "gitHead": "ce03297aa28db2101dba3f495b8a02025d845981"
70
+ "gitHead": "2941a39afff53f3c28682f7763fe7973cb28372b"
71
71
  }