update eslint config

This commit is contained in:
xiaofeng.mxf
2020-01-01 16:45:58 +08:00
parent f653718dc4
commit 8951fb68ef
10 changed files with 160 additions and 163 deletions

View File

@@ -63,20 +63,20 @@ function test(url, requestHeaders = {}) {
done();
});
})
.catch((err) => {
printError(err);
done();
});
})
.catch((err) => {
printError(err);
done();
});
})
})
.catch((err) => {
printError(err);
done();
});
})
.catch((err) => {
printError(err);
done();
});
});
})
})

View File

@@ -328,16 +328,16 @@ function getRequestListFromPage(pageUrl, cb) {
}, _outObj);
return _page.open(pageUrl);
})
.then(status => _outObj.property('urls'))
.then(urls => {
_page.close();
_ph.exit();
return urls;
})
.catch((err) => {
console.log(`failed to collecting requests from ${pageUrl}`);
console.log(err);
});
.then(status => _outObj.property('urls'))
.then(urls => {
_page.close();
_ph.exit();
return urls;
})
.catch((err) => {
console.log(`failed to collecting requests from ${pageUrl}`);
console.log(err);
});
}

View File

@@ -10,10 +10,10 @@ const DEFAULT_OPTIONS = {
port: 8001,
webInterface: {
enable: true,
webPort: 8002, // optional, port for web interface
webPort: 8002, // optional, port for web interface
},
wsIntercept: true,
throttle: 10000, // optional, speed limit in kb/s
throttle: 10000, // optional, speed limit in kb/s
forceProxyHttps: true, // intercept https as well
dangerouslyIgnoreUnauthorized: true,
silent: false //optional, do not print anything into terminal. do not set it when you are still debugging.