html-preflight
Advanced tools
Comparing version 0.3.5 to 0.3.7
'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 @@ }); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
10544
236
0
7
+ Addedpostcss-safe-parser@^1.0.1
+ Addedalign-text@0.1.4(transitive)
+ Addedcenter-align@0.1.3(transitive)
+ Addedclean-css@3.4.28(transitive)
+ Addedcliui@2.1.0(transitive)
+ Addedcommander@2.8.12.9.0(transitive)
+ Addedconcat-stream@1.5.2(transitive)
+ Addedgraceful-readlink@1.0.1(transitive)
+ Addedhe@1.0.0(transitive)
+ Addedhtml-minifier@1.5.0(transitive)
+ Addedhtml-uglify@1.1.3(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedjs-base64@2.6.4(transitive)
+ Addedkind-of@3.2.2(transitive)
+ Addedlazy-cache@1.0.4(transitive)
+ Addedlongest@1.0.1(transitive)
+ Addedncname@1.0.0(transitive)
+ Addedpostcss-safe-parser@1.0.7(transitive)
+ Addedprocess-nextick-args@1.0.7(transitive)
+ Addedreadable-stream@2.0.6(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedright-align@0.1.3(transitive)
+ Addeduglify-js@2.6.4(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedxml-char-classes@1.0.0(transitive)
+ Addedyargs@3.10.0(transitive)
- RemovedCSSselect@0.4.1(transitive)
- RemovedCSSwhat@0.4.7(transitive)
- Removedcheerio@0.18.0(transitive)
- Removedclean-css@3.1.9(transitive)
- Removedcli@0.6.6(transitive)
- Removedcommander@2.6.0(transitive)
- Removedconcat-stream@1.4.11(transitive)
- Removeddom-serializer@0.0.1(transitive)
- Removeddomelementtype@1.1.3(transitive)
- Removedes6-promise@2.3.0(transitive)
- Removedexit@0.1.2(transitive)
- Removedglob@3.2.11(transitive)
- Removedhtml-minifier@0.7.2(transitive)
- Removedhtml-uglify@1.1.1(transitive)
- Removedjs-base64@2.1.9(transitive)
- Removedlodash@2.4.2(transitive)
- Removedlru-cache@2.7.3(transitive)
- Removedminimatch@0.3.0(transitive)
- Removedpostcss@4.1.16(transitive)
- Removedsigmund@1.0.1(transitive)
- Removedsource-map@0.1.340.1.43(transitive)
- Removeduglify-js@2.4.24(transitive)
- Removedyargs@3.5.4(transitive)
Updatedasync@^1.5.0
Updatedbytes@^2.2.0
Updatedhtml-autoprefixer@^0.3.8
Updatedhtml-minifier@^1.0.0
Updatedhtml-uglify@1.1.3