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", 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, '*'); }