Socket
Socket
Sign inDemoInstall

validator

Package Overview
Dependencies
Maintainers
1
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

validator - npm Package Compare versions

Comparing version 0.4.6-1 to 0.4.6-2

4

lib/xss.js

@@ -97,3 +97,3 @@ //This module is adapted from the CodeIgniter framework

// We only want to do this when it is followed by a non-word character
for (var i in compact_words) {
for (var i = 0, l = compact_words.length; i < l; i++) {
var spacified = compact_words[i].split('').join('\\s*')+'\\s*';

@@ -176,3 +176,3 @@

function remove_invisible_characters(str) {
for (var i in non_displayables) {
for (var i = 0, l = non_displayables.length; i < l; i++) {
str = str.replace(non_displayables[i], '');

@@ -179,0 +179,0 @@ }

{ "name" : "validator",
"description" : "Data validation, filtering and sanitization for node.js",
"version" : "0.4.6-1",
"version" : "0.4.6-2",
"homepage" : "http://github.com/chriso/node-validator",

@@ -5,0 +5,0 @@ "keywords" : ["validator", "validation", "assert", "params", "sanitization", "xss", "entities", "sanitize", "sanitisation", "input"],

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc