xss-attack-detection
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -19,3 +19,3 @@ const BayesClassifier = require('bayes-classifier'); | ||
detect = (str) => { | ||
detect(str) { | ||
if (Array.isArray(str)) { | ||
@@ -39,3 +39,3 @@ return new Error('Expected a string but got an array') | ||
classifyBatch = (inputArr, primaryKey, fieldsToCheck) => { | ||
classifyBatch (inputArr, primaryKey, fieldsToCheck) { | ||
let keys = []; | ||
@@ -42,0 +42,0 @@ |
{ | ||
"name": "xss-attack-detection", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "This package helps to filter the input text that is malicious and intended to attack the server.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
303216