Comparing version 0.3.7 to 0.3.8
@@ -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; |
136917
2508
498