Socket
Socket
Sign inDemoInstall

html-preflight

Package Overview
Dependencies
89
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.5 to 0.3.7

9

lib/plugins/prefixer.js
'use strict';
var htmlAutoprefixer = require('html-autoprefixer');
var postcssSafeParser = require('postcss-safe-parser');
function PrefixPlugin(options) {
this.options = options || {};
function PrefixPlugin(cheerioOptions, postcssOptions) {
this.cheerioOptions = cheerioOptions || {};
this.postcssOptions = postcssOptions || {};
this.postcssOptions.parser = this.postcssOptions.parser || postcssSafeParser;
return this;

@@ -12,3 +15,3 @@ }

try {
return callback(null, htmlAutoprefixer.process(html, this.options));
return callback(null, htmlAutoprefixer.process(html, this.cheerioOptions, this.postcssOptions));
} catch (e) {

@@ -15,0 +18,0 @@ return callback(e);

{
"name": "html-preflight",
"version": "0.3.5",
"version": "0.3.7",
"description": "The HTML email preflight process, maximing compression without distortion",

@@ -26,14 +26,15 @@ "main": "index.js",

"dependencies": {
"async": "^1.4.0",
"bytes": "^2.1.0",
"async": "^1.5.0",
"bytes": "^2.2.0",
"colors": "^1.1.2",
"html-autoprefixer": "^0.3.7",
"html-minifier": "^0.7.2",
"html-uglify": "1.1.1"
"html-autoprefixer": "^0.3.8",
"html-minifier": "^1.0.0",
"html-uglify": "1.1.3",
"postcss-safe-parser": "^1.0.1"
},
"devDependencies": {
"chai": "^3.2.0",
"istanbul": "^0.3.17",
"mocha": "^2.2.5"
"chai": "^3.4.1",
"istanbul": "^0.4.1",
"mocha": "^2.3.4"
}
}

@@ -14,3 +14,4 @@ 'use strict';

it('should store options', function() {
expect(new Prefixer(true).options).to.exist;
expect(new Prefixer(true).cheerioOptions).to.exist;
expect(new Prefixer(true).postcssOptions).to.exist;
});

@@ -17,0 +18,0 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc