Skip to content

Commit

Permalink
build(package): bump html-dom-parser from 4.0.1 to 5.0.0
Browse files Browse the repository at this point in the history
Release-As: 4.2.4
  • Loading branch information
remarkablemark committed Oct 17, 2023
1 parent f02b9c0 commit 9fb888f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .size-limit.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"path": "dist/html-react-parser.min.js",
"limit": "10.6 KB"
"limit": "10.68 KB"
}
]
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var domhandler = require('domhandler');
var htmlToDOM = require('html-dom-parser');
var htmlToDOM = require('html-dom-parser').default;

var attributesToProps = require('./lib/attributes-to-props');
var domToReact = require('./lib/dom-to-react');
Expand Down
14 changes: 7 additions & 7 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 @@ -50,7 +50,7 @@
],
"dependencies": {
"domhandler": "5.0.3",
"html-dom-parser": "4.0.1",
"html-dom-parser": "5.0.0",
"react-property": "2.0.0",
"style-to-js": "1.1.4"
},
Expand Down
2 changes: 1 addition & 1 deletion test/dom-to-react.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const React = require('react');
const htmlToDOM = require('html-dom-parser');
const htmlToDOM = require('html-dom-parser').default;

const domToReact = require('../lib/dom-to-react');
const utilities = require('../lib/utilities');
Expand Down
3 changes: 1 addition & 2 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ describe('module', () => {
});

it('exports htmlToDOM', () => {
expect(parse.htmlToDOM).toBe(require('html-dom-parser'));
expect(parse.htmlToDOM).toBe(require('html-dom-parser').default);
expect(parse.htmlToDOM).toBeInstanceOf(Function);
expect(parse.htmlToDOM.default).toBe(parse.htmlToDOM);
});

it('exports attributesToProps', () => {
Expand Down

0 comments on commit 9fb888f

Please sign in to comment.