Showing 2 of 17 total issues
Function exports
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = endoscopeInstance => (fastify, options, next) => {
const endoscopeOptions = Object.assign(
{},
defaultEndoscopeOptions,
options.endoscope
Function exports
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = endoscopeInstance => (options = {}) => {
const endoscopeOptions = Object.assign({}, defaultEndoscopeOptions, options);
return (request, response) => {
const url = parse(request.url);