Skip to content

Commit 02d80e2

Browse files
authored
Merge pull request aknuds1#76 from codepunkt/replace_underscore
Remove dependency vulnerability
2 parents 55272b5 + 20c38b9 commit 02d80e2

File tree

3 files changed

+11
-45
lines changed

3 files changed

+11
-45
lines changed

lib/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
var camelize = require('underscore.string.fp/camelize');
2+
var camelCase = require('lodash.camelcase');
33
var toPairs = require('ramda/src/toPairs');
44
var reduce = require('ramda/src/reduce');
55
var React = require('react');
@@ -22,7 +22,7 @@ function createStyleJsonFromString(styleString) {
2222
}
2323

2424
if (key != null && value != null && key.length > 0 && value.length > 0) {
25-
jsonStyles[camelize(key)] = value;
25+
jsonStyles[camelCase(key)] = value;
2626
}
2727
}
2828
return jsonStyles;

package-lock.json

Lines changed: 6 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "html-to-react",
3-
"version": "1.3.3",
3+
"version": "1.3.4",
44
"description": "A lightweight library that converts raw HTML to a React DOM structure.",
55
"main": "index.js",
66
"scripts": {
@@ -38,8 +38,8 @@
3838
"domhandler": "^2.4.2",
3939
"escape-string-regexp": "^1.0.5",
4040
"htmlparser2": "^3.10.0",
41-
"ramda": "^0.26",
42-
"underscore.string.fp": "^1.0.4"
41+
"lodash.camelcase": "^4.3.0",
42+
"ramda": "^0.26"
4343
},
4444
"peerDependencies": {
4545
"react": "^16.0"

0 commit comments

Comments
 (0)