Skip to content

Commit 63e7d51

Browse files
Merge pull request #110 from remarkablemark/build/package
build(package): update `html-dom-parser@0.2.2` and devDependencies
2 parents eca7e35 + a41fad2 commit 63e7d51

File tree

3 files changed

+30
-16
lines changed

3 files changed

+30
-16
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ script:
88
- npx commitlint --from=HEAD~1
99
- npm run lint
1010
- npm run dtslint
11-
- npm run cover
11+
- npm run test:cover
1212
- npm run build
1313
- npm run benchmark
1414
after_script:

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,17 +184,31 @@ No, this library does **_not_** sanitize against [XSS (Cross-Site Scripting)](ht
184184

185185
#### Are `<script>` tags parsed?
186186

187-
Although `<script>` tags are parsed, [react-dom](https://reactjs.org/docs/react-dom.html) does not render the contents. See [#98](https://github.com/remarkablemark/html-react-parser/issues/98).
187+
No, `<script>` tags are skipped because [react-dom](https://reactjs.org/docs/react-dom.html) does not render the contents. See [#98](https://github.com/remarkablemark/html-react-parser/issues/98).
188188

189189
#### My HTML attributes aren't getting called.
190190

191191
That's because [inline event handlers](https://developer.mozilla.org/docs/Web/Guide/Events/Event_handlers) like `onclick` are parsed as a _string_ rather than a _function_. See [#73](https://github.com/remarkablemark/html-react-parser/issues/73).
192192

193193
## Testing
194194

195+
Run tests:
196+
195197
```sh
196198
$ npm test
197-
$ npm run lint # npm run lint:fix
199+
```
200+
201+
Run tests with coverage:
202+
203+
```sh
204+
$ npm run test:cover
205+
```
206+
207+
Lint files:
208+
209+
```sh
210+
$ npm run lint
211+
$ npm run lint:fix
198212
```
199213

200214
## Benchmarks

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"build:min": "cross-env NODE_ENV=production webpack -o dist/html-react-parser.min.js",
1111
"build:unmin": "cross-env NODE_ENV=development webpack -o dist/html-react-parser.js",
1212
"clean": "rimraf dist",
13-
"cover": "istanbul cover _mocha -- -R spec \"test/**/*\"",
1413
"coveralls": "cat coverage/lcov.info | coveralls",
1514
"lint": "eslint --ignore-path .gitignore .",
1615
"lint:fix": "npm run lint -- --fix",
1716
"dtslint": "dtslint .",
1817
"prepublishOnly": "npm run build",
1918
"release": "standard-version --no-verify",
20-
"test": "mocha"
19+
"test": "mocha",
20+
"test:cover": "istanbul cover _mocha -- -R spec \"test/**/*\""
2121
},
2222
"repository": {
2323
"type": "git",
@@ -35,29 +35,29 @@
3535
],
3636
"dependencies": {
3737
"@types/domhandler": "2.4.1",
38-
"html-dom-parser": "0.2.1",
38+
"html-dom-parser": "0.2.2",
3939
"react-dom-core": "0.1.1",
4040
"style-to-object": "0.2.2"
4141
},
4242
"devDependencies": {
43-
"@commitlint/cli": "^7.2.1",
44-
"@commitlint/config-conventional": "^7.1.2",
45-
"@types/react": "16.8.8",
46-
"benchmark": "2.1.4",
43+
"@commitlint/cli": "^8.0.0",
44+
"@commitlint/config-conventional": "^8.0.0",
45+
"@types/react": "^16.8.19",
46+
"benchmark": "^2.1.4",
4747
"coveralls": "^3.0.2",
48-
"cross-env": "5.2.0",
49-
"dtslint": "0.5.5",
48+
"cross-env": "^5.2.0",
49+
"dtslint": "^0.7.9",
5050
"eslint": "^5.10.0",
5151
"eslint-plugin-prettier": "^3.0.0",
52-
"husky": "^1.3.0",
52+
"husky": "^2.4.0",
5353
"istanbul": "^0.4.5",
5454
"lint-staged": "^8.1.0",
55-
"mocha": "^5.2.0",
55+
"mocha": "^6.1.4",
5656
"prettier": "^1.15.3",
5757
"react": "^16",
5858
"react-dom": "^16",
59-
"rimraf": "2.6.3",
60-
"standard-version": "^4.4.0",
59+
"rimraf": "^2.6.3",
60+
"standard-version": "^6.0.1",
6161
"webpack": "^4.27.1",
6262
"webpack-cli": "^3.1.2"
6363
},

0 commit comments

Comments
 (0)