Skip to content

Commit

Permalink
chore(deps-dev): bump node-html-parser from 1.2.20 to 2.0.1 (stopligh…
Browse files Browse the repository at this point in the history
…tio#1453)

* chore(deps-dev): bump node-html-parser from 1.2.20 to 2.0.1

Bumps [node-html-parser](https://github.com/taoqf/node-fast-html-parser) from 1.2.20 to 2.0.1.
- [Release notes](https://github.com/taoqf/node-fast-html-parser/releases)
- [Commits](https://github.com/taoqf/node-fast-html-parser/commits)

Signed-off-by: dependabot[bot] <[email protected]>

* chore: lint

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jakub Rożek <[email protected]>
  • Loading branch information
dependabot[bot] and P0lip authored Jan 8, 2021
1 parent 99580f1 commit 0a2d722
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"karma-typescript-es6-transform": "^5.2.0",
"lint-staged": "^10.5.3",
"nock": "~12.0.2",
"node-html-parser": "^1.2.20",
"node-html-parser": "^2.0.1",
"patch-package": "^6.2.2",
"pkg": "^4.4.8",
"prettier": "^2.2.1",
Expand Down
4 changes: 2 additions & 2 deletions src/cli/formatters/__tests__/html.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { DiagnosticSeverity } from '@stoplight/types';
import { HTMLElement, parse } from 'node-html-parser';
import { parse } from 'node-html-parser';
import { sortResults } from '../../../utils';
import { html } from '../html';

const mixedErrors = sortResults(require('./__fixtures__/mixed-errors.json'));

describe('HTML formatter', () => {
test('should display proper severity levels', () => {
const result = parse(html(mixedErrors, { failSeverity: DiagnosticSeverity.Error })) as HTMLElement;
const result = parse(html(mixedErrors, { failSeverity: DiagnosticSeverity.Error }));
const table = result.querySelector('table tbody');
expect(table.innerHTML.trim()).toEqual(`<tr class="bg-error" data-group="f-0">
<th colspan="4">
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4126,10 +4126,10 @@ hash.js@^1.0.0, hash.js@^1.0.3:
inherits "^2.0.3"
minimalistic-assert "^1.0.1"

he@1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/he/-/he-1.1.1.tgz#93410fd21b009735151f8868c2f271f3427e23fd"
integrity sha1-k0EP0hsAlzUVH4howvJx80J+I/0=
he@1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==

hmac-drbg@^1.0.0:
version "1.0.1"
Expand Down Expand Up @@ -5963,12 +5963,12 @@ [email protected], node-fetch@^2.6.0:
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==

node-html-parser@^1.2.20:
version "1.2.20"
resolved "https://registry.yarnpkg.com/node-html-parser/-/node-html-parser-1.2.20.tgz#37e9ebc627dbe3ff446eea4ac93e3d254b7c6ee4"
integrity sha512-1fUpYjAducDrrBSE0etRUV1tM+wSFTudmrslMXuk35wL/L29E7e1CLQn4CNzFLnqtYpmDlWhkD6VUloyHA0dwA==
node-html-parser@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/node-html-parser/-/node-html-parser-2.0.1.tgz#66e3a6178f5fbf345f5e0e7522d36af7625a3346"
integrity sha512-CE0K6zALs+pS+SsQd8oKKF51cNrpwZ6gj/8OSzjhQ2vTfCOnlNtZakgv0MKuEOAZ4kBiKRgJBUicvjAxaFM4Hw==
dependencies:
he "1.1.1"
he "1.2.0"

node-int64@^0.4.0:
version "0.4.0"
Expand Down

0 comments on commit 0a2d722

Please sign in to comment.