Skip to content

Commit 9fb888f

Browse files
build(package): bump html-dom-parser from 4.0.1 to 5.0.0
Release-As: 4.2.4
1 parent f02b9c0 commit 9fb888f

File tree

6 files changed

+12
-13
lines changed

6 files changed

+12
-13
lines changed

.size-limit.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
22
{
33
"path": "dist/html-react-parser.min.js",
4-
"limit": "10.6 KB"
4+
"limit": "10.68 KB"
55
}
66
]

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var domhandler = require('domhandler');
2-
var htmlToDOM = require('html-dom-parser');
2+
var htmlToDOM = require('html-dom-parser').default;
33

44
var attributesToProps = require('./lib/attributes-to-props');
55
var domToReact = require('./lib/dom-to-react');

package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
],
5151
"dependencies": {
5252
"domhandler": "5.0.3",
53-
"html-dom-parser": "4.0.1",
53+
"html-dom-parser": "5.0.0",
5454
"react-property": "2.0.0",
5555
"style-to-js": "1.1.4"
5656
},

test/dom-to-react.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const React = require('react');
2-
const htmlToDOM = require('html-dom-parser');
2+
const htmlToDOM = require('html-dom-parser').default;
33

44
const domToReact = require('../lib/dom-to-react');
55
const utilities = require('../lib/utilities');

test/index.test.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ describe('module', () => {
1616
});
1717

1818
it('exports htmlToDOM', () => {
19-
expect(parse.htmlToDOM).toBe(require('html-dom-parser'));
19+
expect(parse.htmlToDOM).toBe(require('html-dom-parser').default);
2020
expect(parse.htmlToDOM).toBeInstanceOf(Function);
21-
expect(parse.htmlToDOM.default).toBe(parse.htmlToDOM);
2221
});
2322

2423
it('exports attributesToProps', () => {

0 commit comments

Comments
 (0)