@e2e-dev/html-reporter 0.0.3-nightly-20261123030205 → 0.0.3

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.
@@ -0,0 +1,2 @@
1
+ /** A page size as `120 KB` or `3.4 MB`. Rounds up to whole KB first, so just under 1 MB is `1.0 MB`, not `1024 KB`. */
2
+ export declare function formatSize(bytes: number): string;
package/dist/format.js ADDED
@@ -0,0 +1,5 @@
1
+ /** A page size as `120 KB` or `3.4 MB`. Rounds up to whole KB first, so just under 1 MB is `1.0 MB`, not `1024 KB`. */
2
+ export function formatSize(bytes) {
3
+ const kb = Math.ceil(bytes / 1024);
4
+ return kb < 1024 ? `${kb} KB` : `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
5
+ }
package/dist/reporter.js CHANGED
@@ -2,6 +2,7 @@ import { readFile } from 'node:fs/promises';
2
2
  import path from 'node:path';
3
3
  import { fileURLToPath } from 'node:url';
4
4
  import { embedPayload } from './payload.js';
5
+ import { formatSize } from './format.js';
5
6
  /** The built page, filled per run; `vite build` writes it beside this module. */
6
7
  const TEMPLATE_PATH = path.join(path.dirname(fileURLToPath(import.meta.url)), 'app', 'index.html');
7
8
  /**
@@ -151,6 +152,3 @@ function collectSources(value, found) {
151
152
  function toPosix(relative) {
152
153
  return relative.split(path.sep).join('/');
153
154
  }
154
- function formatSize(bytes) {
155
- return bytes < 1024 * 1024 ? `${Math.ceil(bytes / 1024)} KB` : `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
156
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e2e-dev/html-reporter",
3
- "version": "0.0.3-nightly-20261123030205",
3
+ "version": "0.0.3",
4
4
  "description": "HTML reporter for e2e: one self-contained page per run, steps, screenshots, and video",
5
5
  "keywords": [
6
6
  "e2e",
@@ -42,7 +42,7 @@
42
42
  "app/Lucide-LICENSE.txt"
43
43
  ],
44
44
  "peerDependencies": {
45
- "e2e": "0.25.0-nightly-20261123030205"
45
+ "e2e": ">=0.24.1 <1"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@tailwindcss/vite": "4.3.5",
@@ -50,8 +50,8 @@
50
50
  "@types/react": "19.3.0",
51
51
  "@types/react-dom": "19.3.0",
52
52
  "@vitejs/plugin-react": "6.3.0",
53
- "e2e": "0.25.0-nightly-20261123030205",
54
- "lucide-react": "1.77.0",
53
+ "e2e": "0.25.0",
54
+ "lucide-react": "1.79.0",
55
55
  "react": "19.3.1",
56
56
  "react-dom": "19.3.1",
57
57
  "tailwindcss": "4.3.5",