Comparing version 0.0.8 to 0.0.9
@@ -22,2 +22,15 @@ /** | ||
/** | ||
* 浅拷贝对象 | ||
* | ||
* @param {Object} obj | ||
* @return {Object} | ||
*/ | ||
function shallowCopyObject (obj) { | ||
var ret = {}; | ||
for (var i in obj) { | ||
ret[i] = obj[i]; | ||
} | ||
return ret; | ||
} | ||
@@ -33,3 +46,3 @@ /** | ||
function FilterCSS (options) { | ||
options = options || {}; | ||
options = shallowCopyObject(options || {}); | ||
options.whiteList = options.whiteList || DEFAULT.whiteList; | ||
@@ -36,0 +49,0 @@ options.onAttr = options.onAttr || DEFAULT.onAttr; |
{ | ||
"name": "cssfilter", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Sanitize untrusted CSS with a configuration specified by a Whitelist. 根据白名单过滤CSS", | ||
@@ -42,3 +42,3 @@ "main": "lib/index.js", | ||
"blanket": "^1.1.6", | ||
"browserify": "^13.1.0", | ||
"browserify": "^13.1.1", | ||
"coveralls": "^2.11.14", | ||
@@ -48,4 +48,4 @@ "istanbul": "^0.4.5", | ||
"should": "^11.1.1", | ||
"uglify-js": "^2.4.20" | ||
"uglify-js": "^2.7.4" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31445
588