From af6064308725570107bfe58211a898275bf6319b Mon Sep 17 00:00:00 2001 From: Zongmin Lei Date: Wed, 19 Feb 2014 15:45:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=A6=86=E7=9B=96=E7=8E=87?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 +++- package.json | 41 +++++++++++++++++++++++++++++++---------- 2 files changed, 34 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index bbe943b..32e58a9 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,6 @@ results node_modules npm-debug.log -benchmark/result*.html \ No newline at end of file +benchmark/result*.html + +coverage.html \ No newline at end of file diff --git a/package.json b/package.json index 610f8db..adddccd 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,42 @@ { - "name": "xss", - "main": "./lib/index.js", - "version": "0.1.2", - "description": "XSS攻击代码过滤 Remove XSS attack vectors from user-supplied HTML", - "author": "leizongmin (http://ucdok.com)", + "name": "xss", + "main": "./lib/index.js", + "version": "0.1.2", + "description": "XSS攻击代码过滤 Remove XSS attack vectors from user-supplied HTML", + "author": "leizongmin (http://ucdok.com)", + "contributors": [ + { + "name": "Zongmin Lei", + "email": "leizongmin@gmail.com" + } + ], "repository": { "type": "git", - "url": "git://github.com/leizongmin/js-xss.git" + "url": "git://github.com/leizongmin/js-xss.git" }, "engines": { - "node": ">= 0.6.0" + "node": ">= 0.6.0" }, "devDependencies": { - "mocha": ">= 1.2" + "mocha": "1.8.2", + "blanket": "1.1.5", + "browserify": "*", + "uglify-js": "*" }, "scripts": { - "test": "mocha -t 5000" + "blanket": { + "pattern": "xss/lib" + }, + "test": "mocha --require blanket -R html-cov > coverage.html -t 5000" + }, + "licenses": [ + { + "type": "MIT", + "url": "https://raw.github.com/leizongmin/js-xss/master/MIT-License" + } + ], + "bugs": { + "url": "https://github.com/leizongmin/js-xss/issues" }, "homepage": "https://github.com/leizongmin/js-xss", "keywords": [ @@ -30,4 +51,4 @@ "filter", "validator" ] -} +} \ No newline at end of file