Skip to content

Commit 5417187

Browse files
authoredSep 12, 2018
Merge pull request #426 from jgerlier/use_sanitize-html-react
perf(Use sanitize-html-react instead of sanitize-html)
2 parents 3ba4d7a + 4b84caa commit 5417187

File tree

3 files changed

+13
-57
lines changed

3 files changed

+13
-57
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"dependencies": {
5656
"classnames": "^2.2.5",
5757
"prop-types": "^15.6.0",
58-
"sanitize-html": "^1.18.5"
58+
"sanitize-html-react": "^1.13.0"
5959
},
6060
"engines": {
6161
"node": ">=4.2.1"

‎src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React from 'react'
44
import PropTypes from 'prop-types'
55
import ReactDOM from 'react-dom'
66
import classname from 'classnames'
7-
import sanitizeHtml from 'sanitize-html'
7+
import sanitizeHtml from 'sanitize-html-react'
88

99
/* Decoraters */
1010
import staticMethods from './decorators/staticMethods'

‎yarn.lock

+11-55
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ array-union@^1.0.1:
318318
dependencies:
319319
array-uniq "^1.0.1"
320320

321-
array-uniq@^1.0.1, array-uniq@^1.0.2:
321+
array-uniq@^1.0.1:
322322
version "1.0.3"
323323
resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6"
324324

@@ -1797,7 +1797,7 @@ chalk@1.1.3, chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3:
17971797
strip-ansi "^3.0.0"
17981798
supports-color "^2.0.0"
17991799

1800-
chalk@^2.3.0, chalk@^2.4.1:
1800+
chalk@^2.3.0:
18011801
version "2.4.1"
18021802
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
18031803
dependencies:
@@ -4987,18 +4987,14 @@ lodash.clonedeep@^3.0.1:
49874987
lodash._baseclone "^3.0.0"
49884988
lodash._bindcallback "^3.0.0"
49894989

4990-
lodash.clonedeep@^4.3.2, lodash.clonedeep@^4.5.0:
4990+
lodash.clonedeep@^4.3.2:
49914991
version "4.5.0"
49924992
resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef"
49934993

49944994
lodash.defaults@^4.0.1:
49954995
version "4.2.0"
49964996
resolved "https://registry.yarnpkg.com/lodash.defaults/-/lodash.defaults-4.2.0.tgz#d09178716ffea4dde9e5fb7b37f6f0802274580c"
49974997

4998-
lodash.escaperegexp@^4.1.2:
4999-
version "4.1.2"
5000-
resolved "https://registry.yarnpkg.com/lodash.escaperegexp/-/lodash.escaperegexp-4.1.2.tgz#64762c48618082518ac3df4ccf5d5886dae20347"
5001-
50024998
lodash.filter@^4.4.0:
50034999
version "4.6.0"
50045000
resolved "https://registry.yarnpkg.com/lodash.filter/-/lodash.filter-4.6.0.tgz#668b1d4981603ae1cc5a6fa760143e480b4c4ace"
@@ -5027,14 +5023,6 @@ lodash.isplainobject@^3.0.0:
50275023
lodash.isarguments "^3.0.0"
50285024
lodash.keysin "^3.0.0"
50295025

5030-
lodash.isplainobject@^4.0.6:
5031-
version "4.0.6"
5032-
resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb"
5033-
5034-
lodash.isstring@^4.0.1:
5035-
version "4.0.1"
5036-
resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451"
5037-
50385026
lodash.istypedarray@^3.0.0:
50395027
version "3.0.6"
50405028
resolved "https://registry.yarnpkg.com/lodash.istypedarray/-/lodash.istypedarray-3.0.6.tgz#c9a477498607501d8e8494d283b87c39281cef62"
@@ -5082,10 +5070,6 @@ lodash.merge@^4.4.0:
50825070
version "4.6.0"
50835071
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.0.tgz#69884ba144ac33fe699737a6086deffadd0f89c5"
50845072

5085-
lodash.mergewith@^4.6.0:
5086-
version "4.6.1"
5087-
resolved "https://registry.yarnpkg.com/lodash.mergewith/-/lodash.mergewith-4.6.1.tgz#639057e726c3afbdb3e7d42741caa8d6e4335927"
5088-
50895073
lodash.omit@^3.1.0:
50905074
version "3.1.0"
50915075
resolved "https://registry.yarnpkg.com/lodash.omit/-/lodash.omit-3.1.0.tgz#897fe382e6413d9ac97c61f78ed1e057a00af9f3"
@@ -6162,14 +6146,6 @@ posix-character-classes@^0.1.0:
61626146
version "0.1.1"
61636147
resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"
61646148

6165-
postcss@^6.0.14:
6166-
version "6.0.23"
6167-
resolved "https://registry.yarnpkg.com/postcss/-/postcss-6.0.23.tgz#61c82cc328ac60e677645f979054eb98bc0e3324"
6168-
dependencies:
6169-
chalk "^2.4.1"
6170-
source-map "^0.6.1"
6171-
supports-color "^5.4.0"
6172-
61736149
prelude-ls@~1.1.0, prelude-ls@~1.1.1, prelude-ls@~1.1.2:
61746150
version "1.1.2"
61756151
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
@@ -6572,6 +6548,10 @@ regex-not@^1.0.0, regex-not@^1.0.2:
65726548
extend-shallow "^3.0.2"
65736549
safe-regex "^1.1.0"
65746550

6551+
regexp-quote@0.0.0:
6552+
version "0.0.0"
6553+
resolved "https://registry.yarnpkg.com/regexp-quote/-/regexp-quote-0.0.0.tgz#1e0f4650c862dcbfed54fd42b148e9bb1721fcf2"
6554+
65756555
regexpu-core@^2.0.0:
65766556
version "2.0.0"
65776557
resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240"
@@ -6900,19 +6880,12 @@ samsam@~1.1:
69006880
version "1.1.3"
69016881
resolved "https://registry.yarnpkg.com/samsam/-/samsam-1.1.3.tgz#9f5087419b4d091f232571e7fa52e90b0f552621"
69026882

6903-
sanitize-html@^1.18.5:
6904-
version "1.18.5"
6905-
resolved "https://registry.yarnpkg.com/sanitize-html/-/sanitize-html-1.18.5.tgz#350013d95d17f851ef8b178dfd9ca155acf2d7a0"
6883+
sanitize-html-react@^1.13.0:
6884+
version "1.13.0"
6885+
resolved "https://registry.yarnpkg.com/sanitize-html-react/-/sanitize-html-react-1.13.0.tgz#e757b9adbaf2c8a762f3d2dff70138838e05420a"
69066886
dependencies:
6907-
chalk "^2.3.0"
69086887
htmlparser2 "^3.9.0"
6909-
lodash.clonedeep "^4.5.0"
6910-
lodash.escaperegexp "^4.1.2"
6911-
lodash.isplainobject "^4.0.6"
6912-
lodash.isstring "^4.0.1"
6913-
lodash.mergewith "^4.6.0"
6914-
postcss "^6.0.14"
6915-
srcset "^1.0.0"
6888+
regexp-quote "0.0.0"
69166889
xtend "^4.0.0"
69176890

69186891
sass-graph@^2.1.1:
@@ -7201,10 +7174,6 @@ source-map@^0.5.0, source-map@^0.5.6, source-map@~0.5.0, source-map@~0.5.1, sour
72017174
version "0.5.7"
72027175
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
72037176

7204-
source-map@^0.6.1:
7205-
version "0.6.1"
7206-
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
7207-
72087177
source-map@~0.1.30:
72097178
version "0.1.43"
72107179
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.1.43.tgz#c24bc146ca517c1471f5dacbe2571b2b7f9e3346"
@@ -7264,13 +7233,6 @@ sprintf-js@~1.0.2:
72647233
version "1.0.3"
72657234
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
72667235

7267-
srcset@^1.0.0:
7268-
version "1.0.0"
7269-
resolved "https://registry.yarnpkg.com/srcset/-/srcset-1.0.0.tgz#a5669de12b42f3b1d5e83ed03c71046fc48f41ef"
7270-
dependencies:
7271-
array-uniq "^1.0.2"
7272-
number-is-nan "^1.0.0"
7273-
72747236
sshpk@^1.7.0:
72757237
version "1.13.1"
72767238
resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.13.1.tgz#512df6da6287144316dc4c18fe1cf1d940739be3"
@@ -7520,12 +7482,6 @@ supports-color@^2.0.0:
75207482
version "2.0.0"
75217483
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
75227484

7523-
supports-color@^5.4.0:
7524-
version "5.5.0"
7525-
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
7526-
dependencies:
7527-
has-flag "^3.0.0"
7528-
75297485
symbol-tree@^3.2.1:
75307486
version "3.2.2"
75317487
resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6"

0 commit comments

Comments
 (0)
Please sign in to comment.