From 8a5115d8fcc8e6be5b4ee476261eff2b8706e4a1 Mon Sep 17 00:00:00 2001 From: Alex Neo Date: Fri, 9 Aug 2024 10:18:20 +0300 Subject: [PATCH 1/2] fix: Cannot read properties of undefined (reading 'replace') --- src/playwright-azure-reporter.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/playwright-azure-reporter.ts b/src/playwright-azure-reporter.ts index 461b65c..59e9a2a 100644 --- a/src/playwright-azure-reporter.ts +++ b/src/playwright-azure-reporter.ts @@ -388,7 +388,10 @@ class AzureDevOpsReporter implements Reporter { return true; } - private _anonymizeString(str: string): string { + private _anonymizeString(str: string | undefined): string { + if (typeof str !== 'string') { + return ''; + } return str.replace(/./g, '*'); } From febfb03648310baabdf8041243e0225d9d8a5346 Mon Sep 17 00:00:00 2001 From: Alex Neo Date: Fri, 9 Aug 2024 10:19:15 +0300 Subject: [PATCH 2/2] v1.10.1 --- CHANGELOG.md | 9 +++++++++ package.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19ccc68..d3541fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## [1.10.1](https://github.com/alexneo2003/playwright-azure-reporter/compare/v1.10.0...v1.10.1) (2024-08-09) + + +### Bug Fixes + +* Cannot read properties of undefined (reading 'replace') ([8a5115d](https://github.com/alexneo2003/playwright-azure-reporter/commit/8a5115d8fcc8e6be5b4ee476261eff2b8706e4a1)) + + + # [1.10.0](https://github.com/alexneo2003/playwright-azure-reporter/compare/v1.10.0-beta.0...v1.10.0) (2024-08-06) diff --git a/package.json b/package.json index ff290a1..93c8764 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@alex_neo/playwright-azure-reporter", - "version": "1.10.0", + "version": "1.10.1", "description": "Playwright Azure Reporter", "main": "./dist/playwright-azure-reporter.js", "types": "./dist/playwright-azure-reporter.d.js",