Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit 93f6fae

Browse files
committed
replaced contains by includes to get lodash running
1 parent 6fb7832 commit 93f6fae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/util/cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function prompt(prompt, defaultValue, cb) {
136136

137137
function validate(app) {
138138
var commands = app.commands.map(function(command) { return command._name; });
139-
if (!_.contains(commands, app.rawArgs[2])) {
139+
if (!_.includes(commands, app.rawArgs[2])) {
140140
if (app.rawArgs[2]) {
141141
console.log();
142142
console.log('error: invalid command: ' + app.rawArgs[2]);

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@
5454
"swagger": "bin/swagger.js",
5555
"swagger-project": "bin/swagger-project.js"
5656
}
57-
}
57+
}

0 commit comments

Comments
 (0)