Skip to content

Commit

Permalink
Merge pull request #75 from alexneo2003/74-ci-cd-run-error-typeerror-…
Browse files Browse the repository at this point in the history
…cannot-read-properties-of-undefined-reading-replace

74 ci cd run error typeerror cannot read properties of undefined reading replace
  • Loading branch information
alexneo2003 authored Aug 9, 2024
2 parents dd4a7a0 + febfb03 commit cc73c65
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 4 additions & 1 deletion src/playwright-azure-reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, '*');
}

Expand Down

0 comments on commit cc73c65

Please sign in to comment.