@arghajit/playwright-pulse-report 0.3.1 → 0.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.
@@ -32,12 +32,15 @@ var __importStar = (this && this.__importStar) || (function () {
32
32
  return result;
33
33
  };
34
34
  })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
35
38
  Object.defineProperty(exports, "__esModule", { value: true });
36
39
  exports.PlaywrightPulseReporter = void 0;
37
40
  const fs = __importStar(require("fs/promises"));
38
41
  const path = __importStar(require("path"));
39
42
  const crypto_1 = require("crypto");
40
- const ua_parser_js_1 = require("ua-parser-js");
43
+ const ua_parser_js_1 = __importDefault(require("ua-parser-js"));
41
44
  const os = __importStar(require("os"));
42
45
  const convertStatus = (status, testCase) => {
43
46
  if ((testCase === null || testCase === void 0 ? void 0 : testCase.expectedStatus) === "failed") {
@@ -119,7 +122,7 @@ class PlaywrightPulseReporter {
119
122
  const projectConfig = project === null || project === void 0 ? void 0 : project.use;
120
123
  const userAgent = projectConfig === null || projectConfig === void 0 ? void 0 : projectConfig.userAgent;
121
124
  const configuredBrowserType = (_b = projectConfig === null || projectConfig === void 0 ? void 0 : projectConfig.browserName) === null || _b === void 0 ? void 0 : _b.toLowerCase();
122
- const parser = new ua_parser_js_1.UAParser(userAgent);
125
+ const parser = new ua_parser_js_1.default(userAgent);
123
126
  const result = parser.getResult();
124
127
  let browserName = result.browser.name;
125
128
  const browserVersion = result.browser.version
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@arghajit/playwright-pulse-report",
3
3
  "author": "Arghajit Singha",
4
- "version": "0.3.1",
4
+ "version": "0.3.2",
5
5
  "description": "A Playwright reporter and dashboard for visualizing test results.",
6
6
  "homepage": "https://playwright-pulse-report.netlify.app/",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/Arghajit47/playwright-pulse"
10
+ },
7
11
  "keywords": [
8
12
  "playwright",
9
13
  "reporter",
@@ -68,7 +72,7 @@
68
72
  "nodemailer": "^7.0.3",
69
73
  "patch-package": "^8.0.0",
70
74
  "recharts": "^2.15.1",
71
- "ua-parser-js": "^2.0.3",
75
+ "ua-parser-js": "^1.0.41",
72
76
  "zod": "^3.24.2"
73
77
  },
74
78
  "devDependencies": {