RisingStack / protect

Proactively protect your Node.js web services
MIT License
401 stars 23 forks source link

Found error message in function sqlInjection #6

Closed forsiam closed 7 years ago

forsiam commented 7 years ago

I use node v4.1.2, I found this error

D:\website\server\ws\node_modules\@risingstack\protect\lib\express\index.js:21 function sqlInjection (options = {}) { ^

SyntaxError: Unexpected token = at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:413:25) at Object.Module._extensions..js (module.js:452:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Module.require (module.js:365:17) at require (module.js:384:17) at Object. (D:\website\server\ws\node_modules\@rising stack\protect\lib\index.js:3:17) at Module._compile (module.js:434:26) at Object.Module._extensions..js (module.js:452:10)

how to solve this problem? thank a lot

tothandras commented 7 years ago

Same as #3.