Socket
Socket
Sign inDemoInstall

xss-attack-detection

Package Overview
Dependencies
1
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

4

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc