Skip to content

Commit

Permalink
remove package validator-param
Browse files Browse the repository at this point in the history
  • Loading branch information
yunnysunny committed Sep 15, 2018
1 parent ac95c22 commit 411ffc7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 28 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"mocha": "^5.2.0",
"nyc": "^13.0.1",
"queue-schedule": "^0.5.3",
"supertest": "^3.3.0",
"validator-param": "^0.2.2"
"supertest": "^3.3.0"
}
}
13 changes: 0 additions & 13 deletions test/express/src/app-no-session.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const {
kafkaSchedule
} = require('./config');
const requestLog = require('../../../index');
const {filter: requestValidator} = require('validator-param');

const app = express();
app.enable('trust proxy');
Expand All @@ -26,18 +25,6 @@ app.use(bodyParser.urlencoded({
}));


// app.use(modifyParser);
app.use(requestValidator({
basePath: path.join(__dirname, './validators'),
urlPrefix: '/i/',
filenameReplaces: {
'_': '/'
},
filenameSuffix: '_schema.js'
}));



app.use(express.static(path.join(__dirname, 'public')));

app.use('/', routes);
Expand Down
13 changes: 0 additions & 13 deletions test/express/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const {
kafkaSchedule
} = require('./config');
const requestLog = require('../../../index');
const {filter: requestValidator} = require('validator-param');

const app = express();
app.enable('trust proxy');
Expand All @@ -27,18 +26,6 @@ app.use(bodyParser.urlencoded({
}));


// app.use(modifyParser);
app.use(requestValidator({
basePath: path.join(__dirname, './validators'),
urlPrefix: '/i/',
filenameReplaces: {
'_': '/'
},
filenameSuffix: '_schema.js'
}));



app.use(express.static(path.join(__dirname, 'public')));
app.use(cookieParser());
app.use(session({
Expand Down

0 comments on commit 411ffc7

Please sign in to comment.