Skip to content

Commit

Permalink
Merge pull request #313 from muno92/dependabot/npm_and_yarn/htmlparse…
Browse files Browse the repository at this point in the history
…r2-8.0.0

Bump htmlparser2 from 7.2.0 to 8.0.0
  • Loading branch information
muno92 authored Apr 25, 2022
2 parents 5a98d0c + c9208cc commit f201638
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 78 deletions.
133 changes: 59 additions & 74 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"dependencies": {
"@actions/core": "^1.6.0",
"@actions/exec": "^1.1.1",
"htmlparser2": "^7.2.0"
"htmlparser2": "^8.0.0"
},
"devDependencies": {
"@types/jest": "^27.4.1",
Expand Down
6 changes: 3 additions & 3 deletions src/report.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as core from '@actions/core'
import * as fs from 'fs'
import * as htmlparser2 from 'htmlparser2'
import {Element, Node} from 'domhandler'
import {Element, Document} from 'domhandler'
import {Issue, IssueTypes, Severity} from './issue'
import {issueCommand} from '@actions/core/lib/command'

Expand Down Expand Up @@ -29,7 +29,7 @@ export class Report {
}

private extractIssues(
xml: Node,
xml: Document,
issueTypes: IssueTypes,
ignoreIssueTypes: string[]
): Issue[] {
Expand Down Expand Up @@ -77,7 +77,7 @@ export class Report {
return issue
}

private extractIssueTypes(xml: Node): IssueTypes {
private extractIssueTypes(xml: Document): IssueTypes {
const issueTypes: IssueTypes = {}

const convertSeverity = (severity: string): Severity => {
Expand Down

0 comments on commit f201638

Please sign in to comment.