Skip to content

Commit

Permalink
Updated lodash to latest version. Fixed a breaking change (_.pluck re…
Browse files Browse the repository at this point in the history
…placed by _.map). Ran the tests and got all green.
  • Loading branch information
larssjogreen committed Dec 20, 2018
1 parent 1128c15 commit 06b6fb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
},

convFieldJson2FDF: function(fieldJson){
var _keys = _.pluck(fieldJson, 'title'),
_values = _.pluck(fieldJson, 'fieldValue');
var _keys = _.map(fieldJson, 'title'),
_values = _.map(fieldJson, 'fieldValue');

_values = _.map(_values, function(val){
if(val === true){
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"pdf"
],
"dependencies": {
"lodash": "~3.8.0",
"lodash": "~4.17.11",
"utf8-fdf-generator": "0.0.3"
},
"author": {
Expand Down

0 comments on commit 06b6fb8

Please sign in to comment.