Skip to content

Commit

Permalink
checking disableConfs parameter fixed. Version up 1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
muratcorlu committed Dec 4, 2018
1 parent e5e4299 commit 69f99a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cli-api-mocker",
"version": "1.0.6",
"version": "1.0.7",
"description": "CLI wrapper for connect-api-mocker",
"main": "src/index.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ for(var path in config.map) {
if (conf.proxy) {
conf.nextOnNotFound = true;

if (!conf.disableMocks) {
if (!conf.disableMocks && !program.disableMocks) {
app.use(basePath, apiMocker(conf));
console.log(`Mocking enabled: ${basePath} => ${conf.target || conf}`);
}
Expand Down

0 comments on commit 69f99a5

Please sign in to comment.