Skip to content

Commit 2a6a878

Browse files
committedJan 14, 2016
update lodash to v4.0.0
1 parent 6d5ff55 commit 2a6a878

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed
 

‎lib/action_container.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ ActionContainer.prototype._addAction = function (action) {
263263
// set the flag if any option strings look like negative numbers
264264
action.optionStrings.forEach(function (optionString) {
265265
if (optionString.match(self._regexpNegativeNumber)) {
266-
if (!_.any(self._hasNegativeNumberOptionals)) {
266+
if (!_.some(self._hasNegativeNumberOptionals)) {
267267
self._hasNegativeNumberOptionals.push(true);
268268
}
269269
}

‎lib/argument_parser.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,8 @@ ArgumentParser.prototype._parseKnownArgs = function (argStrings, namespace) {
591591
var actionUsed = false;
592592
self._mutuallyExclusiveGroups.forEach(function (group) {
593593
if (group.required) {
594-
actionUsed = _.any(group._groupActions, function (action) {
595-
return _.contains(seenNonDefaultActions, action);
594+
actionUsed = _.some(group._groupActions, function (action) {
595+
return _.includes(seenNonDefaultActions, action);
596596
});
597597

598598
// if no actions were used, report the error
@@ -773,7 +773,7 @@ ArgumentParser.prototype._parseOptional = function (argString) {
773773
// number, it was meant to be positional
774774
// unless there are negative-number-like options
775775
if (argString.match(this._regexpNegativeNumber)) {
776-
if (!_.any(this._hasNegativeNumberOptionals)) {
776+
if (!_.some(this._hasNegativeNumberOptionals)) {
777777
return null;
778778
}
779779
}

‎lib/help/added_formatters.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ util.inherits(RawDescriptionHelpFormatter, HelpFormatter);
5959
RawDescriptionHelpFormatter.prototype._fillText = function (text, width, indent) {
6060
var lines = text.split('\n');
6161
lines = lines.map(function (line) {
62-
return _.trimRight(indent + line);
62+
return _.trimEnd(indent + line);
6363
});
6464
return lines.join('\n');
6565
};

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"test": "make test"
2121
},
2222
"dependencies": {
23-
"lodash": ">= 3.2.0 < 4.0.0",
23+
"lodash": ">= 4.0.0 < 5.0.0",
2424
"sprintf-js": "~1.0.2"
2525
},
2626
"devDependencies": {

0 commit comments

Comments
 (0)
Please sign in to comment.