From 52f76157c3909e7f3017d9aa3e2086934b539d9e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 28 Oct 2023 11:32:38 -0400 Subject: [PATCH] build(deps): bump html-dom-parser from 5.0.2 to 5.0.3 (#1108) Release-As: 4.2.10 --- package-lock.json | 14 +++++++------- package.json | 2 +- test/types/exports.tsx | 2 +- test/types/lib/dom-to-react.tsx | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index c1158271..f9cad62f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "license": "MIT", "dependencies": { "domhandler": "5.0.3", - "html-dom-parser": "5.0.2", + "html-dom-parser": "5.0.3", "react-property": "2.0.2", "style-to-js": "1.1.8" }, @@ -6358,9 +6358,9 @@ "license": "ISC" }, "node_modules/html-dom-parser": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-5.0.2.tgz", - "integrity": "sha512-TPsxRbmzLQP4umvzRnI3US/DuqoHTX3QOGTsH9pNST6z1tm/ZOP4eWRqvGrv6rvOX42QRPF6opbOBoHM2UfTFQ==", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-5.0.3.tgz", + "integrity": "sha512-slsc6ipw88OUZjAayRs5NTmfOQCwcUa3hNyk6AdsbQxY09H5Lr1Y3CZ4ZlconMKql3Ga6sWg3HMoUzo7KSItaQ==", "dependencies": { "domhandler": "5.0.3", "htmlparser2": "9.0.0" @@ -16480,9 +16480,9 @@ } }, "html-dom-parser": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-5.0.2.tgz", - "integrity": "sha512-TPsxRbmzLQP4umvzRnI3US/DuqoHTX3QOGTsH9pNST6z1tm/ZOP4eWRqvGrv6rvOX42QRPF6opbOBoHM2UfTFQ==", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-5.0.3.tgz", + "integrity": "sha512-slsc6ipw88OUZjAayRs5NTmfOQCwcUa3hNyk6AdsbQxY09H5Lr1Y3CZ4ZlconMKql3Ga6sWg3HMoUzo7KSItaQ==", "requires": { "domhandler": "5.0.3", "htmlparser2": "9.0.0" diff --git a/package.json b/package.json index c7fa6c35..7627e327 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ ], "dependencies": { "domhandler": "5.0.3", - "html-dom-parser": "5.0.2", + "html-dom-parser": "5.0.3", "react-property": "2.0.2", "style-to-js": "1.1.8" }, diff --git a/test/types/exports.tsx b/test/types/exports.tsx index b46df849..f11ce2c8 100644 --- a/test/types/exports.tsx +++ b/test/types/exports.tsx @@ -1,6 +1,6 @@ import { domToReact, htmlToDOM } from 'html-react-parser'; -// $ExpectType (Element | Text | Comment | ProcessingInstruction)[] +// $ExpectType DOMNode[] const domNodes = htmlToDOM('
text
'); // $ExpectType string | Element | Element[] diff --git a/test/types/lib/dom-to-react.tsx b/test/types/lib/dom-to-react.tsx index 7dd66c93..2c5ecd42 100644 --- a/test/types/lib/dom-to-react.tsx +++ b/test/types/lib/dom-to-react.tsx @@ -4,7 +4,7 @@ import domToReact from 'html-react-parser/lib/dom-to-react'; import * as React from 'react'; import htmlToDOM from 'html-dom-parser'; -// $ExpectType (Element | Text | Comment | ProcessingInstruction)[] +// $ExpectType DOMNode[] htmlToDOM('
text
'); // $ExpectType string | Element | Element[]