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

cssfilter

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssfilter - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

15

lib/css.js

@@ -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;

6

package.json
{
"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"
}
}
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