sql-injection-v2
Version:
This module checks for sql injection using regex and rejects requests with 403 response if sql is found
38 lines (35 loc) • 880 B
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"]);
};