Skip to content

Commit 69f99a5

Browse files
committed
checking disableConfs parameter fixed. Version up 1.0.7
1 parent e5e4299 commit 69f99a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cli-api-mocker",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "CLI wrapper for connect-api-mocker",
55
"main": "src/index.js",
66
"dependencies": {

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ for(var path in config.map) {
7979
if (conf.proxy) {
8080
conf.nextOnNotFound = true;
8181

82-
if (!conf.disableMocks) {
82+
if (!conf.disableMocks && !program.disableMocks) {
8383
app.use(basePath, apiMocker(conf));
8484
console.log(`Mocking enabled: ${basePath} => ${conf.target || conf}`);
8585
}

0 commit comments

Comments
 (0)