Socket
Socket
Sign inDemoInstall

mjml

Package Overview
Dependencies
Maintainers
2
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml - npm Package Compare versions

Comparing version 1.3.4-beta.3 to 1.3.4

2

lib/index.js

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

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