html-react-parser 0.4.3 → 0.4.7
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/CHANGELOG.md +38 -0
- package/README.md +81 -90
- package/dist/html-react-parser.js +144 -2222
- package/dist/html-react-parser.min.js +1 -1
- package/index.js +5 -10
- package/lib/attributes-to-props.js +53 -59
- package/lib/dom-to-react.js +60 -75
- package/lib/property-config.js +16 -28
- package/lib/utilities.js +39 -38
- package/package.json +23 -11
package/package.json
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-react-parser",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"description": "An HTML to React parser.",
|
|
5
5
|
"author": "Mark <mark@remarkablemark.org>",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build
|
|
9
|
-
"build:min": "NODE_ENV=production webpack -
|
|
8
|
+
"build": "npm run clean && npm run build:min && npm run build:unmin",
|
|
9
|
+
"build:min": "NODE_ENV=production webpack -o dist/html-react-parser.min.js",
|
|
10
|
+
"build:unmin": "NODE_ENV=development webpack -o dist/html-react-parser.js",
|
|
10
11
|
"clean": "rm -rf dist",
|
|
11
12
|
"commitmsg": "commitlint -e $GIT_PARAMS",
|
|
12
13
|
"cover": "istanbul cover _mocha -- -R spec \"test/**/*\"",
|
|
13
14
|
"coveralls": "cat coverage/lcov.info | coveralls",
|
|
14
15
|
"lint": "eslint --ignore-path .gitignore .",
|
|
15
16
|
"lint:fix": "npm run lint -- --fix",
|
|
16
|
-
"
|
|
17
|
+
"precommit": "lint-staged",
|
|
18
|
+
"prepublishOnly": "npm run build",
|
|
17
19
|
"release": "standard-version --no-verify",
|
|
18
|
-
"test": "mocha"
|
|
20
|
+
"test": "mocha",
|
|
21
|
+
"test:benchmark": "node test/benchmark.js"
|
|
19
22
|
},
|
|
20
23
|
"repository": {
|
|
21
24
|
"type": "git",
|
|
@@ -33,24 +36,33 @@
|
|
|
33
36
|
],
|
|
34
37
|
"dependencies": {
|
|
35
38
|
"html-dom-parser": "0.1.3",
|
|
36
|
-
"react-dom-core": "0.0.
|
|
37
|
-
"style-to-object": "0.2.
|
|
39
|
+
"react-dom-core": "0.0.3",
|
|
40
|
+
"style-to-object": "0.2.2"
|
|
38
41
|
},
|
|
39
42
|
"devDependencies": {
|
|
40
|
-
"@commitlint/cli": "^
|
|
41
|
-
"@commitlint/config-conventional": "^
|
|
43
|
+
"@commitlint/cli": "^7.1.2",
|
|
44
|
+
"@commitlint/config-conventional": "^7.1.2",
|
|
45
|
+
"benchmark": "2.1.4",
|
|
42
46
|
"coveralls": "^3.0.0",
|
|
43
|
-
"eslint": "^
|
|
47
|
+
"eslint": "^5.5.0",
|
|
48
|
+
"eslint-plugin-prettier": "^2.6.0",
|
|
44
49
|
"husky": "^0.14.3",
|
|
45
50
|
"istanbul": "^0.4.5",
|
|
51
|
+
"lint-staged": "^7.1.1",
|
|
46
52
|
"mocha": "^5.0.1",
|
|
53
|
+
"prettier": "^1.12.1",
|
|
47
54
|
"react": "^16",
|
|
48
55
|
"react-dom": "^16",
|
|
49
56
|
"standard-version": "^4.3.0",
|
|
50
|
-
"webpack": "^
|
|
57
|
+
"webpack": "^4.19.0",
|
|
58
|
+
"webpack-cli": "^3.1.0"
|
|
51
59
|
},
|
|
52
60
|
"peerDependencies": {
|
|
53
61
|
"react": "^0.14 || ^15 || ^16"
|
|
54
62
|
},
|
|
63
|
+
"files": [
|
|
64
|
+
"dist",
|
|
65
|
+
"lib"
|
|
66
|
+
],
|
|
55
67
|
"license": "MIT"
|
|
56
68
|
}
|