Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xss

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xss - npm Package Compare versions

Comparing version 0.3.7 to 0.3.8

8

package.json

@@ -5,3 +5,3 @@ {

"typings": "./typings/xss.d.ts",
"version": "0.3.7",
"version": "0.3.8",
"description": "Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist",

@@ -22,6 +22,6 @@ "author": "Zongmin Lei <leizongmin@gmail.com> (http://ucdok.com)",

"browserify": "^14.1.0",
"coveralls": "^2.11.9",
"debug": "^2.2.0",
"coveralls": "^3.0.0",
"debug": "^3.1.0",
"istanbul": "^0.4.3",
"mocha": "^3.0.2",
"mocha": "^4.0.1",
"uglify-js": "^3.0.14"

@@ -28,0 +28,0 @@ },

@@ -25,2 +25,4 @@ [![NPM version][npm-image]][npm-url]

[![Greenkeeper badge](https://badges.greenkeeper.io/leizongmin/js-xss.svg)](https://greenkeeper.io/)
![xss](https://nodei.co/npm/xss.png?downloads=true&stars=true)

@@ -27,0 +29,0 @@

@@ -17,2 +17,3 @@ /**

escapeHtml?: EscapeHandler;
stripIgnoreTag?: boolean;
stripIgnoreTagBody?: boolean | string[];

@@ -92,3 +93,3 @@ allowCommentTag?: boolean;

export type OnTagAttrHandler = (tag: string, name: string, value: string) => string | void;
export type OnTagAttrHandler = (tag: string, name: string, value: string, isWhiteAttr: boolean) => string | void;

@@ -95,0 +96,0 @@ export type SafeAttrValueHandler = (tag: string, name: string, value: string, cssFilter: ICSSFilter) => string;

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