html-react-parser 1.4.7 → 1.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -2,6 +2,11 @@ var domToReact = require('./lib/dom-to-react');
2
2
  var attributesToProps = require('./lib/attributes-to-props');
3
3
  var htmlToDOM = require('html-dom-parser');
4
4
 
5
+ // support backwards compatibility for ES Module
6
+ htmlToDOM =
7
+ /* istanbul ignore next */
8
+ typeof htmlToDOM.default === 'function' ? htmlToDOM.default : htmlToDOM;
9
+
5
10
  var domParserOptions = { lowerCaseAttributeNames: false };
6
11
 
7
12
  /**
@@ -1,4 +1,4 @@
1
- // TypeScript Version: 4.1
1
+ // TypeScript Version: 4.7
2
2
 
3
3
  export type Attributes = Record<string, string>;
4
4
 
@@ -1,4 +1,4 @@
1
- // TypeScript Version: 4.1
1
+ // TypeScript Version: 4.7
2
2
 
3
3
  import { DOMNode, HTMLReactParserOptions } from '..';
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-react-parser",
3
- "version": "1.4.7",
3
+ "version": "1.4.10",
4
4
  "description": "HTML to React parser.",
5
5
  "author": "Mark <mark@remarkablemark.org>",
6
6
  "main": "index.js",
@@ -41,39 +41,39 @@
41
41
  "dom"
42
42
  ],
43
43
  "dependencies": {
44
- "domhandler": "4.3.0",
45
- "html-dom-parser": "1.1.0",
44
+ "domhandler": "4.3.1",
45
+ "html-dom-parser": "1.1.1",
46
46
  "react-property": "2.0.0",
47
47
  "style-to-js": "1.1.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@commitlint/cli": "16.1.0",
51
- "@commitlint/config-conventional": "16.0.0",
52
- "@rollup/plugin-commonjs": "21.0.1",
50
+ "@commitlint/cli": "16.2.3",
51
+ "@commitlint/config-conventional": "16.2.1",
52
+ "@rollup/plugin-commonjs": "21.0.3",
53
53
  "@rollup/plugin-node-resolve": "13.1.3",
54
- "@size-limit/preset-big-lib": "7.0.4",
55
- "@types/react": "17.0.39",
56
- "@typescript-eslint/parser": "5.10.2",
54
+ "@size-limit/preset-big-lib": "7.0.8",
55
+ "@types/react": "17.0.43",
56
+ "@typescript-eslint/parser": "5.17.0",
57
57
  "benchmark": "2.1.4",
58
58
  "dtslint": "4.2.1",
59
- "eslint": "8.8.0",
59
+ "eslint": "8.12.0",
60
60
  "eslint-plugin-prettier": "4.0.0",
61
61
  "husky": "7.0.4",
62
- "jest": "27.4.7",
63
- "lint-staged": "12.3.3",
64
- "pinst": "2.1.6",
65
- "preact": "10.6.5",
66
- "prettier": "2.5.1",
67
- "react": "17.0.2",
68
- "react-dom": "17.0.2",
62
+ "jest": "27.5.1",
63
+ "lint-staged": "12.3.7",
64
+ "pinst": "3.0.0",
65
+ "preact": "10.7.0",
66
+ "prettier": "2.6.1",
67
+ "react": "18.0.0",
68
+ "react-dom": "18.0.0",
69
69
  "rimraf": "3.0.2",
70
- "rollup": "2.67.0",
70
+ "rollup": "2.70.1",
71
71
  "rollup-plugin-terser": "7.0.2",
72
- "size-limit": "7.0.4",
73
- "typescript": "4.5.5"
72
+ "size-limit": "7.0.8",
73
+ "typescript": "4.6.3"
74
74
  },
75
75
  "peerDependencies": {
76
- "react": "0.14 || 15 || 16 || 17"
76
+ "react": "0.14 || 15 || 16 || 17 || 18"
77
77
  },
78
78
  "files": [
79
79
  "/dist",