@alternative-path/testlens-playwright-reporter 0.4.3 → 0.4.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/package.json CHANGED
@@ -1,82 +1,74 @@
1
- {
2
- "name": "@alternative-path/testlens-playwright-reporter",
3
- "version": "0.4.3",
4
- "description": "Universal Playwright reporter for TestLens - works with both TypeScript and JavaScript projects",
5
- "main": "index.js",
6
- "types": "index.d.ts",
7
- "bin": {
8
- "testlens-cross-env": "cross-env.js"
9
- },
10
- "files": [
11
- "index.js",
12
- "index.d.ts",
13
- "index.ts",
14
- "lib/",
15
- "postinstall.js",
16
- "cross-env.js",
17
- "README.md",
18
- "CHANGELOG.md"
19
- ],
20
- "scripts": {
21
- "postinstall": "node postinstall.js",
22
- "prepack": "node build-embed-env.js",
23
- "prepublishOnly": "npm run lint && npm run test",
24
- "test": "echo 'Tests will be added in future versions'",
25
- "lint": "echo 'Linting passed - no linter configured yet'",
26
- "build": "tsc",
27
- "dev": "node index.js"
28
- },
29
- "keywords": [
30
- "playwright",
31
- "reporter",
32
- "testing",
33
- "testlens",
34
- "typescript",
35
- "javascript",
36
- "e2e",
37
- "automation",
38
- "ci-cd",
39
- "dashboard",
40
- "test-reporting"
41
- ],
42
- "author": {
43
- "name": "TestLens Team",
44
- "email": "support@alternative-path.com",
45
- "url": "https://testlens.qa-path.com"
46
- },
47
- "license": "MIT",
48
- "peerDependencies": {
49
- "@playwright/test": ">=1.40.0"
50
- },
51
- "dependencies": {
52
- "@aws-sdk/client-s3": "^3.624.0",
53
- "@aws-sdk/s3-request-presigner": "^3.624.0",
54
- "axios": "^1.11.0",
55
- "cross-env": "^7.0.3",
56
- "dotenv": "^16.4.5",
57
- "form-data": "^4.0.1",
58
- "mime": "^4.0.4",
59
- "tslib": "^2.8.1"
60
- },
61
- "engines": {
62
- "node": ">=16.0.0",
63
- "npm": ">=8.0.0"
64
- },
65
- "repository": {
66
- "type": "git",
67
- "url": "git+https://github.com/alternative-path/testlens-reporter.git",
68
- "directory": "."
69
- },
70
- "bugs": {
71
- "url": "https://github.com/alternative-path/testlens-reporter/issues"
72
- },
73
- "homepage": "https://github.com/alternative-path/testlens-reporter#readme",
74
- "publishConfig": {
75
- "access": "public",
76
- "registry": "https://registry.npmjs.org/"
77
- },
78
- "devDependencies": {
79
- "@types/node": "^24.3.1",
80
- "typescript": "^5.9.2"
81
- }
82
- }
1
+ {
2
+ "name": "@alternative-path/testlens-playwright-reporter",
3
+ "version": "0.4.5",
4
+ "description": "Universal Playwright reporter for TestLens - works with both TypeScript and JavaScript projects",
5
+ "main": "index.js",
6
+ "types": "index.d.ts",
7
+ "bin": {
8
+ "testlens-cross-env": "cross-env.js"
9
+ },
10
+ "files": [
11
+ "index.js",
12
+ "index.d.ts",
13
+ "index.ts",
14
+ "lib/",
15
+ "postinstall.js",
16
+ "cross-env.js",
17
+ "README.md",
18
+ "CHANGELOG.md"
19
+ ],
20
+ "scripts": {
21
+ "postinstall": "node postinstall.js",
22
+ "prepack": "node build-embed-env.js",
23
+ "prepublishOnly": "npm run lint && npm run test",
24
+ "test": "echo 'Tests will be added in future versions'",
25
+ "lint": "echo 'Linting passed - no linter configured yet'",
26
+ "build": "tsc",
27
+ "dev": "node index.js"
28
+ },
29
+ "keywords": [
30
+ "playwright",
31
+ "reporter",
32
+ "testing",
33
+ "testlens",
34
+ "typescript",
35
+ "javascript",
36
+ "e2e",
37
+ "automation",
38
+ "ci-cd",
39
+ "dashboard",
40
+ "test-reporting"
41
+ ],
42
+ "author": {
43
+ "name": "TestLens Team",
44
+ "email": "support@alternative-path.com",
45
+ "url": "https://testlens.qa-path.com"
46
+ },
47
+ "license": "MIT",
48
+ "peerDependencies": {
49
+ "@playwright/test": ">=1.40.0"
50
+ },
51
+ "dependencies": {
52
+ "@aws-sdk/client-s3": "^3.624.0",
53
+ "@aws-sdk/s3-request-presigner": "^3.624.0",
54
+ "axios": "^1.11.0",
55
+ "cross-env": "^7.0.3",
56
+ "dotenv": "^16.4.5",
57
+ "form-data": "^4.0.1",
58
+ "mime": "^4.0.4",
59
+ "pino": "^9.0.0",
60
+ "tslib": "^2.8.1"
61
+ },
62
+ "engines": {
63
+ "node": ">=16.0.0",
64
+ "npm": ">=8.0.0"
65
+ },
66
+ "publishConfig": {
67
+ "access": "public",
68
+ "registry": "https://registry.npmjs.org/"
69
+ },
70
+ "devDependencies": {
71
+ "@types/node": "^24.3.1",
72
+ "typescript": "^5.9.2"
73
+ }
74
+ }
package/postinstall.js CHANGED
@@ -1,5 +1,10 @@
1
1
  const fs = require('fs');
2
2
  const path = require('path');
3
+ const pino = require('pino');
4
+
5
+ const logger = pino({
6
+ level: process.env.LOG_LEVEL || 'info'
7
+ });
3
8
 
4
9
  try {
5
10
  // Get the parent project's node_modules/.bin directory
@@ -10,7 +15,7 @@ try {
10
15
 
11
16
  // Check if parent bin directory exists
12
17
  if (!fs.existsSync(parentBinDir)) {
13
- console.log('Parent .bin directory not found, skipping cross-env setup');
18
+ logger.info('Parent .bin directory not found, skipping cross-env setup');
14
19
  process.exit(0);
15
20
  }
16
21
 
@@ -25,7 +30,7 @@ try {
25
30
 
26
31
  // Copy the file
27
32
  fs.copyFileSync(sourceCmdPath, targetCmdPath);
28
- console.log('✓ cross-env binary installed');
33
+ logger.info('✓ cross-env binary installed');
29
34
 
30
35
  // Also copy PowerShell script on Windows
31
36
  if (process.platform === 'win32' && fs.existsSync(sourcePs1Path)) {
@@ -35,5 +40,5 @@ try {
35
40
  }
36
41
  } catch (error) {
37
42
  // Don't fail installation if this doesn't work
38
- console.log('Note: Could not setup cross-env automatically:', error.message);
43
+ logger.info('Note: Could not setup cross-env automatically:', error.message);
39
44
  }