Comparing version 1.3.4-beta.3 to 1.3.4
@@ -43,4 +43,4 @@ 'use strict'; | ||
var version = exports.version = function version() { | ||
return '1.3.4-beta.3'; | ||
return '1.3.4'; | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -19,4 +19,2 @@ 'use strict'; | ||
var _htmlMinifier = require('html-minifier'); | ||
var _mjml = require('./helpers/mjml'); | ||
@@ -255,4 +253,9 @@ | ||
if (options.minify && _htmlMinifier.minify) { | ||
html = (0, _htmlMinifier.minify)(html, { | ||
if (options.minify) { | ||
var _require = require('html-minifier'); | ||
var minify = _require.minify; | ||
html = minify(html, { | ||
collapseWhitespace: true, | ||
@@ -259,0 +262,0 @@ removeEmptyAttributes: true, |
{ | ||
"name": "mjml", | ||
"version": "1.3.4-beta.3", | ||
"version": "1.3.4", | ||
"description": "MJML: the only framework that makes responsive-email easy", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index", |
import _ from 'lodash' | ||
import { EmptyMJMLError } from './Error' | ||
import { html as beautify } from 'js-beautify' | ||
import { minify } from 'html-minifier' | ||
import { parseInstance } from './helpers/mjml' | ||
@@ -247,3 +246,5 @@ import defaultContainer from './configs/defaultContainer' | ||
if (options.minify && minify) { | ||
if (options.minify) { | ||
const { minify } = require('html-minifier') | ||
html = minify(html, { | ||
@@ -250,0 +251,0 @@ collapseWhitespace: true, |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
356885
5090
0