Skip to content

Commit

Permalink
Merge pull request #65 from MadKudu/dep
Browse files Browse the repository at this point in the history
Update lodash to version 4.17.5 or greater
  • Loading branch information
pcothenet authored Dec 28, 2018
2 parents 78b0077 + b67bacc commit a51b07f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,16 @@ function Connection(options) {
this.apiCallCount = 0;

// Convenient methods, matches that of restler's
_.each(restlerMethodArgCount, function(count, method) {
_.forEach(restlerMethodArgCount, (count, method) => {
this[method] = function(var_args) {
var args = Array.prototype.slice.call(arguments);
while (args.length < count) {
args.push(undefined);
}
args.unshift(method);

return this._request.apply(this, args);
};
}, this);
});
}

util.inherits(Connection, EventEmitter);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-marketo-rest",
"version": "0.7.3",
"version": "0.7.4",
"description": "marketo rest client",
"repository": {
"type": "git",
Expand All @@ -17,7 +17,7 @@
"backoff": "2.4.x",
"bluebird": "2.3.x",
"bunyan": "1.0.x",
"lodash": "2.4.x",
"lodash": "4.17.x",
"moment": "2.20.x",
"restler": "3.4.x"
},
Expand Down

0 comments on commit a51b07f

Please sign in to comment.