express-sql-injection
Version:
This express module detects sql injection attacks and stops them with 403 http status code.
38 lines (35 loc) • 1.03 kB
JavaScript
module.exports = function(grunt) {
grunt.config.init({
bump: {
options: {
push: false
}
},
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js']
},
simplemocha: {
options: {
globals: ['describe'],
timeout: 3000,
reporter: 'spec',
ui: 'bdd'
},
files: ['test/**/*.js']
},
watch: {
files: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js'],
tasks: ['jshint', 'simplemocha']
}
});
grunt.option('force', true);
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.registerTask('default', ['watch']);
grunt.registerTask('test', ['jshint', 'simplemocha']);
};