Skip to content

Commit

Permalink
Updated lodash and replaced a deprecated function call. This fixes th…
Browse files Browse the repository at this point in the history
…e non-recognition of async callbacks in Runner.create function lodash/lodash#2768 and a prototype pollution vulnerability patched in lodash >=4.17.5 apigee-127#133
  • Loading branch information
Michele Federici committed Oct 25, 2018
1 parent 3f5c099 commit fbc8b9d
Show file tree
Hide file tree
Showing 3 changed files with 3,056 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fittings/swagger_raw.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.exports = function create(fittingDef, bagpipes) {

function filterKeysRecursive(object, dropTagRegex, privateTags) {
if (_.isPlainObject(object)) {
if (_.any(privateTags, function(tag) { return object[tag]; })) {
if (_.some(privateTags, function(tag) { return object[tag]; })) {
object = undefined;
} else {
var result = {};
Expand Down
Loading

0 comments on commit fbc8b9d

Please sign in to comment.