html-react-parser
Advanced tools
Comparing version 5.1.12 to 5.1.13
@@ -0,3 +1,3 @@ | ||
import type { DOMNode } from 'html-dom-parser'; | ||
import type { JSX } from 'react'; | ||
import type { DOMNode } from 'html-dom-parser'; | ||
import type { HTMLReactParserOptions } from './types'; | ||
@@ -4,0 +4,0 @@ /** |
@@ -62,2 +62,3 @@ "use strict"; | ||
props.style = (0, style_to_js_1.default)(style, styleOptions); | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
} | ||
@@ -64,0 +65,0 @@ catch (error) { |
{ | ||
"name": "html-react-parser", | ||
"version": "5.1.12", | ||
"version": "5.1.13", | ||
"description": "HTML to React parser.", | ||
@@ -24,3 +24,3 @@ "author": "Mark <mark@remarkablemark.org> (https://remarkablemark.org)", | ||
"clean": "rm -rf coverage lib dist", | ||
"lint": "eslint --ignore-path .gitignore --ignore-pattern /examples/ .", | ||
"lint": "eslint .", | ||
"lint:fix": "npm run lint -- --fix", | ||
@@ -58,4 +58,7 @@ "lint:tsc": "tsc --noEmit", | ||
"devDependencies": { | ||
"@commitlint/cli": "19.3.0", | ||
"@commitlint/cli": "19.4.0", | ||
"@commitlint/config-conventional": "19.2.2", | ||
"@eslint/compat": "1.1.1", | ||
"@eslint/eslintrc": "3.1.0", | ||
"@eslint/js": "9.9.1", | ||
"@rollup/plugin-commonjs": "26.0.1", | ||
@@ -68,21 +71,23 @@ "@rollup/plugin-node-resolve": "15.2.3", | ||
"@types/jest": "29.5.12", | ||
"@types/react": "18.3.3", | ||
"@types/react": "18.3.4", | ||
"@types/react-dom": "18.3.0", | ||
"@typescript-eslint/eslint-plugin": "7.16.1", | ||
"@typescript-eslint/parser": "7.16.1", | ||
"@typescript-eslint/eslint-plugin": "8.2.0", | ||
"@typescript-eslint/parser": "8.2.0", | ||
"benchmark": "2.1.4", | ||
"eslint": "8.57.0", | ||
"eslint": "9.9.1", | ||
"eslint-plugin-prettier": "5.2.1", | ||
"husky": "9.1.1", | ||
"eslint-plugin-simple-import-sort": "12.1.1", | ||
"globals": "15.9.0", | ||
"husky": "9.1.5", | ||
"jest": "29.7.0", | ||
"jest-environment-jsdom": "29.7.0", | ||
"jest-watch-typeahead": "2.2.2", | ||
"lint-staged": "15.2.7", | ||
"preact": "10.22.1", | ||
"lint-staged": "15.2.9", | ||
"preact": "10.23.2", | ||
"react": "18.3.1", | ||
"react-dom": "18.3.1", | ||
"rollup": "4.18.1", | ||
"rollup": "4.21.0", | ||
"size-limit": "11.1.4", | ||
"ts-jest": "29.2.3", | ||
"typescript": "5.5.3" | ||
"ts-jest": "29.2.5", | ||
"typescript": "5.5.4" | ||
}, | ||
@@ -89,0 +94,0 @@ "peerDependencies": { |
import { | ||
BOOLEAN, | ||
OVERLOADED_BOOLEAN, | ||
getPropertyInfo, | ||
isCustomAttribute, | ||
OVERLOADED_BOOLEAN, | ||
possibleStandardNames, | ||
} from 'react-property'; | ||
import { PRESERVE_CUSTOM_ATTRIBUTES, setStyleProp } from './utilities'; | ||
@@ -9,0 +10,0 @@ |
@@ -0,11 +1,12 @@ | ||
import type { DOMNode, Element, Text } from 'html-dom-parser'; | ||
import type { JSX } from 'react'; | ||
import { cloneElement, createElement, isValidElement } from 'react'; | ||
import type { JSX } from 'react'; | ||
import type { Element, DOMNode, Text } from 'html-dom-parser'; | ||
import type { Props } from './attributes-to-props'; | ||
import attributesToProps from './attributes-to-props'; | ||
import type { Props } from './attributes-to-props'; | ||
import type { HTMLReactParserOptions } from './types'; | ||
import { | ||
PRESERVE_CUSTOM_ATTRIBUTES, | ||
canTextBeChildOfNode, | ||
isCustomComponent, | ||
PRESERVE_CUSTOM_ATTRIBUTES, | ||
returnFirstArg, | ||
@@ -15,4 +16,2 @@ setStyleProp, | ||
import type { HTMLReactParserOptions } from './types'; | ||
const React = { | ||
@@ -19,0 +18,0 @@ cloneElement, |
@@ -0,4 +1,4 @@ | ||
import type { Element } from 'html-dom-parser'; | ||
import { version } from 'react'; | ||
import StyleToJS from 'style-to-js'; | ||
import type { Element } from 'html-dom-parser'; | ||
@@ -71,2 +71,3 @@ import type { Props } from './attributes-to-props'; | ||
props.style = StyleToJS(style, styleOptions); | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
} catch (error) { | ||
@@ -73,0 +74,0 @@ props.style = {}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
464518
3667
33